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/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 100.9 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001258, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.778/2.778, allocations: 482.4 MB / 0.7553 GB, free: 6.961 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001923, allocations: 62.62 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8407/0.8426, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004733/0.8474, allocations: 2.937 MB / 1.086 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002776/0.8502, allocations: 1.099 MB / 1.087 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004228/0.8507, allocations: 13.94 kB / 1.087 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.8511, allocations: 78.28 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002459/0.8513, allocations: 86.73 kB / 1.087 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.8525, allocations: 344.6 kB / 1.087 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0009619/0.8534, allocations: 0.7088 MB / 1.088 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000808/0.8542, allocations: 495.2 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003491/0.8546, allocations: 244.4 kB / 1.089 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000362/0.855, allocations: 256.8 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001101/0.8551, allocations: 73.75 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.8553, allocations: 75.86 kB / 1.089 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.8554, allocations: 144.1 kB / 1.089 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002968/0.8557, allocations: 270.2 kB / 1.09 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.8568, allocations: 0.7231 MB / 1.09 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.8568, allocations: 1.312 kB / 1.09 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.184e-06/0.8568, allocations: 0 / 1.09 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.162e-05/0.8568, allocations: 0.6562 kB / 1.09 GB, free: 12.94 MB / 0.8419 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.002099/0.8589, allocations: 0.8775 MB / 1.091 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.859, allocations: 15.17 kB / 1.091 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.8592, allocations: 57.97 kB / 1.091 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008196/0.86, allocations: 440.5 kB / 1.092 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.723e-05/0.8601, allocations: 39.98 kB / 1.092 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.8602, allocations: 50.77 kB / 1.092 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.8615, allocations: 0.5367 MB / 1.092 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.8615, allocations: 4.594 kB / 1.092 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.8616, allocations: 17.52 kB / 1.092 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.8616, allocations: 11.5 kB / 1.092 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.8627, allocations: 400.5 kB / 1.093 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/0.8658, allocations: 1.855 MB / 1.094 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.8669, allocations: 359.8 kB / 1.095 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004695/0.8674, allocations: 172.7 kB / 1.095 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.331e-05/0.8674, allocations: 3.594 kB / 1.095 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006943/0.8681, allocations: 252.9 kB / 1.095 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 5.17e-06/0.8681, allocations: 3.984 kB / 1.095 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.001493/0.8696, allocations: 482.5 kB / 1.096 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.8697, allocations: 89.31 kB / 1.096 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005641/0.8703, allocations: 399.5 kB / 1.096 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.576e-05/0.8704, allocations: 40.94 kB / 1.096 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000239/0.8706, allocations: 253.7 kB / 1.096 GB, free: 9.012 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.8707, allocations: 105 kB / 1.096 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/0.8709, allocations: 106.9 kB / 1.097 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001873/0.8711, allocations: 354.5 kB / 1.097 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004371/0.8716, allocations: 157.1 kB / 1.097 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00056/0.8721, allocations: 269.3 kB / 1.097 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008948/0.873, allocations: 407.8 kB / 1.098 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.8731, allocations: 1.281 kB / 1.098 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001295/0.8744, allocations: 0.5226 MB / 1.098 GB, free: 7.805 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.8744, allocations: 33.84 kB / 1.098 GB, free: 7.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.8744, allocations: 3.406 kB / 1.098 GB, free: 7.773 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/0.8745, allocations: 9.75 kB / 1.098 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003571/0.8748, allocations: 80.22 kB / 1.098 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.147e-05/0.8749, allocations: 10.48 kB / 1.098 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00044/0.8753, allocations: 77.45 kB / 1.098 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.085e-05/0.8754, allocations: 20.53 kB / 1.098 GB, free: 7.707 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.toOn.t_start,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,preHeatCoil.toOff.t_start,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.fire,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOn.oldActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.toOn.enableFire,preHeatCoil.pumOff.oldActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.active,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.preHeaOn.y,TMix.count,$PRE.TMix.count,TMix.T_start,$PRE.TMix.T_start,$whenCondition1,$whenCondition2,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 (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003328/0.8757, allocations: 202.2 kB / 1.099 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.8758, allocations: 47.98 kB / 1.099 GB, free: 7.512 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.8769, allocations: 388.6 kB / 1.099 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.8769, allocations: 4.656 kB / 1.099 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.8769, allocations: 4.656 kB / 1.099 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.8769, allocations: 3.297 kB / 1.099 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.8787, allocations: 0.9483 MB / 1.1 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.8788, allocations: 1.125 kB / 1.1 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.879, allocations: 50.61 kB / 1.1 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.8791, allocations: 2.828 kB / 1.1 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-05/0.8791, allocations: 8.562 kB / 1.1 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.8791, allocations: 3.016 kB / 1.1 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.8791, allocations: 1.062 kB / 1.1 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.8806, allocations: 0.6507 MB / 1.101 GB, free: 6.434 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.8808, allocations: 158.9 kB / 1.101 GB, free: 6.285 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.447e-05/0.8809, allocations: 12.58 kB / 1.101 GB, free: 6.277 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003255/0.8812, allocations: 33.56 kB / 1.101 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.8814, allocations: 49.36 kB / 1.101 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-05/0.8814, allocations: 9.312 kB / 1.101 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003699/0.8818, allocations: 269.8 kB / 1.101 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8818, allocations: 0 / 1.101 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005105/0.8823, allocations: 90.17 kB / 1.101 GB, free: 6.094 MB / 0.8419 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.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002207/0.8825, allocations: 130 kB / 1.101 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001222/0.8838, allocations: 449.5 kB / 1.102 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.8838, allocations: 1.375 kB / 1.102 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005076/0.8843, allocations: 180.9 kB / 1.102 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005811/0.8849, allocations: 92.84 kB / 1.102 GB, free: 5.711 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.8866, allocations: 0.7766 MB / 1.103 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.8872, allocations: 0.83 MB / 1.104 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.8873, allocations: 38.66 kB / 1.104 GB, free: 4.508 MB / 0.8419 GB Notification: Performance of SimCode: time 3.5e-07/0.8873, allocations: 0 / 1.104 GB, free: 4.508 MB / 0.8419 GB Notification: Performance of Templates: time 0.01351/0.9008, allocations: 5.964 MB / 1.11 GB, free: 3.793 MB / 0.8419 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=400 -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches