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.001442/0.001442, 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.001759/0.001759, allocations: 194.5 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.81/2.81, allocations: 472.6 MB / 0.7451 GB, free: 4.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 68.03 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3197, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003282/0.323, allocations: 2.03 MB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001015/0.3241, allocations: 0.5883 MB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.3242, allocations: 4 kB / 1.071 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.3243, allocations: 23.67 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.3245, allocations: 39.59 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.3247, allocations: 95.88 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003047/0.325, allocations: 287.3 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002803/0.3253, allocations: 119.4 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.3255, allocations: 115.6 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.3257, allocations: 135.5 kB / 1.072 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.815e-05/0.3257, allocations: 28 kB / 1.072 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.651e-05/0.3258, allocations: 35.94 kB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.533e-05/0.3258, allocations: 59.81 kB / 1.072 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.326, allocations: 119.4 kB / 1.072 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003457/0.3263, allocations: 295.3 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.3263, allocations: 0 / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.056e-06/0.3263, allocations: 0 / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.3264, allocations: 3.938 kB / 1.072 GB, free: 6.422 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.001204/0.3276, allocations: 0.6604 MB / 1.073 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3276, allocations: 8.031 kB / 1.073 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.424e-05/0.3277, allocations: 32.64 kB / 1.073 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.328, allocations: 265.2 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.328, allocations: 12.81 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.3281, allocations: 24.38 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006309/0.3287, allocations: 287.5 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.3288, allocations: 0 / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.3288, allocations: 15.98 kB / 1.073 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.3288, allocations: 4 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000683/0.3295, allocations: 205.6 kB / 1.074 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.3307, allocations: 0.6425 MB / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006755/0.3314, allocations: 202.4 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.3317, allocations: 88.78 kB / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.3317, allocations: 4 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005648/0.3323, allocations: 189.7 kB / 1.075 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 2.064e-06/0.3323, allocations: 0 / 1.075 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001092/0.3334, allocations: 345 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.3335, allocations: 144.5 kB / 1.075 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.3337, allocations: 218.6 kB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.3338, allocations: 37.64 kB / 1.075 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3339, allocations: 152.1 kB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.334, allocations: 55.42 kB / 1.076 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.3341, allocations: 61.98 kB / 1.076 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.3342, allocations: 334.8 kB / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003749/0.3346, allocations: 116.2 kB / 1.076 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004094/0.335, allocations: 192.4 kB / 1.076 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007004/0.3357, allocations: 307.5 kB / 1.076 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.3357, allocations: 4 kB / 1.076 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009514/0.3367, allocations: 431.4 kB / 1.077 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.47e-05/0.3368, allocations: 86.36 kB / 1.077 GB, free: 1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3368, allocations: 4 kB / 1.077 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.3368, allocations: 7.938 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.3371, allocations: 47.89 kB / 1.077 GB, free: 0.9414 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.3371, allocations: 7.984 kB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003582/0.3375, allocations: 71.75 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.3375, allocations: 12 kB / 1.077 GB, free: 0.8516 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.0001581/0.3377, allocations: 152.4 kB / 1.077 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.3377, allocations: 19.81 kB / 1.077 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.3378, allocations: 29.8 kB / 1.077 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3378, allocations: 4 kB / 1.077 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3378, allocations: 0 / 1.077 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.3378, allocations: 4 kB / 1.077 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.3389, allocations: 0.617 MB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3389, allocations: 0 / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.3391, allocations: 27.97 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.83e-06/0.3391, allocations: 4 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3391, allocations: 3.984 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.832e-06/0.3391, allocations: 3.938 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3392, allocations: 0 / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007715/0.3399, allocations: 360.4 kB / 1.078 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.984e-05/0.34, allocations: 92.91 kB / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.015e-05/0.3401, allocations: 15.88 kB / 1.078 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.3404, allocations: 43.94 kB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.3406, allocations: 51.94 kB / 1.078 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.3406, allocations: 7.984 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001224/0.3407, allocations: 148.6 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3407, allocations: 0 / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003267/0.3411, allocations: 59.84 kB / 1.079 GB, free: 15.14 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.0002006/0.3413, allocations: 119.7 kB / 1.079 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009721/0.3422, allocations: 443.5 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3423, allocations: 0 / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.3426, allocations: 117.8 kB / 1.079 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.343, allocations: 40.22 kB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008735/0.3439, allocations: 369 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.3442, allocations: 0.7361 MB / 1.08 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001191/0.3443, allocations: 33.92 kB / 1.08 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.228e-05/0.3444, allocations: 23.44 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of SimCode: time 7.41e-07/0.3444, allocations: 0 / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.006972/0.3514, allocations: 3.519 MB / 1.084 GB, free: 9.715 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)