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.008196/0.008196, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001668/0.001668, allocations: 190.4 kB / 16.67 MB, free: 5.98 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.829/1.829, allocations: 205.1 MB / 222.6 MB, free: 4.426 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.6688/0.6688, allocations: 95.49 MB / 365.4 MB, free: 9.723 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.00259/0.00259, allocations: 71.89 kB / 0.5036 GB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2059, allocations: 69.09 MB / 0.5711 GB, free: 8.348 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.007574/0.2136, allocations: 4.071 MB / 0.575 GB, free: 4.242 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004947/0.2185, allocations: 1.883 MB / 0.5769 GB, free: 2.352 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.2199, allocations: 31.88 kB / 0.5769 GB, free: 2.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000669/0.2205, allocations: 138.5 kB / 0.5771 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001592/0.2222, allocations: 266.1 kB / 0.5773 GB, free: 1.922 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001573/0.2238, allocations: 0.5358 MB / 0.5778 GB, free: 1.391 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001898/0.2257, allocations: 1.089 MB / 0.5789 GB, free: 300 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008954/0.2266, allocations: 438.2 kB / 0.5793 GB, free: 15.84 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007201/0.2273, allocations: 374.4 kB / 0.5797 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006996/0.228, allocations: 389.9 kB / 0.58 GB, free: 15.09 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003086/0.2283, allocations: 104 kB / 0.5801 GB, free: 14.99 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005424/0.2289, allocations: 223.9 kB / 0.5804 GB, free: 14.77 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002577/0.2292, allocations: 207.2 kB / 0.5805 GB, free: 14.57 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005912/0.2298, allocations: 429.6 kB / 0.581 GB, free: 14.15 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001622/0.2314, allocations: 1.226 MB / 0.5822 GB, free: 12.92 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.2314, allocations: 4 kB / 0.5822 GB, free: 12.91 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2314, allocations: 0 / 0.5822 GB, free: 12.91 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.068e-05/0.2315, allocations: 0 / 0.5822 GB, free: 12.91 MB / 462.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.003224/0.2347, allocations: 1.273 MB / 0.5834 GB, free: 11.57 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.739e-05/0.2348, allocations: 15.92 kB / 0.5834 GB, free: 11.56 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002412/0.235, allocations: 103.7 kB / 0.5835 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.2361, allocations: 0.6715 MB / 0.5842 GB, free: 10.74 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.09e-05/0.2362, allocations: 53.23 kB / 0.5842 GB, free: 10.69 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.2363, allocations: 52 kB / 0.5843 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.2377, allocations: 0.7123 MB / 0.585 GB, free: 9.891 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.2377, allocations: 7.938 kB / 0.585 GB, free: 9.883 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.446e-05/0.2378, allocations: 20 kB / 0.585 GB, free: 9.863 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.2378, allocations: 16 kB / 0.585 GB, free: 9.848 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.2392, allocations: 0.6101 MB / 0.5856 GB, free: 9.238 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002805/0.2421, allocations: 2.244 MB / 0.5878 GB, free: 6.914 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.2438, allocations: 0.7072 MB / 0.5885 GB, free: 6.199 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006692/0.2444, allocations: 289.4 kB / 0.5888 GB, free: 5.914 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001591/0.246, allocations: 2.004 MB / 0.5907 GB, free: 3.449 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008199/0.2469, allocations: 369.1 kB / 0.5911 GB, free: 3.082 MB / 462.1 MB Notification: Performance of pre-optimization done (n=47): time 2.545e-06/0.2469, allocations: 4 kB / 0.5911 GB, free: 3.078 MB / 462.1 MB Notification: Performance of matching and sorting (n=47): time 0.002228/0.2491, allocations: 0.8767 MB / 0.5919 GB, free: 2.191 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.829e-05/0.2492, allocations: 133 kB / 0.5921 GB, free: 2.031 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000868/0.2501, allocations: 0.6843 MB / 0.5927 GB, free: 1.336 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.05e-05/0.2502, allocations: 33.7 kB / 0.5928 GB, free: 1.297 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.2505, allocations: 372.9 kB / 0.5931 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.2506, allocations: 161.7 kB / 0.5933 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.2508, allocations: 86.25 kB / 0.5934 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.251, allocations: 326 kB / 0.5937 GB, free: 360 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006919/0.2517, allocations: 266.9 kB / 0.5939 GB, free: 88 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007654/0.2525, allocations: 362.5 kB / 0.5943 GB, free: 15.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.2539, allocations: 0.6201 MB / 0.5949 GB, free: 15.05 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.2539, allocations: 0 / 0.5949 GB, free: 15.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001703/0.2556, allocations: 0.7793 MB / 0.5956 GB, free: 14.25 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.942e-05/0.2557, allocations: 75.52 kB / 0.5957 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.2557, allocations: 4 kB / 0.5957 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.2557, allocations: 0 / 0.5957 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005432/0.2563, allocations: 119.8 kB / 0.5958 GB, free: 14.04 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.2563, allocations: 3.938 kB / 0.5958 GB, free: 14.04 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000506/0.2568, allocations: 95.45 kB / 0.5959 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.78e-05/0.2569, allocations: 16 kB / 0.5959 GB, free: 13.93 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007431/0.2576, allocations: 393.1 kB / 0.5963 GB, free: 13.54 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006084/0.2582, allocations: 318.4 kB / 0.5966 GB, free: 13.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001118/0.2594, allocations: 0.5565 MB / 0.5972 GB, free: 12.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.705e-06/0.2594, allocations: 0 / 0.5972 GB, free: 12.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001412/0.2608, allocations: 0.7014 MB / 0.5978 GB, free: 11.89 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.026e-05/0.2609, allocations: 63.39 kB / 0.5979 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.2609, allocations: 7.984 kB / 0.5979 GB, free: 11.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.218e-06/0.2609, allocations: 7.938 kB / 0.5979 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.2614, allocations: 107.8 kB / 0.598 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.2614, allocations: 4 kB / 0.598 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004734/0.2618, allocations: 71.81 kB / 0.5981 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.2619, allocations: 20 kB / 0.5981 GB, free: 11.6 MB / 478.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.000212/0.2621, allocations: 212.7 kB / 0.5983 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.2622, allocations: 82.91 kB / 0.5984 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/0.2639, allocations: 0.6798 MB / 0.5991 GB, free: 10.61 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.264, allocations: 8 kB / 0.5991 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.264, allocations: 0 / 0.5991 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.264, allocations: 3.984 kB / 0.5991 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009153/0.2649, allocations: 0.7199 MB / 0.5998 GB, free: 9.832 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.2649, allocations: 96 / 0.5998 GB, free: 9.832 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005417/0.2655, allocations: 111.8 kB / 0.5999 GB, free: 9.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.044e-05/0.2655, allocations: 11.92 kB / 0.5999 GB, free: 9.711 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.31e-05/0.2655, allocations: 12 kB / 0.5999 GB, free: 9.699 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.2656, allocations: 4 kB / 0.5999 GB, free: 9.695 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2656, allocations: 0 / 0.5999 GB, free: 9.695 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00226/0.2678, allocations: 1.014 MB / 0.6009 GB, free: 8.664 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000294/0.2681, allocations: 216 kB / 0.6011 GB, free: 8.434 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.169e-05/0.2682, allocations: 11.94 kB / 0.6011 GB, free: 8.422 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004277/0.2687, allocations: 59.92 kB / 0.6012 GB, free: 8.363 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.2688, allocations: 36.39 kB / 0.6012 GB, free: 8.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/0.2689, allocations: 19.98 kB / 0.6012 GB, free: 8.305 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006163/0.2695, allocations: 483 kB / 0.6017 GB, free: 7.836 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2695, allocations: 0 / 0.6017 GB, free: 7.836 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007302/0.2702, allocations: 243.3 kB / 0.6019 GB, free: 7.598 MB / 478.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.0002661/0.2705, allocations: 139.1 kB / 0.602 GB, free: 7.453 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002457/0.273, allocations: 1.107 MB / 0.6031 GB, free: 6.301 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.273, allocations: 0 / 0.6031 GB, free: 6.301 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000721/0.2737, allocations: 310.3 kB / 0.6034 GB, free: 5.996 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008234/0.2746, allocations: 196.6 kB / 0.6036 GB, free: 5.82 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.2771, allocations: 1.24 MB / 0.6048 GB, free: 4.551 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006531/0.2778, allocations: 0.9299 MB / 0.6057 GB, free: 3.594 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004264/0.2782, allocations: 81.06 kB / 0.6058 GB, free: 3.512 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.2784, allocations: 59.42 kB / 0.6059 GB, free: 3.453 MB / 478.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2784, allocations: 3.938 kB / 0.6059 GB, free: 3.449 MB / 478.1 MB Notification: Performance of Templates: time 0.0197/0.2981, allocations: 9.377 MB / 0.615 GB, free: 10.15 MB / 494.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)