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.0008418/0.0008415, 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.005554/0.005554, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.381/1.381, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.845/2.845, allocations: 473.4 MB / 0.7469 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003186, allocations: 9.094 kB / 0.9158 GB, free: 33.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3235, allocations: 162.2 MB / 1.074 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.002346/0.3259, allocations: 1.727 MB / 1.076 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.327, allocations: 0.5688 MB / 1.076 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.3272, allocations: 3.938 kB / 1.076 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.3273, allocations: 15.86 kB / 1.076 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.3275, allocations: 35.72 kB / 1.076 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.3277, allocations: 83.91 kB / 1.077 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.328, allocations: 259.4 kB / 1.077 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002938/0.3283, allocations: 115.3 kB / 1.077 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.3284, allocations: 95.55 kB / 1.077 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.3286, allocations: 119.3 kB / 1.077 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.3287, allocations: 12 kB / 1.077 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.992e-05/0.3287, allocations: 8 kB / 1.077 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.578e-05/0.3288, allocations: 35.83 kB / 1.077 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.3289, allocations: 125.1 kB / 1.077 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003072/0.3292, allocations: 267.2 kB / 1.078 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3292, allocations: 0 / 1.078 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.364e-06/0.3292, allocations: 0 / 1.078 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.3293, allocations: 0 / 1.078 GB, free: 4.02 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.001196/0.3305, allocations: 0.6372 MB / 1.078 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.3305, allocations: 8.031 kB / 1.078 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.609e-05/0.3306, allocations: 28.66 kB / 1.078 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.3309, allocations: 269.1 kB / 1.078 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.3309, allocations: 16.81 kB / 1.078 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.072e-05/0.331, allocations: 20.38 kB / 1.078 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006528/0.3316, allocations: 303.6 kB / 1.079 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.3317, allocations: 0 / 1.079 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.3317, allocations: 8 kB / 1.079 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.3317, allocations: 8 kB / 1.079 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007206/0.3324, allocations: 237.5 kB / 1.079 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.3337, allocations: 0.6776 MB / 1.08 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007072/0.3344, allocations: 242.3 kB / 1.08 GB, free: 1.402 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003516/0.3348, allocations: 100.8 kB / 1.08 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.3348, allocations: 4 kB / 1.08 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005319/0.3354, allocations: 209 kB / 1.08 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.794e-06/0.3354, allocations: 0 / 1.08 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001158/0.3365, allocations: 395 kB / 1.081 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/0.3366, allocations: 140.5 kB / 1.081 GB, free: 0.5234 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.3368, allocations: 214.6 kB / 1.081 GB, free: 308 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.509e-05/0.3369, allocations: 41.69 kB / 1.081 GB, free: 260 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.337, allocations: 164.2 kB / 1.081 GB, free: 92 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.289e-05/0.3371, allocations: 47.36 kB / 1.081 GB, free: 44 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/0.3371, allocations: 45.73 kB / 1.081 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3373, allocations: 326.8 kB / 1.082 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003896/0.3377, allocations: 132.2 kB / 1.082 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.3381, allocations: 200.4 kB / 1.082 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007618/0.3389, allocations: 344.2 kB / 1.082 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3389, allocations: 0 / 1.082 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009707/0.3399, allocations: 467.4 kB / 1.083 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.373e-05/0.3399, allocations: 89.11 kB / 1.083 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.34, allocations: 3.938 kB / 1.083 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.34, allocations: 11.92 kB / 1.083 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.3402, allocations: 56.03 kB / 1.083 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.3403, allocations: 4 kB / 1.083 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003709/0.3406, allocations: 79.72 kB / 1.083 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.3407, allocations: 15.98 kB / 1.083 GB, free: 14.19 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.0001622/0.3408, allocations: 148.4 kB / 1.083 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.3409, allocations: 23.72 kB / 1.083 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.215e-05/0.341, allocations: 29.8 kB / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.341, allocations: 4 kB / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.341, allocations: 0 / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.341, allocations: 0 / 1.083 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.3421, allocations: 0.6503 MB / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3421, allocations: 0 / 1.084 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.3423, allocations: 47.95 kB / 1.084 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3423, allocations: 0 / 1.084 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.3423, allocations: 4 kB / 1.084 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3423, allocations: 0 / 1.084 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3424, allocations: 0 / 1.084 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000835/0.3432, allocations: 392.3 kB / 1.084 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.076e-05/0.3433, allocations: 96.89 kB / 1.084 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.3433, allocations: 8 kB / 1.084 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.3437, allocations: 67.88 kB / 1.084 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.3438, allocations: 51.92 kB / 1.084 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.3439, allocations: 7.984 kB / 1.084 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001217/0.344, allocations: 143.2 kB / 1.084 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.344, allocations: 0 / 1.084 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003077/0.3443, allocations: 59.84 kB / 1.085 GB, free: 12.38 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.0001581/0.3445, allocations: 119.2 kB / 1.085 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009222/0.3454, allocations: 462.8 kB / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3454, allocations: 4 kB / 1.085 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003977/0.3458, allocations: 137.3 kB / 1.085 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003781/0.3462, allocations: 36.67 kB / 1.085 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008933/0.3471, allocations: 450.9 kB / 1.086 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.3474, allocations: 0.7403 MB / 1.086 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.3475, allocations: 25.94 kB / 1.086 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.781e-05/0.3476, allocations: 23.44 kB / 1.086 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3476, allocations: 0 / 1.086 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of Templates: time 0.006318/0.354, allocations: 3.057 MB / 1.089 GB, free: 7.305 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)