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.0009137/0.0009137, allocations: 91.45 kB / 15.06 MB, free: 1.098 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.001114/0.001114, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.621/1.621, allocations: 205.4 MB / 222.1 MB, free: 5.496 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.763/1.763, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005089/0.0005089, allocations: 14.97 kB / 0.6737 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2673, allocations: 116.3 MB / 0.7873 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.003831/0.2712, allocations: 3.283 MB / 0.7905 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002151/0.2734, allocations: 1.233 MB / 0.7917 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003325/0.2737, allocations: 15.94 kB / 0.7917 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.274, allocations: 83.16 kB / 0.7918 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.2742, allocations: 87.23 kB / 0.7919 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004842/0.2747, allocations: 199.8 kB / 0.7921 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007934/0.2755, allocations: 0.8771 MB / 0.7929 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005435/0.2761, allocations: 383.5 kB / 0.7933 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/0.2763, allocations: 222.8 kB / 0.7935 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002838/0.2766, allocations: 282.3 kB / 0.7938 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.945e-05/0.2767, allocations: 24 kB / 0.7938 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.304e-05/0.2767, allocations: 24 kB / 0.7938 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.2769, allocations: 119.3 kB / 0.7939 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.277, allocations: 157.3 kB / 0.7941 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0008331/0.2778, allocations: 1.025 MB / 0.7951 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2778, allocations: 0 / 0.7951 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.993e-06/0.2778, allocations: 4 kB / 0.7951 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.2779, allocations: 0 / 0.7951 GB, free: 3.859 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.002274/0.2801, allocations: 1.165 MB / 0.7962 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.2802, allocations: 11.97 kB / 0.7962 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.2804, allocations: 94.88 kB / 0.7963 GB, free: 2.527 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008024/0.2812, allocations: 0.5629 MB / 0.7969 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.806e-05/0.2813, allocations: 61.98 kB / 0.7969 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.2814, allocations: 72 kB / 0.797 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001679/0.2831, allocations: 0.8501 MB / 0.7978 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.2831, allocations: 0 / 0.7978 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.943e-05/0.2832, allocations: 28 kB / 0.7978 GB, free: 0.8906 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.2832, allocations: 16 kB / 0.7979 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.2849, allocations: 0.7612 MB / 0.7986 GB, free: 120 kB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003511/0.2884, allocations: 2.52 MB / 0.8011 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.2902, allocations: 0.7971 MB / 0.8018 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008199/0.2911, allocations: 393.7 kB / 0.8022 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.2911, allocations: 5.453 kB / 0.8022 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009672/0.2921, allocations: 421 kB / 0.8026 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=51): time 2.926e-06/0.2921, allocations: 0 / 0.8026 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of matching and sorting (n=51): time 0.00242/0.2945, allocations: 0.9668 MB / 0.8036 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.2947, allocations: 141 kB / 0.8037 GB, free: 10.75 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007884/0.2954, allocations: 0.6056 MB / 0.8043 GB, free: 10.13 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.733e-05/0.2955, allocations: 45.69 kB / 0.8043 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003023/0.2958, allocations: 384.1 kB / 0.8047 GB, free: 9.699 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.296, allocations: 169.5 kB / 0.8049 GB, free: 9.531 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.296, allocations: 16 kB / 0.8049 GB, free: 9.516 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001653/0.2962, allocations: 378.7 kB / 0.8052 GB, free: 9.137 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000757/0.297, allocations: 313 kB / 0.8055 GB, free: 8.832 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008522/0.2978, allocations: 453.1 kB / 0.806 GB, free: 8.34 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008407/0.2987, allocations: 393.4 kB / 0.8064 GB, free: 7.941 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2987, allocations: 0 / 0.8064 GB, free: 7.941 MB / 0.6231 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001887/0.3006, allocations: 0.8881 MB / 0.8072 GB, free: 7.039 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001551/0.3007, allocations: 210.4 kB / 0.8074 GB, free: 6.781 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.3008, allocations: 4 kB / 0.8074 GB, free: 6.777 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.3008, allocations: 7.938 kB / 0.8074 GB, free: 6.77 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006352/0.3014, allocations: 163.8 kB / 0.8076 GB, free: 6.609 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.3015, allocations: 7.938 kB / 0.8076 GB, free: 6.602 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005725/0.302, allocations: 151.2 kB / 0.8077 GB, free: 6.453 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/0.3021, allocations: 27.94 kB / 0.8078 GB, free: 6.426 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.853e-06/0.3021, allocations: 4 kB / 0.8078 GB, free: 6.422 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001372/0.3035, allocations: 0.696 MB / 0.8084 GB, free: 5.719 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-06/0.3035, allocations: 4 kB / 0.8085 GB, free: 5.715 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.3035, allocations: 7.984 kB / 0.8085 GB, free: 5.707 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.304, allocations: 139.8 kB / 0.8086 GB, free: 5.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.994e-06/0.304, allocations: 4 kB / 0.8086 GB, free: 5.566 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004736/0.3045, allocations: 111.5 kB / 0.8087 GB, free: 5.457 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.3045, allocations: 27.92 kB / 0.8087 GB, free: 5.43 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,$whenCondition2,$whenCondition1,$PRE.TRoo.T_start,TRoo.T_start,$PRE.TRoo.count,TRoo.count,$PRE.m_flow.T_start,m_flow.T_start,$PRE.m_flow.count,m_flow.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004178/0.305, allocations: 297.7 kB / 0.809 GB, free: 5.129 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.877e-05/0.305, allocations: 71.11 kB / 0.8091 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.3067, allocations: 0.7411 MB / 0.8098 GB, free: 4.305 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3067, allocations: 4 kB / 0.8098 GB, free: 4.301 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3067, allocations: 0 / 0.8098 GB, free: 4.301 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3067, allocations: 3.984 kB / 0.8098 GB, free: 4.297 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008332/0.3076, allocations: 0.7276 MB / 0.8105 GB, free: 3.52 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3076, allocations: 0 / 0.8105 GB, free: 3.52 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005635/0.3081, allocations: 143.8 kB / 0.8107 GB, free: 3.379 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.3082, allocations: 7.953 kB / 0.8107 GB, free: 3.371 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.3082, allocations: 12 kB / 0.8107 GB, free: 3.359 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.3082, allocations: 0 / 0.8107 GB, free: 3.359 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3082, allocations: 4 kB / 0.8107 GB, free: 3.355 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.3106, allocations: 1.101 MB / 0.8118 GB, free: 2.234 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.3107, allocations: 152.2 kB / 0.8119 GB, free: 2.066 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.058e-05/0.3108, allocations: 23.88 kB / 0.8119 GB, free: 2.043 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004096/0.3113, allocations: 83.92 kB / 0.812 GB, free: 1.961 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.3114, allocations: 48.36 kB / 0.8121 GB, free: 1.914 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.502e-05/0.3114, allocations: 19.98 kB / 0.8121 GB, free: 1.895 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004901/0.3119, allocations: 431.1 kB / 0.8125 GB, free: 1.477 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3119, allocations: 0 / 0.8125 GB, free: 1.477 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006974/0.3126, allocations: 262.9 kB / 0.8127 GB, free: 1.219 MB / 0.6231 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001636/0.3128, allocations: 119.2 kB / 0.8128 GB, free: 1.09 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002469/0.3153, allocations: 1.249 MB / 0.8141 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3153, allocations: 0 / 0.8141 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0007948/0.3161, allocations: 354.8 kB / 0.8144 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006558/0.3168, allocations: 126.1 kB / 0.8145 GB, free: 15.33 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/0.3193, allocations: 1.46 MB / 0.816 GB, free: 13.84 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.3199, allocations: 0.9183 MB / 0.8168 GB, free: 12.9 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003854/0.3203, allocations: 85.03 kB / 0.8169 GB, free: 12.81 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.3204, allocations: 51.42 kB / 0.817 GB, free: 12.76 MB / 0.6387 GB Notification: Performance of SimCode: time 1.864e-06/0.3204, allocations: 0 / 0.817 GB, free: 12.76 MB / 0.6387 GB Notification: Performance of Templates: time 0.01375/0.3342, allocations: 6.922 MB / 0.8237 GB, free: 5.891 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: