Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",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 9.1.1-maint.9.1.x/package.mo): time 2.135/2.135, allocations: 387.2 MB / 394.5 MB, free: 13.69 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 189.2 kB / 487 MB, free: 5.371 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 221.3 MB / 0.7819 GB, free: 1.371 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 99.55 kB / 0.9213 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6708/0.672, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.9883, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.695/5.684, allocations: 1.953 GB / 3.158 GB, free: 367.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/5.684, allocations: 95.94 kB / 3.159 GB, free: 367.4 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 377 * Number of variables: 377 Notification: Performance of Generate backend data structure: time 6.444/12.13, allocations: 2.008 GB / 5.166 GB, free: 110.4 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/12.13, allocations: 8 kB / 5.166 GB, free: 110.4 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006154/12.13, allocations: 0.9451 MB / 5.167 GB, free: 109.5 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006275/12.14, allocations: 2.418 MB / 5.169 GB, free: 107.1 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/12.14, allocations: 51.91 kB / 5.169 GB, free: 107 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002605/12.14, allocations: 92 kB / 5.17 GB, free: 106.9 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002366/12.14, allocations: 1.376 MB / 5.171 GB, free: 105.5 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/12.15, allocations: 1.544 MB / 5.172 GB, free: 103.9 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.807e-05/12.15, allocations: 0 / 5.172 GB, free: 103.9 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/12.15, allocations: 4 kB / 5.172 GB, free: 103.9 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.02e-05/12.15, allocations: 54.89 kB / 5.172 GB, free: 103.9 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01153/12.16, allocations: 8.59 MB / 5.181 GB, free: 94.8 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008468/12.16, allocations: 0.6851 MB / 5.181 GB, free: 94.11 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007888/12.16, allocations: 0.6319 MB / 5.182 GB, free: 93.48 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005565/12.16, allocations: 391.5 kB / 5.182 GB, free: 93.03 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008415/12.16, allocations: 0.6162 MB / 5.183 GB, free: 92.4 MB / 1.182 GB Notification: Performance of pre-optimization done (n=104): time 3.938e-06/12.16, allocations: 0 / 5.183 GB, free: 92.4 MB / 1.182 GB Notification: Performance of matching and sorting (n=107): time 0.008276/12.17, allocations: 3.052 MB / 5.186 GB, free: 89.29 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/12.17, allocations: 115.8 kB / 5.186 GB, free: 89.15 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/12.17, allocations: 1.194 MB / 5.187 GB, free: 87.91 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.000137/12.17, allocations: 25.7 kB / 5.187 GB, free: 87.88 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004785/12.17, allocations: 0.616 MB / 5.188 GB, free: 87.25 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003282/12.17, allocations: 366.6 kB / 5.188 GB, free: 86.89 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.447e-05/12.17, allocations: 0 / 5.188 GB, free: 86.89 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.000101/12.17, allocations: 355.6 kB / 5.189 GB, free: 86.54 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006017/12.17, allocations: 446.5 kB / 5.189 GB, free: 86.1 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007408/12.17, allocations: 0.7608 MB / 5.19 GB, free: 85.2 MB / 1.182 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (hea.vol.dynBal.p_start = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.00653/12.18, allocations: 2.068 MB / 5.192 GB, free: 83.11 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/12.18, allocations: 4 kB / 5.192 GB, free: 83.11 MB / 1.182 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002721/12.18, allocations: 1.439 MB / 5.193 GB, free: 81.66 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006261/12.18, allocations: 2.914 MB / 5.196 GB, free: 78.52 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/12.18, allocations: 4 kB / 5.196 GB, free: 78.52 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/12.18, allocations: 44.83 kB / 5.196 GB, free: 78.47 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/12.18, allocations: 295.6 kB / 5.196 GB, free: 78.18 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/12.19, allocations: 1.427 MB / 5.198 GB, free: 76.64 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002263/12.19, allocations: 163.9 kB / 5.198 GB, free: 76.48 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/12.19, allocations: 59.27 kB / 5.198 GB, free: 76.43 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 6.943e-06/12.19, allocations: 4 kB / 5.198 GB, free: 76.42 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001972/12.19, allocations: 1.209 MB / 5.199 GB, free: 75.21 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/12.19, allocations: 11.98 kB / 5.199 GB, free: 75.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001072/12.19, allocations: 40.84 kB / 5.199 GB, free: 75.16 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/12.19, allocations: 299.8 kB / 5.2 GB, free: 74.86 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008415/12.19, allocations: 1.412 MB / 5.201 GB, free: 73.33 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/12.19, allocations: 163.7 kB / 5.201 GB, free: 73.17 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/12.19, allocations: 55.98 kB / 5.201 GB, free: 73.12 MB / 1.182 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: vol.dynBal.medium.p = vol.dynBal.p_start Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (147): * Single equations (assignments): 144 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003313/12.19, allocations: 143.7 kB / 5.201 GB, free: 72.97 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005765/12.2, allocations: 189.7 kB / 5.201 GB, free: 72.79 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00298/12.2, allocations: 1.321 MB / 5.203 GB, free: 71.45 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/12.2, allocations: 12 kB / 5.203 GB, free: 71.44 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.858e-06/12.2, allocations: 3.984 kB / 5.203 GB, free: 71.43 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001679/12.2, allocations: 1.058 MB / 5.204 GB, free: 70.36 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006605/12.21, allocations: 3.095 MB / 5.207 GB, free: 67.21 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/12.21, allocations: 0 / 5.207 GB, free: 67.21 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/12.21, allocations: 239.8 kB / 5.207 GB, free: 66.97 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002431/12.21, allocations: 74.22 kB / 5.207 GB, free: 66.89 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.816e-05/12.21, allocations: 19.92 kB / 5.207 GB, free: 66.88 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/12.21, allocations: 2.643 MB / 5.21 GB, free: 64 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/12.21, allocations: 4.125 kB / 5.21 GB, free: 64 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003114/12.21, allocations: 1.999 MB / 5.212 GB, free: 61.92 MB / 1.182 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004363/12.22, allocations: 3.213 MB / 5.215 GB, free: 58.63 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/12.22, allocations: 378.6 kB / 5.215 GB, free: 58.24 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005432/12.22, allocations: 12 kB / 5.215 GB, free: 58.23 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001913/12.22, allocations: 131.7 kB / 5.215 GB, free: 58.1 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/12.22, allocations: 68.8 kB / 5.215 GB, free: 58.04 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/12.22, allocations: 39.98 kB / 5.215 GB, free: 58 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.001693/12.22, allocations: 0.9054 MB / 5.216 GB, free: 57.07 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.007621/12.23, allocations: 1.966 MB / 5.218 GB, free: 55.1 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (vol.dynBal.medium.Xi[1],vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.medium.Xi[1],hea.vol.dynBal.U,hea.vol.dynBal.m) * 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 (106): * Single equations (assignments): 102 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005649/12.24, allocations: 3.628 MB / 5.222 GB, free: 51.45 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.003655/12.24, allocations: 2.086 MB / 5.224 GB, free: 49.33 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/12.24, allocations: 8.875 kB / 5.224 GB, free: 49.32 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.001043/12.24, allocations: 0.7493 MB / 5.225 GB, free: 48.55 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004941/12.25, allocations: 0.8835 MB / 5.225 GB, free: 47.67 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008737/12.26, allocations: 3.239 MB / 5.229 GB, free: 44.37 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001608/12.26, allocations: 1.8 MB / 5.23 GB, free: 42.53 MB / 1.182 GB Notification: Performance of SimCode: time 9.22e-07/12.26, allocations: 0 / 5.23 GB, free: 42.53 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)