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-master/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-master/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-master/package.mo): time 0.129/0.129, allocations: 15.26 MB / 30.24 MB, free: 6.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.0008792/0.0008791, allocations: 99.19 kB / 35.25 MB, free: 1.352 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.001311/0.001311, allocations: 184.5 kB / 40.35 MB, free: 4.969 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.502/1.502, allocations: 223.3 MB / 268.6 MB, free: 2.086 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.168/0.168, allocations: 23.39 MB / 347.3 MB, free: 6.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005071/0.0005071, allocations: 16 kB / 419.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.348, allocations: 60.47 MB / 480 MB, free: 36.53 MB / 350.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.00364/0.3517, allocations: 3.713 MB / 483.7 MB, free: 32.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.3529, allocations: 0.7753 MB / 484.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/0.3532, allocations: 19.88 kB / 484.5 MB, free: 32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.3534, allocations: 67.45 kB / 484.6 MB, free: 31.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002769/0.3537, allocations: 178.5 kB / 484.8 MB, free: 31.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002213/0.3539, allocations: 63.92 kB / 484.8 MB, free: 31.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004317/0.3543, allocations: 0.5325 MB / 485.4 MB, free: 31.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.3546, allocations: 127.1 kB / 485.5 MB, free: 31.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.3547, allocations: 155.4 kB / 485.7 MB, free: 30.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002065/0.3549, allocations: 171.2 kB / 485.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.3549, allocations: 24 kB / 485.8 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.162e-05/0.355, allocations: 16 kB / 485.9 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.906e-05/0.3551, allocations: 59.69 kB / 485.9 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.171e-05/0.3551, allocations: 113.5 kB / 486 MB, free: 30.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.3554, allocations: 313.7 kB / 486.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3554, allocations: 0 / 486.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3554, allocations: 0 / 486.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3554, allocations: 4 kB / 486.3 MB, free: 30.18 MB / 350.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.0007846/0.3562, allocations: 0.6659 MB / 487 MB, free: 29.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3562, allocations: 8.031 kB / 487 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.635e-05/0.3563, allocations: 47.44 kB / 487.1 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.3567, allocations: 318.7 kB / 487.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.3567, allocations: 24.56 kB / 487.4 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.135e-05/0.3567, allocations: 24 kB / 487.4 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003889/0.3571, allocations: 252.9 kB / 487.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.3572, allocations: 0 / 487.7 MB, free: 28.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.3572, allocations: 8 kB / 487.7 MB, free: 28.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3572, allocations: 8 kB / 487.7 MB, free: 28.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.3575, allocations: 190.1 kB / 487.9 MB, free: 28.55 MB / 350.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.001292/0.3588, allocations: 1.551 MB / 489.4 MB, free: 26.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.3591, allocations: 215.2 kB / 489.6 MB, free: 26.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001863/0.3593, allocations: 149.7 kB / 489.8 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.3594, allocations: 4.234 kB / 489.8 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.455e-05/0.3594, allocations: 38.73 kB / 489.8 MB, free: 26.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.392e-06/0.3594, allocations: 0 / 489.8 MB, free: 26.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005091/0.3599, allocations: 313.1 kB / 490.1 MB, free: 26.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.3599, allocations: 59.36 kB / 490.2 MB, free: 25.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.3602, allocations: 317.7 kB / 490.5 MB, free: 25.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.3602, allocations: 29.7 kB / 490.5 MB, free: 25.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.92e-05/0.3603, allocations: 204.6 kB / 490.7 MB, free: 25.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.714e-05/0.3604, allocations: 90.72 kB / 490.8 MB, free: 25.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.3604, allocations: 8 kB / 490.8 MB, free: 25.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.098e-05/0.3604, allocations: 346.8 kB / 491.2 MB, free: 24.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.3606, allocations: 67.97 kB / 491.2 MB, free: 24.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.3607, allocations: 67.97 kB / 491.3 MB, free: 24.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.3608, allocations: 87.92 kB / 491.4 MB, free: 24.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3608, allocations: 0 / 491.4 MB, free: 24.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003183/0.3611, allocations: 257.4 kB / 491.6 MB, free: 24.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.3612, allocations: 15.94 kB / 491.6 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3612, allocations: 0 / 491.6 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.3612, allocations: 0 / 491.6 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.3614, allocations: 55.91 kB / 491.7 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.3615, allocations: 3.953 kB / 491.7 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.3616, allocations: 31.69 kB / 491.7 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.3616, allocations: 4 kB / 491.7 MB, free: 24.41 MB / 350.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 = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real GILumen.relativeHeat:VARIABLE(flow=false start = GILumen.relativeHeat_start unit = "J" fixed = true nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skeletalMuscle.relativeHeat:VARIABLE(flow=false start = skeletalMuscle.relativeHeat_start unit = "J" fixed = true nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skin.relativeHeat:VARIABLE(flow=false start = skin.relativeHeat_start unit = "J" fixed = true nominal = 4186800.0 ) "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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002209/0.3618, allocations: 171.2 kB / 491.9 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.813e-05/0.3619, allocations: 35.53 kB / 491.9 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.237e-05/0.362, allocations: 52.14 kB / 492 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.362, allocations: 7.938 kB / 492 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.362, allocations: 0 / 492 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.362, allocations: 3.953 kB / 492 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003488/0.3624, allocations: 405.2 kB / 492.4 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3624, allocations: 0 / 492.4 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002342/0.3626, allocations: 51.91 kB / 492.4 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3626, allocations: 0 / 492.4 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.3627, allocations: 4 kB / 492.4 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.3627, allocations: 4 kB / 492.5 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3627, allocations: 0 / 492.5 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005496/0.3632, allocations: 472.1 kB / 492.9 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.591e-05/0.3633, allocations: 132.6 kB / 493 MB, free: 23.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.668e-05/0.3634, allocations: 4 kB / 493 MB, free: 23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.3635, allocations: 11.98 kB / 493.1 MB, free: 22.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.912e-05/0.3636, allocations: 11.98 kB / 493.1 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.3636, allocations: 12 kB / 493.1 MB, free: 22.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001767/0.3638, allocations: 227.2 kB / 493.3 MB, free: 22.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3638, allocations: 0 / 493.3 MB, free: 22.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003082/0.3641, allocations: 99.8 kB / 493.4 MB, free: 22.65 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.608e-05/0.3642, allocations: 107.1 kB / 493.5 MB, free: 22.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003425/0.3646, allocations: 195.9 kB / 493.7 MB, free: 22.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.3646, allocations: 4 kB / 493.7 MB, free: 22.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.3647, allocations: 107.8 kB / 493.8 MB, free: 22.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005939/0.3653, allocations: 101.4 kB / 493.9 MB, free: 22.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.3667, allocations: 1.013 MB / 494.9 MB, free: 21.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.3669, allocations: 0.7954 MB / 495.7 MB, free: 20.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000143/0.3671, allocations: 34.95 kB / 495.7 MB, free: 20.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.296e-05/0.3671, allocations: 23.44 kB / 495.8 MB, free: 20.22 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3671, allocations: 0 / 495.8 MB, free: 20.22 MB / 350.1 MB Notification: Performance of Templates: time 0.005983/0.3731, allocations: 3.486 MB / 499.3 MB, free: 16.8 MB / 350.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)