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.001756/0.001756, allocations: 108 kB / 15.6 MB, free: 132 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.002319/0.002319, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.794/2.794, allocations: 472.6 MB / 0.7451 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001252, allocations: 62.69 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2896, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.005199/0.2948, allocations: 3.928 MB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002294/0.2972, allocations: 1.309 MB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005585/0.2977, allocations: 12 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004102/0.2982, allocations: 138.5 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003849/0.2986, allocations: 118.9 kB / 1.074 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008881/0.2995, allocations: 359.5 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001109/0.3006, allocations: 1.018 MB / 1.075 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008111/0.3014, allocations: 0.5464 MB / 1.075 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004206/0.3018, allocations: 370.6 kB / 1.076 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003918/0.3022, allocations: 398.1 kB / 1.076 GB, free: 2.184 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.3024, allocations: 120 kB / 1.076 GB, free: 2.066 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.3026, allocations: 120 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.3027, allocations: 227.3 kB / 1.077 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003925/0.3031, allocations: 445.7 kB / 1.077 GB, free: 1.289 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.3043, allocations: 1.246 MB / 1.078 GB, free: 40 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3043, allocations: 0 / 1.078 GB, free: 40 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.223e-06/0.3043, allocations: 0 / 1.078 GB, free: 40 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.224e-05/0.3043, allocations: 4 kB / 1.078 GB, free: 36 kB / 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.002305/0.3066, allocations: 1.224 MB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.3067, allocations: 12.03 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.3068, allocations: 87.91 kB / 1.08 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006253/0.3074, allocations: 0.5345 MB / 1.08 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.91e-05/0.3075, allocations: 58.38 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.3076, allocations: 76.36 kB / 1.08 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.3091, allocations: 0.8113 MB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3092, allocations: 4 kB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-05/0.3092, allocations: 28 kB / 1.081 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.3092, allocations: 20 kB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/0.311, allocations: 0.6714 MB / 1.082 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003168/0.3142, allocations: 2.473 MB / 1.084 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/0.316, allocations: 0.7037 MB / 1.085 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008448/0.3168, allocations: 351.8 kB / 1.085 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.872e-05/0.3169, allocations: 4.438 kB / 1.085 GB, free: 8.773 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000978/0.3179, allocations: 378.2 kB / 1.085 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=51): time 4.158e-06/0.3179, allocations: 0 / 1.085 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of matching and sorting (n=51): time 0.002403/0.3203, allocations: 0.8533 MB / 1.086 GB, free: 7.527 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.3204, allocations: 144.9 kB / 1.086 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006676/0.3211, allocations: 0.5576 MB / 1.087 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.068e-05/0.3211, allocations: 41.7 kB / 1.087 GB, free: 6.742 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.3214, allocations: 364.2 kB / 1.087 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.3215, allocations: 169.5 kB / 1.088 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/0.3217, allocations: 114.2 kB / 1.088 GB, free: 6.094 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3219, allocations: 382.6 kB / 1.088 GB, free: 5.711 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007844/0.3227, allocations: 279 kB / 1.088 GB, free: 5.434 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009325/0.3236, allocations: 413 kB / 1.089 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/0.3253, allocations: 0.6702 MB / 1.089 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3253, allocations: 0 / 1.089 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002072/0.3274, allocations: 0.8099 MB / 1.09 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.285e-05/0.3275, allocations: 59.41 kB / 1.09 GB, free: 3.375 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.3275, allocations: 4 kB / 1.09 GB, free: 3.371 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.966e-05/0.3276, allocations: 8.188 kB / 1.09 GB, free: 3.363 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006678/0.3282, allocations: 143.8 kB / 1.09 GB, free: 3.223 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.3283, allocations: 4 kB / 1.09 GB, free: 3.219 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006465/0.3289, allocations: 127.2 kB / 1.09 GB, free: 3.094 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.486e-05/0.329, allocations: 20 kB / 1.09 GB, free: 3.074 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008635/0.3298, allocations: 389.1 kB / 1.091 GB, free: 2.688 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006907/0.3305, allocations: 357.2 kB / 1.091 GB, free: 2.289 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001184/0.3317, allocations: 0.5726 MB / 1.092 GB, free: 1.668 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.803e-06/0.3317, allocations: 0 / 1.092 GB, free: 1.668 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001515/0.3333, allocations: 0.7088 MB / 1.092 GB, free: 0.9453 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.3333, allocations: 63.41 kB / 1.092 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.3333, allocations: 7.984 kB / 1.092 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.3334, allocations: 4 kB / 1.092 GB, free: 0.8594 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005672/0.3339, allocations: 123.8 kB / 1.093 GB, free: 0.7383 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3339, allocations: 4 kB / 1.093 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005296/0.3345, allocations: 107.5 kB / 1.093 GB, free: 0.6289 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.3345, allocations: 16 kB / 1.093 GB, free: 0.6133 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.000224/0.3348, allocations: 229.1 kB / 1.093 GB, free: 392 kB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.962e-05/0.3349, allocations: 59.25 kB / 1.093 GB, free: 332 kB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.3366, allocations: 0.6548 MB / 1.094 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3366, allocations: 8 kB / 1.094 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.3366, allocations: 3.938 kB / 1.094 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.3366, allocations: 0 / 1.094 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00076/0.3374, allocations: 0.7119 MB / 1.094 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3374, allocations: 3.984 kB / 1.094 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005542/0.3379, allocations: 111.8 kB / 1.094 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.615e-06/0.338, allocations: 4 kB / 1.094 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/0.338, allocations: 19.98 kB / 1.094 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.338, allocations: 0 / 1.094 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.338, allocations: 0 / 1.094 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002449/0.3405, allocations: 0.9872 MB / 1.095 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.3406, allocations: 148.3 kB / 1.096 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.673e-05/0.3407, allocations: 8 kB / 1.096 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/0.3412, allocations: 75.84 kB / 1.096 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.3413, allocations: 52.38 kB / 1.096 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.3414, allocations: 12 kB / 1.096 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0005464/0.3419, allocations: 406.8 kB / 1.096 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3419, allocations: 0 / 1.096 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007137/0.3426, allocations: 254.9 kB / 1.096 GB, free: 12.79 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.0001775/0.3428, allocations: 115.2 kB / 1.096 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002649/0.3455, allocations: 1.167 MB / 1.098 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.3455, allocations: 4 kB / 1.098 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007824/0.3463, allocations: 314.4 kB / 1.098 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006359/0.3469, allocations: 114.6 kB / 1.098 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.3492, allocations: 1.186 MB / 1.099 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004834/0.3497, allocations: 0.9101 MB / 1.1 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003479/0.3501, allocations: 76.88 kB / 1.1 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.3503, allocations: 55.42 kB / 1.1 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of SimCode: time 9.32e-07/0.3503, allocations: 3.938 kB / 1.1 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of Templates: time 0.01387/0.3641, allocations: 7.719 MB / 1.108 GB, free: 1.09 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)