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.372/2.372, allocations: 390.5 MB / 398 MB, free: 11.02 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.001424/0.001424, allocations: 194.8 kB / 491.2 MB, free: 1.598 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.085/2.085, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001168/0.001168, allocations: 103.8 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.296e-05/2.257e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3457, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.257/1.602, allocations: 157 MB / 1.366 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/1.603, allocations: 90.97 kB / 1.366 GB, free: 17.57 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02208/1.625, allocations: 8.732 MB / 1.374 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/1.625, allocations: 0 / 1.374 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.559e-05/1.625, allocations: 15.62 kB / 1.374 GB, free: 32.71 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.001278/1.626, allocations: 0.7511 MB / 1.375 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/1.626, allocations: 11.59 kB / 1.375 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/1.626, allocations: 61.59 kB / 1.375 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/1.627, allocations: 418.8 kB / 1.375 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/1.627, allocations: 18.58 kB / 1.375 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.997e-05/1.627, allocations: 30.91 kB / 1.376 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005797/1.628, allocations: 309.2 kB / 1.376 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000707/1.628, allocations: 455 kB / 1.376 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/1.628, allocations: 3.938 kB / 1.376 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/1.628, allocations: 2.344 kB / 1.376 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/1.628, allocations: 11.66 kB / 1.376 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/1.631, allocations: 1.799 MB / 1.378 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005705/1.631, allocations: 305.4 kB / 1.378 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/1.631, allocations: 125.3 kB / 1.378 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/1.632, allocations: 3.875 kB / 1.378 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003517/1.632, allocations: 218.1 kB / 1.379 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 2.395e-06/1.632, allocations: 0 / 1.379 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0005364/1.632, allocations: 275.2 kB / 1.379 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.309e-05/1.633, allocations: 143.4 kB / 1.379 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/1.633, allocations: 289.1 kB / 1.379 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.549e-05/1.633, allocations: 43.62 kB / 1.379 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/1.633, allocations: 250.3 kB / 1.38 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.585e-05/1.633, allocations: 97.16 kB / 1.38 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.037e-05/1.633, allocations: 0 / 1.38 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001589/1.633, allocations: 349.9 kB / 1.38 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/1.634, allocations: 117.4 kB / 1.38 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/1.634, allocations: 229.7 kB / 1.38 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/1.634, allocations: 125.9 kB / 1.38 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.634, allocations: 0 / 1.38 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005571/1.635, allocations: 395.9 kB / 1.381 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/1.635, allocations: 29.55 kB / 1.381 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/1.635, allocations: 3.844 kB / 1.381 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.091e-05/1.635, allocations: 7.688 kB / 1.381 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/1.635, allocations: 79.78 kB / 1.381 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/1.635, allocations: 9.844 kB / 1.381 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003619/1.635, allocations: 68.7 kB / 1.381 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.708e-05/1.635, allocations: 17.17 kB / 1.381 GB, free: 29.54 MB / 0.8386 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.0001465/1.636, allocations: 144.6 kB / 1.381 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.31e-05/1.636, allocations: 41.19 kB / 1.381 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005595/1.636, allocations: 295 kB / 1.382 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/1.636, allocations: 3.938 kB / 1.382 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/1.636, allocations: 0 / 1.382 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/1.636, allocations: 2.438 kB / 1.382 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/1.637, allocations: 0.8428 MB / 1.382 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/1.637, allocations: 0 / 1.382 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002871/1.638, allocations: 61.89 kB / 1.382 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/1.638, allocations: 0 / 1.382 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/1.638, allocations: 3.875 kB / 1.382 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/1.638, allocations: 6.969 kB / 1.382 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.638, allocations: 4.031 kB / 1.382 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006965/1.638, allocations: 0.5599 MB / 1.383 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/1.639, allocations: 145.3 kB / 1.383 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.093e-05/1.639, allocations: 11.14 kB / 1.383 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003421/1.639, allocations: 49.08 kB / 1.383 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/1.639, allocations: 46.75 kB / 1.383 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/1.639, allocations: 14.73 kB / 1.383 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002038/1.639, allocations: 209.1 kB / 1.383 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/1.639, allocations: 0 / 1.383 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003988/1.64, allocations: 81.19 kB / 1.384 GB, free: 28.59 MB / 0.8386 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.0002187/1.64, allocations: 128.6 kB / 1.384 GB, free: 28.49 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005/1.64, allocations: 359.6 kB / 1.384 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/1.641, allocations: 4.125 kB / 1.384 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002234/1.641, allocations: 151 kB / 1.384 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/1.641, allocations: 66.14 kB / 1.384 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/1.642, allocations: 0.5188 MB / 1.385 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/1.643, allocations: 0.8379 MB / 1.386 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002048/1.643, allocations: 53.25 kB / 1.386 GB, free: 27.46 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/1.643, allocations: 33.14 kB / 1.386 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.643, allocations: 0 / 1.386 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of Templates: time 0.008417/1.651, allocations: 4.28 MB / 1.39 GB, free: 25.45 MB / 0.8386 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