Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001622/0.001622, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002182/0.002182, allocations: 192 kB / 16.25 MB, free: 6.617 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.372/1.372, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.819/2.819, allocations: 472.6 MB / 0.7448 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 65.14 kB / 0.9116 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3165, allocations: 159.9 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.004345/0.3209, allocations: 2.081 MB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.322, allocations: 0.5649 MB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.3222, allocations: 7.938 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.3224, allocations: 11.86 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.3225, allocations: 31.72 kB / 1.07 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.3227, allocations: 83.84 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003372/0.3231, allocations: 295.3 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000302/0.3234, allocations: 123.4 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.3236, allocations: 119.6 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.3238, allocations: 131.4 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.347e-05/0.3238, allocations: 28 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.186e-05/0.3239, allocations: 28 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.576e-05/0.324, allocations: 67.81 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.3241, allocations: 127.4 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003834/0.3245, allocations: 283.3 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3245, allocations: 0 / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.484e-06/0.3245, allocations: 0 / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.3245, allocations: 0 / 1.072 GB, free: 6.719 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.001388/0.3259, allocations: 0.6682 MB / 1.072 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.326, allocations: 8.031 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.136e-05/0.3261, allocations: 28.66 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.3264, allocations: 265.1 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.3264, allocations: 16.81 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.3265, allocations: 20.38 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.3272, allocations: 295.6 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3272, allocations: 4 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.3272, allocations: 4 kB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.3272, allocations: 4 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006655/0.3279, allocations: 209.6 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.3291, allocations: 0.6425 MB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006692/0.3297, allocations: 201.6 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003043/0.3301, allocations: 88.78 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.3301, allocations: 4 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005871/0.3307, allocations: 197.2 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 3.938e-06/0.3307, allocations: 0 / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001077/0.3318, allocations: 340.9 kB / 1.074 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.466e-05/0.3319, allocations: 144.5 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.3321, allocations: 214.6 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/0.3322, allocations: 37.7 kB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.3323, allocations: 156.1 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/0.3324, allocations: 51.42 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.3325, allocations: 65.97 kB / 1.075 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.3326, allocations: 330.8 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.333, allocations: 116.2 kB / 1.076 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003895/0.3334, allocations: 180.4 kB / 1.076 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006426/0.334, allocations: 320.4 kB / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.334, allocations: 0 / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009104/0.3349, allocations: 431.9 kB / 1.076 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.113e-05/0.335, allocations: 89.11 kB / 1.077 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.335, allocations: 0 / 1.077 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.3351, allocations: 11.92 kB / 1.077 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002331/0.3353, allocations: 39.95 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.3353, allocations: 4 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.3357, allocations: 75.7 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.3357, allocations: 15.98 kB / 1.077 GB, free: 1.148 MB / 0.8262 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.0001489/0.3359, allocations: 148.4 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.3359, allocations: 15.81 kB / 1.077 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.46e-05/0.336, allocations: 33.8 kB / 1.077 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.336, allocations: 4 kB / 1.077 GB, free: 0.9453 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.336, allocations: 0 / 1.077 GB, free: 0.9453 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.336, allocations: 0 / 1.077 GB, free: 0.9453 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.3371, allocations: 0.6212 MB / 1.077 GB, free: 276 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3371, allocations: 0 / 1.077 GB, free: 276 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.3373, allocations: 31.95 kB / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3373, allocations: 4 kB / 1.077 GB, free: 240 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.3373, allocations: 4 kB / 1.077 GB, free: 236 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3373, allocations: 4 kB / 1.077 GB, free: 232 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3373, allocations: 3.938 kB / 1.077 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007601/0.3381, allocations: 356.6 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.481e-05/0.3382, allocations: 92.91 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.089e-05/0.3382, allocations: 12 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000331/0.3386, allocations: 43.94 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.3387, allocations: 55.92 kB / 1.078 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.3388, allocations: 4 kB / 1.078 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001252/0.3389, allocations: 143.2 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3389, allocations: 4 kB / 1.078 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000316/0.3392, allocations: 55.84 kB / 1.078 GB, free: 15.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.000167/0.3394, allocations: 119.2 kB / 1.078 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009344/0.3403, allocations: 438.6 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3404, allocations: 3.938 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000372/0.3407, allocations: 111.9 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.3411, allocations: 55.88 kB / 1.079 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008723/0.342, allocations: 452.7 kB / 1.079 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.3423, allocations: 0.7439 MB / 1.08 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001284/0.3425, allocations: 21.95 kB / 1.08 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.984e-05/0.3426, allocations: 27.42 kB / 1.08 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of SimCode: time 3.1e-07/0.3426, allocations: 0 / 1.08 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of Templates: time 0.006801/0.3494, allocations: 3.267 MB / 1.083 GB, free: 10.18 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)