Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 196.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.787/2.787, allocations: 472.6 MB / 0.7451 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 62.42 kB / 0.912 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.4005, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.005445/0.406, allocations: 3.925 MB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00243/0.4084, allocations: 1.301 MB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004842/0.4089, allocations: 15.94 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003782/0.4094, allocations: 134.6 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003009/0.4097, allocations: 122.8 kB / 1.074 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006711/0.4104, allocations: 355.5 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008743/0.4113, allocations: 1.025 MB / 1.075 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007211/0.412, allocations: 0.5387 MB / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003594/0.4124, allocations: 374.6 kB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003377/0.4127, allocations: 402 kB / 1.076 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.4129, allocations: 120 kB / 1.076 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.413, allocations: 120 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.4132, allocations: 223.3 kB / 1.077 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003369/0.4135, allocations: 449.7 kB / 1.077 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009624/0.4145, allocations: 1.25 MB / 1.078 GB, free: 12 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.4145, allocations: 0 / 1.078 GB, free: 12 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4145, allocations: 0 / 1.078 GB, free: 12 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.4145, allocations: 0 / 1.078 GB, free: 12 kB / 0.8262 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.002293/0.4168, allocations: 1.22 MB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.4169, allocations: 20.02 kB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.417, allocations: 87.91 kB / 1.08 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006477/0.4177, allocations: 0.5305 MB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.334e-05/0.4177, allocations: 58.38 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.4179, allocations: 72.38 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.4194, allocations: 0.8114 MB / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.4194, allocations: 4 kB / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.03e-05/0.4195, allocations: 28 kB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.4195, allocations: 20 kB / 1.081 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.4212, allocations: 0.6753 MB / 1.082 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003184/0.4244, allocations: 2.469 MB / 1.084 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.4262, allocations: 0.7047 MB / 1.085 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008058/0.427, allocations: 358.2 kB / 1.085 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 5.371e-05/0.4271, allocations: 8.422 kB / 1.085 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009979/0.4281, allocations: 373.2 kB / 1.085 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=51): time 3.747e-06/0.4281, allocations: 3.938 kB / 1.085 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of matching and sorting (n=51): time 0.002393/0.4305, allocations: 0.8533 MB / 1.086 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/0.4306, allocations: 137 kB / 1.086 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006494/0.4313, allocations: 0.5654 MB / 1.087 GB, free: 6.762 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.66e-05/0.4313, allocations: 45.7 kB / 1.087 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.4316, allocations: 356.2 kB / 1.087 GB, free: 6.355 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.4317, allocations: 173.5 kB / 1.088 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.4319, allocations: 106.2 kB / 1.088 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.4321, allocations: 374.7 kB / 1.088 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007873/0.4329, allocations: 283 kB / 1.088 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008568/0.4337, allocations: 417 kB / 1.089 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.4353, allocations: 0.6624 MB / 1.089 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.4353, allocations: 4 kB / 1.089 GB, free: 4.258 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001856/0.4372, allocations: 0.8062 MB / 1.09 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.007e-05/0.4372, allocations: 63.41 kB / 1.09 GB, free: 3.359 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.4372, allocations: 4 kB / 1.09 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.4373, allocations: 4 kB / 1.09 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006354/0.4379, allocations: 139.8 kB / 1.09 GB, free: 3.215 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.4379, allocations: 7.984 kB / 1.09 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005754/0.4385, allocations: 127.1 kB / 1.09 GB, free: 3.082 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/0.4386, allocations: 31.94 kB / 1.09 GB, free: 3.051 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000806/0.4394, allocations: 389.1 kB / 1.091 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000709/0.4401, allocations: 361.2 kB / 1.091 GB, free: 2.262 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001273/0.4414, allocations: 0.5688 MB / 1.092 GB, free: 1.645 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.585e-06/0.4414, allocations: 0 / 1.092 GB, free: 1.645 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001525/0.4429, allocations: 0.7125 MB / 1.092 GB, free: 0.918 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/0.443, allocations: 60.34 kB / 1.092 GB, free: 0.8477 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.443, allocations: 4 kB / 1.092 GB, free: 0.8438 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.174e-06/0.443, allocations: 4 kB / 1.092 GB, free: 0.8398 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005109/0.4435, allocations: 119.8 kB / 1.093 GB, free: 0.7227 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.4435, allocations: 7.984 kB / 1.093 GB, free: 0.7148 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00051/0.4441, allocations: 107.5 kB / 1.093 GB, free: 0.6094 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.357e-05/0.4441, allocations: 16.16 kB / 1.093 GB, free: 0.5938 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 13 (conMix.conFloRat.con1.y,conMix.conCoo.con1.y,conMix.conHea.con1.y,m_flow.count,$PRE.m_flow.count,m_flow.T_start,$PRE.m_flow.T_start,TRoo.count,$PRE.TRoo.count,TRoo.T_start,$PRE.TRoo.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002289/0.4443, allocations: 217.1 kB / 1.093 GB, free: 384 kB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.437e-05/0.4444, allocations: 67.23 kB / 1.093 GB, free: 316 kB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001763/0.4462, allocations: 0.6509 MB / 1.094 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.4462, allocations: 11.92 kB / 1.094 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.497e-06/0.4462, allocations: 3.984 kB / 1.094 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.4463, allocations: 0 / 1.094 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008528/0.4471, allocations: 0.7159 MB / 1.094 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4471, allocations: 0 / 1.094 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005664/0.4477, allocations: 123.8 kB / 1.094 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.4477, allocations: 4 kB / 1.094 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.114e-05/0.4478, allocations: 15.98 kB / 1.094 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.4478, allocations: 0 / 1.094 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.4478, allocations: 3.984 kB / 1.094 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.4502, allocations: 0.9834 MB / 1.095 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.4503, allocations: 144.2 kB / 1.096 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.46e-05/0.4504, allocations: 12 kB / 1.096 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/0.4509, allocations: 71.91 kB / 1.096 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.451, allocations: 40.39 kB / 1.096 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.451, allocations: 19.98 kB / 1.096 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004704/0.4515, allocations: 398.8 kB / 1.096 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4515, allocations: 4 kB / 1.096 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006394/0.4522, allocations: 258.9 kB / 1.096 GB, free: 12.78 MB / 0.8575 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: 6 ($whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001723/0.4524, allocations: 123.1 kB / 1.096 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002693/0.4551, allocations: 1.167 MB / 1.098 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.4551, allocations: 4 kB / 1.098 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007828/0.4559, allocations: 306.9 kB / 1.098 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006267/0.4565, allocations: 118.2 kB / 1.098 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.4587, allocations: 1.182 MB / 1.099 GB, free: 9.797 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.4591, allocations: 0.9101 MB / 1.1 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003214/0.4595, allocations: 76.89 kB / 1.1 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001557/0.4596, allocations: 55.42 kB / 1.1 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of SimCode: time 4.61e-07/0.4596, allocations: 0 / 1.1 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of Templates: time 0.01389/0.4735, allocations: 7.726 MB / 1.108 GB, free: 1.066 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1)