Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.224/1.224, allocations: 249.4 MB / 256.7 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009809/0.0009809, allocations: 185.2 kB / 316 MB, free: 3.539 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.074/1.074, allocations: 205.2 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008073/0.0008074, allocations: 87.03 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2844/0.2853, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.4227, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.366/3.788, allocations: 2.246 GB / 3.131 GB, free: 169.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/3.789, allocations: 95.89 kB / 3.131 GB, free: 169.3 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 5.689/9.478, allocations: 2.009 GB / 5.14 GB, free: 104.9 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/9.478, allocations: 9.188 kB / 5.14 GB, free: 104.9 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0046/9.482, allocations: 0.8281 MB / 5.141 GB, free: 104.8 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00512/9.488, allocations: 2.275 MB / 5.143 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.761e-05/9.488, allocations: 51.34 kB / 5.143 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/9.488, allocations: 82.69 kB / 5.143 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002029/9.49, allocations: 1.161 MB / 5.144 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/9.492, allocations: 1.391 MB / 5.146 GB, free: 104.1 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.519e-05/9.492, allocations: 0 / 5.146 GB, free: 104.1 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/9.492, allocations: 7.578 kB / 5.146 GB, free: 104.1 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.987e-05/9.492, allocations: 49.23 kB / 5.146 GB, free: 104.1 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008961/9.501, allocations: 7.573 MB / 5.153 GB, free: 100.1 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009796/9.502, allocations: 0.7766 MB / 5.154 GB, free: 100.1 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005289/9.503, allocations: 472.2 kB / 5.154 GB, free: 100 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001069/9.504, allocations: 0.9235 MB / 5.155 GB, free: 99.1 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006387/9.504, allocations: 497.3 kB / 5.156 GB, free: 99.04 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=84): time 3.787e-06/9.504, allocations: 0 / 5.156 GB, free: 99.04 MB / 0.9167 GB Notification: Performance of matching and sorting (n=84): time 0.002956/9.507, allocations: 1.124 MB / 5.157 GB, free: 98.89 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/9.507, allocations: 169.6 kB / 5.157 GB, free: 98.7 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/9.509, allocations: 1.246 MB / 5.158 GB, free: 98.48 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.578e-05/9.509, allocations: 32.45 kB / 5.158 GB, free: 98.45 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004071/9.509, allocations: 0.6021 MB / 5.159 GB, free: 98.12 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/9.51, allocations: 281.9 kB / 5.159 GB, free: 97.94 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/9.51, allocations: 3.719 kB / 5.159 GB, free: 97.94 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 6.651e-05/9.51, allocations: 349.7 kB / 5.159 GB, free: 97.63 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/9.51, allocations: 356.4 kB / 5.16 GB, free: 97.63 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006057/9.511, allocations: 0.7258 MB / 5.16 GB, free: 97.18 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/9.512, allocations: 0.563 MB / 5.161 GB, free: 97.17 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/9.512, allocations: 3.406 kB / 5.161 GB, free: 97.17 MB / 0.9167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002057/9.514, allocations: 1.279 MB / 5.162 GB, free: 97.03 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005182/9.515, allocations: 3.455 MB / 5.165 GB, free: 93.43 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/9.515, allocations: 8.766 kB / 5.165 GB, free: 93.43 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/9.515, allocations: 14.97 kB / 5.166 GB, free: 93.43 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/9.516, allocations: 265.3 kB / 5.166 GB, free: 93.43 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/9.516, allocations: 15.31 kB / 5.166 GB, free: 93.43 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/9.517, allocations: 181.4 kB / 5.166 GB, free: 93.38 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/9.517, allocations: 62.02 kB / 5.166 GB, free: 93.38 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 5.43e-06/9.517, allocations: 3.875 kB / 5.166 GB, free: 93.38 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001734/9.519, allocations: 1.044 MB / 5.167 GB, free: 93.35 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/9.519, allocations: 14.23 kB / 5.167 GB, free: 93.35 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/9.519, allocations: 15.19 kB / 5.167 GB, free: 93.35 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/9.52, allocations: 260.9 kB / 5.167 GB, free: 93.35 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/9.52, allocations: 20.45 kB / 5.167 GB, free: 93.35 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/9.522, allocations: 165.8 kB / 5.167 GB, free: 93.31 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.628e-05/9.522, allocations: 52 kB / 5.168 GB, free: 93.31 MB / 0.9167 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.0002331/9.522, allocations: 146.9 kB / 5.168 GB, free: 93.2 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/9.522, allocations: 175.8 kB / 5.168 GB, free: 93.1 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00227/9.524, allocations: 1.092 MB / 5.169 GB, free: 93.02 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/9.524, allocations: 7.75 kB / 5.169 GB, free: 93.02 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/9.524, allocations: 3.906 kB / 5.169 GB, free: 93.02 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001428/9.526, allocations: 1.149 MB / 5.17 GB, free: 92.55 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00395/9.53, allocations: 2.426 MB / 5.172 GB, free: 92.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/9.53, allocations: 3.938 kB / 5.172 GB, free: 92.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009257/9.531, allocations: 186.4 kB / 5.173 GB, free: 92.19 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/9.531, allocations: 45.61 kB / 5.173 GB, free: 92.18 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.953e-05/9.531, allocations: 13.84 kB / 5.173 GB, free: 92.18 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/9.532, allocations: 1.379 MB / 5.174 GB, free: 90.99 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/9.532, allocations: 0 / 5.174 GB, free: 90.99 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002252/9.534, allocations: 1.683 MB / 5.176 GB, free: 90.59 MB / 0.9167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003231/9.538, allocations: 2.725 MB / 5.178 GB, free: 89.82 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006832/9.538, allocations: 355.7 kB / 5.179 GB, free: 89.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/9.538, allocations: 3.781 kB / 5.179 GB, free: 89.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/9.54, allocations: 119.8 kB / 5.179 GB, free: 89.61 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/9.54, allocations: 57.06 kB / 5.179 GB, free: 89.61 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-05/9.54, allocations: 35.45 kB / 5.179 GB, free: 89.61 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.001201/9.541, allocations: 0.9289 MB / 5.18 GB, free: 89.47 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.00606/9.547, allocations: 2.057 MB / 5.182 GB, free: 89.29 MB / 0.9167 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.004394/9.551, allocations: 3.734 MB / 5.185 GB, free: 87.89 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.002436/9.554, allocations: 1.587 MB / 5.187 GB, free: 87.74 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/9.554, allocations: 3.594 kB / 5.187 GB, free: 87.74 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006884/9.555, allocations: 0.5199 MB / 5.187 GB, free: 87.64 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003257/9.558, allocations: 0.7195 MB / 5.188 GB, free: 87.61 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007623/9.566, allocations: 3.038 MB / 5.191 GB, free: 86.89 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/9.567, allocations: 1.714 MB / 5.193 GB, free: 86.15 MB / 0.9167 GB Notification: Performance of SimCode: time 7.42e-07/9.567, allocations: 0 / 5.193 GB, free: 86.15 MB / 0.9167 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)