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.421/2.421, allocations: 390.3 MB / 402.8 MB, free: 6.707 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.001258/0.001258, allocations: 180.8 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.677/1.677, allocations: 221.3 MB / 0.7915 GB, free: 5.449 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.0009891/0.0009892, allocations: 99.69 kB / 0.9318 GB, free: 5.754 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.269e-05/3.272e-05, allocations: 0 / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3809, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.093/1.474, allocations: 157.7 MB / 1.373 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/1.474, allocations: 88.11 kB / 1.373 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.02402/1.498, allocations: 8.832 MB / 1.381 GB, free: 4.98 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.913e-06/1.498, allocations: 0 / 1.381 GB, free: 4.98 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.528e-05/1.499, allocations: 24.38 kB / 1.381 GB, free: 4.957 MB / 0.8386 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.001461/1.5, allocations: 0.7385 MB / 1.382 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.259e-05/1.5, allocations: 12.03 kB / 1.382 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/1.5, allocations: 55.34 kB / 1.382 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007155/1.501, allocations: 425.3 kB / 1.383 GB, free: 3.758 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.553e-05/1.501, allocations: 36.94 kB / 1.383 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/1.501, allocations: 50.25 kB / 1.383 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009368/1.502, allocations: 0.5081 MB / 1.383 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/1.502, allocations: 0 / 1.383 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.099e-05/1.502, allocations: 22.44 kB / 1.383 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/1.502, allocations: 12 kB / 1.383 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006031/1.503, allocations: 341.6 kB / 1.384 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002534/1.505, allocations: 1.902 MB / 1.385 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006482/1.506, allocations: 313.5 kB / 1.386 GB, free: 1.266 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/1.506, allocations: 143.4 kB / 1.386 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.326e-05/1.506, allocations: 8 kB / 1.386 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004004/1.507, allocations: 223.7 kB / 1.386 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 2.164e-06/1.507, allocations: 0 / 1.386 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0006452/1.507, allocations: 299 kB / 1.386 GB, free: 0.7539 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/1.508, allocations: 143.8 kB / 1.387 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004491/1.508, allocations: 364.3 kB / 1.387 GB, free: 312 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.337e-05/1.508, allocations: 44.52 kB / 1.387 GB, free: 272 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/1.508, allocations: 254.1 kB / 1.387 GB, free: 80 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.856e-05/1.508, allocations: 92.52 kB / 1.387 GB, free: 0 / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/1.508, allocations: 10.92 kB / 1.387 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001755/1.509, allocations: 351.4 kB / 1.388 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/1.509, allocations: 128.2 kB / 1.388 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/1.509, allocations: 247.4 kB / 1.388 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/1.509, allocations: 158.7 kB / 1.388 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/1.509, allocations: 3.938 kB / 1.388 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007485/1.51, allocations: 464.7 kB / 1.389 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.453e-05/1.51, allocations: 35.11 kB / 1.389 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.51, allocations: 4 kB / 1.389 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/1.51, allocations: 4 kB / 1.389 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003606/1.511, allocations: 92.12 kB / 1.389 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/1.511, allocations: 4 kB / 1.389 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004084/1.511, allocations: 87.39 kB / 1.389 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-05/1.511, allocations: 23.81 kB / 1.389 GB, free: 14.64 MB / 0.8542 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.0001397/1.511, allocations: 147.4 kB / 1.389 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.116e-05/1.511, allocations: 39.53 kB / 1.389 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000577/1.512, allocations: 324.8 kB / 1.389 GB, free: 14.24 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/1.512, allocations: 4 kB / 1.389 GB, free: 14.24 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/1.512, allocations: 4 kB / 1.389 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/1.512, allocations: 7.984 kB / 1.389 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/1.513, allocations: 0.9285 MB / 1.39 GB, free: 13.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/1.513, allocations: 4 kB / 1.39 GB, free: 13.47 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/1.514, allocations: 59.05 kB / 1.39 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/1.514, allocations: 4 kB / 1.39 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.798e-05/1.514, allocations: 3.5 kB / 1.39 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/1.514, allocations: 15.89 kB / 1.39 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.514, allocations: 0 / 1.39 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008097/1.514, allocations: 0.5882 MB / 1.391 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/1.515, allocations: 150 kB / 1.391 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.868e-05/1.515, allocations: 18.3 kB / 1.391 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003521/1.515, allocations: 53.95 kB / 1.391 GB, free: 12.72 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/1.515, allocations: 48.42 kB / 1.391 GB, free: 12.68 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/1.515, allocations: 11.25 kB / 1.391 GB, free: 12.68 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002806/1.516, allocations: 266.5 kB / 1.391 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.4e-07/1.516, allocations: 0 / 1.391 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004089/1.516, allocations: 93.28 kB / 1.391 GB, free: 12.39 MB / 0.8542 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.0002254/1.516, allocations: 129.1 kB / 1.392 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006023/1.517, allocations: 380.2 kB / 1.392 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.517, allocations: 0 / 1.392 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002633/1.517, allocations: 157.4 kB / 1.392 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/1.518, allocations: 97.3 kB / 1.392 GB, free: 11.81 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/1.519, allocations: 0.5292 MB / 1.393 GB, free: 11.33 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/1.519, allocations: 0.8432 MB / 1.394 GB, free: 10.46 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002166/1.519, allocations: 51.38 kB / 1.394 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/1.519, allocations: 39.42 kB / 1.394 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of SimCode: time 7.92e-07/1.519, allocations: 0 / 1.394 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of Templates: time 0.00997/1.529, allocations: 4.834 MB / 1.398 GB, free: 5.594 MB / 0.8542 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