Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") [: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.161/1.161, allocations: 249.4 MB / 256.7 MB, free: 7.074 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.59 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9966/0.9966, allocations: 205.2 MB / 0.5667 GB, free: 15.63 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.0007789/0.000779, allocations: 94.95 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.489e-06/4.509e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1323, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4008/0.5331, allocations: 139.7 MB / 1.021 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.5333, allocations: 90.08 kB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.01967/0.553, allocations: 8.438 MB / 1.029 GB, free: 8.105 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.586e-05/0.553, allocations: 13.09 kB / 1.029 GB, free: 8.094 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001172/0.5542, allocations: 0.7474 MB / 1.03 GB, free: 7.328 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.5543, allocations: 8.031 kB / 1.03 GB, free: 7.32 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.5544, allocations: 71.17 kB / 1.03 GB, free: 7.25 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005715/0.555, allocations: 415.7 kB / 1.031 GB, free: 6.887 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.555, allocations: 16 kB / 1.031 GB, free: 6.871 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/0.5551, allocations: 35.92 kB / 1.031 GB, free: 6.836 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005937/0.5557, allocations: 303.1 kB / 1.031 GB, free: 6.668 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007087/0.5564, allocations: 462.1 kB / 1.031 GB, free: 6.301 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.5564, allocations: 0 / 1.031 GB, free: 6.301 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.5565, allocations: 7.984 kB / 1.031 GB, free: 6.293 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.5565, allocations: 8 kB / 1.031 GB, free: 6.285 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.5584, allocations: 1.797 MB / 1.033 GB, free: 4.766 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005174/0.559, allocations: 270.1 kB / 1.033 GB, free: 4.586 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.5592, allocations: 121.4 kB / 1.033 GB, free: 4.512 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.5592, allocations: 4 kB / 1.033 GB, free: 4.508 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.5594, allocations: 171.1 kB / 1.034 GB, free: 4.375 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 1.543e-06/0.5594, allocations: 0 / 1.034 GB, free: 4.375 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.000436/0.5599, allocations: 261.6 kB / 1.034 GB, free: 4.176 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.5599, allocations: 114.7 kB / 1.034 GB, free: 4.043 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002629/0.5602, allocations: 289.2 kB / 1.034 GB, free: 3.809 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.387e-05/0.5603, allocations: 40.5 kB / 1.034 GB, free: 3.77 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.5604, allocations: 211.7 kB / 1.035 GB, free: 3.578 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.341e-05/0.5605, allocations: 95.78 kB / 1.035 GB, free: 3.5 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.945e-05/0.5605, allocations: 0 / 1.035 GB, free: 3.5 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.5606, allocations: 351.4 kB / 1.035 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.5608, allocations: 113.9 kB / 1.035 GB, free: 3.102 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.561, allocations: 225.9 kB / 1.035 GB, free: 2.895 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.5612, allocations: 125 kB / 1.035 GB, free: 2.816 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5612, allocations: 0 / 1.035 GB, free: 2.816 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005746/0.5618, allocations: 379.3 kB / 1.036 GB, free: 2.527 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.5618, allocations: 7.906 kB / 1.036 GB, free: 2.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.5619, allocations: 4 kB / 1.036 GB, free: 2.516 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.5619, allocations: 4 kB / 1.036 GB, free: 2.512 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003418/0.5622, allocations: 87.56 kB / 1.036 GB, free: 2.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.5622, allocations: 7.938 kB / 1.036 GB, free: 2.422 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003784/0.5626, allocations: 71.8 kB / 1.036 GB, free: 2.352 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.906e-05/0.5627, allocations: 15.88 kB / 1.036 GB, free: 2.34 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0001076/0.5628, allocations: 132.4 kB / 1.036 GB, free: 2.207 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.08e-05/0.5628, allocations: 39.53 kB / 1.036 GB, free: 2.168 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004879/0.5633, allocations: 303.7 kB / 1.036 GB, free: 1.949 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.5633, allocations: 7.984 kB / 1.036 GB, free: 1.941 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.5634, allocations: 0 / 1.036 GB, free: 1.941 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5634, allocations: 0 / 1.036 GB, free: 1.941 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009737/0.5643, allocations: 0.8116 MB / 1.037 GB, free: 1.285 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.5644, allocations: 8.016 kB / 1.037 GB, free: 1.277 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002892/0.5646, allocations: 67.27 kB / 1.037 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.5647, allocations: 0 / 1.037 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.5647, allocations: 4 kB / 1.037 GB, free: 1.211 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.5647, allocations: 7.906 kB / 1.037 GB, free: 1.203 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.5647, allocations: 0 / 1.037 GB, free: 1.203 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006411/0.5654, allocations: 0.526 MB / 1.038 GB, free: 0.7969 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.5655, allocations: 144.5 kB / 1.038 GB, free: 0.6562 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.074e-05/0.5656, allocations: 4 kB / 1.038 GB, free: 0.6523 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003716/0.5659, allocations: 67.56 kB / 1.038 GB, free: 0.5898 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.5661, allocations: 38.62 kB / 1.038 GB, free: 0.5586 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.5661, allocations: 14.92 kB / 1.038 GB, free: 0.5469 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001645/0.5663, allocations: 208.4 kB / 1.038 GB, free: 400 kB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003387/0.5666, allocations: 83.75 kB / 1.038 GB, free: 316 kB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001571/0.5668, allocations: 116.5 kB / 1.038 GB, free: 192 kB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004551/0.5672, allocations: 323 kB / 1.039 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5672, allocations: 0 / 1.039 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.5675, allocations: 144.5 kB / 1.039 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.5678, allocations: 70.41 kB / 1.039 GB, free: 15.82 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009974/0.5688, allocations: 0.5166 MB / 1.039 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000463/0.5693, allocations: 0.8863 MB / 1.04 GB, free: 14.42 MB / 0.6667 GB Notification: Performance of SimCode: time 1.393e-06/0.5693, allocations: 0 / 1.04 GB, free: 14.42 MB / 0.6667 GB Notification: Performance of Templates: time 0.008299/0.5776, allocations: 4.956 MB / 1.045 GB, free: 9.531 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches