Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.431/1.431, allocations: 249.5 MB / 257 MB, free: 6.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 176.5 kB / 316.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.3 MB / 0.5671 GB, free: 15.83 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000993/0.0009931, allocations: 95.06 kB / 0.6714 GB, free: 4.949 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.343e-05/1.345e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.214, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7297/0.9438, allocations: 139.7 MB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.9441, allocations: 88.56 kB / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.02149/0.9656, allocations: 8.718 MB / 1.03 GB, free: 6.941 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9656, allocations: 0 / 1.03 GB, free: 6.941 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.101e-05/0.9657, allocations: 8.875 kB / 1.03 GB, free: 6.934 MB / 0.6511 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.001234/0.9669, allocations: 0.7363 MB / 1.031 GB, free: 6.184 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.967, allocations: 8.031 kB / 1.031 GB, free: 6.176 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.9671, allocations: 63.25 kB / 1.031 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005775/0.9677, allocations: 425.3 kB / 1.031 GB, free: 5.73 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.9677, allocations: 16 kB / 1.031 GB, free: 5.715 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.932e-05/0.9678, allocations: 34.67 kB / 1.031 GB, free: 5.684 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005341/0.9683, allocations: 301.7 kB / 1.032 GB, free: 5.516 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006917/0.969, allocations: 461.6 kB / 1.032 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.969, allocations: 0 / 1.032 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.868e-05/0.9691, allocations: 4 kB / 1.032 GB, free: 5.145 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.9691, allocations: 12 kB / 1.032 GB, free: 5.133 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.9712, allocations: 1.792 MB / 1.034 GB, free: 3.621 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/0.9718, allocations: 275.5 kB / 1.034 GB, free: 3.445 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.972, allocations: 122.7 kB / 1.034 GB, free: 3.371 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.972, allocations: 8 kB / 1.034 GB, free: 3.363 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003035/0.9723, allocations: 181.2 kB / 1.035 GB, free: 3.219 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 3.186e-06/0.9723, allocations: 7.922 kB / 1.035 GB, free: 3.211 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0004841/0.9728, allocations: 269 kB / 1.035 GB, free: 3.008 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/0.9729, allocations: 106.8 kB / 1.035 GB, free: 2.879 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.9732, allocations: 295.3 kB / 1.035 GB, free: 2.652 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.567e-05/0.9733, allocations: 33.08 kB / 1.035 GB, free: 2.617 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.9734, allocations: 257.2 kB / 1.035 GB, free: 2.41 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.893e-05/0.9735, allocations: 92.97 kB / 1.036 GB, free: 2.332 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.9735, allocations: 0 / 1.036 GB, free: 2.332 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001604/0.9737, allocations: 351.3 kB / 1.036 GB, free: 1.996 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.9739, allocations: 117.7 kB / 1.036 GB, free: 1.934 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.9742, allocations: 231.9 kB / 1.036 GB, free: 1.715 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.9744, allocations: 116.2 kB / 1.036 GB, free: 1.645 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.9744, allocations: 0 / 1.036 GB, free: 1.645 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005735/0.975, allocations: 385.2 kB / 1.037 GB, free: 1.352 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.975, allocations: 37.69 kB / 1.037 GB, free: 1.309 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.975, allocations: 4 kB / 1.037 GB, free: 1.305 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.9751, allocations: 4 kB / 1.037 GB, free: 1.301 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003433/0.9754, allocations: 85.38 kB / 1.037 GB, free: 1.223 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.9754, allocations: 8 kB / 1.037 GB, free: 1.215 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.9758, allocations: 59.83 kB / 1.037 GB, free: 1.156 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-05/0.9759, allocations: 18.81 kB / 1.037 GB, free: 1.141 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,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 (57): * Single equations (assignments): 56 * 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.0001384/0.976, allocations: 141 kB / 1.037 GB, free: 0.9961 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.243e-05/0.9761, allocations: 43.45 kB / 1.037 GB, free: 0.9531 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005304/0.9766, allocations: 306.8 kB / 1.037 GB, free: 0.7305 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.9766, allocations: 4 kB / 1.037 GB, free: 0.7266 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.9766, allocations: 0 / 1.037 GB, free: 0.7266 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.9766, allocations: 0 / 1.037 GB, free: 0.7266 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.9777, allocations: 0.8294 MB / 1.038 GB, free: 56 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.9777, allocations: 0 / 1.038 GB, free: 56 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003085/0.978, allocations: 63.88 kB / 1.038 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.978, allocations: 0 / 1.038 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.9781, allocations: 4 kB / 1.038 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.9781, allocations: 0 / 1.038 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.9781, allocations: 0 / 1.038 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006979/0.9788, allocations: 0.5435 MB / 1.039 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000143/0.9789, allocations: 151.6 kB / 1.039 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.405e-05/0.979, allocations: 0 / 1.039 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003468/0.9794, allocations: 51.39 kB / 1.039 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.9795, allocations: 50.31 kB / 1.039 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.9795, allocations: 11.38 kB / 1.039 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001875/0.9797, allocations: 210.2 kB / 1.039 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9797, allocations: 0 / 1.039 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003764/0.9801, allocations: 91.69 kB / 1.039 GB, free: 15.08 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (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: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001966/0.9803, allocations: 125.2 kB / 1.039 GB, free: 14.95 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0005094/0.9808, allocations: 349.8 kB / 1.04 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.9808, allocations: 0 / 1.04 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.9811, allocations: 138.5 kB / 1.04 GB, free: 14.61 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/0.9815, allocations: 76.92 kB / 1.04 GB, free: 14.55 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000997/0.9825, allocations: 0.5114 MB / 1.04 GB, free: 14.07 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.9829, allocations: 0.8467 MB / 1.041 GB, free: 13.2 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001991/0.9831, allocations: 47.25 kB / 1.041 GB, free: 13.16 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.9832, allocations: 31.44 kB / 1.041 GB, free: 13.13 MB / 0.6667 GB Notification: Performance of SimCode: time 2.41e-07/0.9832, allocations: 0 / 1.041 GB, free: 13.13 MB / 0.6667 GB Notification: Performance of Templates: time 0.008461/0.9917, allocations: 4.271 MB / 1.046 GB, free: 8.918 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches