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: "" <> 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002306/0.002306, allocations: 179.8 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.103/1.103, allocations: 221.4 MB / 229.3 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000885/0.000885, allocations: 94.7 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2714/0.2714, allocations: 37.07 MB / 368 MB, free: 47.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1036/0.375, allocations: 66.21 MB / 434.2 MB, free: 4.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.4731, allocations: 60.09 MB / 494.3 MB, free: 8.637 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2532/0.7264, allocations: 92.32 MB / 0.5728 GB, free: 7.164 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001796/0.7266, allocations: 67.95 kB / 0.5729 GB, free: 7.098 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Thermal.mo:312:7-312:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System ambient.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Thermal.Sources.UnlimitedHeat$ambient. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. 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.0214/0.748, allocations: 9.105 MB / 0.5818 GB, free: 13.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.748, allocations: 8 kB / 0.5818 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.129e-05/0.7481, allocations: 51.44 kB / 0.5818 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.7485, allocations: 334.6 kB / 0.5822 GB, free: 13.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.7485, allocations: 8 kB / 0.5822 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/0.7486, allocations: 16 kB / 0.5822 GB, free: 13.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003076/0.7489, allocations: 169.3 kB / 0.5823 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003207/0.7492, allocations: 196.8 kB / 0.5825 GB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.7492, allocations: 3.938 kB / 0.5825 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.7493, allocations: 0 / 0.5825 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.7493, allocations: 18.64 kB / 0.5826 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.7509, allocations: 1.564 MB / 0.5841 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002495/0.7511, allocations: 163.2 kB / 0.5842 GB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.7513, allocations: 133.7 kB / 0.5844 GB, free: 11.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.7514, allocations: 5.453 kB / 0.5844 GB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.7514, allocations: 38.8 kB / 0.5844 GB, free: 11.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.382e-06/0.7514, allocations: 0 / 0.5844 GB, free: 11.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.0003958/0.7518, allocations: 223.5 kB / 0.5846 GB, free: 10.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.7518, allocations: 55.39 kB / 0.5847 GB, free: 10.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.7521, allocations: 227.6 kB / 0.5849 GB, free: 10.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.7521, allocations: 25.7 kB / 0.5849 GB, free: 10.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.504e-05/0.7522, allocations: 156.3 kB / 0.5851 GB, free: 10.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.745e-05/0.7523, allocations: 90.66 kB / 0.5852 GB, free: 10.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.7523, allocations: 4 kB / 0.5852 GB, free: 10.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.906e-05/0.7524, allocations: 350.7 kB / 0.5855 GB, free: 9.859 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.7525, allocations: 56 kB / 0.5855 GB, free: 9.805 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.7526, allocations: 64 kB / 0.5856 GB, free: 9.742 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.7527, allocations: 83.03 kB / 0.5857 GB, free: 9.664 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.7527, allocations: 0 / 0.5857 GB, free: 9.664 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003318/0.7531, allocations: 231.2 kB / 0.5859 GB, free: 9.434 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.7531, allocations: 8 kB / 0.5859 GB, free: 9.426 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.7531, allocations: 0 / 0.5859 GB, free: 9.426 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.7531, allocations: 0 / 0.5859 GB, free: 9.426 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.7534, allocations: 55.97 kB / 0.586 GB, free: 9.371 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.7534, allocations: 4 kB / 0.586 GB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.7536, allocations: 15.83 kB / 0.586 GB, free: 9.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.7536, allocations: 4 kB / 0.586 GB, free: 9.348 MB / 410.7 MB Warning: Assuming fixed start value for the following 4 variables: core.relativeHeat:VARIABLE(start = core.relativeHeat_start unit = "J" nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real GILumen.relativeHeat:VARIABLE(start = GILumen.relativeHeat_start unit = "J" nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skeletalMuscle.relativeHeat:VARIABLE(start = skeletalMuscle.relativeHeat_start unit = "J" nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real skin.relativeHeat:VARIABLE(start = skin.relativeHeat_start unit = "J" 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.7537, allocations: 130.8 kB / 0.5861 GB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.7538, allocations: 31.62 kB / 0.5861 GB, free: 9.188 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.245e-05/0.7539, allocations: 39.95 kB / 0.5862 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.7539, allocations: 0 / 0.5862 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.7539, allocations: 0 / 0.5862 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.7539, allocations: 7.891 kB / 0.5862 GB, free: 9.145 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003667/0.7543, allocations: 349.9 kB / 0.5865 GB, free: 8.766 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.7543, allocations: 0 / 0.5865 GB, free: 8.766 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.7546, allocations: 47.91 kB / 0.5866 GB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.7546, allocations: 0 / 0.5866 GB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.7546, allocations: 4 kB / 0.5866 GB, free: 8.715 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.7546, allocations: 4 kB / 0.5866 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7546, allocations: 0 / 0.5866 GB, free: 8.711 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005321/0.7551, allocations: 443 kB / 0.587 GB, free: 8.262 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007315/0.7559, allocations: 0.9105 MB / 0.5879 GB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.756, allocations: 132.5 kB / 0.588 GB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.131e-05/0.7561, allocations: 4 kB / 0.588 GB, free: 7.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.7563, allocations: 4 kB / 0.588 GB, free: 7.176 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.7563, allocations: 23.91 kB / 0.588 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.7563, allocations: 7.938 kB / 0.5881 GB, free: 7.145 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000134/0.7565, allocations: 179.1 kB / 0.5882 GB, free: 6.969 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008407/0.7573, allocations: 99.69 kB / 0.5883 GB, free: 6.871 MB / 410.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000105/0.7574, allocations: 99.19 kB / 0.5884 GB, free: 6.766 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000313/0.7577, allocations: 188.4 kB / 0.5886 GB, free: 6.582 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.7577, allocations: 0 / 0.5886 GB, free: 6.582 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.7579, allocations: 95.94 kB / 0.5887 GB, free: 6.488 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.7583, allocations: 72.7 kB / 0.5888 GB, free: 6.422 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009759/0.7593, allocations: 0.6396 MB / 0.5894 GB, free: 5.773 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003799/0.7597, allocations: 0.8374 MB / 0.5902 GB, free: 4.91 MB / 410.7 MB Notification: Performance of SimCode: time 2.7e-07/0.7597, allocations: 0 / 0.5902 GB, free: 4.91 MB / 410.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Thermal_Examples_ThermalBody_QHP.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.ThermalBody_QHP.pipe 2>&1)