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: "" <> buildModelFMU(Physiolibrary.Thermal.Examples.ThermalBody_QHP,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.ThermalBody_QHP,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.0917/0.0917, 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.001029/0.001029, allocations: 107.1 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.001243/0.001243, 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.397/1.397, allocations: 222.9 MB / 268.7 MB, free: 6.867 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1348/0.1348, allocations: 23.35 MB / 346.4 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002226, allocations: 115.8 kB / 418.3 MB, free: 30.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.09139, allocations: 59.36 MB / 477.7 MB, free: 2.871 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.03502/0.1264, allocations: 23.59 MB / 0.4895 GB, free: 11.42 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.1282, allocations: 0.7867 MB / 0.4903 GB, free: 10.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004103/0.1286, allocations: 8 kB / 0.4903 GB, free: 10.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003086/0.1289, allocations: 87.14 kB / 0.4904 GB, free: 10.53 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004969/0.1294, allocations: 190.3 kB / 0.4906 GB, free: 10.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.1298, allocations: 87.88 kB / 0.4906 GB, free: 10.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007223/0.1305, allocations: 0.552 MB / 0.4912 GB, free: 9.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003159/0.1308, allocations: 164.2 kB / 0.4913 GB, free: 9.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002588/0.1311, allocations: 187.3 kB / 0.4915 GB, free: 9.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.1314, allocations: 203.1 kB / 0.4917 GB, free: 9.152 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.214e-05/0.1315, allocations: 32 kB / 0.4917 GB, free: 9.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.745e-05/0.1316, allocations: 32 kB / 0.4918 GB, free: 9.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.985e-05/0.1317, allocations: 79.69 kB / 0.4918 GB, free: 9.012 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002516/0.1319, allocations: 230.9 kB / 0.4921 GB, free: 8.785 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004479/0.1324, allocations: 466.3 kB / 0.4925 GB, free: 8.328 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1324, allocations: 0 / 0.4925 GB, free: 8.328 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1324, allocations: 0 / 0.4925 GB, free: 8.328 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.1324, allocations: 0 / 0.4925 GB, free: 8.328 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.001137/0.1336, allocations: 0.7306 MB / 0.4932 GB, free: 7.551 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.1336, allocations: 12.03 kB / 0.4932 GB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.766e-05/0.1337, allocations: 66.72 kB / 0.4933 GB, free: 7.465 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.763e-05/0.1338, allocations: 48.38 kB / 0.4933 GB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004145/0.1342, allocations: 323.8 kB / 0.4937 GB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.1343, allocations: 24.94 kB / 0.4937 GB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/0.1343, allocations: 28.38 kB / 0.4937 GB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004619/0.1348, allocations: 253 kB / 0.4939 GB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.1348, allocations: 3.938 kB / 0.4939 GB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.1348, allocations: 12 kB / 0.494 GB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.1349, allocations: 7.938 kB / 0.494 GB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000366/0.1352, allocations: 198.2 kB / 0.4942 GB, free: 6.539 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.001914/0.1372, allocations: 1.547 MB / 0.4957 GB, free: 4.781 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004303/0.1376, allocations: 219.2 kB / 0.4959 GB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002487/0.1379, allocations: 145.3 kB / 0.496 GB, free: 4.414 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.1379, allocations: 240 / 0.496 GB, free: 4.414 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.1379, allocations: 38.73 kB / 0.4961 GB, free: 4.367 MB / 366.1 MB Notification: Performance of pre-optimization done (n=27): time 1.472e-06/0.138, allocations: 4 kB / 0.4961 GB, free: 4.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006568/0.1386, allocations: 319.7 kB / 0.4964 GB, free: 4.047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.1387, allocations: 59.41 kB / 0.4964 GB, free: 3.977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.139, allocations: 317.7 kB / 0.4967 GB, free: 3.656 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.139, allocations: 33.64 kB / 0.4968 GB, free: 3.617 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1392, allocations: 196.7 kB / 0.4969 GB, free: 3.418 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.045e-05/0.1393, allocations: 94.56 kB / 0.497 GB, free: 3.324 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.69e-05/0.1393, allocations: 45.7 kB / 0.4971 GB, free: 3.273 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1395, allocations: 350.8 kB / 0.4974 GB, free: 2.922 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.1396, allocations: 63.97 kB / 0.4975 GB, free: 2.859 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.1397, allocations: 75.97 kB / 0.4975 GB, free: 2.785 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.1408, allocations: 396.9 kB / 0.4979 GB, free: 2.395 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1409, allocations: 4 kB / 0.4979 GB, free: 2.391 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004156/0.1413, allocations: 253.2 kB / 0.4982 GB, free: 2.137 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1413, allocations: 11.94 kB / 0.4982 GB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1413, allocations: 0 / 0.4982 GB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.1413, allocations: 0 / 0.4982 GB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.1416, allocations: 55.97 kB / 0.4982 GB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1416, allocations: 0 / 0.4982 GB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.1418, allocations: 27.69 kB / 0.4983 GB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.1418, allocations: 4 kB / 0.4983 GB, free: 2.039 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.0002468/0.1421, allocations: 162.4 kB / 0.4984 GB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.1422, allocations: 39.53 kB / 0.4985 GB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.728e-05/0.1423, allocations: 48.14 kB / 0.4985 GB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1423, allocations: 4 kB / 0.4985 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.1423, allocations: 0 / 0.4985 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.1423, allocations: 0 / 0.4985 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004674/0.1428, allocations: 409.2 kB / 0.4989 GB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1428, allocations: 4 kB / 0.4989 GB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.1431, allocations: 51.84 kB / 0.4989 GB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.1431, allocations: 3.938 kB / 0.4989 GB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.1431, allocations: 4 kB / 0.499 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1431, allocations: 8 kB / 0.499 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1431, allocations: 0 / 0.499 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006242/0.1438, allocations: 472 kB / 0.4994 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.1439, allocations: 132.6 kB / 0.4995 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.144, allocations: 11.98 kB / 0.4995 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.1441, allocations: 8 kB / 0.4996 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.1442, allocations: 15.97 kB / 0.4996 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.1442, allocations: 8 kB / 0.4996 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.1444, allocations: 231.2 kB / 0.4998 GB, free: 380 kB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1444, allocations: 0 / 0.4998 GB, free: 380 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.1448, allocations: 95.84 kB / 0.4999 GB, free: 284 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 0.0008631/0.1457, allocations: 1.001 MB / 0.5009 GB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004195/0.1461, allocations: 220.1 kB / 0.5011 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1461, allocations: 4 kB / 0.5011 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.1463, allocations: 107.9 kB / 0.5012 GB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006387/0.1469, allocations: 105.1 kB / 0.5013 GB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003727/0.1507, allocations: 3.183 MB / 0.5044 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.151, allocations: 0.7989 MB / 0.5052 GB, free: 10.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.1512, allocations: 34.97 kB / 0.5052 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.1514, allocations: 119.4 kB / 0.5053 GB, free: 10.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1514, allocations: 0 / 0.5053 GB, free: 10.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.1806, allocations: 7.353 MB / 0.5125 GB, free: 3.301 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.377/7.558, allocations: 4.656 kB / 0.5125 GB, free: 3.297 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)