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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.403/2.403, allocations: 393.5 MB / 408.4 MB, free: 10.97 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.001236/0.001236, allocations: 179.9 kB / 0.4902 GB, free: 2.227 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.883/1.883, allocations: 223.1 MB / 0.7992 GB, free: 14.7 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.001241/0.001241, allocations: 94.77 kB / 0.9396 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003905, allocations: 6.938 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.346, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.217/0.563, allocations: 157.8 MB / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003561/0.5634, allocations: 91.95 kB / 1.383 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02758/0.591, allocations: 8.861 MB / 1.392 GB, free: 2.828 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.404e-06/0.5911, allocations: 0 / 1.392 GB, free: 2.828 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.487e-05/0.5912, allocations: 19.94 kB / 1.392 GB, free: 2.809 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.002405/0.5936, allocations: 0.7879 MB / 1.393 GB, free: 1.965 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 7.09e-05/0.5937, allocations: 16.52 kB / 1.393 GB, free: 1.949 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003475/0.5941, allocations: 59.25 kB / 1.393 GB, free: 1.891 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.5952, allocations: 423.6 kB / 1.393 GB, free: 1.438 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.894e-05/0.5953, allocations: 37 kB / 1.393 GB, free: 1.398 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.5955, allocations: 52 kB / 1.393 GB, free: 1.348 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.597, allocations: 0.5788 MB / 1.394 GB, free: 0.7305 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.5971, allocations: 3.938 kB / 1.394 GB, free: 0.7266 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.906e-05/0.5971, allocations: 20 kB / 1.394 GB, free: 0.707 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.5971, allocations: 12 kB / 1.394 GB, free: 0.6953 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.5984, allocations: 451.7 kB / 1.394 GB, free: 260 kB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003206/0.6016, allocations: 1.899 MB / 1.396 GB, free: 14.28 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.6028, allocations: 440.5 kB / 1.397 GB, free: 13.83 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.6029, allocations: 0 / 1.397 GB, free: 13.83 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006678/0.6036, allocations: 285.5 kB / 1.397 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=35): time 2.374e-06/0.6036, allocations: 0 / 1.397 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of matching and sorting (n=35): time 0.001497/0.6051, allocations: 0.5477 MB / 1.397 GB, free: 12.98 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.6052, allocations: 144.5 kB / 1.398 GB, free: 12.81 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000543/0.6058, allocations: 364.5 kB / 1.398 GB, free: 12.45 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 8.462e-05/0.6058, allocations: 41.7 kB / 1.398 GB, free: 12.4 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.6061, allocations: 248.2 kB / 1.398 GB, free: 12.15 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.6063, allocations: 102.8 kB / 1.398 GB, free: 12.05 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.6063, allocations: 8 kB / 1.398 GB, free: 12.04 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000224/0.6065, allocations: 358.8 kB / 1.399 GB, free: 11.68 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/0.6071, allocations: 181 kB / 1.399 GB, free: 11.5 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.6077, allocations: 298.8 kB / 1.399 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005176/0.6082, allocations: 215.2 kB / 1.399 GB, free: 10.95 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.6082, allocations: 4 kB / 1.399 GB, free: 10.94 MB / 0.9011 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001266/0.6095, allocations: 0.5618 MB / 1.4 GB, free: 10.37 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.6096, allocations: 33.7 kB / 1.4 GB, free: 10.33 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.6096, allocations: 4 kB / 1.4 GB, free: 10.32 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.6096, allocations: 4 kB / 1.4 GB, free: 10.32 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/0.61, allocations: 92 kB / 1.4 GB, free: 10.23 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.839e-05/0.61, allocations: 7.984 kB / 1.4 GB, free: 10.22 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004998/0.6105, allocations: 83.55 kB / 1.4 GB, free: 10.14 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.682e-05/0.6106, allocations: 27.94 kB / 1.4 GB, free: 10.11 MB / 0.9011 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.0003579/0.611, allocations: 206.5 kB / 1.4 GB, free: 9.902 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.193e-05/0.6111, allocations: 39.53 kB / 1.4 GB, free: 9.863 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0011/0.6122, allocations: 449.6 kB / 1.401 GB, free: 9.418 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.6122, allocations: 7.938 kB / 1.401 GB, free: 9.41 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.6122, allocations: 0 / 1.401 GB, free: 9.41 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.6123, allocations: 0 / 1.401 GB, free: 9.41 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.6143, allocations: 1.034 MB / 1.402 GB, free: 8.316 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.6143, allocations: 3.938 kB / 1.402 GB, free: 8.312 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.6146, allocations: 63.89 kB / 1.402 GB, free: 8.25 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.6146, allocations: 0 / 1.402 GB, free: 8.25 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-05/0.6147, allocations: 12.03 kB / 1.402 GB, free: 8.238 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.987e-06/0.6147, allocations: 11.89 kB / 1.402 GB, free: 8.227 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.6147, allocations: 0 / 1.402 GB, free: 8.227 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.6162, allocations: 0.7453 MB / 1.403 GB, free: 7.445 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/0.6165, allocations: 156.4 kB / 1.403 GB, free: 7.273 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.6166, allocations: 19.92 kB / 1.403 GB, free: 7.254 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003935/0.617, allocations: 52.02 kB / 1.403 GB, free: 7.203 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.6171, allocations: 51.92 kB / 1.403 GB, free: 7.152 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-05/0.6172, allocations: 12 kB / 1.403 GB, free: 7.141 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003557/0.6175, allocations: 267.2 kB / 1.403 GB, free: 6.879 MB / 0.9011 GB Notification: Performance of sort global known variables: time 3.5e-07/0.6175, allocations: 4 kB / 1.403 GB, free: 6.875 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0005026/0.618, allocations: 91.84 kB / 1.403 GB, free: 6.785 MB / 0.9011 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.0002459/0.6183, allocations: 133.4 kB / 1.403 GB, free: 6.648 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001149/0.6195, allocations: 491 kB / 1.404 GB, free: 6.156 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.6195, allocations: 0 / 1.404 GB, free: 6.156 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.62, allocations: 208.2 kB / 1.404 GB, free: 5.953 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.6205, allocations: 79.41 kB / 1.404 GB, free: 5.879 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.6223, allocations: 0.8818 MB / 1.405 GB, free: 4.965 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/0.6228, allocations: 0.8435 MB / 1.406 GB, free: 4.094 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002574/0.6231, allocations: 51.33 kB / 1.406 GB, free: 4.039 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.6232, allocations: 39.42 kB / 1.406 GB, free: 4 MB / 0.9011 GB Notification: Performance of SimCode: time 7.22e-07/0.6232, allocations: 0 / 1.406 GB, free: 4 MB / 0.9011 GB Notification: Performance of Templates: time 0.01158/0.6348, allocations: 4.824 MB / 1.411 GB, free: 15.23 MB / 0.9167 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