Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: "" <> buildModelFMU(Physiolibrary.Thermal.Examples.MuscleHeat,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_MuscleHeat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.MuscleHeat,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_MuscleHeat",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09566/0.09566, allocations: 15.28 MB / 30.78 MB, free: 4.074 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 99.62 kB / 35.77 MB, free: 3.273 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 193.1 kB / 40.88 MB, free: 7.203 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 268.7 MB, free: 6.957 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1363/0.1363, allocations: 23.36 MB / 346.4 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 107.8 kB / 418.3 MB, free: 30.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.09223, allocations: 59.37 MB / 477.7 MB, free: 2.898 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Thermal.Examples.MuscleHeat): time 0.02816/0.1204, allocations: 21.84 MB / 499.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009147/0.1213, allocations: 490.7 kB / 500 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1215, allocations: 4 kB / 500 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.1216, allocations: 23.78 kB / 0.4883 GB, free: 12.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.1217, allocations: 55.48 kB / 0.4884 GB, free: 12.63 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001166/0.1218, allocations: 23.92 kB / 0.4884 GB, free: 12.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.122, allocations: 147.1 kB / 0.4885 GB, free: 12.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.1222, allocations: 33.47 kB / 0.4885 GB, free: 12.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.132e-05/0.1222, allocations: 51.73 kB / 0.4886 GB, free: 12.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.478e-05/0.1223, allocations: 59.72 kB / 0.4887 GB, free: 12.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.1224, allocations: 8 kB / 0.4887 GB, free: 12.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.638e-05/0.1224, allocations: 8 kB / 0.4887 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.542e-05/0.1224, allocations: 19.92 kB / 0.4887 GB, free: 12.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/0.1225, allocations: 59.67 kB / 0.4887 GB, free: 12.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.1227, allocations: 119.6 kB / 0.4889 GB, free: 12.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1227, allocations: 0 / 0.4889 GB, free: 12.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1227, allocations: 0 / 0.4889 GB, free: 12.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.298e-06/0.1227, allocations: 0 / 0.4889 GB, free: 12.11 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000511/0.1232, allocations: 445.1 kB / 0.4893 GB, free: 11.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1233, allocations: 8.031 kB / 0.4893 GB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.546e-05/0.1233, allocations: 42.73 kB / 0.4893 GB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.093e-05/0.1233, allocations: 8.844 kB / 0.4893 GB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.1236, allocations: 223.9 kB / 0.4896 GB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.1236, allocations: 4.375 kB / 0.4896 GB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.1236, allocations: 12.31 kB / 0.4896 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.1238, allocations: 77.73 kB / 0.4896 GB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1238, allocations: 0 / 0.4896 GB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.707e-06/0.1238, allocations: 0 / 0.4896 GB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.1238, allocations: 8 kB / 0.4897 GB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.013e-05/0.1239, allocations: 35.98 kB / 0.4897 GB, free: 11.16 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005532/0.1245, allocations: 479.2 kB / 0.4901 GB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.1246, allocations: 70.48 kB / 0.4902 GB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.38e-05/0.1246, allocations: 24.98 kB / 0.4902 GB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.1246, allocations: 0 / 0.4902 GB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.1247, allocations: 38.5 kB / 0.4903 GB, free: 10.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=5): time 8.81e-07/0.1247, allocations: 0 / 0.4903 GB, free: 10.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001968/0.1249, allocations: 85.5 kB / 0.4904 GB, free: 10.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.1249, allocations: 55.34 kB / 0.4904 GB, free: 10.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.1251, allocations: 183.8 kB / 0.4906 GB, free: 10.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.1251, allocations: 29.7 kB / 0.4906 GB, free: 10.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.338e-05/0.1252, allocations: 116 kB / 0.4907 GB, free: 9.973 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.1252, allocations: 19.89 kB / 0.4907 GB, free: 9.953 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.1252, allocations: 13.72 kB / 0.4908 GB, free: 9.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.785e-05/0.1254, allocations: 326.8 kB / 0.4911 GB, free: 9.605 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.785e-05/0.1254, allocations: 11.98 kB / 0.4911 GB, free: 9.594 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.507e-05/0.1254, allocations: 15.94 kB / 0.4911 GB, free: 9.578 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.1257, allocations: 72.83 kB / 0.4912 GB, free: 9.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1257, allocations: 0 / 0.4912 GB, free: 9.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001093/0.1258, allocations: 73.52 kB / 0.4912 GB, free: 9.426 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.1258, allocations: 4 kB / 0.4912 GB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.1258, allocations: 0 / 0.4912 GB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.1259, allocations: 0 / 0.4912 GB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.619e-05/0.1259, allocations: 15.92 kB / 0.4912 GB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.126, allocations: 3.938 kB / 0.4913 GB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.464e-05/0.126, allocations: 8 kB / 0.4913 GB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.126, allocations: 4 kB / 0.4913 GB, free: 9.391 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: muscle.relativeHeat:VARIABLE(flow=false start = muscle.relativeHeat_start unit = "J" fixed = true nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.1262, allocations: 118.8 kB / 0.4914 GB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.1262, allocations: 11.81 kB / 0.4914 GB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.717e-05/0.1263, allocations: 16.98 kB / 0.4914 GB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1263, allocations: 7.922 kB / 0.4914 GB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1263, allocations: 4 kB / 0.4914 GB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.1263, allocations: 4 kB / 0.4914 GB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/0.1265, allocations: 205.6 kB / 0.4916 GB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1265, allocations: 0 / 0.4916 GB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.244e-05/0.1266, allocations: 15.98 kB / 0.4916 GB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1266, allocations: 3.938 kB / 0.4916 GB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.1266, allocations: 0 / 0.4916 GB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.1266, allocations: 11.88 kB / 0.4916 GB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1266, allocations: 0 / 0.4916 GB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.1268, allocations: 183.3 kB / 0.4918 GB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.1269, allocations: 97.09 kB / 0.4919 GB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.1269, allocations: 4 kB / 0.4919 GB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.754e-05/0.127, allocations: 3.938 kB / 0.4919 GB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.519e-05/0.127, allocations: 0 / 0.4919 GB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.127, allocations: 0 / 0.4919 GB, free: 8.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.749e-05/0.1271, allocations: 136.4 kB / 0.4921 GB, free: 8.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1271, allocations: 0 / 0.4921 GB, free: 8.488 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002418/0.1274, allocations: 27.91 kB / 0.4921 GB, free: 8.461 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (muscle.relativeHeat) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003837/0.1278, allocations: 0.7201 MB / 0.4928 GB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.1279, allocations: 32 kB / 0.4928 GB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1279, allocations: 0 / 0.4928 GB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.275e-05/0.1279, allocations: 23.92 kB / 0.4928 GB, free: 7.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.1284, allocations: 60.27 kB / 0.4929 GB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.1299, allocations: 1.678 MB / 0.4945 GB, free: 5.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.1301, allocations: 0.7123 MB / 0.4952 GB, free: 5.094 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.645e-05/0.1302, allocations: 17.06 kB / 0.4952 GB, free: 5.078 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.884e-05/0.1303, allocations: 39.38 kB / 0.4953 GB, free: 5.039 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1303, allocations: 0 / 0.4953 GB, free: 5.039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.1498, allocations: 3.379 MB / 0.4986 GB, free: 1.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.306/7.456, allocations: 18.42 kB / 0.4986 GB, free: 1.684 MB / 366.1 MB (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 Physiolibrary_Physiolibrary_Thermal_Examples_MuscleHeat.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe 2>&1)