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.001644/0.001644, allocations: 108 kB / 15.61 MB, free: 152 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.001951/0.001951, allocations: 194.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.671/1.671, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.6888/0.6888, allocations: 95.48 MB / 365.2 MB, free: 9.887 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.001584/0.001584, allocations: 71.89 kB / 445.3 MB, free: 9.609 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4035/0.4051, allocations: 69.08 MB / 0.5024 GB, free: 17.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004532/0.4097, allocations: 4.075 MB / 0.5063 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003284/0.413, allocations: 1.879 MB / 0.5082 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001323/0.4144, allocations: 27.81 kB / 0.5082 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005813/0.415, allocations: 138.6 kB / 0.5083 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001237/0.4162, allocations: 250.1 kB / 0.5086 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.4177, allocations: 0.5416 MB / 0.5091 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.419, allocations: 1.066 MB / 0.5102 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007675/0.4197, allocations: 448.2 kB / 0.5106 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004923/0.4202, allocations: 366.4 kB / 0.5109 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.4206, allocations: 390 kB / 0.5113 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.4207, allocations: 100 kB / 0.5114 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003881/0.4211, allocations: 231.9 kB / 0.5116 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.4212, allocations: 207.2 kB / 0.5118 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002859/0.4215, allocations: 437.6 kB / 0.5122 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000877/0.4224, allocations: 1.184 MB / 0.5134 GB, free: 6.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.4224, allocations: 0 / 0.5134 GB, free: 6.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4224, allocations: 0 / 0.5134 GB, free: 6.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.4225, allocations: 0 / 0.5134 GB, free: 6.168 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.001983/0.4244, allocations: 1.284 MB / 0.5146 GB, free: 4.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.4245, allocations: 11.98 kB / 0.5147 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.4247, allocations: 99.72 kB / 0.5147 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006768/0.4253, allocations: 0.6481 MB / 0.5154 GB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.4254, allocations: 45.25 kB / 0.5154 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.179e-05/0.4255, allocations: 52 kB / 0.5155 GB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.4267, allocations: 0.7201 MB / 0.5162 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.4267, allocations: 0 / 0.5162 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.4267, allocations: 24 kB / 0.5162 GB, free: 3.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.4268, allocations: 16 kB / 0.5162 GB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.4281, allocations: 0.614 MB / 0.5168 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.4305, allocations: 2.26 MB / 0.519 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.4323, allocations: 0.7078 MB / 0.5197 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007417/0.4331, allocations: 281.4 kB / 0.52 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001716/0.4348, allocations: 2.008 MB / 0.5219 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.4358, allocations: 373 kB / 0.5223 GB, free: 12.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=47): time 2.394e-06/0.4358, allocations: 0 / 0.5223 GB, free: 12.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.00242/0.4383, allocations: 0.8766 MB / 0.5232 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.573e-05/0.4384, allocations: 140.9 kB / 0.5233 GB, free: 11.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008477/0.4392, allocations: 0.6727 MB / 0.5239 GB, free: 10.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.94e-05/0.4393, allocations: 37.7 kB / 0.524 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/0.4396, allocations: 368.9 kB / 0.5243 GB, free: 10.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.4398, allocations: 157.8 kB / 0.5245 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.4399, allocations: 94.14 kB / 0.5246 GB, free: 9.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4401, allocations: 322 kB / 0.5249 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007454/0.4408, allocations: 274.9 kB / 0.5251 GB, free: 9.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008098/0.4416, allocations: 358.4 kB / 0.5255 GB, free: 8.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001495/0.4432, allocations: 0.6228 MB / 0.5261 GB, free: 8.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.4432, allocations: 4 kB / 0.5261 GB, free: 8.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001795/0.445, allocations: 0.7716 MB / 0.5268 GB, free: 7.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.453e-05/0.445, allocations: 67.33 kB / 0.5269 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4451, allocations: 0 / 0.5269 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.4451, allocations: 4 kB / 0.5269 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005959/0.4457, allocations: 124 kB / 0.527 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.4457, allocations: 7.938 kB / 0.527 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005516/0.4463, allocations: 99.3 kB / 0.5271 GB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.003e-05/0.4463, allocations: 16 kB / 0.5272 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007979/0.4471, allocations: 397.1 kB / 0.5275 GB, free: 6.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006644/0.4478, allocations: 318.5 kB / 0.5278 GB, free: 6.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001201/0.449, allocations: 0.5526 MB / 0.5284 GB, free: 5.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.004e-06/0.449, allocations: 0 / 0.5284 GB, free: 5.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001634/0.4507, allocations: 0.6975 MB / 0.5291 GB, free: 5.152 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.123e-05/0.4507, allocations: 59.59 kB / 0.5291 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.4507, allocations: 8 kB / 0.5291 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.302e-06/0.4507, allocations: 3.938 kB / 0.5291 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004803/0.4512, allocations: 107.8 kB / 0.5292 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.4512, allocations: 4 kB / 0.5292 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004961/0.4517, allocations: 75.53 kB / 0.5293 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.4518, allocations: 16 kB / 0.5293 GB, free: 4.871 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 (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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001989/0.452, allocations: 216.1 kB / 0.5295 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.4521, allocations: 82.98 kB / 0.5296 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/0.4539, allocations: 0.6759 MB / 0.5303 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4539, allocations: 4 kB / 0.5303 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.4539, allocations: 4 kB / 0.5303 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.4539, allocations: 7.984 kB / 0.5303 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008034/0.4547, allocations: 0.7315 MB / 0.531 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.4548, allocations: 0 / 0.531 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005515/0.4553, allocations: 103.8 kB / 0.5311 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.4553, allocations: 3.938 kB / 0.5311 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.681e-05/0.4554, allocations: 15.98 kB / 0.5311 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.4554, allocations: 4 kB / 0.5311 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4554, allocations: 0 / 0.5311 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.4578, allocations: 1.018 MB / 0.5321 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002977/0.4581, allocations: 212.3 kB / 0.5323 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.415e-05/0.4582, allocations: 19.94 kB / 0.5323 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004688/0.4587, allocations: 51.92 kB / 0.5324 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.4588, allocations: 52.36 kB / 0.5324 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.4589, allocations: 12 kB / 0.5324 GB, free: 1.559 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006443/0.4595, allocations: 487 kB / 0.5329 GB, free: 1.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4596, allocations: 0 / 0.5329 GB, free: 1.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000742/0.4603, allocations: 247.2 kB / 0.5331 GB, free: 0.8477 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 (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.0003037/0.4606, allocations: 139.6 kB / 0.5333 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.4633, allocations: 1.13 MB / 0.5344 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4633, allocations: 0 / 0.5344 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007742/0.4641, allocations: 306.3 kB / 0.5347 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008988/0.465, allocations: 197.7 kB / 0.5349 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.4679, allocations: 1.26 MB / 0.5361 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006708/0.4686, allocations: 0.926 MB / 0.537 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004828/0.4691, allocations: 88.95 kB / 0.5371 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.4693, allocations: 51.42 kB / 0.5371 GB, free: 12.66 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4693, allocations: 0 / 0.5371 GB, free: 12.66 MB / 414.1 MB Notification: Performance of Templates: time 0.01983/0.4891, allocations: 9.286 MB / 0.5462 GB, free: 3.453 MB / 414.1 MB make -j1 -f Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (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)