pythonfmu3 0.2.2__py3-none-any.whl → 0.2.2.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pythonfmu3 might be problematic. Click here for more details.
- pythonfmu3/__init__.py +8 -8
- pythonfmu3/__main__.py +52 -52
- pythonfmu3/_version.py +1 -1
- pythonfmu3/builder.py +260 -260
- pythonfmu3/default_experiment.py +7 -7
- pythonfmu3/deploy.py +118 -118
- pythonfmu3/enums.py +48 -48
- pythonfmu3/fmi3slave.py +438 -438
- pythonfmu3/logmsg.py +14 -14
- pythonfmu3/osutil.py +22 -22
- pythonfmu3/pythonfmu-export/.clang-format +35 -35
- pythonfmu3/pythonfmu-export/CMakeLists.txt +59 -59
- pythonfmu3/pythonfmu-export/build/ALL_BUILD.vcxproj +184 -0
- pythonfmu3/pythonfmu-export/build/ALL_BUILD.vcxproj.filters +8 -0
- pythonfmu3/pythonfmu-export/build/CMakeCache.txt +369 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/0ee4db0675778dfba98c7160896d5a45/generate.stamp.rule +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeCCompiler.cmake +72 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeCXXCompiler.cmake +83 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeDetermineCompilerABI_C.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeDetermineCompilerABI_CXX.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeRCCompiler.cmake +6 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CMakeSystem.cmake +15 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CMakeCCompilerId.c +838 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CompilerIdC.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/CompilerIdC.vcxproj +71 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CMakeCCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.exe.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/CompilerIdC.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdC/Debug/CompilerIdC.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CMakeCXXCompilerId.cpp +826 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/CompilerIdCXX.vcxproj +71 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CMakeCXXCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.exe.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/VCTargetsPath.txt +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/VCTargetsPath.vcxproj +31 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/x64/Debug/VCTargetsPath.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.24.0/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeCCompiler.cmake +81 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeCXXCompiler.cmake +101 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeDetermineCompilerABI_C.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeDetermineCompilerABI_CXX.bin +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeRCCompiler.cmake +6 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CMakeSystem.cmake +15 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CMakeCCompilerId.c +904 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CompilerIdC.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/CompilerIdC.vcxproj +72 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CMakeCCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.exe.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/CompilerIdC.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdC/Debug/CompilerIdC.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CMakeCXXCompilerId.cpp +919 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CompilerIdCXX.exe +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/CompilerIdCXX.vcxproj +72 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CMakeCXXCompilerId.obj +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.exe.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/CompilerIdCXX.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/CompilerIdCXX/Debug/CompilerIdCXX.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/VCTargetsPath.txt +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/VCTargetsPath.vcxproj +31 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/x64/Debug/VCTargetsPath.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/3.30.2/x64/Debug/VCTargetsPath.tlog/VCTargetsPath.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/CMakeConfigureLog.yaml +568 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/CMakeOutput.log +357 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/TargetDirectories.txt +3 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/cmake.check_cache +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp +1 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp.depend +28 -0
- pythonfmu3/pythonfmu-export/build/CMakeFiles/generate.stamp.list +2 -0
- pythonfmu3/pythonfmu-export/build/ZERO_CHECK.vcxproj +174 -0
- pythonfmu3/pythonfmu-export/build/ZERO_CHECK.vcxproj.filters +13 -0
- pythonfmu3/pythonfmu-export/build/cmake_install.cmake +50 -0
- pythonfmu3/pythonfmu-export/build/install_manifest.txt +0 -0
- pythonfmu3/pythonfmu-export/build/pythonfmu-export.sln +53 -0
- pythonfmu3/pythonfmu-export/build/src/CMakeFiles/generate.stamp +1 -0
- pythonfmu3/pythonfmu-export/build/src/CMakeFiles/generate.stamp.depend +2 -0
- pythonfmu3/pythonfmu-export/build/src/Debug/pythonfmu-export.pdb +0 -0
- pythonfmu3/pythonfmu-export/build/src/Release/pythonfmu-export.exp +0 -0
- pythonfmu3/pythonfmu-export/build/src/Release/pythonfmu-export.lib +0 -0
- pythonfmu3/pythonfmu-export/build/src/cmake_install.cmake +34 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/PySlaveInstance.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/cppfmu_cs.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/exports.def +1885 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/fmi_functions.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/objects.txt +3 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.command.1.tlog +10 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.read.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/CustomBuild.write.1.tlog +2 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.command.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.read.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.read.3.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/link.write.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/pythonfmu-export.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/pythonfmu-export.tlog/unsuccessfulbuild +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Debug/vc142.pdb +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/MinSizeRel/objects.txt +3 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/RelWithDebInfo/objects.txt +3 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/PySlaveInstance.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/cppfmu_cs.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/exports.def +538 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/fmi_functions.obj +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/objects.txt +3 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.dll.recipe +14 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CL.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.command.1.tlog +10 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.read.1.tlog +1 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/CustomBuild.write.1.tlog +2 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.command.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.delete.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.read.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/link.write.1.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/pythonfmu-export.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.dir/Release/pythonfmu-export.tlog/pythonfmu-export.write.1u.tlog +0 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.vcxproj +414 -0
- pythonfmu3/pythonfmu-export/build/src/pythonfmu-export.vcxproj.filters +48 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +10 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +29 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +3 -0
- pythonfmu3/pythonfmu-export/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.recipe +17 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/ALL_BUILD.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.command.1.tlog +10 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.read.1.tlog +27 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ALL_BUILD/ALL_BUILD.tlog/CustomBuild.write.1.tlog +2 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.recipe +11 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.command.1.tlog +10 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.read.1.tlog +29 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/CustomBuild.write.1.tlog +3 -0
- pythonfmu3/pythonfmu-export/build/x64/Release/ZERO_CHECK/ZERO_CHECK.tlog/ZERO_CHECK.lastbuildstate +2 -0
- pythonfmu3/pythonfmu-export/build_unix.sh +4 -4
- pythonfmu3/pythonfmu-export/build_win.sh +4 -4
- pythonfmu3/pythonfmu-export/src/CMakeLists.txt +45 -45
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_common.hpp +161 -161
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_cs.cpp +192 -192
- pythonfmu3/pythonfmu-export/src/cppfmu/cppfmu_cs.hpp +185 -185
- pythonfmu3/pythonfmu-export/src/cppfmu/fmi_functions.cpp +937 -937
- pythonfmu3/pythonfmu-export/src/fmi/fmi3FunctionTypes.h +638 -638
- pythonfmu3/pythonfmu-export/src/fmi/fmi3Functions.h +343 -343
- pythonfmu3/pythonfmu-export/src/fmi/fmi3PlatformTypes.h +94 -94
- pythonfmu3/pythonfmu-export/src/pythonfmu/IPyState.hpp +17 -17
- pythonfmu3/pythonfmu-export/src/pythonfmu/PySlaveInstance.cpp +744 -744
- pythonfmu3/pythonfmu-export/src/pythonfmu/PySlaveInstance.hpp +111 -111
- pythonfmu3/pythonfmu-export/src/pythonfmu/PyState.hpp +84 -84
- pythonfmu3/resources/binaries/x86_64-linux/libpythonfmu-export.so +0 -0
- pythonfmu3/resources/binaries/x86_64-windows/pythonfmu-export.dll +0 -0
- pythonfmu3/resources/binaries/x86_64-windows1/pythonfmu-export.dll +0 -0
- pythonfmu3/tests/conftest.py +5 -5
- pythonfmu3/tests/data/csvdemo.csv +7 -7
- pythonfmu3/tests/slaves/PythonSlaveWithException.py +18 -18
- pythonfmu3/tests/slaves/localmodule.py +8 -8
- pythonfmu3/tests/slaves/pythonslave.py +52 -52
- pythonfmu3/tests/slaves/pythonslave_read_file.py +23 -23
- pythonfmu3/tests/slaves/slavewithdep.py +21 -21
- pythonfmu3/tests/test_builder.py +195 -195
- pythonfmu3/tests/test_deploy.py +48 -48
- pythonfmu3/tests/test_fmi3slave.py +152 -152
- pythonfmu3/tests/test_integration.py +350 -350
- pythonfmu3/tests/test_logger.py +180 -180
- pythonfmu3/tests/test_multiple_fmus.py +141 -141
- pythonfmu3/tests/test_variables.py +334 -334
- pythonfmu3/tests/utils.py +13 -13
- pythonfmu3/unit.py +62 -62
- pythonfmu3/variable_types.py +101 -101
- pythonfmu3/variables.py +400 -400
- pythonfmu3-0.2.2.dist-info/LICENSE → pythonfmu3-0.2.2.2.dist-info/LICENSE.txt +23 -23
- {pythonfmu3-0.2.2.dist-info → pythonfmu3-0.2.2.2.dist-info}/METADATA +9 -6
- pythonfmu3-0.2.2.2.dist-info/RECORD +200 -0
- {pythonfmu3-0.2.2.dist-info → pythonfmu3-0.2.2.2.dist-info}/WHEEL +1 -1
- {pythonfmu3-0.2.2.dist-info → pythonfmu3-0.2.2.2.dist-info}/entry_points.txt +1 -0
- pythonfmu3-0.2.2.dist-info/RECORD +0 -54
- {pythonfmu3-0.2.2.dist-info → pythonfmu3-0.2.2.2.dist-info}/top_level.txt +0 -0
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
/* Copyright 2016-2019, SINTEF Ocean.
|
|
2
|
-
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
3
|
-
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
-
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
-
*/
|
|
6
|
-
#ifndef CPPFMU_CS_HPP
|
|
7
|
-
#define CPPFMU_CS_HPP
|
|
8
|
-
|
|
9
|
-
#include "cppfmu_common.hpp"
|
|
10
|
-
|
|
11
|
-
#include <vector>
|
|
12
|
-
#include <memory>
|
|
13
|
-
|
|
14
|
-
namespace cppfmu
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
/* ============================================================================
|
|
18
|
-
* CO-SIMULATION INTERFACE
|
|
19
|
-
* ============================================================================
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/* A base class for co-simulation slave instances.
|
|
23
|
-
*
|
|
24
|
-
* To implement a co-simulation slave, create a class which publicly derives
|
|
25
|
-
* from this one and override its virtual methods as required. DoStep() is
|
|
26
|
-
* the only function which it is mandatory to override.
|
|
27
|
-
*
|
|
28
|
-
* The methods map directly to the C functions defined by FMI 2.0 (and, with
|
|
29
|
-
* some adaptations, FMI 1.0), so the documentation here is intentionally
|
|
30
|
-
* sparse. We refer to the FMI specifications for detailed information.
|
|
31
|
-
*/
|
|
32
|
-
class SlaveInstance
|
|
33
|
-
{
|
|
34
|
-
public:
|
|
35
|
-
/* Called from fmi3SetupExperiment() (FMI 2.0) or fmiInitializeSlave()
|
|
36
|
-
* (FMI 1.0).
|
|
37
|
-
* Does nothing by default.
|
|
38
|
-
*/
|
|
39
|
-
virtual void SetupExperiment(
|
|
40
|
-
FMIBoolean toleranceDefined,
|
|
41
|
-
FMIFloat64 tolerance,
|
|
42
|
-
FMIFloat64 tStart,
|
|
43
|
-
FMIBoolean stopTimeDefined,
|
|
44
|
-
FMIFloat64 tStop);
|
|
45
|
-
|
|
46
|
-
/* Called from fmi3EnterInitializationMode() (FMI 2.0) or
|
|
47
|
-
* fmiInitializeSlave() (FMI 1.0).
|
|
48
|
-
* Does nothing by default.
|
|
49
|
-
*/
|
|
50
|
-
virtual void EnterInitializationMode();
|
|
51
|
-
|
|
52
|
-
/* Called from fmi3ExitInitializationMode() (FMI 2.0) or
|
|
53
|
-
* fmiInitializeSlave() (FMI 1.0).
|
|
54
|
-
* Does nothing by default.
|
|
55
|
-
*/
|
|
56
|
-
virtual void ExitInitializationMode();
|
|
57
|
-
|
|
58
|
-
/* Called from fmi3Terminate()/fmiTerminateSlave().
|
|
59
|
-
* Does nothing by default.
|
|
60
|
-
*/
|
|
61
|
-
virtual void Terminate();
|
|
62
|
-
|
|
63
|
-
/* Called from fmi3Reset()/fmiResetSlave().
|
|
64
|
-
* Does nothing by default.
|
|
65
|
-
*/
|
|
66
|
-
virtual void Reset();
|
|
67
|
-
|
|
68
|
-
/* Called from fmi3SetXxx()/fmiSetXxx().
|
|
69
|
-
* Throws std::logic_error by default.
|
|
70
|
-
*/
|
|
71
|
-
virtual void SetFloat64(
|
|
72
|
-
const FMIValueReference vr[],
|
|
73
|
-
std::size_t nvr,
|
|
74
|
-
const FMIFloat64 value[],
|
|
75
|
-
std::size_t nValues);
|
|
76
|
-
virtual void SetInt32(
|
|
77
|
-
const FMIValueReference vr[],
|
|
78
|
-
std::size_t nvr,
|
|
79
|
-
const FMIInt32 value[]);
|
|
80
|
-
virtual void SetInt64(
|
|
81
|
-
const FMIValueReference vr[],
|
|
82
|
-
std::size_t nvr,
|
|
83
|
-
const FMIInt64 value[]);
|
|
84
|
-
virtual void SetUInt64(
|
|
85
|
-
const FMIValueReference vr[],
|
|
86
|
-
std::size_t nvr,
|
|
87
|
-
const FMIUInt64 value[]);
|
|
88
|
-
virtual void SetBoolean(
|
|
89
|
-
const FMIValueReference vr[],
|
|
90
|
-
std::size_t nvr,
|
|
91
|
-
const FMIBoolean value[]);
|
|
92
|
-
virtual void SetString(
|
|
93
|
-
const FMIValueReference vr[],
|
|
94
|
-
std::size_t nvr,
|
|
95
|
-
const FMIString value[]);
|
|
96
|
-
|
|
97
|
-
/* Called from fmi3GetXxx()/fmiGetXxx().
|
|
98
|
-
* Throws std::logic_error by default.
|
|
99
|
-
*/
|
|
100
|
-
virtual void GetFloat64(
|
|
101
|
-
const FMIValueReference vr[],
|
|
102
|
-
std::size_t nvr,
|
|
103
|
-
FMIFloat64 value[],
|
|
104
|
-
std::size_t nValues) const;
|
|
105
|
-
virtual void GetInt32(
|
|
106
|
-
const FMIValueReference vr[],
|
|
107
|
-
std::size_t nvr,
|
|
108
|
-
FMIInt32 value[]) const;
|
|
109
|
-
virtual void GetInt64(
|
|
110
|
-
const FMIValueReference vr[],
|
|
111
|
-
std::size_t nvr,
|
|
112
|
-
FMIInt64 value[]) const;
|
|
113
|
-
virtual void GetUInt64(
|
|
114
|
-
const FMIValueReference vr[],
|
|
115
|
-
std::size_t nvr,
|
|
116
|
-
FMIUInt64 value[]) const;
|
|
117
|
-
virtual void GetBoolean(
|
|
118
|
-
const FMIValueReference vr[],
|
|
119
|
-
std::size_t nvr,
|
|
120
|
-
FMIBoolean value[]) const;
|
|
121
|
-
virtual void GetString(
|
|
122
|
-
const FMIValueReference vr[],
|
|
123
|
-
std::size_t nvr,
|
|
124
|
-
FMIString value[]) const;
|
|
125
|
-
|
|
126
|
-
// Called from fmi3DoStep()/fmiDoStep(). Must be implemented in model code.
|
|
127
|
-
virtual FMIStatus DoStep(
|
|
128
|
-
FMIFloat64 currentCommunicationPoint,
|
|
129
|
-
FMIFloat64 communicationStepSize,
|
|
130
|
-
FMIBoolean newStep,
|
|
131
|
-
FMIBoolean* eventHandlingNeeded,
|
|
132
|
-
FMIBoolean* terminateSimulation,
|
|
133
|
-
FMIBoolean* earlyReturn,
|
|
134
|
-
FMIFloat64& endOfStep) = 0;
|
|
135
|
-
|
|
136
|
-
virtual void GetFMUstate(fmi3FMUState& state) = 0;
|
|
137
|
-
virtual void SetFMUstate(const fmi3FMUState& state) = 0;
|
|
138
|
-
virtual void FreeFMUstate(fmi3FMUState& state) = 0;
|
|
139
|
-
|
|
140
|
-
virtual size_t SerializedFMUstateSize(const fmi3FMUState& state) = 0;
|
|
141
|
-
virtual void SerializeFMUstate(const fmi3FMUState& state, fmi3Byte bytes[], size_t size) = 0;
|
|
142
|
-
virtual void DeSerializeFMUstate(const fmi3Byte bytes[], size_t size, fmi3FMUState& state) = 0;
|
|
143
|
-
|
|
144
|
-
// The instance is destroyed in fmi3FreeInstance()/fmiFreeSlaveInstance().
|
|
145
|
-
virtual ~SlaveInstance() CPPFMU_NOEXCEPT;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
} // namespace cppfmu
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
/* A function which must be defined by model code, and which should create
|
|
152
|
-
* and return a new slave instance.
|
|
153
|
-
*
|
|
154
|
-
* The returned instance must be managed by a std::unique_ptr with a deleter
|
|
155
|
-
* of type std::function<void(void*)> that takes care of freeing the memory.
|
|
156
|
-
* The simplest way to set this up is to use cppfmu::AllocateUnique() to
|
|
157
|
-
* create the slave instance.
|
|
158
|
-
*
|
|
159
|
-
* Most of its parameters correspond to those of fmi3Instantiate() and
|
|
160
|
-
* fmiInstantiateSlave(), except that 'functions' and 'loggingOn' have been
|
|
161
|
-
* replaced with more convenient types:
|
|
162
|
-
*
|
|
163
|
-
* memory = An object which the model code can use for memory management,
|
|
164
|
-
* typically in conjunction with cppfmu::Allocator,
|
|
165
|
-
* cppfmu::AllocateUnique(), etc. Allocation and deallocation
|
|
166
|
-
* requests get forwarded to the simulation environment.
|
|
167
|
-
*
|
|
168
|
-
* logger = An object which the model code can use to log messages (e.g.
|
|
169
|
-
* warnings or debug info). The messages are forwarded to the
|
|
170
|
-
* simulation environment's logging facilities.
|
|
171
|
-
*
|
|
172
|
-
* Note that this function is declared in the global namespace.
|
|
173
|
-
*/
|
|
174
|
-
std::unique_ptr<cppfmu::SlaveInstance> CppfmuInstantiateSlave(
|
|
175
|
-
cppfmu::FMIString instanceName,
|
|
176
|
-
cppfmu::FMIString fmuGUID,
|
|
177
|
-
cppfmu::FMIString fmuResourceLocation,
|
|
178
|
-
cppfmu::FMIString mimeType,
|
|
179
|
-
cppfmu::FMIFloat64 timeout,
|
|
180
|
-
cppfmu::FMIBoolean visible,
|
|
181
|
-
cppfmu::FMIBoolean interactive,
|
|
182
|
-
const cppfmu::Logger& logger);
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
#endif // header guard
|
|
1
|
+
/* Copyright 2016-2019, SINTEF Ocean.
|
|
2
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
3
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
4
|
+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
5
|
+
*/
|
|
6
|
+
#ifndef CPPFMU_CS_HPP
|
|
7
|
+
#define CPPFMU_CS_HPP
|
|
8
|
+
|
|
9
|
+
#include "cppfmu_common.hpp"
|
|
10
|
+
|
|
11
|
+
#include <vector>
|
|
12
|
+
#include <memory>
|
|
13
|
+
|
|
14
|
+
namespace cppfmu
|
|
15
|
+
{
|
|
16
|
+
|
|
17
|
+
/* ============================================================================
|
|
18
|
+
* CO-SIMULATION INTERFACE
|
|
19
|
+
* ============================================================================
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/* A base class for co-simulation slave instances.
|
|
23
|
+
*
|
|
24
|
+
* To implement a co-simulation slave, create a class which publicly derives
|
|
25
|
+
* from this one and override its virtual methods as required. DoStep() is
|
|
26
|
+
* the only function which it is mandatory to override.
|
|
27
|
+
*
|
|
28
|
+
* The methods map directly to the C functions defined by FMI 2.0 (and, with
|
|
29
|
+
* some adaptations, FMI 1.0), so the documentation here is intentionally
|
|
30
|
+
* sparse. We refer to the FMI specifications for detailed information.
|
|
31
|
+
*/
|
|
32
|
+
class SlaveInstance
|
|
33
|
+
{
|
|
34
|
+
public:
|
|
35
|
+
/* Called from fmi3SetupExperiment() (FMI 2.0) or fmiInitializeSlave()
|
|
36
|
+
* (FMI 1.0).
|
|
37
|
+
* Does nothing by default.
|
|
38
|
+
*/
|
|
39
|
+
virtual void SetupExperiment(
|
|
40
|
+
FMIBoolean toleranceDefined,
|
|
41
|
+
FMIFloat64 tolerance,
|
|
42
|
+
FMIFloat64 tStart,
|
|
43
|
+
FMIBoolean stopTimeDefined,
|
|
44
|
+
FMIFloat64 tStop);
|
|
45
|
+
|
|
46
|
+
/* Called from fmi3EnterInitializationMode() (FMI 2.0) or
|
|
47
|
+
* fmiInitializeSlave() (FMI 1.0).
|
|
48
|
+
* Does nothing by default.
|
|
49
|
+
*/
|
|
50
|
+
virtual void EnterInitializationMode();
|
|
51
|
+
|
|
52
|
+
/* Called from fmi3ExitInitializationMode() (FMI 2.0) or
|
|
53
|
+
* fmiInitializeSlave() (FMI 1.0).
|
|
54
|
+
* Does nothing by default.
|
|
55
|
+
*/
|
|
56
|
+
virtual void ExitInitializationMode();
|
|
57
|
+
|
|
58
|
+
/* Called from fmi3Terminate()/fmiTerminateSlave().
|
|
59
|
+
* Does nothing by default.
|
|
60
|
+
*/
|
|
61
|
+
virtual void Terminate();
|
|
62
|
+
|
|
63
|
+
/* Called from fmi3Reset()/fmiResetSlave().
|
|
64
|
+
* Does nothing by default.
|
|
65
|
+
*/
|
|
66
|
+
virtual void Reset();
|
|
67
|
+
|
|
68
|
+
/* Called from fmi3SetXxx()/fmiSetXxx().
|
|
69
|
+
* Throws std::logic_error by default.
|
|
70
|
+
*/
|
|
71
|
+
virtual void SetFloat64(
|
|
72
|
+
const FMIValueReference vr[],
|
|
73
|
+
std::size_t nvr,
|
|
74
|
+
const FMIFloat64 value[],
|
|
75
|
+
std::size_t nValues);
|
|
76
|
+
virtual void SetInt32(
|
|
77
|
+
const FMIValueReference vr[],
|
|
78
|
+
std::size_t nvr,
|
|
79
|
+
const FMIInt32 value[]);
|
|
80
|
+
virtual void SetInt64(
|
|
81
|
+
const FMIValueReference vr[],
|
|
82
|
+
std::size_t nvr,
|
|
83
|
+
const FMIInt64 value[]);
|
|
84
|
+
virtual void SetUInt64(
|
|
85
|
+
const FMIValueReference vr[],
|
|
86
|
+
std::size_t nvr,
|
|
87
|
+
const FMIUInt64 value[]);
|
|
88
|
+
virtual void SetBoolean(
|
|
89
|
+
const FMIValueReference vr[],
|
|
90
|
+
std::size_t nvr,
|
|
91
|
+
const FMIBoolean value[]);
|
|
92
|
+
virtual void SetString(
|
|
93
|
+
const FMIValueReference vr[],
|
|
94
|
+
std::size_t nvr,
|
|
95
|
+
const FMIString value[]);
|
|
96
|
+
|
|
97
|
+
/* Called from fmi3GetXxx()/fmiGetXxx().
|
|
98
|
+
* Throws std::logic_error by default.
|
|
99
|
+
*/
|
|
100
|
+
virtual void GetFloat64(
|
|
101
|
+
const FMIValueReference vr[],
|
|
102
|
+
std::size_t nvr,
|
|
103
|
+
FMIFloat64 value[],
|
|
104
|
+
std::size_t nValues) const;
|
|
105
|
+
virtual void GetInt32(
|
|
106
|
+
const FMIValueReference vr[],
|
|
107
|
+
std::size_t nvr,
|
|
108
|
+
FMIInt32 value[]) const;
|
|
109
|
+
virtual void GetInt64(
|
|
110
|
+
const FMIValueReference vr[],
|
|
111
|
+
std::size_t nvr,
|
|
112
|
+
FMIInt64 value[]) const;
|
|
113
|
+
virtual void GetUInt64(
|
|
114
|
+
const FMIValueReference vr[],
|
|
115
|
+
std::size_t nvr,
|
|
116
|
+
FMIUInt64 value[]) const;
|
|
117
|
+
virtual void GetBoolean(
|
|
118
|
+
const FMIValueReference vr[],
|
|
119
|
+
std::size_t nvr,
|
|
120
|
+
FMIBoolean value[]) const;
|
|
121
|
+
virtual void GetString(
|
|
122
|
+
const FMIValueReference vr[],
|
|
123
|
+
std::size_t nvr,
|
|
124
|
+
FMIString value[]) const;
|
|
125
|
+
|
|
126
|
+
// Called from fmi3DoStep()/fmiDoStep(). Must be implemented in model code.
|
|
127
|
+
virtual FMIStatus DoStep(
|
|
128
|
+
FMIFloat64 currentCommunicationPoint,
|
|
129
|
+
FMIFloat64 communicationStepSize,
|
|
130
|
+
FMIBoolean newStep,
|
|
131
|
+
FMIBoolean* eventHandlingNeeded,
|
|
132
|
+
FMIBoolean* terminateSimulation,
|
|
133
|
+
FMIBoolean* earlyReturn,
|
|
134
|
+
FMIFloat64& endOfStep) = 0;
|
|
135
|
+
|
|
136
|
+
virtual void GetFMUstate(fmi3FMUState& state) = 0;
|
|
137
|
+
virtual void SetFMUstate(const fmi3FMUState& state) = 0;
|
|
138
|
+
virtual void FreeFMUstate(fmi3FMUState& state) = 0;
|
|
139
|
+
|
|
140
|
+
virtual size_t SerializedFMUstateSize(const fmi3FMUState& state) = 0;
|
|
141
|
+
virtual void SerializeFMUstate(const fmi3FMUState& state, fmi3Byte bytes[], size_t size) = 0;
|
|
142
|
+
virtual void DeSerializeFMUstate(const fmi3Byte bytes[], size_t size, fmi3FMUState& state) = 0;
|
|
143
|
+
|
|
144
|
+
// The instance is destroyed in fmi3FreeInstance()/fmiFreeSlaveInstance().
|
|
145
|
+
virtual ~SlaveInstance() CPPFMU_NOEXCEPT;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
} // namespace cppfmu
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/* A function which must be defined by model code, and which should create
|
|
152
|
+
* and return a new slave instance.
|
|
153
|
+
*
|
|
154
|
+
* The returned instance must be managed by a std::unique_ptr with a deleter
|
|
155
|
+
* of type std::function<void(void*)> that takes care of freeing the memory.
|
|
156
|
+
* The simplest way to set this up is to use cppfmu::AllocateUnique() to
|
|
157
|
+
* create the slave instance.
|
|
158
|
+
*
|
|
159
|
+
* Most of its parameters correspond to those of fmi3Instantiate() and
|
|
160
|
+
* fmiInstantiateSlave(), except that 'functions' and 'loggingOn' have been
|
|
161
|
+
* replaced with more convenient types:
|
|
162
|
+
*
|
|
163
|
+
* memory = An object which the model code can use for memory management,
|
|
164
|
+
* typically in conjunction with cppfmu::Allocator,
|
|
165
|
+
* cppfmu::AllocateUnique(), etc. Allocation and deallocation
|
|
166
|
+
* requests get forwarded to the simulation environment.
|
|
167
|
+
*
|
|
168
|
+
* logger = An object which the model code can use to log messages (e.g.
|
|
169
|
+
* warnings or debug info). The messages are forwarded to the
|
|
170
|
+
* simulation environment's logging facilities.
|
|
171
|
+
*
|
|
172
|
+
* Note that this function is declared in the global namespace.
|
|
173
|
+
*/
|
|
174
|
+
std::unique_ptr<cppfmu::SlaveInstance> CppfmuInstantiateSlave(
|
|
175
|
+
cppfmu::FMIString instanceName,
|
|
176
|
+
cppfmu::FMIString fmuGUID,
|
|
177
|
+
cppfmu::FMIString fmuResourceLocation,
|
|
178
|
+
cppfmu::FMIString mimeType,
|
|
179
|
+
cppfmu::FMIFloat64 timeout,
|
|
180
|
+
cppfmu::FMIBoolean visible,
|
|
181
|
+
cppfmu::FMIBoolean interactive,
|
|
182
|
+
const cppfmu::Logger& logger);
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
#endif // header guard
|