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.001281/0.001281, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001588/0.001587, allocations: 195.3 kB / 16.25 MB, free: 6.629 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.721/1.721, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.632/0.632, allocations: 95.47 MB / 364.9 MB, free: 10.08 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.001671/0.001672, allocations: 67.89 kB / 444.9 MB, free: 9.973 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4206, allocations: 69.06 MB / 0.5019 GB, free: 17.56 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004204/0.4249, allocations: 4.078 MB / 0.5059 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00238/0.4273, allocations: 1.836 MB / 0.5077 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004025/0.4277, allocations: 27.88 kB / 0.5077 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003236/0.4281, allocations: 95.11 kB / 0.5078 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005533/0.4286, allocations: 210.8 kB / 0.508 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007844/0.4294, allocations: 0.4907 MB / 0.5085 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006726/0.4301, allocations: 1.082 MB / 0.5095 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004402/0.4305, allocations: 444.2 kB / 0.5099 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.4308, allocations: 366.3 kB / 0.5103 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.431, allocations: 390 kB / 0.5107 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.636e-05/0.4311, allocations: 104 kB / 0.5108 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.4314, allocations: 223.8 kB / 0.511 GB, free: 8.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.4315, allocations: 211.2 kB / 0.5112 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.4317, allocations: 433.6 kB / 0.5116 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00068/0.4324, allocations: 1.188 MB / 0.5127 GB, free: 6.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4324, allocations: 0 / 0.5127 GB, free: 6.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.4324, allocations: 0 / 0.5127 GB, free: 6.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.4324, allocations: 0 / 0.5127 GB, free: 6.379 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.4344, allocations: 1.284 MB / 0.514 GB, free: 5.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.4345, allocations: 11.62 kB / 0.514 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.4346, allocations: 99.72 kB / 0.5141 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006527/0.4353, allocations: 0.6442 MB / 0.5147 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.4353, allocations: 49.25 kB / 0.5148 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.15e-05/0.4354, allocations: 52 kB / 0.5148 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.4366, allocations: 0.72 MB / 0.5155 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.4366, allocations: 8 kB / 0.5155 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.687e-05/0.4367, allocations: 24 kB / 0.5156 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.4367, allocations: 15.98 kB / 0.5156 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.438, allocations: 0.614 MB / 0.5162 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.4402, allocations: 2.256 MB / 0.5184 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.4419, allocations: 0.7039 MB / 0.5191 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006806/0.4426, allocations: 293.4 kB / 0.5193 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001541/0.4441, allocations: 2 MB / 0.5213 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008653/0.445, allocations: 369.1 kB / 0.5217 GB, free: 12.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=47): time 2.304e-06/0.445, allocations: 0 / 0.5217 GB, free: 12.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.002264/0.4473, allocations: 0.8766 MB / 0.5225 GB, free: 11.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.781e-05/0.4474, allocations: 144.9 kB / 0.5226 GB, free: 11.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008964/0.4483, allocations: 0.6688 MB / 0.5233 GB, free: 10.81 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.366e-05/0.4484, allocations: 37.7 kB / 0.5233 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003296/0.4487, allocations: 372.9 kB / 0.5237 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.4489, allocations: 153.8 kB / 0.5238 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.449, allocations: 98.14 kB / 0.5239 GB, free: 10.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.4492, allocations: 322 kB / 0.5242 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007322/0.4499, allocations: 274.9 kB / 0.5245 GB, free: 9.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/0.4507, allocations: 362.5 kB / 0.5248 GB, free: 9.176 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.4522, allocations: 0.6228 MB / 0.5255 GB, free: 8.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.4522, allocations: 0 / 0.5255 GB, free: 8.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001739/0.4539, allocations: 0.7639 MB / 0.5262 GB, free: 7.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.526e-05/0.454, allocations: 71.33 kB / 0.5263 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.454, allocations: 4 kB / 0.5263 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.4541, allocations: 4 kB / 0.5263 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005601/0.4546, allocations: 120 kB / 0.5264 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.4546, allocations: 7.938 kB / 0.5264 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000535/0.4552, allocations: 95.3 kB / 0.5265 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.534e-05/0.4552, allocations: 16 kB / 0.5265 GB, free: 7.414 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008306/0.4561, allocations: 397.1 kB / 0.5269 GB, free: 7.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006276/0.4567, allocations: 318.5 kB / 0.5272 GB, free: 6.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001135/0.4579, allocations: 0.5487 MB / 0.5277 GB, free: 6.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.545e-06/0.4579, allocations: 0 / 0.5277 GB, free: 6.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001499/0.4594, allocations: 0.7053 MB / 0.5284 GB, free: 5.371 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.163e-05/0.4594, allocations: 55.41 kB / 0.5285 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.4594, allocations: 8.125 kB / 0.5285 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.296e-06/0.4595, allocations: 11.94 kB / 0.5285 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004629/0.4599, allocations: 107.8 kB / 0.5286 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.4599, allocations: 4 kB / 0.5286 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004778/0.4604, allocations: 71.53 kB / 0.5287 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.4605, allocations: 20 kB / 0.5287 GB, free: 5.086 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.0002442/0.4607, allocations: 220.1 kB / 0.5289 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.4608, allocations: 83.03 kB / 0.529 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/0.4625, allocations: 0.6799 MB / 0.5296 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.4626, allocations: 7.984 kB / 0.5296 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4626, allocations: 0 / 0.5296 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.4626, allocations: 0 / 0.5296 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008827/0.4635, allocations: 0.7354 MB / 0.5304 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.4635, allocations: 0 / 0.5304 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005342/0.464, allocations: 103.9 kB / 0.5305 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.464, allocations: 7.938 kB / 0.5305 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/0.4641, allocations: 11.98 kB / 0.5305 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.4641, allocations: 4 kB / 0.5305 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4641, allocations: 0 / 0.5305 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002251/0.4664, allocations: 1.011 MB / 0.5315 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.4666, allocations: 216.1 kB / 0.5317 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.561e-05/0.4667, allocations: 7.938 kB / 0.5317 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004412/0.4672, allocations: 63.92 kB / 0.5317 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.4673, allocations: 48.38 kB / 0.5318 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.4674, allocations: 8 kB / 0.5318 GB, free: 1.781 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006499/0.468, allocations: 483 kB / 0.5323 GB, free: 1.316 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.468, allocations: 0 / 0.5323 GB, free: 1.316 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008414/0.4689, allocations: 251.2 kB / 0.5325 GB, free: 1.07 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.0002747/0.4692, allocations: 135.2 kB / 0.5326 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.4718, allocations: 1.126 MB / 0.5337 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4719, allocations: 4 kB / 0.5337 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.4726, allocations: 302.3 kB / 0.534 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009459/0.4735, allocations: 193.4 kB / 0.5342 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002565/0.4761, allocations: 1.525 MB / 0.5357 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.4767, allocations: 0.9299 MB / 0.5366 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004538/0.4771, allocations: 84.98 kB / 0.5367 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.4773, allocations: 51.42 kB / 0.5367 GB, free: 12.63 MB / 414.1 MB Notification: Performance of SimCode: time 3.507e-06/0.4774, allocations: 0 / 0.5367 GB, free: 12.63 MB / 414.1 MB Notification: Performance of Templates: time 0.01797/0.4953, allocations: 9.075 MB / 0.5456 GB, free: 3.625 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)