Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.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_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u") [: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.21/1.21, allocations: 249.4 MB / 256.7 MB, free: 7.043 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.0009614/0.0009614, allocations: 184 kB / 316 MB, free: 3.594 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.08/1.08, allocations: 205.2 MB / 0.5667 GB, free: 15.66 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.0008787/0.0008787, allocations: 83.39 kB / 0.671 GB, free: 4.805 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.983e-06/7.003e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1511, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.418/3.569, allocations: 2.24 GB / 3.125 GB, free: 176.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/3.569, allocations: 95.48 kB / 3.125 GB, free: 176.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 5.268/8.838, allocations: 1.926 GB / 5.05 GB, free: 107.8 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0002197/8.838, allocations: 66.89 kB / 5.051 GB, free: 107.8 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 382 * Number of variables: 382 Notification: Performance of Generate backend data structure: time 0.005373/8.843, allocations: 2.631 MB / 5.053 GB, free: 106.8 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/8.843, allocations: 10.41 kB / 5.053 GB, free: 106.8 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005048/8.848, allocations: 0.8363 MB / 5.054 GB, free: 106.7 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00523/8.854, allocations: 2.418 MB / 5.056 GB, free: 106.3 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.263e-05/8.854, allocations: 46.97 kB / 5.056 GB, free: 106.3 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/8.854, allocations: 100.2 kB / 5.056 GB, free: 106.3 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002246/8.856, allocations: 1.361 MB / 5.058 GB, free: 106.3 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00227/8.858, allocations: 1.582 MB / 5.059 GB, free: 106.1 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/8.859, allocations: 0.75 kB / 5.059 GB, free: 106.1 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/8.859, allocations: 0 / 5.059 GB, free: 106.1 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.988e-05/8.859, allocations: 58.84 kB / 5.059 GB, free: 106.1 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009815/8.869, allocations: 8.3 MB / 5.067 GB, free: 102.1 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/8.87, allocations: 0.9638 MB / 5.068 GB, free: 102.1 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007338/8.871, allocations: 0.6067 MB / 5.069 GB, free: 102.1 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005038/8.871, allocations: 388.6 kB / 5.069 GB, free: 101.7 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000775/8.872, allocations: 0.6149 MB / 5.07 GB, free: 101.6 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=102): time 3.216e-06/8.872, allocations: 0 / 5.07 GB, free: 101.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=105): time 0.007156/8.879, allocations: 3 MB / 5.073 GB, free: 101 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/8.879, allocations: 169.3 kB / 5.073 GB, free: 100.8 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/8.881, allocations: 1.223 MB / 5.074 GB, free: 100.6 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.55e-05/8.881, allocations: 28.83 kB / 5.074 GB, free: 100.5 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004366/8.881, allocations: 0.6333 MB / 5.075 GB, free: 100.3 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002742/8.881, allocations: 358.5 kB / 5.075 GB, free: 100.1 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.105e-05/8.882, allocations: 0 / 5.075 GB, free: 100.1 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.509e-05/8.882, allocations: 355.8 kB / 5.076 GB, free: 99.79 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005723/8.882, allocations: 442.6 kB / 5.076 GB, free: 99.78 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007234/8.883, allocations: 0.7981 MB / 5.077 GB, free: 99.37 MB / 0.9167 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.006215/8.889, allocations: 2.054 MB / 5.079 GB, free: 99.22 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/8.889, allocations: 3.938 kB / 5.079 GB, free: 99.22 MB / 0.9167 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002361/8.892, allocations: 1.452 MB / 5.08 GB, free: 99.07 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000471/8.892, allocations: 3 MB / 5.083 GB, free: 95.94 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/8.892, allocations: 10.48 kB / 5.083 GB, free: 95.94 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/8.892, allocations: 46.83 kB / 5.083 GB, free: 95.93 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/8.893, allocations: 292.8 kB / 5.083 GB, free: 95.93 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009251/8.894, allocations: 1.433 MB / 5.085 GB, free: 94.66 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/8.896, allocations: 136.9 kB / 5.085 GB, free: 94.65 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/8.896, allocations: 51.86 kB / 5.085 GB, free: 94.65 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 5.871e-06/8.896, allocations: 3.938 kB / 5.085 GB, free: 94.65 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001911/8.898, allocations: 1.217 MB / 5.086 GB, free: 94.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/8.898, allocations: 11.62 kB / 5.086 GB, free: 94.62 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001149/8.898, allocations: 45.33 kB / 5.086 GB, free: 94.61 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/8.9, allocations: 286.1 kB / 5.087 GB, free: 94.61 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007717/8.9, allocations: 1.426 MB / 5.088 GB, free: 93.35 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/8.902, allocations: 139.5 kB / 5.088 GB, free: 93.34 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/8.902, allocations: 56.08 kB / 5.088 GB, free: 93.34 MB / 0.9167 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: 33 * 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 (148): * Single equations (assignments): 143 * 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: 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.000282/8.903, allocations: 148.9 kB / 5.088 GB, free: 93.23 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/8.903, allocations: 189.6 kB / 5.088 GB, free: 93.13 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002377/8.905, allocations: 1.286 MB / 5.09 GB, free: 93.03 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.956e-06/8.905, allocations: 13.36 kB / 5.09 GB, free: 93.03 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/8.905, allocations: 0 / 5.09 GB, free: 93.03 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00153/8.907, allocations: 1.027 MB / 5.091 GB, free: 92.93 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004717/8.912, allocations: 3.012 MB / 5.094 GB, free: 92.49 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/8.912, allocations: 0 / 5.094 GB, free: 92.49 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/8.913, allocations: 243 kB / 5.094 GB, free: 92.49 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002169/8.913, allocations: 76.02 kB / 5.094 GB, free: 92.47 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.25e-05/8.913, allocations: 15.36 kB / 5.094 GB, free: 92.47 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/8.915, allocations: 2.636 MB / 5.097 GB, free: 90.09 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/8.915, allocations: 6.75 kB / 5.097 GB, free: 90.09 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002662/8.917, allocations: 2.043 MB / 5.099 GB, free: 89.67 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008359/8.918, allocations: 387.3 kB / 5.099 GB, free: 89.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002526/8.918, allocations: 13.23 kB / 5.099 GB, free: 89.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/8.92, allocations: 130.9 kB / 5.099 GB, free: 89.48 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/8.92, allocations: 70.27 kB / 5.099 GB, free: 89.47 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.417e-05/8.92, allocations: 38.55 kB / 5.099 GB, free: 89.47 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.001224/8.921, allocations: 0.9228 MB / 5.1 GB, free: 89.33 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.003488/8.925, allocations: 1.174 MB / 5.101 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: 9 (vol.dynBal.U,vol.dynBal.mXi[1],mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U,hea.vol.dynBal.m,hea.vol.dynBal.mXi[1]) * 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 (104): * Single equations (assignments): 100 * 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.004181/8.929, allocations: 3.658 MB / 5.105 GB, free: 87.95 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003018/8.932, allocations: 2.15 MB / 5.107 GB, free: 87.6 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/8.932, allocations: 3.938 kB / 5.107 GB, free: 87.6 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008324/8.933, allocations: 0.7315 MB / 5.108 GB, free: 87.4 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004148/8.937, allocations: 0.8911 MB / 5.108 GB, free: 87.36 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006823/8.944, allocations: 3.269 MB / 5.112 GB, free: 86.6 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/8.945, allocations: 1.799 MB / 5.113 GB, free: 85.86 MB / 0.9167 GB Notification: Performance of SimCode: time 7.71e-07/8.945, allocations: 0 / 5.113 GB, free: 85.86 MB / 0.9167 GB Notification: Performance of Templates: time 0.08051/9.026, allocations: 59.19 MB / 5.171 GB, free: 83.72 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches