Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.0008424/0.0008424, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.94/1.94, allocations: 205.4 MB / 222.1 MB, free: 5.895 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6593/0.6593, allocations: 95.63 MB / 366 MB, free: 10.41 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005966/0.0005967, allocations: 16 kB / 446.9 MB, free: 9.41 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5124/0.513, allocations: 70.33 MB / 0.5051 GB, free: 16.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.003517/0.5166, allocations: 3.435 MB / 0.5084 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002738/0.5194, allocations: 1.774 MB / 0.5102 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003778/0.5198, allocations: 27.81 kB / 0.5102 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002997/0.5201, allocations: 87.11 kB / 0.5103 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005747/0.5207, allocations: 182.8 kB / 0.5104 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008054/0.5215, allocations: 359 kB / 0.5108 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007081/0.5222, allocations: 0.9023 MB / 0.5117 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.5227, allocations: 305.2 kB / 0.512 GB, free: 9.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002559/0.5229, allocations: 242.6 kB / 0.5122 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002739/0.5232, allocations: 274.2 kB / 0.5124 GB, free: 8.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.739e-05/0.5233, allocations: 24 kB / 0.5125 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.5236, allocations: 139.9 kB / 0.5126 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.5237, allocations: 111.3 kB / 0.5127 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.5238, allocations: 161.3 kB / 0.5129 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006195/0.5244, allocations: 0.8903 MB / 0.5137 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.5244, allocations: 0 / 0.5137 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5245, allocations: 8 kB / 0.5137 GB, free: 7.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.5245, allocations: 0 / 0.5137 GB, free: 7.559 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001797/0.5263, allocations: 1.152 MB / 0.5149 GB, free: 6.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.5263, allocations: 11.98 kB / 0.5149 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.5265, allocations: 102.8 kB / 0.515 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007293/0.5272, allocations: 0.6124 MB / 0.5156 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.834e-05/0.5273, allocations: 53.25 kB / 0.5156 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.781e-05/0.5274, allocations: 59.89 kB / 0.5157 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.5287, allocations: 0.7436 MB / 0.5164 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.5287, allocations: 3.938 kB / 0.5164 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.402e-05/0.5288, allocations: 28 kB / 0.5164 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.5288, allocations: 12 kB / 0.5164 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.5301, allocations: 0.6766 MB / 0.5171 GB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.5326, allocations: 2.287 MB / 0.5193 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.5342, allocations: 0.7925 MB / 0.5201 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006038/0.5348, allocations: 317.4 kB / 0.5204 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001726/0.5366, allocations: 2.004 MB / 0.5224 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001026/0.5376, allocations: 405.2 kB / 0.5228 GB, free: 13.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=47): time 2.796e-06/0.5376, allocations: 0 / 0.5228 GB, free: 13.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.002528/0.5402, allocations: 0.9744 MB / 0.5237 GB, free: 12.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.5403, allocations: 141 kB / 0.5238 GB, free: 12.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009661/0.5413, allocations: 0.6764 MB / 0.5245 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/0.5414, allocations: 37.7 kB / 0.5245 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003364/0.5417, allocations: 368.9 kB / 0.5249 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.5419, allocations: 161.8 kB / 0.5251 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.5419, allocations: 8 kB / 0.5251 GB, free: 11.19 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.5421, allocations: 325.9 kB / 0.5254 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007733/0.5428, allocations: 297 kB / 0.5257 GB, free: 10.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008096/0.5437, allocations: 402.4 kB / 0.526 GB, free: 10.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008003/0.5445, allocations: 360.1 kB / 0.5264 GB, free: 9.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5445, allocations: 0 / 0.5264 GB, free: 9.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001776/0.5463, allocations: 0.846 MB / 0.5272 GB, free: 8.926 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001893/0.5465, allocations: 184.5 kB / 0.5274 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.5465, allocations: 8.031 kB / 0.5274 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.5465, allocations: 4 kB / 0.5274 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.5471, allocations: 139.8 kB / 0.5275 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.5471, allocations: 7.938 kB / 0.5275 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005413/0.5477, allocations: 115.3 kB / 0.5276 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.872e-05/0.5478, allocations: 19.98 kB / 0.5277 GB, free: 8.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.5478, allocations: 7.953 kB / 0.5277 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001409/0.5492, allocations: 0.6655 MB / 0.5283 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-06/0.5492, allocations: 0 / 0.5283 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.315e-06/0.5492, allocations: 4 kB / 0.5283 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004557/0.5497, allocations: 127.9 kB / 0.5284 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.5497, allocations: 4 kB / 0.5284 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004254/0.5501, allocations: 95.47 kB / 0.5285 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/0.5502, allocations: 16.05 kB / 0.5286 GB, free: 7.488 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($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,conMix.conFloRat.I.local_reset,conMix.conCoo.I.local_reset,conMix.conHea.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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.0004876/0.5507, allocations: 304.9 kB / 0.5288 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.5508, allocations: 86.91 kB / 0.5289 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.5525, allocations: 0.7463 MB / 0.5297 GB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.5525, allocations: 4 kB / 0.5297 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.5525, allocations: 4 kB / 0.5297 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.5525, allocations: 3.984 kB / 0.5297 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008837/0.5534, allocations: 0.7238 MB / 0.5304 GB, free: 5.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5534, allocations: 0 / 0.5304 GB, free: 5.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005376/0.554, allocations: 127.8 kB / 0.5305 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.554, allocations: 4 kB / 0.5305 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.036e-05/0.554, allocations: 15.94 kB / 0.5305 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.389e-06/0.5541, allocations: 4 kB / 0.5305 GB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5541, allocations: 4 kB / 0.5305 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.5564, allocations: 1.112 MB / 0.5316 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002675/0.5566, allocations: 215.9 kB / 0.5318 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.28e-05/0.5567, allocations: 15.94 kB / 0.5318 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.5572, allocations: 83.88 kB / 0.5319 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.5573, allocations: 48.36 kB / 0.532 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.5573, allocations: 12 kB / 0.532 GB, free: 3.887 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005909/0.5579, allocations: 475 kB / 0.5324 GB, free: 3.426 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5579, allocations: 0 / 0.5324 GB, free: 3.426 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007189/0.5587, allocations: 243.3 kB / 0.5327 GB, free: 3.188 MB / 398.1 MB 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 (TRoo.count,m_flow.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * 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.0002503/0.5589, allocations: 135.2 kB / 0.5328 GB, free: 3.043 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002415/0.5614, allocations: 1.201 MB / 0.534 GB, free: 1.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5614, allocations: 0 / 0.534 GB, free: 1.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007365/0.5621, allocations: 342.3 kB / 0.5343 GB, free: 1.461 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008589/0.563, allocations: 167.9 kB / 0.5344 GB, free: 1.301 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.5655, allocations: 1.474 MB / 0.5359 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005403/0.5661, allocations: 0.9263 MB / 0.5368 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004016/0.5665, allocations: 88.95 kB / 0.5369 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.5666, allocations: 43.44 kB / 0.5369 GB, free: 14.71 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5666, allocations: 0 / 0.5369 GB, free: 14.71 MB / 414.1 MB Notification: Performance of Templates: time 0.01644/0.5831, allocations: 8.339 MB / 0.5451 GB, free: 6.449 MB / 414.1 MB make -j1 -f Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) Environment - environmentSimulation: