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.09397/0.09397, allocations: 15.28 MB / 30.91 MB, free: 4.16 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.001059/0.001059, allocations: 108.6 kB / 35.92 MB, free: 3.188 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.001319/0.001319, allocations: 193.1 kB / 41.02 MB, free: 7.121 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.9 MB, free: 6.844 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1383/0.1383, allocations: 23.35 MB / 346.6 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 115.8 kB / 478.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2953, allocations: 59.35 MB / 0.5251 GB, free: 7.789 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.03046/0.3258, allocations: 23.65 MB / 0.5482 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.3276, allocations: 0.7832 MB / 0.549 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/0.3278, allocations: 11.94 kB / 0.549 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.328, allocations: 85.64 kB / 0.5491 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003045/0.3284, allocations: 178.2 kB / 0.5492 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.3286, allocations: 90.84 kB / 0.5493 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005168/0.3291, allocations: 0.5588 MB / 0.5499 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.3294, allocations: 170.1 kB / 0.55 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.3296, allocations: 187.4 kB / 0.5502 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002508/0.3299, allocations: 200.2 kB / 0.5504 GB, free: 9.613 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.525e-05/0.3299, allocations: 32 kB / 0.5504 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.994e-05/0.33, allocations: 32 kB / 0.5505 GB, free: 9.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.382e-05/0.3301, allocations: 81.34 kB / 0.5505 GB, free: 9.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002005/0.3303, allocations: 236.2 kB / 0.5508 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004451/0.3307, allocations: 465 kB / 0.5512 GB, free: 8.934 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3307, allocations: 3.938 kB / 0.5512 GB, free: 8.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3307, allocations: 0 / 0.5512 GB, free: 8.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3308, allocations: 0 / 0.5512 GB, free: 8.93 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.001027/0.3318, allocations: 0.7306 MB / 0.5519 GB, free: 8.199 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3318, allocations: 12.59 kB / 0.5519 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.97e-05/0.3319, allocations: 61.88 kB / 0.552 GB, free: 8.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.69e-05/0.332, allocations: 44.47 kB / 0.552 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/0.3324, allocations: 351.1 kB / 0.5524 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.3324, allocations: 20.94 kB / 0.5524 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.589e-05/0.3325, allocations: 28.38 kB / 0.5524 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004225/0.3329, allocations: 253.6 kB / 0.5527 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3329, allocations: 4 kB / 0.5527 GB, free: 7.473 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.333, allocations: 12.8 kB / 0.5527 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.333, allocations: 4 kB / 0.5527 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.3333, allocations: 193.8 kB / 0.5529 GB, free: 7.285 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.001654/0.335, allocations: 1.551 MB / 0.5544 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.3354, allocations: 216.5 kB / 0.5546 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002228/0.3356, allocations: 151.9 kB / 0.5547 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.3357, allocations: 4.234 kB / 0.5547 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.3357, allocations: 35.3 kB / 0.5548 GB, free: 5.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.463e-06/0.3357, allocations: 0 / 0.5548 GB, free: 5.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005783/0.3363, allocations: 312.5 kB / 0.5551 GB, free: 5.008 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.3363, allocations: 55.41 kB / 0.5551 GB, free: 4.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.3366, allocations: 326.8 kB / 0.5554 GB, free: 4.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.3367, allocations: 33.7 kB / 0.5555 GB, free: 4.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.3368, allocations: 191 kB / 0.5556 GB, free: 4.434 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.416e-05/0.3369, allocations: 94.98 kB / 0.5557 GB, free: 4.348 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/0.337, allocations: 44.72 kB / 0.5558 GB, free: 4.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3371, allocations: 350.8 kB / 0.5561 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.3372, allocations: 65.95 kB / 0.5562 GB, free: 3.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.3374, allocations: 74.17 kB / 0.5562 GB, free: 3.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.3385, allocations: 402.9 kB / 0.5566 GB, free: 3.484 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3385, allocations: 0 / 0.5566 GB, free: 3.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003949/0.3389, allocations: 256.1 kB / 0.5569 GB, free: 3.238 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.3389, allocations: 7.594 kB / 0.5569 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.3389, allocations: 0 / 0.5569 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.3389, allocations: 0.5625 kB / 0.5569 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3392, allocations: 53.98 kB / 0.5569 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.3392, allocations: 4.656 kB / 0.5569 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.3394, allocations: 19.75 kB / 0.5569 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.3394, allocations: 8 kB / 0.557 GB, free: 3.156 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.0002092/0.3396, allocations: 174.7 kB / 0.5571 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.3397, allocations: 39.53 kB / 0.5572 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.3398, allocations: 53.12 kB / 0.5572 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3398, allocations: 0 / 0.5572 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3398, allocations: 0 / 0.5572 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.3398, allocations: 9.859 kB / 0.5572 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004556/0.3403, allocations: 410.1 kB / 0.5576 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3403, allocations: 0 / 0.5576 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.3406, allocations: 46.17 kB / 0.5577 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3406, allocations: 0 / 0.5577 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.3406, allocations: 12.66 kB / 0.5577 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3406, allocations: 0 / 0.5577 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3407, allocations: 4.656 kB / 0.5577 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006093/0.3413, allocations: 475.2 kB / 0.5581 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.3414, allocations: 133.2 kB / 0.5583 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.636e-05/0.3415, allocations: 4.703 kB / 0.5583 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.3416, allocations: 8 kB / 0.5583 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.3417, allocations: 10.52 kB / 0.5583 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.3417, allocations: 12 kB / 0.5583 GB, free: 1.824 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.3419, allocations: 230.3 kB / 0.5585 GB, free: 1.625 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3419, allocations: 0 / 0.5585 GB, free: 1.625 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.3422, allocations: 95.84 kB / 0.5586 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.0008112/0.3431, allocations: 0.9993 MB / 0.5596 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003593/0.3434, allocations: 206.8 kB / 0.5598 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3434, allocations: 8 kB / 0.5598 GB, free: 336 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.3436, allocations: 111.5 kB / 0.5599 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005956/0.3442, allocations: 96 kB / 0.56 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.3478, allocations: 3.156 MB / 0.5631 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.3481, allocations: 0.7958 MB / 0.5638 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.3483, allocations: 34.95 kB / 0.5639 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/0.3485, allocations: 120.8 kB / 0.564 GB, free: 12.21 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3485, allocations: 3.938 kB / 0.564 GB, free: 12.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.3733, allocations: 7.477 MB / 0.5713 GB, free: 4.812 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.27, allocations: 11.91 kB / 0.5713 GB, free: 4.805 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)