Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001035/0.001035, allocations: 109.4 kB / 15.69 MB, free: 128 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.001113/0.001113, allocations: 189.5 kB / 16.62 MB, free: 6.582 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.364/1.364, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.73/1.73, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.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: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 77.81 kB / 0.6723 GB, free: 25.82 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2393, allocations: 114.6 MB / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.005079/0.2444, allocations: 3.899 MB / 0.7879 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002386/0.2468, allocations: 1.338 MB / 0.7892 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004181/0.2472, allocations: 15.94 kB / 0.7893 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003672/0.2477, allocations: 126.5 kB / 0.7894 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002933/0.248, allocations: 130.8 kB / 0.7895 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006289/0.2486, allocations: 355.5 kB / 0.7898 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008437/0.2495, allocations: 1.052 MB / 0.7909 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006911/0.2502, allocations: 0.5388 MB / 0.7914 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003669/0.2505, allocations: 378.6 kB / 0.7918 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/0.2509, allocations: 414 kB / 0.7921 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.00014/0.251, allocations: 128 kB / 0.7923 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.2512, allocations: 124 kB / 0.7924 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.2513, allocations: 231.3 kB / 0.7926 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003285/0.2517, allocations: 465.6 kB / 0.7931 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.2527, allocations: 1.347 MB / 0.7944 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2527, allocations: 3.938 kB / 0.7944 GB, free: 2.16 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2527, allocations: 0 / 0.7944 GB, free: 2.16 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.062e-05/0.2527, allocations: 0 / 0.7944 GB, free: 2.16 MB / 0.6075 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.002239/0.255, allocations: 1.278 MB / 0.7956 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.255, allocations: 12.03 kB / 0.7956 GB, free: 0.8047 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.2552, allocations: 103.7 kB / 0.7957 GB, free: 0.7031 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007685/0.2559, allocations: 0.5756 MB / 0.7963 GB, free: 92 kB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.435e-05/0.256, allocations: 58.38 kB / 0.7963 GB, free: 32 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.2561, allocations: 68.42 kB / 0.7964 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.2576, allocations: 0.8191 MB / 0.7972 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.2577, allocations: 4 kB / 0.7972 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.824e-05/0.2577, allocations: 31.98 kB / 0.7972 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.2578, allocations: 16 kB / 0.7973 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001731/0.2595, allocations: 0.6792 MB / 0.7979 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003066/0.2626, allocations: 2.465 MB / 0.8003 GB, free: 11.85 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.2643, allocations: 0.7111 MB / 0.801 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008028/0.2651, allocations: 346 kB / 0.8014 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 4.289e-05/0.2652, allocations: 8.422 kB / 0.8014 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008912/0.2661, allocations: 373.1 kB / 0.8017 GB, free: 10.4 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=51): time 2.304e-06/0.2661, allocations: 7.938 kB / 0.8017 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of matching and sorting (n=51): time 0.002321/0.2684, allocations: 0.8534 MB / 0.8026 GB, free: 9.531 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.2685, allocations: 140.9 kB / 0.8027 GB, free: 9.363 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006976/0.2692, allocations: 0.6173 MB / 0.8033 GB, free: 8.734 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.61e-05/0.2693, allocations: 41.64 kB / 0.8033 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.2695, allocations: 377.2 kB / 0.8037 GB, free: 8.316 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.2697, allocations: 169.6 kB / 0.8039 GB, free: 8.148 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/0.2699, allocations: 114.1 kB / 0.804 GB, free: 8.031 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.27, allocations: 378.7 kB / 0.8043 GB, free: 7.652 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007814/0.2708, allocations: 287 kB / 0.8046 GB, free: 7.371 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008403/0.2717, allocations: 410.1 kB / 0.805 GB, free: 6.914 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.2732, allocations: 0.6663 MB / 0.8056 GB, free: 6.207 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2732, allocations: 0 / 0.8056 GB, free: 6.207 MB / 0.6231 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001803/0.275, allocations: 0.8178 MB / 0.8064 GB, free: 5.371 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.906e-05/0.2751, allocations: 63.41 kB / 0.8065 GB, free: 5.297 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.2751, allocations: 0 / 0.8065 GB, free: 5.297 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.2751, allocations: 11.98 kB / 0.8065 GB, free: 5.285 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006098/0.2757, allocations: 143.8 kB / 0.8067 GB, free: 5.145 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.2757, allocations: 4 kB / 0.8067 GB, free: 5.141 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/0.2763, allocations: 115.3 kB / 0.8068 GB, free: 5.027 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.2763, allocations: 24 kB / 0.8068 GB, free: 5.004 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007465/0.2771, allocations: 401.7 kB / 0.8072 GB, free: 4.609 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006406/0.2777, allocations: 365 kB / 0.8075 GB, free: 4.199 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001115/0.2789, allocations: 0.5727 MB / 0.8081 GB, free: 3.578 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.445e-06/0.2789, allocations: 160 / 0.8081 GB, free: 3.578 MB / 0.6231 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001422/0.2803, allocations: 0.72 MB / 0.8088 GB, free: 2.84 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.2804, allocations: 59.41 kB / 0.8088 GB, free: 2.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.2804, allocations: 4 kB / 0.8088 GB, free: 2.766 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.033e-06/0.2804, allocations: 4.281 kB / 0.8088 GB, free: 2.762 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004773/0.2809, allocations: 131.8 kB / 0.809 GB, free: 2.633 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.2809, allocations: 4 kB / 0.809 GB, free: 2.629 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.2814, allocations: 99.45 kB / 0.8091 GB, free: 2.531 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.2814, allocations: 20 kB / 0.8091 GB, free: 2.512 MB / 0.6231 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.000178/0.2816, allocations: 224.1 kB / 0.8093 GB, free: 2.285 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.173e-05/0.2817, allocations: 67.16 kB / 0.8094 GB, free: 2.219 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00165/0.2834, allocations: 0.6591 MB / 0.81 GB, free: 1.547 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2834, allocations: 4 kB / 0.81 GB, free: 1.543 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.2834, allocations: 4 kB / 0.81 GB, free: 1.539 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.2834, allocations: 0 / 0.81 GB, free: 1.539 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007524/0.2842, allocations: 0.7354 MB / 0.8107 GB, free: 0.7539 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2842, allocations: 0 / 0.8107 GB, free: 0.7539 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005317/0.2847, allocations: 115.8 kB / 0.8109 GB, free: 0.6406 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.2847, allocations: 0 / 0.8109 GB, free: 0.6406 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.945e-05/0.2848, allocations: 15.98 kB / 0.8109 GB, free: 0.625 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.2848, allocations: 4 kB / 0.8109 GB, free: 0.6211 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2848, allocations: 0 / 0.8109 GB, free: 0.6211 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002395/0.2872, allocations: 0.9873 MB / 0.8118 GB, free: 15.61 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.2873, allocations: 156.2 kB / 0.812 GB, free: 15.44 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.575e-05/0.2874, allocations: 12 kB / 0.812 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004266/0.2878, allocations: 59.91 kB / 0.8121 GB, free: 15.37 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.288, allocations: 48.38 kB / 0.8121 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-05/0.288, allocations: 16 kB / 0.8121 GB, free: 15.31 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0004977/0.2885, allocations: 435.1 kB / 0.8125 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2885, allocations: 4 kB / 0.8125 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0006602/0.2892, allocations: 266.8 kB / 0.8128 GB, free: 14.62 MB / 0.6387 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.0001504/0.2894, allocations: 111.2 kB / 0.8129 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002499/0.2919, allocations: 1.159 MB / 0.814 GB, free: 13.3 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.2919, allocations: 0 / 0.814 GB, free: 13.3 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0007659/0.2927, allocations: 310.8 kB / 0.8143 GB, free: 13 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006135/0.2933, allocations: 135.8 kB / 0.8144 GB, free: 12.88 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.2955, allocations: 1.202 MB / 0.8156 GB, free: 11.64 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004675/0.2959, allocations: 0.9257 MB / 0.8165 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003416/0.2963, allocations: 80.89 kB / 0.8166 GB, free: 10.61 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.2965, allocations: 55.42 kB / 0.8167 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of SimCode: time 6.01e-07/0.2965, allocations: 0 / 0.8167 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of Templates: time 0.01458/0.3111, allocations: 7.792 MB / 0.8243 GB, free: 2.82 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1)