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.08478/0.08478, allocations: 15.29 MB / 30.79 MB, free: 4.078 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.000975/0.0009751, allocations: 108.2 kB / 35.77 MB, free: 3.281 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.001115/0.001115, allocations: 193.1 kB / 40.88 MB, free: 7.195 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.318/1.318, allocations: 222.9 MB / 268.7 MB, free: 6.953 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1261/0.1261, allocations: 23.34 MB / 346.4 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 119.8 kB / 418.2 MB, free: 30.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09824/0.1002, allocations: 59.35 MB / 477.6 MB, free: 2.973 MB / 334.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.03146/0.1316, allocations: 23.59 MB / 0.4894 GB, free: 11.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.1332, allocations: 0.7907 MB / 0.4902 GB, free: 10.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003425/0.1336, allocations: 11.94 kB / 0.4902 GB, free: 10.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002599/0.1339, allocations: 79.16 kB / 0.4903 GB, free: 10.63 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004143/0.1343, allocations: 186.3 kB / 0.4904 GB, free: 10.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002529/0.1345, allocations: 91.88 kB / 0.4905 GB, free: 10.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006033/0.1352, allocations: 0.552 MB / 0.4911 GB, free: 9.805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.1354, allocations: 172.1 kB / 0.4912 GB, free: 9.629 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.1356, allocations: 179.3 kB / 0.4914 GB, free: 9.453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.1359, allocations: 207.1 kB / 0.4916 GB, free: 9.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.968e-05/0.136, allocations: 32 kB / 0.4916 GB, free: 9.219 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.109e-05/0.1361, allocations: 36 kB / 0.4917 GB, free: 9.184 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.685e-05/0.1362, allocations: 75.69 kB / 0.4917 GB, free: 9.109 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002154/0.1364, allocations: 230.9 kB / 0.492 GB, free: 8.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003957/0.1368, allocations: 458.4 kB / 0.4924 GB, free: 8.434 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1368, allocations: 3.938 kB / 0.4924 GB, free: 8.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1368, allocations: 0 / 0.4924 GB, free: 8.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.1368, allocations: 0 / 0.4924 GB, free: 8.43 MB / 366.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.001033/0.1379, allocations: 0.7283 MB / 0.4931 GB, free: 7.652 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.1379, allocations: 12.03 kB / 0.4931 GB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.621e-05/0.138, allocations: 52.31 kB / 0.4932 GB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.1383, allocations: 327.7 kB / 0.4935 GB, free: 7.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.1384, allocations: 20.94 kB / 0.4935 GB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.218e-05/0.1384, allocations: 28.38 kB / 0.4935 GB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004169/0.1388, allocations: 253.2 kB / 0.4938 GB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1389, allocations: 0 / 0.4938 GB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.1389, allocations: 12 kB / 0.4938 GB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1389, allocations: 7.984 kB / 0.4938 GB, free: 6.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/0.1392, allocations: 202.1 kB / 0.494 GB, free: 6.711 MB / 366.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.001561/0.1408, allocations: 1.547 MB / 0.4955 GB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.1412, allocations: 211.2 kB / 0.4957 GB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.1414, allocations: 153.2 kB / 0.4958 GB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.1414, allocations: 240 / 0.4958 GB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.1414, allocations: 38.8 kB / 0.4959 GB, free: 4.539 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 2.114e-06/0.1414, allocations: 4 kB / 0.4959 GB, free: 4.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005493/0.142, allocations: 319.7 kB / 0.4962 GB, free: 4.219 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.142, allocations: 55.41 kB / 0.4962 GB, free: 4.152 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.1423, allocations: 325.7 kB / 0.4966 GB, free: 3.824 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.1423, allocations: 29.7 kB / 0.4966 GB, free: 3.789 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.1425, allocations: 188.7 kB / 0.4968 GB, free: 3.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.514e-05/0.1425, allocations: 98.62 kB / 0.4969 GB, free: 3.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.373e-05/0.1426, allocations: 45.7 kB / 0.4969 GB, free: 3.449 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1428, allocations: 354.7 kB / 0.4972 GB, free: 3.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.1429, allocations: 71.91 kB / 0.4973 GB, free: 3.023 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.143, allocations: 67.98 kB / 0.4974 GB, free: 2.957 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.1441, allocations: 396.9 kB / 0.4978 GB, free: 2.566 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1441, allocations: 0 / 0.4978 GB, free: 2.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000383/0.1445, allocations: 257.2 kB / 0.498 GB, free: 2.309 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1445, allocations: 8 kB / 0.498 GB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1445, allocations: 0 / 0.498 GB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1446, allocations: 0 / 0.498 GB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.1448, allocations: 63.91 kB / 0.4981 GB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.1448, allocations: 0 / 0.4981 GB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.145, allocations: 27.69 kB / 0.4981 GB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.145, allocations: 4 kB / 0.4981 GB, free: 2.207 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002029/0.1452, allocations: 166.3 kB / 0.4983 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.57e-05/0.1453, allocations: 39.53 kB / 0.4983 GB, free: 2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.878e-05/0.1454, allocations: 52.09 kB / 0.4983 GB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1454, allocations: 4 kB / 0.4983 GB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.1454, allocations: 0 / 0.4983 GB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1454, allocations: 3.984 kB / 0.4984 GB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004195/0.1458, allocations: 405.2 kB / 0.4987 GB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1458, allocations: 0 / 0.4987 GB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002704/0.1461, allocations: 47.91 kB / 0.4988 GB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.1461, allocations: 0 / 0.4988 GB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1462, allocations: 7.938 kB / 0.4988 GB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1462, allocations: 4 kB / 0.4988 GB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1462, allocations: 4 kB / 0.4988 GB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005956/0.1468, allocations: 472 kB / 0.4992 GB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.1469, allocations: 136.6 kB / 0.4994 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.147, allocations: 4 kB / 0.4994 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.1471, allocations: 4 kB / 0.4994 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.224e-05/0.1472, allocations: 19.95 kB / 0.4994 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.1472, allocations: 8 kB / 0.4994 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.1474, allocations: 235.2 kB / 0.4996 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1474, allocations: 0 / 0.4996 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1477, allocations: 95.84 kB / 0.4997 GB, free: 456 kB / 366.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 9.058e-05/0.1478, allocations: 103.1 kB / 0.4998 GB, free: 340 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003978/0.1482, allocations: 211.8 kB / 0.5 GB, free: 128 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1482, allocations: 0 / 0.5 GB, free: 128 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.1484, allocations: 115.8 kB / 0.5001 GB, free: 12 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005945/0.149, allocations: 101.2 kB / 0.5002 GB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.1502, allocations: 0.8383 MB / 0.5011 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.1505, allocations: 0.7949 MB / 0.5018 GB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.1507, allocations: 38.94 kB / 0.5019 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.705e-05/0.1507, allocations: 23.44 kB / 0.5019 GB, free: 14.17 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1507, allocations: 0 / 0.5019 GB, free: 14.17 MB / 382.1 MB Notification: Performance of Templates: time 0.007311/0.1581, allocations: 3.806 MB / 0.5056 GB, free: 10.41 MB / 382.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)