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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.403/2.403, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001219/0.00122, allocations: 187.3 kB / 498.1 MB, free: 5.738 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.634/1.634, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.0008897/0.0008897, allocations: 102.3 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003926, allocations: 9.531 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3401, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2175/0.5576, allocations: 157 MB / 1.376 GB, free: 5.109 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.558, allocations: 91.88 kB / 1.376 GB, free: 5.02 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02348/0.5815, allocations: 8.87 MB / 1.385 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.415e-06/0.5815, allocations: 0 / 1.385 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.142e-05/0.5816, allocations: 16 kB / 1.385 GB, free: 12.09 MB / 0.8855 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.001984/0.5836, allocations: 0.8006 MB / 1.386 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.043e-05/0.5837, allocations: 8.031 kB / 1.386 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.5838, allocations: 59.34 kB / 1.386 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008401/0.5847, allocations: 415.6 kB / 1.386 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.286e-05/0.5848, allocations: 41 kB / 1.386 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.5849, allocations: 55.98 kB / 1.386 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.5862, allocations: 0.5633 MB / 1.387 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.5863, allocations: 4 kB / 1.387 GB, free: 10.03 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.234e-05/0.5863, allocations: 16 kB / 1.387 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.5863, allocations: 12 kB / 1.387 GB, free: 10 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.5874, allocations: 459.6 kB / 1.387 GB, free: 9.551 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003081/0.5905, allocations: 1.911 MB / 1.389 GB, free: 7.562 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.5917, allocations: 433.6 kB / 1.39 GB, free: 7.121 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.441e-05/0.5917, allocations: 11.92 kB / 1.39 GB, free: 7.109 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006484/0.5924, allocations: 269.6 kB / 1.39 GB, free: 6.824 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=35): time 3.477e-06/0.5924, allocations: 0 / 1.39 GB, free: 6.824 MB / 0.8855 GB Notification: Performance of matching and sorting (n=35): time 0.00143/0.5939, allocations: 0.5515 MB / 1.39 GB, free: 6.27 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/0.594, allocations: 144.6 kB / 1.39 GB, free: 6.098 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004405/0.5944, allocations: 364.5 kB / 1.391 GB, free: 5.73 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.856e-05/0.5945, allocations: 45.7 kB / 1.391 GB, free: 5.68 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.5947, allocations: 244.3 kB / 1.391 GB, free: 5.434 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.5948, allocations: 102.7 kB / 1.391 GB, free: 5.332 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.123e-05/0.5948, allocations: 4 kB / 1.391 GB, free: 5.328 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.595, allocations: 358.8 kB / 1.392 GB, free: 4.969 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004258/0.5954, allocations: 177 kB / 1.392 GB, free: 4.797 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.5959, allocations: 306.7 kB / 1.392 GB, free: 4.445 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004519/0.5964, allocations: 215.4 kB / 1.392 GB, free: 4.23 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.5964, allocations: 4 kB / 1.392 GB, free: 4.227 MB / 0.8855 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001099/0.5975, allocations: 0.5618 MB / 1.393 GB, free: 3.652 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.592e-05/0.5976, allocations: 33.95 kB / 1.393 GB, free: 3.613 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.5976, allocations: 8 kB / 1.393 GB, free: 3.605 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.5976, allocations: 4 kB / 1.393 GB, free: 3.602 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000332/0.5979, allocations: 83.81 kB / 1.393 GB, free: 3.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.598, allocations: 8 kB / 1.393 GB, free: 3.512 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003915/0.5984, allocations: 79.64 kB / 1.393 GB, free: 3.434 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.238e-05/0.5984, allocations: 27.94 kB / 1.393 GB, free: 3.406 MB / 0.8855 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 () * Number of clocked 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.0002647/0.5987, allocations: 209.4 kB / 1.393 GB, free: 3.195 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.956e-05/0.5988, allocations: 47.52 kB / 1.393 GB, free: 3.148 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009956/0.5998, allocations: 437.5 kB / 1.394 GB, free: 2.711 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.5998, allocations: 7.938 kB / 1.394 GB, free: 2.703 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.5998, allocations: 0 / 1.394 GB, free: 2.703 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5998, allocations: 0 / 1.394 GB, free: 2.703 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/0.6015, allocations: 1.045 MB / 1.395 GB, free: 1.598 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.6015, allocations: 0 / 1.395 GB, free: 1.598 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002831/0.6018, allocations: 55.98 kB / 1.395 GB, free: 1.543 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.6018, allocations: 7.938 kB / 1.395 GB, free: 1.535 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.6019, allocations: 8 kB / 1.395 GB, free: 1.527 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.6019, allocations: 7.938 kB / 1.395 GB, free: 1.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.6019, allocations: 4 kB / 1.395 GB, free: 1.516 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.6033, allocations: 0.7416 MB / 1.395 GB, free: 0.7383 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.6035, allocations: 152.6 kB / 1.396 GB, free: 0.5703 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.6036, allocations: 12 kB / 1.396 GB, free: 0.5586 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003553/0.6039, allocations: 56.02 kB / 1.396 GB, free: 0.5039 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.6041, allocations: 47.86 kB / 1.396 GB, free: 468 kB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.6041, allocations: 12 kB / 1.396 GB, free: 456 kB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002989/0.6044, allocations: 271.2 kB / 1.396 GB, free: 184 kB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6044, allocations: 4 kB / 1.396 GB, free: 180 kB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004648/0.6049, allocations: 87.84 kB / 1.396 GB, free: 92 kB / 0.8855 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) * Number of clocked states: 0 () * 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.000248/0.6051, allocations: 133.4 kB / 1.396 GB, free: 15.95 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.6062, allocations: 491.3 kB / 1.397 GB, free: 15.46 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.6062, allocations: 4 kB / 1.397 GB, free: 15.46 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004764/0.6067, allocations: 208.8 kB / 1.397 GB, free: 15.25 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.6072, allocations: 80.81 kB / 1.397 GB, free: 15.18 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.6089, allocations: 0.8902 MB / 1.398 GB, free: 14.26 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.6093, allocations: 0.8357 MB / 1.399 GB, free: 13.4 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002215/0.6096, allocations: 59.38 kB / 1.399 GB, free: 13.34 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.6097, allocations: 47.36 kB / 1.399 GB, free: 13.29 MB / 0.9011 GB Notification: Performance of SimCode: time 3.5e-07/0.6097, allocations: 0 / 1.399 GB, free: 13.29 MB / 0.9011 GB Notification: Performance of Templates: time 0.01036/0.6201, allocations: 4.799 MB / 1.403 GB, free: 8.539 MB / 0.9011 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