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.08504/0.08504, allocations: 15.28 MB / 30.91 MB, free: 4.137 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.001016/0.001016, allocations: 114.3 kB / 35.92 MB, free: 3.184 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.001153/0.001153, allocations: 193 kB / 41.02 MB, free: 7.109 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.332/1.332, allocations: 222.9 MB / 268.9 MB, free: 6.793 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1242/0.1242, allocations: 23.36 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 120 kB / 478.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2946, allocations: 59.35 MB / 0.5256 GB, free: 8.078 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.0329/0.3275, allocations: 23.59 MB / 0.5486 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.3295, allocations: 0.7821 MB / 0.5494 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.3298, allocations: 11.94 kB / 0.5494 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002318/0.33, allocations: 81.08 kB / 0.5495 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003295/0.3303, allocations: 190.1 kB / 0.5497 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.3306, allocations: 83.27 kB / 0.5497 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005622/0.3312, allocations: 0.5623 MB / 0.5503 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002914/0.3315, allocations: 157.8 kB / 0.5504 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.3317, allocations: 192.1 kB / 0.5506 GB, free: 9.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.332, allocations: 208.1 kB / 0.5508 GB, free: 9.727 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.403e-05/0.332, allocations: 32 kB / 0.5508 GB, free: 9.695 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.033e-05/0.3321, allocations: 32 kB / 0.5509 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.653e-05/0.3322, allocations: 81.19 kB / 0.551 GB, free: 9.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.3324, allocations: 230.2 kB / 0.5512 GB, free: 9.387 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004912/0.3329, allocations: 472.8 kB / 0.5516 GB, free: 9.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3329, allocations: 0 / 0.5516 GB, free: 9.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3329, allocations: 0 / 0.5516 GB, free: 9.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.3329, allocations: 0 / 0.5516 GB, free: 9.047 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.0009822/0.3339, allocations: 0.7269 MB / 0.5523 GB, free: 8.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.3339, allocations: 16.03 kB / 0.5524 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.048e-05/0.334, allocations: 44.38 kB / 0.5524 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.3344, allocations: 339.6 kB / 0.5527 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.3345, allocations: 24.94 kB / 0.5527 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/0.3345, allocations: 32.28 kB / 0.5528 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000419/0.335, allocations: 257.6 kB / 0.553 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.335, allocations: 4 kB / 0.553 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.582e-05/0.335, allocations: 8.656 kB / 0.553 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.335, allocations: 8 kB / 0.553 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003348/0.3354, allocations: 190.2 kB / 0.5532 GB, free: 7.469 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.001685/0.3371, allocations: 1.543 MB / 0.5547 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003649/0.3374, allocations: 223 kB / 0.5549 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002138/0.3377, allocations: 144 kB / 0.5551 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.3377, allocations: 4.234 kB / 0.5551 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.3377, allocations: 30.8 kB / 0.5551 GB, free: 5.496 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.663e-06/0.3377, allocations: 4 kB / 0.5551 GB, free: 5.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005661/0.3383, allocations: 321 kB / 0.5554 GB, free: 5.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.3383, allocations: 55.41 kB / 0.5555 GB, free: 5.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.3387, allocations: 322.5 kB / 0.5558 GB, free: 4.836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.3387, allocations: 30.5 kB / 0.5558 GB, free: 4.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.3388, allocations: 194.5 kB / 0.556 GB, free: 4.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.654e-05/0.3389, allocations: 94.36 kB / 0.5561 GB, free: 4.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.339e-05/0.339, allocations: 45.89 kB / 0.5561 GB, free: 4.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3391, allocations: 354.6 kB / 0.5565 GB, free: 4.145 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.3392, allocations: 65.91 kB / 0.5565 GB, free: 4.086 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.3394, allocations: 70.05 kB / 0.5566 GB, free: 4.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.3405, allocations: 399 kB / 0.557 GB, free: 3.676 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3405, allocations: 0 / 0.557 GB, free: 3.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004021/0.3409, allocations: 255.4 kB / 0.5572 GB, free: 3.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.3409, allocations: 4.703 kB / 0.5572 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.341, allocations: 0 / 0.5572 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.341, allocations: 8 kB / 0.5572 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.3413, allocations: 54.83 kB / 0.5573 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3413, allocations: 0 / 0.5573 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.3414, allocations: 27.69 kB / 0.5573 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.3415, allocations: 8.703 kB / 0.5573 GB, free: 3.336 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.0002105/0.3417, allocations: 172.7 kB / 0.5575 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.784e-05/0.3417, allocations: 35.62 kB / 0.5575 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.716e-05/0.3418, allocations: 49.12 kB / 0.5576 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3418, allocations: 4 kB / 0.5576 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3419, allocations: 0.75 kB / 0.5576 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3419, allocations: 0.8438 kB / 0.5576 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004604/0.3423, allocations: 410.1 kB / 0.558 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3423, allocations: 0.8438 kB / 0.558 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.3426, allocations: 45.94 kB / 0.558 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.3426, allocations: 4 kB / 0.558 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.3427, allocations: 8.938 kB / 0.558 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3427, allocations: 0 / 0.558 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3427, allocations: 4 kB / 0.558 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006004/0.3433, allocations: 467.2 kB / 0.5585 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.3434, allocations: 133.2 kB / 0.5586 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.165e-05/0.3435, allocations: 9.078 kB / 0.5586 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.3436, allocations: 4 kB / 0.5586 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.3437, allocations: 17.53 kB / 0.5586 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.3437, allocations: 8 kB / 0.5586 GB, free: 2.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.3439, allocations: 230.9 kB / 0.5589 GB, free: 1.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3439, allocations: 0 / 0.5589 GB, free: 1.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003187/0.3443, allocations: 91.84 kB / 0.5589 GB, free: 1.73 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.0001007/0.3444, allocations: 104 kB / 0.559 GB, free: 1.617 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003684/0.3447, allocations: 206.2 kB / 0.5592 GB, free: 1.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3448, allocations: 0 / 0.5592 GB, free: 1.43 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.3449, allocations: 116 kB / 0.5593 GB, free: 1.324 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005724/0.3455, allocations: 96.19 kB / 0.5594 GB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.3468, allocations: 0.8406 MB / 0.5603 GB, free: 440 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/0.3472, allocations: 0.7991 MB / 0.561 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001444/0.3473, allocations: 30.73 kB / 0.5611 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.874e-05/0.3474, allocations: 23.44 kB / 0.5611 GB, free: 15.6 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3474, allocations: 0 / 0.5611 GB, free: 15.6 MB / 414.1 MB Notification: Performance of Templates: time 0.007412/0.3548, allocations: 3.973 MB / 0.565 GB, free: 11.76 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)