Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.716/1.716, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0009236/0.0009237, allocations: 181.2 kB / 490.8 MB, free: 1.918 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.067/1.067, allocations: 221.4 MB / 0.7863 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007989/0.0007989, allocations: 94.91 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.25e-06/5.27e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1656, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4562/0.6219, allocations: 156.9 MB / 1.365 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/0.6221, allocations: 92.91 kB / 1.365 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01839/0.6405, allocations: 8.465 MB / 1.373 GB, free: 16.67 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.567e-05/0.6406, allocations: 17.84 kB / 1.373 GB, free: 16.66 MB / 0.823 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.001072/0.6416, allocations: 0.7596 MB / 1.374 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.774e-05/0.6417, allocations: 11.88 kB / 1.374 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.771e-05/0.6418, allocations: 58.92 kB / 1.374 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004845/0.6423, allocations: 416.9 kB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.6423, allocations: 20.3 kB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.358e-05/0.6424, allocations: 32.92 kB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005175/0.6429, allocations: 308.9 kB / 1.375 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006357/0.6435, allocations: 454.3 kB / 1.375 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.6436, allocations: 0 / 1.375 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.746e-05/0.6436, allocations: 5.625 kB / 1.375 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.6436, allocations: 16.86 kB / 1.375 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.6455, allocations: 1.793 MB / 1.377 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004847/0.646, allocations: 289.1 kB / 1.377 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.6462, allocations: 128.5 kB / 1.377 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.6462, allocations: 5.312 kB / 1.377 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.6465, allocations: 203.8 kB / 1.378 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.343e-06/0.6465, allocations: 0 / 1.378 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0004338/0.6469, allocations: 265.9 kB / 1.378 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.647, allocations: 139.5 kB / 1.378 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.6472, allocations: 290.1 kB / 1.378 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.6473, allocations: 34.66 kB / 1.378 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.6474, allocations: 220.2 kB / 1.378 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.259e-05/0.6475, allocations: 95.53 kB / 1.379 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.82e-05/0.6475, allocations: 1.031 kB / 1.379 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.6476, allocations: 345.3 kB / 1.379 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/0.6478, allocations: 121.6 kB / 1.379 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.6481, allocations: 224.1 kB / 1.379 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.6483, allocations: 127.7 kB / 1.379 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.6483, allocations: 0.9688 kB / 1.379 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005412/0.6488, allocations: 379.7 kB / 1.38 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.6488, allocations: 5.062 kB / 1.38 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.6488, allocations: 3.391 kB / 1.38 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.6489, allocations: 9.656 kB / 1.38 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003354/0.6492, allocations: 88.36 kB / 1.38 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.6492, allocations: 9.266 kB / 1.38 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000375/0.6496, allocations: 73.89 kB / 1.38 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-05/0.6496, allocations: 22.8 kB / 1.38 GB, free: 29.52 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.toOn.t_start,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 (58): * Single equations (assignments): 57 * 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.0001073/0.6498, allocations: 134 kB / 1.38 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.867e-05/0.6498, allocations: 38.55 kB / 1.38 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004998/0.6503, allocations: 299.4 kB / 1.38 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.6503, allocations: 5.031 kB / 1.38 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.6503, allocations: 0 / 1.38 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.6503, allocations: 3.312 kB / 1.38 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009735/0.6513, allocations: 0.8097 MB / 1.381 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.6513, allocations: 5.312 kB / 1.381 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.6516, allocations: 62.77 kB / 1.381 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.6516, allocations: 10.16 kB / 1.381 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.6517, allocations: 4.562 kB / 1.381 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.6517, allocations: 2.562 kB / 1.381 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.6517, allocations: 1.156 kB / 1.381 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006357/0.6523, allocations: 0.5537 MB / 1.382 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.6524, allocations: 149.1 kB / 1.382 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.099e-05/0.6525, allocations: 7.75 kB / 1.382 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003596/0.6529, allocations: 57.12 kB / 1.382 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.653, allocations: 51.73 kB / 1.382 GB, free: 28.67 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.653, allocations: 13.34 kB / 1.382 GB, free: 28.67 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001668/0.6532, allocations: 205.5 kB / 1.382 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000343/0.6536, allocations: 79.08 kB / 1.382 GB, free: 28.58 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,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: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001356/0.6537, allocations: 123.2 kB / 1.382 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004521/0.6542, allocations: 323.6 kB / 1.383 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.6542, allocations: 0 / 1.383 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.6544, allocations: 153.1 kB / 1.383 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.6548, allocations: 69.22 kB / 1.383 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009609/0.6557, allocations: 0.5404 MB / 1.383 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004524/0.6562, allocations: 0.8748 MB / 1.384 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of SimCode: time 2.91e-07/0.6562, allocations: 0 / 1.384 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of Templates: time 0.007914/0.6641, allocations: 4.99 MB / 1.389 GB, free: 25.3 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches