Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.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.RoomMixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conMix.TRoo|conMix.TRooSetHea|conMix.TRooSetCoo|conMix.yHot|conMix.yCol|m_flow.y",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conMix.TRoo|conMix.TRooSetHea|conMix.TRooSetCoo|conMix.yHot|conMix.yCol|m_flow.y",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.347/2.347, allocations: 390.5 MB / 398 MB, free: 10.98 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.001858/0.001858, allocations: 187.6 kB / 491.2 MB, free: 1.613 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.83/1.83, allocations: 221.5 MB / 0.7868 GB, free: 13.28 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.001013/0.001013, allocations: 102.9 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.441e-05/2.443e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.423/0.423, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.214/1.637, allocations: 154 MB / 1.363 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/1.638, allocations: 86.84 kB / 1.363 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02911/1.667, allocations: 12.02 MB / 1.375 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.923e-06/1.667, allocations: 0 / 1.375 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.425e-05/1.667, allocations: 15.34 kB / 1.375 GB, free: 32.51 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: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.001785/1.669, allocations: 1.017 MB / 1.376 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/1.669, allocations: 11.53 kB / 1.376 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/1.669, allocations: 93.16 kB / 1.376 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006745/1.67, allocations: 0.4962 MB / 1.376 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/1.67, allocations: 23.25 kB / 1.376 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.931e-05/1.67, allocations: 42.59 kB / 1.376 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000806/1.671, allocations: 472.1 kB / 1.377 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009872/1.672, allocations: 0.6012 MB / 1.377 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/1.672, allocations: 0 / 1.377 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/1.672, allocations: 0 / 1.377 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/1.672, allocations: 19.56 kB / 1.377 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003018/1.675, allocations: 2.195 MB / 1.379 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008285/1.676, allocations: 0.534 MB / 1.38 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/1.676, allocations: 256.8 kB / 1.38 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.902e-05/1.676, allocations: 19.98 kB / 1.38 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004614/1.677, allocations: 282.9 kB / 1.38 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=57): time 1.743e-06/1.677, allocations: 0 / 1.38 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=57): time 0.0007044/1.677, allocations: 441.7 kB / 1.381 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/1.677, allocations: 136.8 kB / 1.381 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004346/1.678, allocations: 378.1 kB / 1.381 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/1.678, allocations: 36.5 kB / 1.381 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/1.678, allocations: 355.6 kB / 1.382 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.000114/1.678, allocations: 169.8 kB / 1.382 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/1.678, allocations: 3.844 kB / 1.382 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001419/1.678, allocations: 359.6 kB / 1.382 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/1.679, allocations: 163.6 kB / 1.382 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/1.679, allocations: 265.9 kB / 1.383 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002672/1.679, allocations: 180.4 kB / 1.383 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.679, allocations: 0 / 1.383 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007139/1.68, allocations: 0.4932 MB / 1.383 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001872/1.68, allocations: 422.5 kB / 1.384 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.453e-06/1.68, allocations: 0 / 1.384 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/1.68, allocations: 7.875 kB / 1.384 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005886/1.681, allocations: 151 kB / 1.384 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/1.681, allocations: 15.77 kB / 1.384 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/1.681, allocations: 115.8 kB / 1.384 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/1.681, allocations: 18.5 kB / 1.384 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.696e-06/1.681, allocations: 3.844 kB / 1.384 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005739/1.682, allocations: 405.7 kB / 1.384 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.125e-06/1.682, allocations: 0 / 1.384 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.009e-06/1.682, allocations: 11.88 kB / 1.384 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000466/1.682, allocations: 126.7 kB / 1.384 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/1.683, allocations: 7.938 kB / 1.385 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004059/1.683, allocations: 93.09 kB / 1.385 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/1.683, allocations: 19.23 kB / 1.385 GB, free: 28.5 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.TRoo.T_start,TRoo.T_start,$PRE.TRoo.count,TRoo.count,$PRE.m_flow.T_start,m_flow.T_start,$PRE.m_flow.count,m_flow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 2 * 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.0001527/1.683, allocations: 126 kB / 1.385 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-05/1.683, allocations: 57.11 kB / 1.385 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007249/1.684, allocations: 460.5 kB / 1.385 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/1.684, allocations: 3.562 kB / 1.385 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/1.684, allocations: 3.984 kB / 1.385 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/1.684, allocations: 0 / 1.385 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001242/1.685, allocations: 1.135 MB / 1.386 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/1.685, allocations: 0 / 1.386 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005585/1.686, allocations: 149.7 kB / 1.386 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/1.686, allocations: 7.812 kB / 1.386 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.434e-05/1.686, allocations: 7.906 kB / 1.387 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/1.686, allocations: 0 / 1.387 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.686, allocations: 0 / 1.387 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009848/1.687, allocations: 0.7776 MB / 1.387 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-05/1.687, allocations: 139.3 kB / 1.387 GB, free: 27.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.89e-05/1.687, allocations: 3.984 kB / 1.387 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004818/1.688, allocations: 76.89 kB / 1.387 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/1.688, allocations: 53.98 kB / 1.388 GB, free: 27.33 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.424e-05/1.688, allocations: 23.39 kB / 1.388 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003107/1.688, allocations: 296.3 kB / 1.388 GB, free: 27.21 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.8e-07/1.688, allocations: 0 / 1.388 GB, free: 27.21 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006532/1.689, allocations: 250.2 kB / 1.388 GB, free: 27.14 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (conMix.conHea.I.y,conMix.conCoo.I.y,conMix.conFloRat.I.y) * Number of discrete variables: 9 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001922/1.689, allocations: 111.7 kB / 1.388 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001033/1.69, allocations: 0.8748 MB / 1.389 GB, free: 26.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.69, allocations: 384 / 1.389 GB, free: 26.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002712/1.69, allocations: 224.5 kB / 1.389 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005729/1.691, allocations: 101.4 kB / 1.389 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/1.692, allocations: 0.813 MB / 1.39 GB, free: 26.33 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/1.693, allocations: 0.9322 MB / 1.391 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004101/1.693, allocations: 84.59 kB / 1.391 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/1.693, allocations: 45.92 kB / 1.391 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.693, allocations: 0 / 1.391 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of Templates: time 0.01121/1.705, allocations: 6.705 MB / 1.398 GB, free: 22.25 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches