Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.127/2.127, allocations: 387.1 MB / 399.7 MB, free: 9.438 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.000997/0.000997, allocations: 176 kB / 492.3 MB, free: 0.6094 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.423/1.423, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009853/0.0009851, allocations: 94.86 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.803e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2858, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9852/1.271, allocations: 153.9 MB / 1.363 GB, free: 19.1 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/1.271, allocations: 84.25 kB / 1.363 GB, free: 19.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02811/1.299, allocations: 12.11 MB / 1.375 GB, free: 34.06 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.553e-06/1.3, allocations: 0 / 1.375 GB, free: 34.06 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.163e-05/1.3, allocations: 15.06 kB / 1.375 GB, free: 34.06 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.001619/1.301, allocations: 1.015 MB / 1.376 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/1.301, allocations: 7.656 kB / 1.376 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/1.301, allocations: 93.19 kB / 1.376 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005951/1.302, allocations: 0.5008 MB / 1.376 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/1.302, allocations: 56 kB / 1.376 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.494e-05/1.302, allocations: 73.16 kB / 1.376 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/1.303, allocations: 0.7062 MB / 1.377 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/1.303, allocations: 0 / 1.377 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-05/1.303, allocations: 35.25 kB / 1.377 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/1.303, allocations: 19.38 kB / 1.377 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007522/1.304, allocations: 498.4 kB / 1.377 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002951/1.307, allocations: 2.376 MB / 1.38 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000839/1.308, allocations: 0.54 MB / 1.38 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003488/1.308, allocations: 273.7 kB / 1.381 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.79e-05/1.308, allocations: 12.23 kB / 1.381 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004576/1.309, allocations: 308.8 kB / 1.381 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=57): time 2.355e-06/1.309, allocations: 3.938 kB / 1.381 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=57): time 0.000776/1.31, allocations: 479.1 kB / 1.381 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/1.31, allocations: 136.6 kB / 1.381 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005565/1.31, allocations: 0.5191 MB / 1.382 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/1.31, allocations: 39.7 kB / 1.382 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/1.311, allocations: 338 kB / 1.382 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/1.311, allocations: 189.2 kB / 1.383 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.794e-05/1.311, allocations: 17.56 kB / 1.383 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001371/1.311, allocations: 373.2 kB / 1.383 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002552/1.311, allocations: 175.4 kB / 1.383 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/1.311, allocations: 273.4 kB / 1.383 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/1.312, allocations: 246.2 kB / 1.384 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/1.312, allocations: 0 / 1.384 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007392/1.312, allocations: 0.595 MB / 1.384 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/1.313, allocations: 421.3 kB / 1.385 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/1.313, allocations: 0 / 1.385 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/1.313, allocations: 3.906 kB / 1.385 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006033/1.313, allocations: 153.6 kB / 1.385 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.32e-05/1.313, allocations: 11.8 kB / 1.385 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005436/1.314, allocations: 148.3 kB / 1.385 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/1.314, allocations: 23.2 kB / 1.385 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.708e-06/1.314, allocations: 4.938 kB / 1.385 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006427/1.315, allocations: 0.4977 MB / 1.385 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-06/1.315, allocations: 0 / 1.385 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.839e-06/1.315, allocations: 3.531 kB / 1.385 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000459/1.315, allocations: 132.6 kB / 1.386 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/1.315, allocations: 3.844 kB / 1.386 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/1.316, allocations: 122.7 kB / 1.386 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/1.316, allocations: 18.97 kB / 1.386 GB, free: 29.47 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.0001358/1.316, allocations: 147 kB / 1.386 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.751e-05/1.316, allocations: 74.08 kB / 1.386 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007666/1.317, allocations: 0.5013 MB / 1.386 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/1.317, allocations: 7.688 kB / 1.386 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/1.317, allocations: 0 / 1.386 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/1.317, allocations: 0 / 1.386 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/1.318, allocations: 1.283 MB / 1.388 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/1.318, allocations: 0 / 1.388 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005585/1.318, allocations: 147.6 kB / 1.388 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/1.319, allocations: 0 / 1.388 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.872e-05/1.319, allocations: 14.7 kB / 1.388 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/1.319, allocations: 11.75 kB / 1.388 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/1.319, allocations: 4 kB / 1.388 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009824/1.32, allocations: 0.8322 MB / 1.389 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/1.32, allocations: 157.1 kB / 1.389 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.264e-05/1.32, allocations: 10.28 kB / 1.389 GB, free: 28.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004818/1.32, allocations: 86.23 kB / 1.389 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/1.32, allocations: 56.12 kB / 1.389 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/1.32, allocations: 15.25 kB / 1.389 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004393/1.321, allocations: 428.5 kB / 1.389 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.321, allocations: 0 / 1.389 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006422/1.322, allocations: 258.8 kB / 1.39 GB, free: 28 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.000179/1.322, allocations: 122.6 kB / 1.39 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001013/1.323, allocations: 0.9183 MB / 1.391 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/1.323, allocations: 384 / 1.391 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002898/1.323, allocations: 241 kB / 1.391 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/1.324, allocations: 117.2 kB / 1.391 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/1.325, allocations: 0.8593 MB / 1.392 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/1.325, allocations: 0.9344 MB / 1.393 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004372/1.326, allocations: 113.5 kB / 1.393 GB, free: 26.33 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/1.326, allocations: 42.33 kB / 1.393 GB, free: 26.32 MB / 0.8386 GB Notification: Performance of SimCode: time 8.01e-07/1.326, allocations: 4 kB / 1.393 GB, free: 26.31 MB / 0.8386 GB Notification: Performance of Templates: time 0.01195/1.338, allocations: 8.03 MB / 1.401 GB, free: 22.45 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches