Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",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/Buildings 8.0.0/package.mo): time 2.409/2.409, allocations: 284.8 MB / 292.1 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001744/0.001744, allocations: 185.3 kB / 360.3 MB, free: 7.566 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.784/1.784, allocations: 205.1 MB / 0.6187 GB, free: 13.22 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001323/0.001322, allocations: 85.5 kB / 0.7317 GB, free: 45.17 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.292/0.2934, allocations: 121.4 MB / 0.8502 GB, free: 3.984 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6376/0.931, allocations: 115.2 MB / 0.9627 GB, free: 78.62 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.07/6.001, allocations: 2.127 GB / 3.09 GB, free: 279.7 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/6.001, allocations: 93.95 kB / 3.09 GB, free: 279.7 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 334 * Number of variables: 334 Notification: Performance of Generate backend data structure: time 9.249/15.25, allocations: 2.074 GB / 5.164 GB, free: 108.4 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 6.695e-05/15.25, allocations: 8.594 kB / 5.164 GB, free: 108.4 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01219/15.26, allocations: 0.8317 MB / 5.165 GB, free: 108.2 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01043/15.27, allocations: 2.266 MB / 5.167 GB, free: 106.7 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/15.27, allocations: 42.44 kB / 5.167 GB, free: 106.7 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006558/15.27, allocations: 90.06 kB / 5.167 GB, free: 106.7 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005219/15.28, allocations: 1.159 MB / 5.168 GB, free: 106.1 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004778/15.28, allocations: 1.388 MB / 5.169 GB, free: 105.3 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.959e-05/15.28, allocations: 0 / 5.169 GB, free: 105.3 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003193/15.28, allocations: 6.922 kB / 5.169 GB, free: 105.3 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.848e-05/15.28, allocations: 51.91 kB / 5.17 GB, free: 105.3 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01879/15.3, allocations: 7.548 MB / 5.177 GB, free: 98.83 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002422/15.31, allocations: 0.7854 MB / 5.178 GB, free: 98.46 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/15.31, allocations: 465.9 kB / 5.178 GB, free: 98.25 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001994/15.31, allocations: 0.9313 MB / 5.179 GB, free: 97.26 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001502/15.31, allocations: 497.5 kB / 5.179 GB, free: 96.96 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=84): time 4.449e-06/15.31, allocations: 6.562 kB / 5.179 GB, free: 96.96 MB / 0.9792 GB Notification: Performance of matching and sorting (n=84): time 0.006179/15.32, allocations: 1.131 MB / 5.181 GB, free: 96 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.456e-05/15.32, allocations: 167 kB / 5.181 GB, free: 95.8 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003428/15.32, allocations: 1.236 MB / 5.182 GB, free: 94.57 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0003767/15.32, allocations: 37.53 kB / 5.182 GB, free: 94.53 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008474/15.32, allocations: 0.6065 MB / 5.183 GB, free: 93.91 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.000652/15.32, allocations: 287.7 kB / 5.183 GB, free: 93.63 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/15.32, allocations: 0 / 5.183 GB, free: 93.63 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.000121/15.32, allocations: 349.9 kB / 5.183 GB, free: 93.28 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009621/15.32, allocations: 354.5 kB / 5.184 GB, free: 92.93 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001247/15.32, allocations: 0.7338 MB / 5.184 GB, free: 92.04 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/15.33, allocations: 0.5637 MB / 5.185 GB, free: 91.5 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/15.33, allocations: 4 kB / 5.185 GB, free: 91.49 MB / 0.9792 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00447/15.33, allocations: 1.284 MB / 5.186 GB, free: 90.21 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008493/15.33, allocations: 3.445 MB / 5.189 GB, free: 86.52 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-05/15.33, allocations: 15.98 kB / 5.189 GB, free: 86.51 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.987e-05/15.33, allocations: 12 kB / 5.189 GB, free: 86.5 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002424/15.34, allocations: 266.2 kB / 5.19 GB, free: 86.24 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.232e-05/15.34, allocations: 15.98 kB / 5.19 GB, free: 86.22 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003221/15.34, allocations: 179.3 kB / 5.19 GB, free: 86.06 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002923/15.34, allocations: 55.97 kB / 5.19 GB, free: 86 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/15.34, allocations: 7.938 kB / 5.19 GB, free: 86 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003628/15.34, allocations: 1.045 MB / 5.191 GB, free: 84.96 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.231e-05/15.34, allocations: 10.53 kB / 5.191 GB, free: 84.96 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/15.34, allocations: 16 kB / 5.191 GB, free: 84.94 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002509/15.34, allocations: 266 kB / 5.191 GB, free: 84.68 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.723e-05/15.35, allocations: 19.94 kB / 5.191 GB, free: 84.66 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00323/15.35, allocations: 166.2 kB / 5.191 GB, free: 84.51 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002919/15.35, allocations: 51.98 kB / 5.191 GB, free: 84.46 MB / 0.9792 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0004211/15.35, allocations: 147.2 kB / 5.192 GB, free: 84.32 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005759/15.35, allocations: 177.8 kB / 5.192 GB, free: 84.14 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004177/15.35, allocations: 1.09 MB / 5.193 GB, free: 83.05 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/15.35, allocations: 12 kB / 5.193 GB, free: 83.04 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/15.35, allocations: 0 / 5.193 GB, free: 83.04 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002899/15.36, allocations: 1.149 MB / 5.194 GB, free: 81.81 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00796/15.36, allocations: 2.447 MB / 5.196 GB, free: 79.34 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/15.36, allocations: 0 / 5.196 GB, free: 79.34 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001901/15.37, allocations: 186.6 kB / 5.197 GB, free: 79.16 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003293/15.37, allocations: 48.11 kB / 5.197 GB, free: 79.11 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/15.37, allocations: 15.98 kB / 5.197 GB, free: 79.09 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/15.37, allocations: 1.369 MB / 5.198 GB, free: 77.61 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/15.37, allocations: 7.562 kB / 5.198 GB, free: 77.6 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004713/15.37, allocations: 1.687 MB / 5.2 GB, free: 75.87 MB / 0.9792 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006596/15.38, allocations: 2.736 MB / 5.202 GB, free: 73.09 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001491/15.38, allocations: 354.6 kB / 5.203 GB, free: 72.72 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004963/15.38, allocations: 4 kB / 5.203 GB, free: 72.71 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002544/15.39, allocations: 119.3 kB / 5.203 GB, free: 72.61 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/15.39, allocations: 52.64 kB / 5.203 GB, free: 72.56 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/15.39, allocations: 42.52 kB / 5.203 GB, free: 72.52 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.002303/15.39, allocations: 0.9208 MB / 5.204 GB, free: 71.61 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.01143/15.4, allocations: 2.067 MB / 5.206 GB, free: 69.54 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007421/15.41, allocations: 3.728 MB / 5.209 GB, free: 66.14 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.004343/15.41, allocations: 1.595 MB / 5.211 GB, free: 64.52 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/15.41, allocations: 0 / 5.211 GB, free: 64.52 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001374/15.41, allocations: 0.5177 MB / 5.211 GB, free: 64 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00679/15.42, allocations: 0.7229 MB / 5.212 GB, free: 63.29 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/15.43, allocations: 3.029 MB / 5.215 GB, free: 60.22 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002481/15.44, allocations: 1.704 MB / 5.217 GB, free: 58.49 MB / 0.9792 GB Notification: Performance of SimCode: time 3.046e-06/15.44, allocations: 4 kB / 5.217 GB, free: 58.49 MB / 0.9792 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)