Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.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.ThermalBody_QHP,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.ThermalBody_QHP,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP",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.1008/0.1008, allocations: 15.28 MB / 30.91 MB, free: 4.141 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.001071/0.001071, allocations: 108.1 kB / 35.92 MB, free: 3.199 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.001272/0.001272, allocations: 194.5 kB / 41.02 MB, free: 7.133 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.429/1.429, allocations: 222.9 MB / 268.9 MB, free: 6.906 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1415/0.1415, allocations: 23.36 MB / 346.6 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 112 kB / 478.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.328, allocations: 59.36 MB / 0.5251 GB, free: 7.785 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.ThermalBody_QHP): time 0.03375/0.3618, allocations: 23.66 MB / 0.5482 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.3638, allocations: 0.785 MB / 0.549 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002314/0.364, allocations: 11.94 kB / 0.549 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002413/0.3642, allocations: 81.88 kB / 0.5491 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000349/0.3646, allocations: 185.6 kB / 0.5492 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.3649, allocations: 95.3 kB / 0.5493 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005882/0.3655, allocations: 0.5586 MB / 0.5499 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002826/0.3658, allocations: 169.8 kB / 0.55 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.366, allocations: 188.1 kB / 0.5502 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.3662, allocations: 212 kB / 0.5504 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.3663, allocations: 32 kB / 0.5505 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.973e-05/0.3664, allocations: 32 kB / 0.5505 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.3665, allocations: 80.95 kB / 0.5506 GB, free: 9.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.3667, allocations: 229.1 kB / 0.5508 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005217/0.3673, allocations: 464 kB / 0.5512 GB, free: 8.965 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3673, allocations: 0.75 kB / 0.5512 GB, free: 8.965 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3673, allocations: 4 kB / 0.5512 GB, free: 8.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.3673, allocations: 0 / 0.5512 GB, free: 8.961 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.00111/0.3684, allocations: 0.7456 MB / 0.552 GB, free: 8.215 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3685, allocations: 8.031 kB / 0.552 GB, free: 8.207 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.715e-05/0.3685, allocations: 62.02 kB / 0.552 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.054e-05/0.3686, allocations: 52.61 kB / 0.5521 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004599/0.3691, allocations: 351.2 kB / 0.5524 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.3691, allocations: 20.94 kB / 0.5524 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.3692, allocations: 25.12 kB / 0.5525 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000462/0.3697, allocations: 253 kB / 0.5527 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.3697, allocations: 4.656 kB / 0.5527 GB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.3697, allocations: 12 kB / 0.5527 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3697, allocations: 8 kB / 0.5527 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003696/0.3701, allocations: 190 kB / 0.5529 GB, free: 7.301 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.001796/0.3719, allocations: 1.548 MB / 0.5544 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003933/0.3723, allocations: 228.2 kB / 0.5546 GB, free: 5.496 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.3725, allocations: 144.1 kB / 0.5548 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.3726, allocations: 4.234 kB / 0.5548 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.3726, allocations: 38.73 kB / 0.5548 GB, free: 5.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.773e-06/0.3726, allocations: 4 kB / 0.5548 GB, free: 5.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005883/0.3732, allocations: 317 kB / 0.5551 GB, free: 5.012 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.3732, allocations: 55.41 kB / 0.5552 GB, free: 4.945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.3736, allocations: 322.9 kB / 0.5555 GB, free: 4.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.3736, allocations: 29.7 kB / 0.5555 GB, free: 4.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.3737, allocations: 195.1 kB / 0.5557 GB, free: 4.441 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.929e-05/0.3738, allocations: 99.56 kB / 0.5558 GB, free: 4.352 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.3739, allocations: 44.81 kB / 0.5558 GB, free: 4.305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3741, allocations: 355.2 kB / 0.5562 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.3742, allocations: 69.86 kB / 0.5562 GB, free: 3.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.3744, allocations: 69.66 kB / 0.5563 GB, free: 3.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.3755, allocations: 394.9 kB / 0.5567 GB, free: 3.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3755, allocations: 0 / 0.5567 GB, free: 3.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004183/0.3759, allocations: 264.1 kB / 0.5569 GB, free: 3.238 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.376, allocations: 4.656 kB / 0.5569 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.376, allocations: 3.938 kB / 0.5569 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.376, allocations: 0 / 0.5569 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.3763, allocations: 58.5 kB / 0.557 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.3763, allocations: 3.984 kB / 0.557 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.3765, allocations: 24.72 kB / 0.557 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.3765, allocations: 4 kB / 0.557 GB, free: 3.148 MB / 398.1 MB Warning: Assuming fixed start value for the following 4 variables: core.relativeHeat:VARIABLE(flow=false start = core.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real GILumen.relativeHeat:VARIABLE(flow=false start = GILumen.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skeletalMuscle.relativeHeat:VARIABLE(flow=false start = skeletalMuscle.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skin.relativeHeat:VARIABLE(flow=false start = skin.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 (31): * Single equations (assignments): 31 * 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.0002529/0.3767, allocations: 169.5 kB / 0.5572 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.392e-05/0.3768, allocations: 40.45 kB / 0.5572 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.285e-05/0.3769, allocations: 52.86 kB / 0.5573 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3769, allocations: 0 / 0.5573 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3769, allocations: 4.656 kB / 0.5573 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3769, allocations: 1.312 kB / 0.5573 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005233/0.3775, allocations: 402.2 kB / 0.5577 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3775, allocations: 4 kB / 0.5577 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.3778, allocations: 46.08 kB / 0.5577 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.3778, allocations: 0.6094 kB / 0.5577 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.3778, allocations: 8 kB / 0.5577 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3778, allocations: 0.7031 kB / 0.5577 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.3778, allocations: 4 kB / 0.5577 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/0.3785, allocations: 475.3 kB / 0.5582 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.3786, allocations: 133.7 kB / 0.5583 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.075e-05/0.3787, allocations: 9.297 kB / 0.5583 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.3789, allocations: 12 kB / 0.5583 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.3789, allocations: 17.52 kB / 0.5583 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.3789, allocations: 8 kB / 0.5583 GB, free: 1.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002263/0.3792, allocations: 230.2 kB / 0.5586 GB, free: 1.621 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3792, allocations: 0 / 0.5586 GB, free: 1.621 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003517/0.3795, allocations: 91.89 kB / 0.5587 GB, free: 1.531 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (core.relativeHeat,GILumen.relativeHeat,skeletalMuscle.relativeHeat,skin.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 (27): * Single equations (assignments): 27 * 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.0008782/0.3804, allocations: 1.011 MB / 0.5596 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000382/0.3808, allocations: 211.3 kB / 0.5598 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3808, allocations: 0 / 0.5598 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.381, allocations: 107.2 kB / 0.5599 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006013/0.3816, allocations: 105.2 kB / 0.56 GB, free: 144 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.3855, allocations: 3.158 MB / 0.5631 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.3859, allocations: 0.803 MB / 0.5639 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.3861, allocations: 30.55 kB / 0.5639 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.3863, allocations: 128.9 kB / 0.5641 GB, free: 12.18 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3863, allocations: 0 / 0.5641 GB, free: 12.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.4128, allocations: 7.473 MB / 0.5714 GB, free: 4.789 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.234/8.647, allocations: 15.69 kB / 0.5714 GB, free: 4.777 MB / 414.1 MB (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)