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.07899/0.07899, allocations: 15.28 MB / 31.54 MB, free: 4.16 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.001032/0.001032, allocations: 108.5 kB / 36.54 MB, free: 3.199 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.001247/0.001247, allocations: 193.1 kB / 41.65 MB, free: 7.172 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.384/1.384, allocations: 222.9 MB / 269.5 MB, free: 6.906 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1297/0.1297, allocations: 23.36 MB / 347.2 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 107.8 kB / 419.7 MB, free: 29.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08821/0.09019, allocations: 59.38 MB / 479 MB, free: 2.297 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.03037/0.1206, allocations: 23.37 MB / 0.4906 GB, free: 11.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.1222, allocations: 0.7829 MB / 0.4914 GB, free: 10.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.1224, allocations: 11.94 kB / 0.4914 GB, free: 10.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.1226, allocations: 87.14 kB / 0.4915 GB, free: 10.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.1229, allocations: 182.4 kB / 0.4917 GB, free: 10 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002018/0.1231, allocations: 87.88 kB / 0.4917 GB, free: 9.914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004794/0.1236, allocations: 0.5597 MB / 0.4923 GB, free: 9.352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.1239, allocations: 176.1 kB / 0.4925 GB, free: 9.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.124, allocations: 179.4 kB / 0.4926 GB, free: 8.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.1243, allocations: 207 kB / 0.4928 GB, free: 8.793 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.1243, allocations: 32 kB / 0.4929 GB, free: 8.762 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.1244, allocations: 32 kB / 0.4929 GB, free: 8.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.209e-05/0.1245, allocations: 79.69 kB / 0.493 GB, free: 8.652 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.1247, allocations: 230.9 kB / 0.4932 GB, free: 8.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003935/0.1251, allocations: 462.3 kB / 0.4936 GB, free: 7.973 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1251, allocations: 0 / 0.4936 GB, free: 7.973 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1251, allocations: 0 / 0.4936 GB, free: 7.973 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1251, allocations: 4 kB / 0.4936 GB, free: 7.969 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.001/0.1261, allocations: 0.7283 MB / 0.4943 GB, free: 7.191 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.1262, allocations: 12.03 kB / 0.4944 GB, free: 7.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.315e-05/0.1262, allocations: 48.38 kB / 0.4944 GB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.1267, allocations: 347.6 kB / 0.4947 GB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.1267, allocations: 20.94 kB / 0.4948 GB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.865e-05/0.1267, allocations: 28.38 kB / 0.4948 GB, free: 6.707 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004043/0.1272, allocations: 253.2 kB / 0.495 GB, free: 6.453 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.1272, allocations: 3.938 kB / 0.495 GB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.1272, allocations: 8 kB / 0.495 GB, free: 6.441 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1272, allocations: 8 kB / 0.495 GB, free: 6.434 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003313/0.1276, allocations: 194.1 kB / 0.4952 GB, free: 6.242 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.001553/0.1291, allocations: 1.543 MB / 0.4967 GB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003706/0.1295, allocations: 215.2 kB / 0.4969 GB, free: 4.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002162/0.1297, allocations: 149.3 kB / 0.4971 GB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.1298, allocations: 240 / 0.4971 GB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.1298, allocations: 42.8 kB / 0.4971 GB, free: 4.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.132e-06/0.1298, allocations: 0 / 0.4971 GB, free: 4.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005601/0.1304, allocations: 319.7 kB / 0.4974 GB, free: 3.754 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.1304, allocations: 55.41 kB / 0.4975 GB, free: 3.688 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002995/0.1307, allocations: 321.7 kB / 0.4978 GB, free: 3.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.1307, allocations: 33.69 kB / 0.4978 GB, free: 3.324 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.1308, allocations: 188.7 kB / 0.498 GB, free: 3.133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.864e-05/0.1309, allocations: 102.6 kB / 0.4981 GB, free: 3.031 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.131, allocations: 41.7 kB / 0.4981 GB, free: 2.984 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1311, allocations: 354.7 kB / 0.4985 GB, free: 2.629 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.1313, allocations: 63.98 kB / 0.4985 GB, free: 2.566 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.1314, allocations: 71.97 kB / 0.4986 GB, free: 2.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.1325, allocations: 397.3 kB / 0.499 GB, free: 2.105 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1325, allocations: 4 kB / 0.499 GB, free: 2.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003809/0.1329, allocations: 265.2 kB / 0.4992 GB, free: 1.836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1329, allocations: 8 kB / 0.4992 GB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1329, allocations: 3.938 kB / 0.4992 GB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.1329, allocations: 0 / 0.4992 GB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.1332, allocations: 51.91 kB / 0.4993 GB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.1332, allocations: 3.984 kB / 0.4993 GB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.1334, allocations: 27.69 kB / 0.4993 GB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.1334, allocations: 8 kB / 0.4993 GB, free: 1.734 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.000194/0.1336, allocations: 167.4 kB / 0.4995 GB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-05/0.1337, allocations: 35.53 kB / 0.4995 GB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.931e-05/0.1337, allocations: 44.16 kB / 0.4996 GB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.1338, allocations: 4 kB / 0.4996 GB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1338, allocations: 0 / 0.4996 GB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.1338, allocations: 0 / 0.4996 GB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004249/0.1342, allocations: 409.1 kB / 0.5 GB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1342, allocations: 8 kB / 0.5 GB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.1345, allocations: 47.92 kB / 0.5 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1345, allocations: 0 / 0.5 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.1345, allocations: 7.938 kB / 0.5 GB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1345, allocations: 7.984 kB / 0.5 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1345, allocations: 0 / 0.5 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006096/0.1352, allocations: 468.1 kB / 0.5005 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.1353, allocations: 128.6 kB / 0.5006 GB, free: 356 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.1353, allocations: 12 kB / 0.5006 GB, free: 344 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.1355, allocations: 8 kB / 0.5006 GB, free: 336 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.1356, allocations: 15.98 kB / 0.5006 GB, free: 320 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.1356, allocations: 7.984 kB / 0.5006 GB, free: 312 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002017/0.1358, allocations: 227.2 kB / 0.5009 GB, free: 84 kB / 366.1 MB Notification: Performance of sort global known variables: time 7.033e-06/0.1358, allocations: 0 / 0.5009 GB, free: 84 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.1361, allocations: 99.83 kB / 0.501 GB, free: 15.98 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 8.393e-05/0.1362, allocations: 103.1 kB / 0.5011 GB, free: 15.87 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.1366, allocations: 207.8 kB / 0.5013 GB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1366, allocations: 0 / 0.5013 GB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.1368, allocations: 107.8 kB / 0.5014 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005649/0.1374, allocations: 113.4 kB / 0.5015 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.1385, allocations: 0.8344 MB / 0.5023 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.1388, allocations: 0.7949 MB / 0.5031 GB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001289/0.139, allocations: 30.97 kB / 0.5031 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.978e-05/0.139, allocations: 23.44 kB / 0.5031 GB, free: 13.71 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.139, allocations: 0 / 0.5031 GB, free: 13.71 MB / 382.1 MB Notification: Performance of Templates: time 0.006947/0.146, allocations: 3.81 MB / 0.5068 GB, free: 9.957 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 gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)