Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.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.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008039/0.0008039, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.0054/0.0054, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.362/1.362, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.957/2.957, allocations: 473.4 MB / 0.7469 GB, free: 6.141 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003284/0.0003285, allocations: 10.84 kB / 0.9158 GB, free: 33.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3362, allocations: 162.2 MB / 1.074 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002577/0.3389, allocations: 1.727 MB / 1.076 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3399, allocations: 0.5688 MB / 1.076 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.34, allocations: 0 / 1.076 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.3402, allocations: 27.8 kB / 1.076 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001414/0.3403, allocations: 23.78 kB / 1.076 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.3406, allocations: 83.91 kB / 1.077 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002736/0.3408, allocations: 259.3 kB / 1.077 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.3411, allocations: 119.3 kB / 1.077 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.3412, allocations: 91.56 kB / 1.077 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.3414, allocations: 103.5 kB / 1.077 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.77e-05/0.3414, allocations: 15.94 kB / 1.077 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.597e-05/0.3415, allocations: 8 kB / 1.077 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.954e-05/0.3415, allocations: 39.81 kB / 1.077 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.3417, allocations: 125.1 kB / 1.077 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.3419, allocations: 267.2 kB / 1.078 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3419, allocations: 0 / 1.078 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.994e-06/0.342, allocations: 3.938 kB / 1.078 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.342, allocations: 0 / 1.078 GB, free: 4.066 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.00114/0.3431, allocations: 0.6349 MB / 1.078 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.3432, allocations: 8.031 kB / 1.078 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/0.3432, allocations: 28.66 kB / 1.078 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.3435, allocations: 269.2 kB / 1.078 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.3436, allocations: 16.81 kB / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.297e-05/0.3436, allocations: 20.38 kB / 1.078 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.3443, allocations: 311.5 kB / 1.079 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3443, allocations: 4 kB / 1.079 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.3443, allocations: 8 kB / 1.079 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.3443, allocations: 4 kB / 1.079 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007351/0.3451, allocations: 241.6 kB / 1.079 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.3463, allocations: 0.6658 MB / 1.08 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007109/0.347, allocations: 241.1 kB / 1.08 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.3473, allocations: 104.8 kB / 1.08 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.3474, allocations: 0 / 1.08 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005664/0.3479, allocations: 211.4 kB / 1.08 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.3479, allocations: 0 / 1.08 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.00118/0.3491, allocations: 390.9 kB / 1.081 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.539e-05/0.3492, allocations: 144.5 kB / 1.081 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.3494, allocations: 218.6 kB / 1.081 GB, free: 356 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.3495, allocations: 41.7 kB / 1.081 GB, free: 308 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.3496, allocations: 164.1 kB / 1.081 GB, free: 140 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.973e-05/0.3496, allocations: 47.34 kB / 1.081 GB, free: 92 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.89e-05/0.3497, allocations: 45.69 kB / 1.081 GB, free: 40 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001965/0.3499, allocations: 326.8 kB / 1.082 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004043/0.3503, allocations: 132.2 kB / 1.082 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004376/0.3508, allocations: 208.3 kB / 1.082 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000737/0.3515, allocations: 336.3 kB / 1.082 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3515, allocations: 0 / 1.082 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009829/0.3525, allocations: 471.4 kB / 1.083 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.794e-05/0.3526, allocations: 85.11 kB / 1.083 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.3526, allocations: 7.984 kB / 1.083 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.3526, allocations: 3.938 kB / 1.083 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.3529, allocations: 56.03 kB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.3529, allocations: 4 kB / 1.083 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.3533, allocations: 83.72 kB / 1.083 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.3533, allocations: 15.98 kB / 1.083 GB, free: 14.23 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (minFloRatSaf.disErr.y,$PRE.minFloRatSaf.disErr.y,mEvaEmu_flow.count,$PRE.mEvaEmu_flow.count,mEvaEmu_flow.T_start,$PRE.mEvaEmu_flow.T_start,mConEmu_flow.count,$PRE.mConEmu_flow.count,mConEmu_flow.T_start,$PRE.mConEmu_flow.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,minFloRatSaf.hysEva.y,$PRE.minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,$PRE.minFloRatSaf.hysCon.y,minFloRatSaf.booPasThr.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,minFloRatSaf.intConOne.y,minFloRatSaf.disErr.local_set,minFloRatSaf.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 3 * 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.0001584/0.3535, allocations: 152.4 kB / 1.083 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-05/0.3536, allocations: 23.72 kB / 1.083 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.258e-05/0.3536, allocations: 29.8 kB / 1.083 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3536, allocations: 4 kB / 1.083 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3536, allocations: 4 kB / 1.083 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3536, allocations: 0 / 1.083 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.3548, allocations: 0.652 MB / 1.084 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3548, allocations: 0 / 1.084 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001664/0.355, allocations: 39.95 kB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.355, allocations: 0 / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.355, allocations: 4 kB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.355, allocations: 3.938 kB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.355, allocations: 0 / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007899/0.3558, allocations: 391.1 kB / 1.084 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.1e-05/0.3559, allocations: 88.92 kB / 1.084 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.465e-05/0.3559, allocations: 8 kB / 1.084 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003626/0.3563, allocations: 67.94 kB / 1.084 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.3564, allocations: 51.86 kB / 1.084 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.3565, allocations: 11.98 kB / 1.084 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001124/0.3566, allocations: 143.2 kB / 1.084 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3566, allocations: 0 / 1.084 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003274/0.3569, allocations: 55.84 kB / 1.085 GB, free: 12.43 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (minFloRatSaf.booPasThr.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.hysCon.y,minFloRatSaf.hysEva.y,ySetPul.T_start,ySetPul.count,mConEmu_flow.T_start,mConEmu_flow.count,mEvaEmu_flow.T_start,mEvaEmu_flow.count) * Number of discrete states: 7 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001534/0.3571, allocations: 123.2 kB / 1.085 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009169/0.358, allocations: 467.6 kB / 1.085 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.358, allocations: 320 / 1.085 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003928/0.3584, allocations: 139.8 kB / 1.085 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.3588, allocations: 35.92 kB / 1.085 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000833/0.3596, allocations: 455.1 kB / 1.086 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.3599, allocations: 0.7442 MB / 1.086 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001111/0.36, allocations: 25.94 kB / 1.086 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.43e-05/0.3601, allocations: 23.42 kB / 1.086 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of SimCode: time 4.41e-07/0.3601, allocations: 0 / 1.086 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of Templates: time 0.006413/0.3665, allocations: 3.054 MB / 1.089 GB, free: 7.348 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)