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: translateModel(Physiolibrary.Thermal.Examples.ThermalBody_QHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP") translateModel(Physiolibrary.Thermal.Examples.ThermalBody_QHP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1056/0.1056, allocations: 15.28 MB / 31.59 MB, free: 4.098 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.001097/0.001097, allocations: 104 kB / 36.58 MB, free: 3.172 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.00211/0.002109, allocations: 189.1 kB / 41.69 MB, free: 7.105 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.47/1.47, allocations: 222.9 MB / 269.5 MB, free: 6.855 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1348/0.1348, allocations: 23.36 MB / 347.3 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 111.8 kB / 479.5 MB, free: 1.805 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3248, allocations: 59.35 MB / 0.5262 GB, free: 8.09 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.03432/0.3592, allocations: 23.61 MB / 0.5493 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001843/0.3611, allocations: 0.7824 MB / 0.5501 GB, free: 11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002019/0.3613, allocations: 11.94 kB / 0.5501 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.3615, allocations: 81.03 kB / 0.5501 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003112/0.3618, allocations: 186.2 kB / 0.5503 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.3621, allocations: 84.02 kB / 0.5504 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005225/0.3626, allocations: 0.5584 MB / 0.5509 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002733/0.3629, allocations: 169.6 kB / 0.5511 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.3631, allocations: 188.1 kB / 0.5513 GB, free: 9.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.3633, allocations: 200.3 kB / 0.5515 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.017e-05/0.3634, allocations: 36 kB / 0.5515 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.462e-05/0.3635, allocations: 32 kB / 0.5515 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.045e-05/0.3636, allocations: 81.16 kB / 0.5516 GB, free: 9.578 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.3638, allocations: 234.1 kB / 0.5518 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004857/0.3643, allocations: 468.4 kB / 0.5523 GB, free: 9.027 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3643, allocations: 0 / 0.5523 GB, free: 9.027 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3643, allocations: 0.6562 kB / 0.5523 GB, free: 9.027 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.3643, allocations: 0 / 0.5523 GB, free: 9.027 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.001011/0.3653, allocations: 0.7262 MB / 0.553 GB, free: 8.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.3653, allocations: 8.594 kB / 0.553 GB, free: 8.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.409e-05/0.3654, allocations: 48.38 kB / 0.5531 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000426/0.3659, allocations: 347 kB / 0.5534 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.3659, allocations: 24.94 kB / 0.5534 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/0.366, allocations: 28.8 kB / 0.5534 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004437/0.3664, allocations: 253.8 kB / 0.5537 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.3664, allocations: 0 / 0.5537 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.3665, allocations: 16 kB / 0.5537 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.3665, allocations: 8.609 kB / 0.5537 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003491/0.3668, allocations: 190.5 kB / 0.5539 GB, free: 7.449 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.001684/0.3685, allocations: 1.55 MB / 0.5554 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003783/0.3689, allocations: 211.2 kB / 0.5556 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.3691, allocations: 151.8 kB / 0.5557 GB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.3692, allocations: 4.234 kB / 0.5557 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.3692, allocations: 31.45 kB / 0.5558 GB, free: 5.473 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.333e-06/0.3692, allocations: 0 / 0.5558 GB, free: 5.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005754/0.3698, allocations: 316.2 kB / 0.5561 GB, free: 5.176 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.3698, allocations: 55.41 kB / 0.5561 GB, free: 5.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.3701, allocations: 331.4 kB / 0.5564 GB, free: 4.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.3702, allocations: 33.7 kB / 0.5565 GB, free: 4.773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3703, allocations: 194.3 kB / 0.5567 GB, free: 4.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.639e-05/0.3704, allocations: 90.84 kB / 0.5568 GB, free: 4.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.537e-05/0.3705, allocations: 45.05 kB / 0.5568 GB, free: 4.465 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3706, allocations: 351 kB / 0.5571 GB, free: 4.125 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3707, allocations: 65.91 kB / 0.5572 GB, free: 4.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.3709, allocations: 70.42 kB / 0.5573 GB, free: 4.004 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.372, allocations: 398.5 kB / 0.5576 GB, free: 3.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.372, allocations: 0 / 0.5576 GB, free: 3.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003866/0.3724, allocations: 260.6 kB / 0.5579 GB, free: 3.406 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3724, allocations: 7.594 kB / 0.5579 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3725, allocations: 0 / 0.5579 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.3725, allocations: 4 kB / 0.5579 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.3727, allocations: 50.41 kB / 0.5579 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3727, allocations: 0 / 0.5579 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.3729, allocations: 28.58 kB / 0.558 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.3729, allocations: 8 kB / 0.558 GB, free: 3.32 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.0002025/0.3731, allocations: 172.5 kB / 0.5581 GB, free: 3.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.576e-05/0.3732, allocations: 36.33 kB / 0.5582 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.555e-05/0.3733, allocations: 49.23 kB / 0.5582 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3733, allocations: 4 kB / 0.5582 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3733, allocations: 3.938 kB / 0.5582 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.3733, allocations: 2.016 kB / 0.5582 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004882/0.3738, allocations: 409.6 kB / 0.5586 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3738, allocations: 0 / 0.5586 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.3741, allocations: 46.17 kB / 0.5587 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.3741, allocations: 7.984 kB / 0.5587 GB, free: 2.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.3741, allocations: 4.797 kB / 0.5587 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3742, allocations: 0 / 0.5587 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3742, allocations: 0 / 0.5587 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006239/0.3748, allocations: 475.7 kB / 0.5591 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.3749, allocations: 133.2 kB / 0.5593 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.316e-05/0.375, allocations: 4.609 kB / 0.5593 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.3751, allocations: 8 kB / 0.5593 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.321e-05/0.3752, allocations: 13.72 kB / 0.5593 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.3752, allocations: 4.609 kB / 0.5593 GB, free: 2.004 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000215/0.3754, allocations: 229.9 kB / 0.5595 GB, free: 1.805 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3754, allocations: 11.88 kB / 0.5595 GB, free: 1.793 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.3758, allocations: 95.84 kB / 0.5596 GB, free: 1.699 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.0001031/0.3759, allocations: 100.5 kB / 0.5597 GB, free: 1.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003698/0.3762, allocations: 206 kB / 0.5599 GB, free: 1.402 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3763, allocations: 0 / 0.5599 GB, free: 1.402 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.3764, allocations: 116.4 kB / 0.56 GB, free: 1.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005831/0.377, allocations: 91.88 kB / 0.5601 GB, free: 1.227 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/0.3783, allocations: 0.8662 MB / 0.561 GB, free: 384 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.3787, allocations: 0.8031 MB / 0.5617 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.375e-05/0.3788, allocations: 23.44 kB / 0.5618 GB, free: 15.56 MB / 414.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3788, allocations: 0 / 0.5618 GB, free: 15.56 MB / 414.1 MB Notification: Performance of Templates: time 0.00621/0.385, allocations: 4.457 MB / 0.5661 GB, free: 11.21 MB / 414.1 MB make -j1 -f Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.makefile (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 & ./Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)