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: 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") [: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.002223/0.002223, allocations: 182.4 kB / 7.461 MB, free: 2.48 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.181/1.181, allocations: 221.4 MB / 229.3 MB, free: 3.016 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.001092/0.001092, allocations: 103.1 kB / 280.1 MB, free: 1.316 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.355/0.355, allocations: 37.07 MB / 368 MB, free: 47.45 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.715e-06/7.725e-06, allocations: 0 / 434.1 MB, free: 4.922 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1291, allocations: 60.08 MB / 494.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3658/0.495, allocations: 92.34 MB / 0.5727 GB, free: 7.258 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.4953, allocations: 67.97 kB / 0.5728 GB, free: 7.191 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: Performance of FrontEnd: time 0.02266/0.518, allocations: 8.477 MB / 0.5811 GB, free: 14.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.651e-05/0.5181, allocations: 12 kB / 0.5811 GB, free: 14.68 MB / 410.7 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.0009401/0.519, allocations: 0.6156 MB / 0.5817 GB, free: 14.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.5191, allocations: 12.03 kB / 0.5817 GB, free: 14.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.364e-05/0.5192, allocations: 47.44 kB / 0.5818 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004928/0.5197, allocations: 330.6 kB / 0.5821 GB, free: 13.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.5197, allocations: 8 kB / 0.5821 GB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.266e-05/0.5197, allocations: 18.84 kB / 0.5821 GB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000345/0.5201, allocations: 173.3 kB / 0.5823 GB, free: 13.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003612/0.5205, allocations: 196.8 kB / 0.5825 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.5205, allocations: 0 / 0.5825 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.5205, allocations: 0.8438 kB / 0.5825 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.5205, allocations: 11.91 kB / 0.5825 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.5225, allocations: 1.555 MB / 0.584 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.5228, allocations: 168.3 kB / 0.5841 GB, free: 11.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.523, allocations: 133.7 kB / 0.5843 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.523, allocations: 8.234 kB / 0.5843 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.5231, allocations: 34.8 kB / 0.5843 GB, free: 11.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 1.794e-06/0.5231, allocations: 0 / 0.5843 GB, free: 11.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.0004614/0.5235, allocations: 219.6 kB / 0.5845 GB, free: 10.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.5236, allocations: 51.41 kB / 0.5846 GB, free: 10.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.5238, allocations: 227.6 kB / 0.5848 GB, free: 10.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.5239, allocations: 37.58 kB / 0.5848 GB, free: 10.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.005e-05/0.524, allocations: 160.3 kB / 0.585 GB, free: 10.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.254e-05/0.524, allocations: 90.66 kB / 0.5851 GB, free: 10.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.5241, allocations: 0 / 0.5851 GB, free: 10.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.5242, allocations: 349.7 kB / 0.5854 GB, free: 9.949 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.5243, allocations: 60 kB / 0.5855 GB, free: 9.891 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.5245, allocations: 60 kB / 0.5855 GB, free: 9.832 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.5246, allocations: 80.22 kB / 0.5856 GB, free: 9.754 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5246, allocations: 0 / 0.5856 GB, free: 9.754 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003633/0.525, allocations: 227.3 kB / 0.5858 GB, free: 9.527 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.525, allocations: 8 kB / 0.5858 GB, free: 9.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.525, allocations: 0 / 0.5858 GB, free: 9.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.525, allocations: 4 kB / 0.5858 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002978/0.5253, allocations: 55.91 kB / 0.5859 GB, free: 9.461 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.5254, allocations: 4 kB / 0.5859 GB, free: 9.457 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.5255, allocations: 11.84 kB / 0.5859 GB, free: 9.445 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.5256, allocations: 7.984 kB / 0.5859 GB, free: 9.438 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.0001929/0.5258, allocations: 126.1 kB / 0.586 GB, free: 9.312 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.796e-05/0.5258, allocations: 27.62 kB / 0.586 GB, free: 9.285 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.913e-05/0.5259, allocations: 47.95 kB / 0.5861 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.5259, allocations: 0 / 0.5861 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.526, allocations: 0 / 0.5861 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.526, allocations: 7.891 kB / 0.5861 GB, free: 9.234 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004511/0.5264, allocations: 349.9 kB / 0.5864 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.5264, allocations: 0 / 0.5864 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003021/0.5267, allocations: 51.91 kB / 0.5865 GB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.5268, allocations: 3.984 kB / 0.5865 GB, free: 8.801 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.5268, allocations: 8 kB / 0.5865 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.5268, allocations: 4 kB / 0.5865 GB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.5268, allocations: 1.016 kB / 0.5865 GB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006033/0.5274, allocations: 435 kB / 0.5869 GB, free: 8.348 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.5276, allocations: 128.5 kB / 0.587 GB, free: 8.203 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.208e-05/0.5276, allocations: 3.938 kB / 0.587 GB, free: 8.199 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.5278, allocations: 15.92 kB / 0.587 GB, free: 8.184 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.5279, allocations: 15.98 kB / 0.5871 GB, free: 8.168 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.5279, allocations: 4 kB / 0.5871 GB, free: 8.164 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001707/0.5281, allocations: 179.1 kB / 0.5872 GB, free: 7.988 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003617/0.5284, allocations: 103.6 kB / 0.5873 GB, free: 7.887 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.0001416/0.5286, allocations: 93.22 kB / 0.5874 GB, free: 7.789 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003745/0.529, allocations: 184.6 kB / 0.5876 GB, free: 7.609 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.529, allocations: 0 / 0.5876 GB, free: 7.609 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.5291, allocations: 107.9 kB / 0.5877 GB, free: 7.504 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.5296, allocations: 67.66 kB / 0.5878 GB, free: 7.441 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.531, allocations: 0.6367 MB / 0.5884 GB, free: 6.797 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005437/0.5315, allocations: 0.8257 MB / 0.5892 GB, free: 5.945 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5315, allocations: 0 / 0.5892 GB, free: 5.945 MB / 410.7 MB Notification: Performance of Templates: time 0.008153/0.5397, allocations: 3.436 MB / 0.5926 GB, free: 2.582 MB / 410.7 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)