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 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_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.001649/0.001655, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001967/0.001967, allocations: 194.3 kB / 16.14 MB, free: 6.664 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.554/1.554, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.914/2.914, allocations: 472.6 MB / 0.7447 GB, free: 5 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 66.78 kB / 0.9113 GB, free: 33.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3838, allocations: 159.9 MB / 1.068 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.005403/0.3893, allocations: 3.926 MB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002282/0.3916, allocations: 1.246 MB / 1.073 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004192/0.3921, allocations: 16 kB / 1.073 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003355/0.3924, allocations: 95.09 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002496/0.3927, allocations: 91.36 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006449/0.3934, allocations: 303.8 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007814/0.3941, allocations: 0.9278 MB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006731/0.3948, allocations: 0.5308 MB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002862/0.3951, allocations: 298.6 kB / 1.075 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002972/0.3954, allocations: 354 kB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.527e-05/0.3955, allocations: 52 kB / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.971e-05/0.3956, allocations: 48 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.3957, allocations: 151.3 kB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.396, allocations: 373.7 kB / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008762/0.3969, allocations: 1.184 MB / 1.077 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3969, allocations: 0 / 1.077 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.475e-06/0.3969, allocations: 0 / 1.077 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.397, allocations: 11.94 kB / 1.077 GB, free: 1.34 MB / 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.002252/0.3992, allocations: 1.216 MB / 1.078 GB, free: 60 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.3993, allocations: 8.031 kB / 1.078 GB, free: 52 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.3994, allocations: 91.95 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006151/0.4, allocations: 0.5305 MB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.4001, allocations: 58.38 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.4002, allocations: 80.31 kB / 1.079 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.4018, allocations: 0.8152 MB / 1.08 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.4018, allocations: 0 / 1.08 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.826e-05/0.4019, allocations: 28 kB / 1.08 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.4019, allocations: 16 kB / 1.08 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.4036, allocations: 0.6831 MB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00311/0.4067, allocations: 2.462 MB / 1.083 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.4085, allocations: 0.7159 MB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000778/0.4092, allocations: 351.8 kB / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.4093, allocations: 12.42 kB / 1.084 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009688/0.4103, allocations: 369.2 kB / 1.084 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=51): time 1.834e-06/0.4103, allocations: 0 / 1.084 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of matching and sorting (n=51): time 0.002365/0.4127, allocations: 0.8572 MB / 1.085 GB, free: 8.832 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.4128, allocations: 133 kB / 1.085 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000705/0.4135, allocations: 0.5694 MB / 1.086 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.776e-05/0.4136, allocations: 37.7 kB / 1.086 GB, free: 8.051 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000295/0.4139, allocations: 360.2 kB / 1.086 GB, free: 7.691 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.414, allocations: 169.5 kB / 1.086 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.4142, allocations: 110.2 kB / 1.086 GB, free: 7.41 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001917/0.4144, allocations: 378.7 kB / 1.087 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007804/0.4152, allocations: 283 kB / 1.087 GB, free: 6.75 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008719/0.4161, allocations: 413 kB / 1.087 GB, free: 6.293 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.4176, allocations: 0.6585 MB / 1.088 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.4176, allocations: 7.938 kB / 1.088 GB, free: 5.586 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001742/0.4194, allocations: 0.806 MB / 1.089 GB, free: 4.762 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.121e-05/0.4194, allocations: 69.27 kB / 1.089 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4194, allocations: 4.188 kB / 1.089 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.4195, allocations: 11.98 kB / 1.089 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000602/0.4201, allocations: 143.8 kB / 1.089 GB, free: 4.527 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.4201, allocations: 4 kB / 1.089 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005343/0.4206, allocations: 123.2 kB / 1.089 GB, free: 4.402 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.4207, allocations: 23.98 kB / 1.089 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007558/0.4214, allocations: 385.2 kB / 1.089 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006432/0.4221, allocations: 365.1 kB / 1.09 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001118/0.4232, allocations: 0.5727 MB / 1.09 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.4232, allocations: 0 / 1.09 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001371/0.4246, allocations: 0.7048 MB / 1.091 GB, free: 2.25 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/0.4247, allocations: 67.39 kB / 1.091 GB, free: 2.172 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-06/0.4247, allocations: 0 / 1.091 GB, free: 2.172 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.793e-06/0.4247, allocations: 4 kB / 1.091 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.4252, allocations: 123.8 kB / 1.091 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.4252, allocations: 7.938 kB / 1.091 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004702/0.4257, allocations: 107.4 kB / 1.091 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.4257, allocations: 20 kB / 1.091 GB, free: 1.914 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.0001705/0.4259, allocations: 212.6 kB / 1.092 GB, free: 1.699 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.337e-05/0.426, allocations: 63.19 kB / 1.092 GB, free: 1.637 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.4276, allocations: 0.6548 MB / 1.092 GB, free: 0.9766 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.4276, allocations: 8 kB / 1.092 GB, free: 0.9688 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4276, allocations: 0 / 1.092 GB, free: 0.9688 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4277, allocations: 3.984 kB / 1.092 GB, free: 0.9648 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007067/0.4284, allocations: 0.712 MB / 1.093 GB, free: 208 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.4284, allocations: 0 / 1.093 GB, free: 208 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005444/0.4289, allocations: 119.8 kB / 1.093 GB, free: 88 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.4289, allocations: 0 / 1.093 GB, free: 88 kB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.425e-05/0.429, allocations: 16 kB / 1.093 GB, free: 72 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.429, allocations: 4 kB / 1.093 GB, free: 68 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.429, allocations: 3.984 kB / 1.093 GB, free: 64 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.4313, allocations: 0.9795 MB / 1.094 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.4314, allocations: 152.2 kB / 1.094 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.637e-05/0.4315, allocations: 15.94 kB / 1.094 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004313/0.432, allocations: 63.92 kB / 1.094 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.4321, allocations: 52.36 kB / 1.094 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.322e-05/0.4321, allocations: 16 kB / 1.094 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004487/0.4326, allocations: 398.8 kB / 1.095 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4326, allocations: 0 / 1.095 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006144/0.4332, allocations: 262.9 kB / 1.095 GB, free: 14.1 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.0001451/0.4334, allocations: 111.2 kB / 1.095 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002316/0.4357, allocations: 1.151 MB / 1.096 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4357, allocations: 3.938 kB / 1.096 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007567/0.4365, allocations: 314.4 kB / 1.097 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006294/0.4371, allocations: 121.9 kB / 1.097 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002095/0.4392, allocations: 1.453 MB / 1.098 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.4396, allocations: 0.9065 MB / 1.099 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003186/0.44, allocations: 80.88 kB / 1.099 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001745/0.4401, allocations: 47.42 kB / 1.099 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of SimCode: time 4.01e-07/0.4401, allocations: 0 / 1.099 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of Templates: time 0.01224/0.4524, allocations: 7.173 MB / 1.106 GB, free: 2.699 MB / 0.8575 GB 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)