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: translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") [: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.211/1.211, allocations: 249.4 MB / 256.7 MB, free: 6.984 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.0009481/0.0009482, allocations: 185.2 kB / 316 MB, free: 3.621 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.091/1.091, allocations: 205.2 MB / 0.5667 GB, free: 15.75 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.0008714/0.0008714, allocations: 93.44 kB / 0.671 GB, free: 4.895 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.434e-06, allocations: 4 kB / 0.7807 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.149, allocations: 106.3 MB / 0.8846 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.347/3.496, allocations: 2.246 GB / 3.131 GB, free: 130.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/3.496, allocations: 93.58 kB / 3.131 GB, free: 130.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 5.406/8.902, allocations: 2.006 GB / 5.137 GB, free: 104.4 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0002014/8.902, allocations: 63.72 kB / 5.137 GB, free: 104.4 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: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.004599/8.907, allocations: 2.456 MB / 5.14 GB, free: 103.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/8.907, allocations: 11.28 kB / 5.14 GB, free: 103.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00451/8.912, allocations: 0.8225 MB / 5.141 GB, free: 103.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005008/8.917, allocations: 2.269 MB / 5.143 GB, free: 102.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.013e-05/8.917, allocations: 41.69 kB / 5.143 GB, free: 102.8 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/8.917, allocations: 89.47 kB / 5.143 GB, free: 102.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001875/8.919, allocations: 1.164 MB / 5.144 GB, free: 102.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/8.921, allocations: 1.398 MB / 5.145 GB, free: 102.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/8.921, allocations: 0 / 5.145 GB, free: 102.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/8.921, allocations: 6.125 kB / 5.145 GB, free: 102.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.357e-05/8.921, allocations: 45.39 kB / 5.145 GB, free: 102.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008574/8.929, allocations: 7.57 MB / 5.153 GB, free: 98.57 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009927/8.93, allocations: 0.768 MB / 5.154 GB, free: 98.54 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005463/8.931, allocations: 473.9 kB / 5.154 GB, free: 98.52 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00113/8.932, allocations: 0.9254 MB / 5.155 GB, free: 97.58 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006451/8.933, allocations: 497.4 kB / 5.155 GB, free: 97.53 MB / 0.948 GB Notification: Performance of pre-optimization done (n=84): time 3.045e-06/8.933, allocations: 3.156 kB / 5.155 GB, free: 97.53 MB / 0.948 GB Notification: Performance of matching and sorting (n=84): time 0.002952/8.936, allocations: 1.126 MB / 5.157 GB, free: 97.37 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/8.936, allocations: 166.6 kB / 5.157 GB, free: 97.18 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/8.937, allocations: 1.245 MB / 5.158 GB, free: 96.97 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-05/8.937, allocations: 33.77 kB / 5.158 GB, free: 96.94 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003749/8.938, allocations: 0.6087 MB / 5.159 GB, free: 96.67 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/8.938, allocations: 285.2 kB / 5.159 GB, free: 96.48 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.095e-05/8.938, allocations: 2.906 kB / 5.159 GB, free: 96.48 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.182e-05/8.938, allocations: 351.3 kB / 5.159 GB, free: 96.18 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000467/8.939, allocations: 352.8 kB / 5.16 GB, free: 96.17 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000636/8.939, allocations: 0.7261 MB / 5.16 GB, free: 95.73 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/8.94, allocations: 0.5644 MB / 5.161 GB, free: 95.71 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/8.94, allocations: 2.625 kB / 5.161 GB, free: 95.71 MB / 0.948 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002084/8.942, allocations: 1.282 MB / 5.162 GB, free: 95.57 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006621/8.943, allocations: 3.454 MB / 5.165 GB, free: 91.96 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/8.943, allocations: 13.36 kB / 5.165 GB, free: 91.96 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.901e-05/8.943, allocations: 15.44 kB / 5.165 GB, free: 91.96 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/8.944, allocations: 257.8 kB / 5.166 GB, free: 91.96 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/8.944, allocations: 22.09 kB / 5.166 GB, free: 91.96 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/8.946, allocations: 181 kB / 5.166 GB, free: 91.91 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/8.946, allocations: 59.12 kB / 5.166 GB, free: 91.91 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.665e-06/8.946, allocations: 3.5 kB / 5.166 GB, free: 91.91 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001785/8.948, allocations: 1.047 MB / 5.167 GB, free: 91.89 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/8.948, allocations: 10.97 kB / 5.167 GB, free: 91.89 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/8.948, allocations: 12.69 kB / 5.167 GB, free: 91.89 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/8.949, allocations: 267.1 kB / 5.167 GB, free: 91.89 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/8.949, allocations: 14.78 kB / 5.167 GB, free: 91.89 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/8.95, allocations: 161.6 kB / 5.167 GB, free: 91.86 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-05/8.951, allocations: 51.36 kB / 5.167 GB, free: 91.86 MB / 0.948 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.0002341/8.951, allocations: 142.2 kB / 5.168 GB, free: 91.74 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000203/8.951, allocations: 177.9 kB / 5.168 GB, free: 91.65 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/8.953, allocations: 1.081 MB / 5.169 GB, free: 91.57 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.996e-06/8.953, allocations: 10.38 kB / 5.169 GB, free: 91.57 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/8.953, allocations: 7.516 kB / 5.169 GB, free: 91.56 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001458/8.955, allocations: 1.148 MB / 5.17 GB, free: 91.1 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004032/8.959, allocations: 2.437 MB / 5.172 GB, free: 90.74 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/8.959, allocations: 0 / 5.172 GB, free: 90.74 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009428/8.96, allocations: 185.9 kB / 5.172 GB, free: 90.73 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001913/8.96, allocations: 40.48 kB / 5.173 GB, free: 90.73 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.14e-05/8.96, allocations: 18.62 kB / 5.173 GB, free: 90.73 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/8.961, allocations: 1.377 MB / 5.174 GB, free: 89.54 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/8.961, allocations: 0 / 5.174 GB, free: 89.54 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002188/8.963, allocations: 1.677 MB / 5.176 GB, free: 89.14 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005856/8.964, allocations: 359 kB / 5.176 GB, free: 88.93 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002265/8.964, allocations: 17.08 kB / 5.176 GB, free: 88.93 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/8.965, allocations: 115.9 kB / 5.176 GB, free: 88.93 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/8.965, allocations: 55.05 kB / 5.176 GB, free: 88.93 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.352e-05/8.965, allocations: 36.7 kB / 5.176 GB, free: 88.93 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001047/8.967, allocations: 0.9256 MB / 5.177 GB, free: 88.78 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00342/8.97, allocations: 1.203 MB / 5.178 GB, free: 88.6 MB / 0.948 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.004271/8.974, allocations: 3.731 MB / 5.182 GB, free: 87.21 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002169/8.976, allocations: 1.586 MB / 5.183 GB, free: 87.06 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/8.976, allocations: 3.719 kB / 5.183 GB, free: 87.06 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006678/8.977, allocations: 0.5173 MB / 5.184 GB, free: 86.96 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002859/8.98, allocations: 0.7333 MB / 5.185 GB, free: 86.92 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00725/8.987, allocations: 3.016 MB / 5.188 GB, free: 86.21 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001191/8.988, allocations: 1.692 MB / 5.189 GB, free: 85.48 MB / 0.948 GB Notification: Performance of SimCode: time 1.102e-06/8.988, allocations: 0 / 5.189 GB, free: 85.48 MB / 0.948 GB Notification: Performance of Templates: time 0.07304/9.061, allocations: 52.56 MB / 5.241 GB, free: 82.86 MB / 0.948 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches