Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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: 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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.673/1.673, allocations: 387.2 MB / 394.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000985/0.000985, allocations: 184.6 kB / 487 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.047/1.047, allocations: 221.3 MB / 0.7819 GB, free: 6.762 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008166/0.0008166, allocations: 102 kB / 0.9213 GB, free: 43.66 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 4.95e-06/5.05e-06, allocations: 0 / 1.066 GB, free: 7.559 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4435/0.4436, allocations: 142.3 MB / 1.205 GB, free: 72.84 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1393/0.5829, allocations: 156.2 MB / 1.358 GB, free: 7.066 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.5831, allocations: 95.92 kB / 1.358 GB, free: 6.973 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.01983/0.603, allocations: 8.464 MB / 1.366 GB, free: 14.56 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.473e-05/0.603, allocations: 12 kB / 1.366 GB, free: 14.55 MB / 0.8698 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.001071/0.6041, allocations: 0.7685 MB / 1.367 GB, free: 13.72 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.748e-05/0.6041, allocations: 8.031 kB / 1.367 GB, free: 13.71 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.623e-05/0.6042, allocations: 59.34 kB / 1.367 GB, free: 13.66 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005024/0.6047, allocations: 423.6 kB / 1.367 GB, free: 13.21 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.6048, allocations: 23.98 kB / 1.367 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.124e-05/0.6048, allocations: 28 kB / 1.367 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005197/0.6054, allocations: 310 kB / 1.368 GB, free: 12.86 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006305/0.606, allocations: 455 kB / 1.368 GB, free: 12.37 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.606, allocations: 0 / 1.368 GB, free: 12.37 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.682e-05/0.6061, allocations: 4 kB / 1.368 GB, free: 12.37 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.6061, allocations: 8 kB / 1.368 GB, free: 12.36 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.6079, allocations: 1.795 MB / 1.37 GB, free: 10.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005004/0.6084, allocations: 293.9 kB / 1.37 GB, free: 10.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.6086, allocations: 126.2 kB / 1.37 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.6086, allocations: 13.72 kB / 1.37 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.6089, allocations: 205.5 kB / 1.37 GB, free: 9.832 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=35): time 1.493e-06/0.6089, allocations: 0 / 1.37 GB, free: 9.832 MB / 0.8698 GB Notification: Performance of matching and sorting (n=35): time 0.0004268/0.6093, allocations: 268.1 kB / 1.371 GB, free: 9.566 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.6094, allocations: 140.5 kB / 1.371 GB, free: 9.398 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.6097, allocations: 287.3 kB / 1.371 GB, free: 9.109 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.6097, allocations: 37.69 kB / 1.371 GB, free: 9.066 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.6098, allocations: 208 kB / 1.371 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.115e-05/0.6099, allocations: 102.7 kB / 1.371 GB, free: 8.754 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.892e-05/0.6099, allocations: 0 / 1.371 GB, free: 8.754 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.61, allocations: 350.8 kB / 1.372 GB, free: 8.402 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.6102, allocations: 113 kB / 1.372 GB, free: 8.293 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.6105, allocations: 233.2 kB / 1.372 GB, free: 8.016 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.6107, allocations: 125.5 kB / 1.372 GB, free: 7.895 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.6107, allocations: 0 / 1.372 GB, free: 7.895 MB / 0.8698 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005403/0.6112, allocations: 382.4 kB / 1.373 GB, free: 7.516 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.378e-06/0.6112, allocations: 8 kB / 1.373 GB, free: 7.508 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.6112, allocations: 384 / 1.373 GB, free: 7.508 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.6113, allocations: 12 kB / 1.373 GB, free: 7.496 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/0.6116, allocations: 84.72 kB / 1.373 GB, free: 7.414 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.6116, allocations: 7.938 kB / 1.373 GB, free: 7.406 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.612, allocations: 72.45 kB / 1.373 GB, free: 7.336 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.612, allocations: 23.98 kB / 1.373 GB, free: 7.312 MB / 0.8698 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.0001041/0.6122, allocations: 138.1 kB / 1.373 GB, free: 7.172 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.782e-05/0.6122, allocations: 35.53 kB / 1.373 GB, free: 7.137 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000481/0.6127, allocations: 288 kB / 1.373 GB, free: 6.852 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.6127, allocations: 4 kB / 1.373 GB, free: 6.848 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.6127, allocations: 4 kB / 1.373 GB, free: 6.844 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.6127, allocations: 8.578 kB / 1.373 GB, free: 6.836 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009735/0.6137, allocations: 0.8157 MB / 1.374 GB, free: 5.973 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.6137, allocations: 3.906 kB / 1.374 GB, free: 5.969 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002877/0.614, allocations: 67.92 kB / 1.374 GB, free: 5.902 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.614, allocations: 4 kB / 1.374 GB, free: 5.898 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.6141, allocations: 4 kB / 1.374 GB, free: 5.895 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.6141, allocations: 3.984 kB / 1.374 GB, free: 5.891 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6141, allocations: 1.594 kB / 1.374 GB, free: 5.891 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000664/0.6147, allocations: 0.5592 MB / 1.375 GB, free: 5.297 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.6149, allocations: 148.5 kB / 1.375 GB, free: 5.133 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.95e-05/0.6149, allocations: 0 / 1.375 GB, free: 5.133 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003607/0.6153, allocations: 56.02 kB / 1.375 GB, free: 5.078 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.6154, allocations: 55.83 kB / 1.375 GB, free: 5.023 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.6154, allocations: 11.98 kB / 1.375 GB, free: 5.012 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.000159/0.6156, allocations: 203.1 kB / 1.375 GB, free: 4.812 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000335/0.616, allocations: 79.83 kB / 1.375 GB, free: 4.734 MB / 0.8698 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.0001248/0.6161, allocations: 113.2 kB / 1.375 GB, free: 4.617 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004666/0.6166, allocations: 329.7 kB / 1.376 GB, free: 4.289 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.6166, allocations: 4 kB / 1.376 GB, free: 4.285 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002272/0.6168, allocations: 151.9 kB / 1.376 GB, free: 4.137 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.6172, allocations: 72.97 kB / 1.376 GB, free: 4.07 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009463/0.6181, allocations: 0.5263 MB / 1.376 GB, free: 3.516 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004287/0.6186, allocations: 0.8782 MB / 1.377 GB, free: 2.613 MB / 0.8698 GB Notification: Performance of SimCode: time 3.3e-07/0.6186, allocations: 0 / 1.377 GB, free: 2.613 MB / 0.8698 GB Notification: Performance of Templates: time 0.008101/0.6267, allocations: 4.986 MB / 1.382 GB, free: 13.78 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches