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.1373/0.1373, allocations: 15.27 MB / 30.91 MB, free: 4.152 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.001414/0.001413, allocations: 104.8 kB / 35.91 MB, free: 3.176 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.001907/0.001907, allocations: 193.1 kB / 41.02 MB, free: 7.113 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.402/1.402, allocations: 222.9 MB / 268.9 MB, free: 6.887 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1524/0.1524, allocations: 23.35 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 119.8 kB / 478.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3327, allocations: 59.35 MB / 0.5251 GB, free: 7.781 MB / 382.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.0328/0.3655, allocations: 21.91 MB / 0.5465 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.3666, allocations: 481.3 kB / 0.5469 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.3668, allocations: 4 kB / 0.547 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.3669, allocations: 26.53 kB / 0.547 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.367, allocations: 60 kB / 0.547 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001161/0.3671, allocations: 22.56 kB / 0.5471 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.3673, allocations: 149.2 kB / 0.5472 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3675, allocations: 40.52 kB / 0.5472 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.328e-05/0.3675, allocations: 56.34 kB / 0.5473 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.712e-05/0.3676, allocations: 57.78 kB / 0.5473 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.3677, allocations: 4 kB / 0.5474 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.923e-05/0.3677, allocations: 8 kB / 0.5474 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.533e-05/0.3677, allocations: 18.7 kB / 0.5474 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.624e-05/0.3678, allocations: 58.5 kB / 0.5474 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001831/0.368, allocations: 115.9 kB / 0.5475 GB, free: 12.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.368, allocations: 4 kB / 0.5475 GB, free: 12.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.368, allocations: 4 kB / 0.5475 GB, free: 12.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.368, allocations: 0.6094 kB / 0.5476 GB, free: 12.27 MB / 398.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.0005238/0.3685, allocations: 442.8 kB / 0.548 GB, free: 11.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.3686, allocations: 8.031 kB / 0.548 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.779e-05/0.3686, allocations: 41.05 kB / 0.548 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.297e-05/0.3687, allocations: 16.84 kB / 0.548 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.3689, allocations: 230.4 kB / 0.5483 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.3689, allocations: 8.375 kB / 0.5483 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.369, allocations: 4.891 kB / 0.5483 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.3691, allocations: 73.09 kB / 0.5483 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3691, allocations: 0.7969 kB / 0.5483 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.3692, allocations: 7.938 kB / 0.5483 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3692, allocations: 0 / 0.5483 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.949e-05/0.3693, allocations: 39.84 kB / 0.5484 GB, free: 11.36 MB / 398.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.0005689/0.3698, allocations: 483.8 kB / 0.5488 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.37, allocations: 61.38 kB / 0.5489 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.457e-05/0.37, allocations: 27.09 kB / 0.5489 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.37, allocations: 0 / 0.5489 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.3701, allocations: 35.17 kB / 0.549 GB, free: 10.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 9.02e-07/0.3701, allocations: 0 / 0.549 GB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002024/0.3703, allocations: 85.41 kB / 0.549 GB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.3703, allocations: 55.34 kB / 0.5491 GB, free: 10.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.3705, allocations: 184.5 kB / 0.5493 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.3705, allocations: 25.7 kB / 0.5493 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.832e-05/0.3706, allocations: 116.4 kB / 0.5494 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.3706, allocations: 21.36 kB / 0.5494 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/0.3707, allocations: 30.73 kB / 0.5495 GB, free: 10.19 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3708, allocations: 322.8 kB / 0.5498 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.888e-05/0.3708, allocations: 9.125 kB / 0.5498 GB, free: 9.859 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.285e-05/0.3708, allocations: 17.11 kB / 0.5498 GB, free: 9.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002679/0.3711, allocations: 72.92 kB / 0.5499 GB, free: 9.777 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3711, allocations: 0 / 0.5499 GB, free: 9.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001106/0.3712, allocations: 75.67 kB / 0.5499 GB, free: 9.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.3713, allocations: 8.656 kB / 0.5499 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.3713, allocations: 0 / 0.5499 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.3713, allocations: 3.938 kB / 0.5499 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.368e-05/0.3714, allocations: 13.16 kB / 0.55 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.3714, allocations: 4.609 kB / 0.55 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.834e-05/0.3714, allocations: 11.89 kB / 0.55 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-06/0.3714, allocations: 0 / 0.55 GB, free: 9.66 MB / 398.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 = 4.1868e6 ) "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.0001311/0.3716, allocations: 122.2 kB / 0.5501 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.3716, allocations: 19.89 kB / 0.5501 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.3717, allocations: 18.97 kB / 0.5501 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.3717, allocations: 7.938 kB / 0.5501 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3717, allocations: 0.75 kB / 0.5501 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3717, allocations: 0 / 0.5501 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.3719, allocations: 199.1 kB / 0.5503 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3719, allocations: 7.938 kB / 0.5503 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.886e-05/0.372, allocations: 5.5 kB / 0.5503 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.372, allocations: 0 / 0.5503 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.372, allocations: 4 kB / 0.5503 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.372, allocations: 8.734 kB / 0.5504 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.372, allocations: 0 / 0.5504 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001815/0.3722, allocations: 184.6 kB / 0.5505 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.3723, allocations: 95.11 kB / 0.5506 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.3723, allocations: 4.656 kB / 0.5506 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.746e-05/0.3724, allocations: 4.062 kB / 0.5506 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.527e-05/0.3724, allocations: 5.359 kB / 0.5506 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.3724, allocations: 8 kB / 0.5506 GB, free: 8.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.69e-05/0.3725, allocations: 135.2 kB / 0.5508 GB, free: 8.797 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3725, allocations: 0 / 0.5508 GB, free: 8.797 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002357/0.3728, allocations: 20 kB / 0.5508 GB, free: 8.777 MB / 398.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.0003935/0.3732, allocations: 0.7189 MB / 0.5515 GB, free: 8.035 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.3733, allocations: 30.48 kB / 0.5515 GB, free: 8.008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.3733, allocations: 8.062 kB / 0.5515 GB, free: 8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.149e-05/0.3733, allocations: 21.25 kB / 0.5515 GB, free: 7.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.3738, allocations: 67.83 kB / 0.5516 GB, free: 7.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.3753, allocations: 1.695 MB / 0.5533 GB, free: 6.223 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.3756, allocations: 0.7065 MB / 0.554 GB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.114e-05/0.3757, allocations: 12.19 kB / 0.554 GB, free: 5.488 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.753e-05/0.3757, allocations: 38.39 kB / 0.554 GB, free: 5.457 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3757, allocations: 0 / 0.554 GB, free: 5.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.3988, allocations: 3.45 MB / 0.5574 GB, free: 3.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.673/8.071, allocations: 8.047 kB / 0.5574 GB, free: 3.152 MB / 398.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)