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.08184/0.08184, allocations: 15.28 MB / 31.53 MB, free: 4.008 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.001062/0.001062, allocations: 113 kB / 36.53 MB, free: 3.262 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.001175/0.001175, allocations: 193.1 kB / 41.64 MB, free: 7.137 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.328/1.328, allocations: 222.9 MB / 269.5 MB, free: 6.895 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1286/0.1286, allocations: 23.36 MB / 347.2 MB, free: 0.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001974, allocations: 115.8 kB / 419.7 MB, free: 29.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09883/0.1008, allocations: 59.36 MB / 479 MB, free: 2.262 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.03038/0.1312, allocations: 23.38 MB / 0.4906 GB, free: 11.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.1329, allocations: 0.7712 MB / 0.4914 GB, free: 10.24 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/0.1331, allocations: 11.94 kB / 0.4914 GB, free: 10.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.1333, allocations: 83.2 kB / 0.4915 GB, free: 10.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002713/0.1336, allocations: 194.3 kB / 0.4917 GB, free: 9.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.1338, allocations: 87.88 kB / 0.4917 GB, free: 9.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005015/0.1343, allocations: 0.5598 MB / 0.4923 GB, free: 9.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.1346, allocations: 172.1 kB / 0.4924 GB, free: 9.129 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.1348, allocations: 183.3 kB / 0.4926 GB, free: 8.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.135, allocations: 199.1 kB / 0.4928 GB, free: 8.754 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.447e-05/0.1351, allocations: 32 kB / 0.4928 GB, free: 8.723 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.163e-05/0.1351, allocations: 36 kB / 0.4929 GB, free: 8.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.378e-05/0.1352, allocations: 83.62 kB / 0.493 GB, free: 8.605 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.1354, allocations: 226.9 kB / 0.4932 GB, free: 8.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003816/0.1358, allocations: 466.3 kB / 0.4936 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1358, allocations: 0 / 0.4936 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1358, allocations: 4 kB / 0.4936 GB, free: 7.922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.812e-06/0.1358, allocations: 0 / 0.4936 GB, free: 7.922 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.001028/0.1369, allocations: 0.738 MB / 0.4943 GB, free: 7.137 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.1369, allocations: 8.031 kB / 0.4944 GB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.269e-05/0.137, allocations: 48.47 kB / 0.4944 GB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004287/0.1374, allocations: 339.7 kB / 0.4947 GB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.1375, allocations: 28.88 kB / 0.4948 GB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.416e-05/0.1375, allocations: 32.38 kB / 0.4948 GB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004468/0.138, allocations: 249.2 kB / 0.495 GB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.138, allocations: 0 / 0.495 GB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.138, allocations: 16 kB / 0.495 GB, free: 6.387 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.138, allocations: 4 kB / 0.495 GB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003356/0.1384, allocations: 190.2 kB / 0.4952 GB, free: 6.195 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.001555/0.1399, allocations: 1.543 MB / 0.4967 GB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.1403, allocations: 219.2 kB / 0.4969 GB, free: 4.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.1405, allocations: 149.3 kB / 0.4971 GB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.1406, allocations: 240 / 0.4971 GB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.1406, allocations: 38.8 kB / 0.4971 GB, free: 4.023 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.172e-06/0.1406, allocations: 4 kB / 0.4971 GB, free: 4.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005575/0.1412, allocations: 323.6 kB / 0.4974 GB, free: 3.699 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/0.1412, allocations: 55.41 kB / 0.4975 GB, free: 3.633 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003079/0.1415, allocations: 325.7 kB / 0.4978 GB, free: 3.305 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.1415, allocations: 33.7 kB / 0.4978 GB, free: 3.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1417, allocations: 188.7 kB / 0.498 GB, free: 3.074 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.493e-05/0.1417, allocations: 94.56 kB / 0.4981 GB, free: 2.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.732e-05/0.1418, allocations: 45.7 kB / 0.4981 GB, free: 2.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.142, allocations: 350.7 kB / 0.4985 GB, free: 2.578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.1421, allocations: 63.98 kB / 0.4985 GB, free: 2.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.1422, allocations: 75.97 kB / 0.4986 GB, free: 2.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.1433, allocations: 385.3 kB / 0.499 GB, free: 2.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1433, allocations: 0 / 0.499 GB, free: 2.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003713/0.1437, allocations: 265.1 kB / 0.4992 GB, free: 1.797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1437, allocations: 12 kB / 0.4992 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.1437, allocations: 0 / 0.4992 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.1437, allocations: 0 / 0.4992 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.144, allocations: 51.91 kB / 0.4993 GB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.144, allocations: 4 kB / 0.4993 GB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.1442, allocations: 23.69 kB / 0.4993 GB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.1442, allocations: 8 kB / 0.4993 GB, free: 1.699 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 = 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.0002451/0.1444, allocations: 171.4 kB / 0.4995 GB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.325e-05/0.1445, allocations: 35.53 kB / 0.4995 GB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.486e-05/0.1446, allocations: 44.16 kB / 0.4996 GB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1446, allocations: 4 kB / 0.4996 GB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/0.1447, allocations: 4 kB / 0.4996 GB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1447, allocations: 7.922 kB / 0.4996 GB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004521/0.1451, allocations: 409.2 kB / 0.5 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1451, allocations: 0 / 0.5 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002728/0.1454, allocations: 47.98 kB / 0.5 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1454, allocations: 0 / 0.5 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.1455, allocations: 7.984 kB / 0.5 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1455, allocations: 7.938 kB / 0.5 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1455, allocations: 0 / 0.5 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006015/0.1461, allocations: 468.1 kB / 0.5005 GB, free: 460 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1462, allocations: 136.6 kB / 0.5006 GB, free: 304 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.598e-05/0.1463, allocations: 4 kB / 0.5006 GB, free: 300 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.1464, allocations: 4 kB / 0.5006 GB, free: 296 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.1465, allocations: 19.97 kB / 0.5006 GB, free: 276 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.1465, allocations: 4 kB / 0.5006 GB, free: 272 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001887/0.1467, allocations: 227.2 kB / 0.5008 GB, free: 44 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1467, allocations: 0 / 0.5008 GB, free: 44 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.147, allocations: 95.89 kB / 0.5009 GB, free: 15.95 MB / 382.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.279e-05/0.1471, allocations: 107.1 kB / 0.501 GB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.1475, allocations: 203.8 kB / 0.5012 GB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1475, allocations: 4 kB / 0.5012 GB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.1477, allocations: 107.8 kB / 0.5013 GB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005576/0.1482, allocations: 105.5 kB / 0.5014 GB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.1494, allocations: 0.8383 MB / 0.5023 GB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.1498, allocations: 0.7949 MB / 0.503 GB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001261/0.1499, allocations: 30.97 kB / 0.5031 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.15, allocations: 23.44 kB / 0.5031 GB, free: 13.68 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.15, allocations: 0 / 0.5031 GB, free: 13.68 MB / 382.1 MB Notification: Performance of Templates: time 0.007116/0.1571, allocations: 3.808 MB / 0.5068 GB, free: 9.922 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 -s cvode -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)