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.001634/0.00164, 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.001854/0.001854, allocations: 194.8 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.304/1.304, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.716/1.716, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001443/0.001443, allocations: 66.88 kB / 0.6715 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1997, allocations: 114.6 MB / 0.7834 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.005273/0.2051, allocations: 3.918 MB / 0.7872 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001958/0.207, allocations: 1.33 MB / 0.7885 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002831/0.2073, allocations: 19.88 kB / 0.7885 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002942/0.2076, allocations: 130.6 kB / 0.7886 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.2079, allocations: 130.7 kB / 0.7888 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005421/0.2085, allocations: 355.5 kB / 0.7891 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008146/0.2093, allocations: 1.033 MB / 0.7901 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006792/0.21, allocations: 0.5388 MB / 0.7906 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.2103, allocations: 374.6 kB / 0.791 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003411/0.2107, allocations: 429.9 kB / 0.7914 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.2108, allocations: 124 kB / 0.7915 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.2109, allocations: 124 kB / 0.7916 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.2111, allocations: 239.3 kB / 0.7919 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003099/0.2114, allocations: 449.7 kB / 0.7923 GB, free: 4.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0009303/0.2124, allocations: 1.309 MB / 0.7936 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2124, allocations: 0 / 0.7936 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2124, allocations: 0 / 0.7936 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.195e-05/0.2124, allocations: 0 / 0.7936 GB, free: 2.938 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.002334/0.2147, allocations: 1.27 MB / 0.7948 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.2148, allocations: 12.03 kB / 0.7948 GB, free: 1.59 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.2149, allocations: 103.7 kB / 0.7949 GB, free: 1.488 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007189/0.2157, allocations: 0.5795 MB / 0.7955 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.942e-05/0.2157, allocations: 62.31 kB / 0.7955 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.2159, allocations: 76.38 kB / 0.7956 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.2174, allocations: 0.8075 MB / 0.7964 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.2175, allocations: 0 / 0.7964 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.041e-05/0.2175, allocations: 32 kB / 0.7964 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.2176, allocations: 20 kB / 0.7965 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/0.2194, allocations: 0.6792 MB / 0.7971 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003238/0.2227, allocations: 2.501 MB / 0.7996 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.2245, allocations: 0.7033 MB / 0.8002 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008342/0.2253, allocations: 353.7 kB / 0.8006 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 4.484e-05/0.2254, allocations: 4.438 kB / 0.8006 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009739/0.2264, allocations: 374.2 kB / 0.8009 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=51): time 2.234e-06/0.2264, allocations: 0 / 0.8009 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of matching and sorting (n=51): time 0.002397/0.2288, allocations: 0.8611 MB / 0.8018 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.2289, allocations: 137 kB / 0.8019 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007049/0.2296, allocations: 0.6134 MB / 0.8025 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.267e-05/0.2296, allocations: 45.69 kB / 0.8026 GB, free: 9.441 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002584/0.2299, allocations: 376.2 kB / 0.8029 GB, free: 9.07 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.23, allocations: 173.5 kB / 0.8031 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.2302, allocations: 110.1 kB / 0.8032 GB, free: 8.785 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2304, allocations: 386.6 kB / 0.8036 GB, free: 8.398 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007964/0.2312, allocations: 279 kB / 0.8038 GB, free: 8.125 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008607/0.2321, allocations: 417.1 kB / 0.8042 GB, free: 7.66 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.2336, allocations: 0.6663 MB / 0.8049 GB, free: 6.953 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2336, allocations: 0 / 0.8049 GB, free: 6.953 MB / 0.6231 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001866/0.2355, allocations: 0.8136 MB / 0.8057 GB, free: 6.121 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/0.2356, allocations: 62.81 kB / 0.8057 GB, free: 6.051 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.2356, allocations: 8 kB / 0.8057 GB, free: 6.043 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.2356, allocations: 4 kB / 0.8057 GB, free: 6.039 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000634/0.2362, allocations: 143.8 kB / 0.8059 GB, free: 5.898 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.2363, allocations: 4 kB / 0.8059 GB, free: 5.895 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.2369, allocations: 123.3 kB / 0.806 GB, free: 5.773 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/0.2369, allocations: 20 kB / 0.806 GB, free: 5.754 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007933/0.2377, allocations: 397.8 kB / 0.8064 GB, free: 5.363 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006681/0.2384, allocations: 361 kB / 0.8067 GB, free: 4.957 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001186/0.2396, allocations: 0.5766 MB / 0.8073 GB, free: 4.332 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.344e-06/0.2396, allocations: 0 / 0.8073 GB, free: 4.332 MB / 0.6231 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.00149/0.2411, allocations: 0.7164 MB / 0.808 GB, free: 3.598 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.2411, allocations: 67.33 kB / 0.8081 GB, free: 3.52 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.2412, allocations: 0 / 0.8081 GB, free: 3.52 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.2412, allocations: 4 kB / 0.8081 GB, free: 3.516 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005145/0.2417, allocations: 127.8 kB / 0.8082 GB, free: 3.391 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.2417, allocations: 7.938 kB / 0.8082 GB, free: 3.383 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005351/0.2423, allocations: 103.4 kB / 0.8083 GB, free: 3.281 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/0.2423, allocations: 20 kB / 0.8083 GB, free: 3.262 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.0001979/0.2425, allocations: 220.1 kB / 0.8085 GB, free: 3.039 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.119e-05/0.2426, allocations: 71.14 kB / 0.8086 GB, free: 2.969 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.2443, allocations: 0.6553 MB / 0.8092 GB, free: 2.301 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.2443, allocations: 4 kB / 0.8092 GB, free: 2.297 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.2443, allocations: 0 / 0.8092 GB, free: 2.297 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2444, allocations: 3.984 kB / 0.8092 GB, free: 2.293 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007584/0.2451, allocations: 0.7276 MB / 0.81 GB, free: 1.516 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.2451, allocations: 0 / 0.81 GB, free: 1.516 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/0.2457, allocations: 119.8 kB / 0.8101 GB, free: 1.398 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.2457, allocations: 4 kB / 0.8101 GB, free: 1.395 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.2458, allocations: 15.98 kB / 0.8101 GB, free: 1.379 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.2458, allocations: 7.938 kB / 0.8101 GB, free: 1.371 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2458, allocations: 0 / 0.8101 GB, free: 1.371 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.2482, allocations: 0.9834 MB / 0.8111 GB, free: 376 kB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.2483, allocations: 152.2 kB / 0.8112 GB, free: 204 kB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.105e-05/0.2484, allocations: 12 kB / 0.8112 GB, free: 192 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.2489, allocations: 63.92 kB / 0.8113 GB, free: 128 kB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.249, allocations: 48.31 kB / 0.8113 GB, free: 80 kB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.2491, allocations: 19.98 kB / 0.8113 GB, free: 60 kB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000523/0.2496, allocations: 435.1 kB / 0.8118 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2496, allocations: 0 / 0.8118 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0006721/0.2503, allocations: 270.8 kB / 0.812 GB, free: 15.38 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.0001432/0.2505, allocations: 119.1 kB / 0.8121 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002687/0.2532, allocations: 1.171 MB / 0.8133 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2532, allocations: 384 / 0.8133 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0008036/0.254, allocations: 310.3 kB / 0.8136 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006172/0.2546, allocations: 129.1 kB / 0.8137 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.2568, allocations: 1.229 MB / 0.8149 GB, free: 12.35 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.2572, allocations: 0.9257 MB / 0.8158 GB, free: 11.39 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003294/0.2575, allocations: 84.97 kB / 0.8159 GB, free: 11.31 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.2577, allocations: 55.42 kB / 0.8159 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of SimCode: time 1.793e-06/0.2577, allocations: 0 / 0.8159 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of Templates: time 0.01326/0.271, allocations: 7.788 MB / 0.8235 GB, free: 3.527 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)