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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 181.7 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 113.7 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3428/0.3428, allocations: 36.68 MB / 376.7 MB, free: 41.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 63.91 kB / 446.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1175, allocations: 58.92 MB / 0.4935 GB, free: 0.8281 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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-master/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.2046/0.3222, allocations: 20.95 MB / 0.5139 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.3237, allocations: 0.8029 MB / 0.5147 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.324, allocations: 17 kB / 0.5147 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002167/0.3242, allocations: 59.88 kB / 0.5148 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.3245, allocations: 176.6 kB / 0.515 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.3247, allocations: 73.05 kB / 0.515 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000418/0.3251, allocations: 0.5418 MB / 0.5156 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.3254, allocations: 150.8 kB / 0.5157 GB, free: 34.6 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.3255, allocations: 169.6 kB / 0.5159 GB, free: 34.56 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.3257, allocations: 201.2 kB / 0.5161 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.691e-05/0.3258, allocations: 22.84 kB / 0.5161 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.85e-05/0.3259, allocations: 26.88 kB / 0.5161 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.09e-05/0.3259, allocations: 67.77 kB / 0.5162 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002014/0.3261, allocations: 219.7 kB / 0.5164 GB, free: 34.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.3265, allocations: 444.8 kB / 0.5168 GB, free: 34.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3265, allocations: 0 / 0.5168 GB, free: 34.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.3265, allocations: 0 / 0.5168 GB, free: 34.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3265, allocations: 0 / 0.5168 GB, free: 34.33 MB / 378.7 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.0009057/0.3274, allocations: 0.732 MB / 0.5175 GB, free: 33.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.3275, allocations: 10.09 kB / 0.5175 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.064e-05/0.3276, allocations: 48.05 kB / 0.5176 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.3279, allocations: 325 kB / 0.5179 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.3279, allocations: 18.31 kB / 0.5179 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.168e-05/0.328, allocations: 27.16 kB / 0.5179 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003722/0.3283, allocations: 257 kB / 0.5182 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.3284, allocations: 8.125 kB / 0.5182 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.3284, allocations: 8 kB / 0.5182 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.3284, allocations: 9.625 kB / 0.5182 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003032/0.3287, allocations: 192.5 kB / 0.5184 GB, free: 33.3 MB / 378.7 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.001411/0.3301, allocations: 1.55 MB / 0.5199 GB, free: 31.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003512/0.3305, allocations: 228.4 kB / 0.5201 GB, free: 31.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.3307, allocations: 146.3 kB / 0.5202 GB, free: 31.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.3307, allocations: 2.734 kB / 0.5202 GB, free: 31.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.3308, allocations: 42.73 kB / 0.5203 GB, free: 31.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.633e-06/0.3308, allocations: 0 / 0.5203 GB, free: 31.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.0005431/0.3313, allocations: 315.5 kB / 0.5206 GB, free: 31.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.49e-05/0.3314, allocations: 54.56 kB / 0.5206 GB, free: 31.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.3316, allocations: 326.6 kB / 0.521 GB, free: 31.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.3317, allocations: 25.7 kB / 0.521 GB, free: 31.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.127e-05/0.3318, allocations: 196.9 kB / 0.5212 GB, free: 31.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.113e-05/0.3318, allocations: 90.97 kB / 0.5213 GB, free: 31.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.223e-05/0.3319, allocations: 59.02 kB / 0.5213 GB, free: 31.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.071e-05/0.332, allocations: 347.2 kB / 0.5216 GB, free: 30.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.3321, allocations: 68.56 kB / 0.5217 GB, free: 30.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.3322, allocations: 79.3 kB / 0.5218 GB, free: 30.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.3333, allocations: 388.3 kB / 0.5222 GB, free: 30.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3333, allocations: 0 / 0.5222 GB, free: 30.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003336/0.3336, allocations: 259.3 kB / 0.5224 GB, free: 30.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.3336, allocations: 6.469 kB / 0.5224 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3337, allocations: 0 / 0.5224 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3337, allocations: 0 / 0.5224 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002506/0.3339, allocations: 57 kB / 0.5225 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.3339, allocations: 0 / 0.5225 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.3342, allocations: 28.81 kB / 0.5225 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.3342, allocations: 11.23 kB / 0.5225 GB, free: 30.35 MB / 378.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002123/0.3344, allocations: 171 kB / 0.5227 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.534e-05/0.3345, allocations: 42.41 kB / 0.5227 GB, free: 30.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.901e-05/0.3346, allocations: 48.56 kB / 0.5227 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3346, allocations: 7.344 kB / 0.5228 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.3346, allocations: 0 / 0.5228 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3346, allocations: 0 / 0.5228 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.335, allocations: 402.4 kB / 0.5231 GB, free: 29.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.335, allocations: 0 / 0.5231 GB, free: 29.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.3353, allocations: 57.55 kB / 0.5232 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3353, allocations: 0 / 0.5232 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.3353, allocations: 0 / 0.5232 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3353, allocations: 3.25 kB / 0.5232 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3353, allocations: 3.938 kB / 0.5232 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003532/0.3388, allocations: 2.88 MB / 0.526 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.823e-05/0.339, allocations: 126.7 kB / 0.5261 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.339, allocations: 13.92 kB / 0.5261 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.3392, allocations: 16.27 kB / 0.5262 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.3392, allocations: 18.83 kB / 0.5262 GB, free: 27.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.3392, allocations: 4.5 kB / 0.5262 GB, free: 27.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001756/0.3394, allocations: 229.6 kB / 0.5264 GB, free: 27.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3394, allocations: 0 / 0.5264 GB, free: 27.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004778/0.3399, allocations: 151.8 kB / 0.5265 GB, free: 27.61 MB / 378.7 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 7.682e-05/0.34, allocations: 106.8 kB / 0.5267 GB, free: 27.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003467/0.3404, allocations: 202 kB / 0.5268 GB, free: 27.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3404, allocations: 3.938 kB / 0.5268 GB, free: 27.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.3405, allocations: 109.3 kB / 0.527 GB, free: 27.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.3411, allocations: 96.83 kB / 0.527 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.3425, allocations: 1.188 MB / 0.5282 GB, free: 26.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.3427, allocations: 0.798 MB / 0.529 GB, free: 25.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001892/0.3429, allocations: 39.98 kB / 0.529 GB, free: 25.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.13e-05/0.343, allocations: 26.69 kB / 0.529 GB, free: 25.78 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.343, allocations: 0 / 0.529 GB, free: 25.78 MB / 378.7 MB Notification: Performance of Templates: time 0.008625/0.3516, allocations: 4.631 MB / 0.5336 GB, free: 25.43 MB / 378.7 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)