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.001575/0.001575, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001985/0.001985, allocations: 192.2 kB / 16.14 MB, free: 6.688 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.397/1.397, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.802/2.802, allocations: 472.6 MB / 0.7447 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.05 kB / 0.9114 GB, free: 33.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3154, allocations: 159.9 MB / 1.068 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003377/0.3188, allocations: 2.072 MB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.3199, allocations: 0.5766 MB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.3201, allocations: 4 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.3203, allocations: 15.84 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.3204, allocations: 31.72 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.3207, allocations: 87.92 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002817/0.321, allocations: 263.3 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.3212, allocations: 115.2 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.3214, allocations: 103.5 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.3216, allocations: 127.4 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.94e-05/0.3217, allocations: 16 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.118e-05/0.3217, allocations: 16 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.449e-05/0.3218, allocations: 51.83 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.3219, allocations: 107.4 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.3222, allocations: 275.3 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3222, allocations: 0 / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.71e-07/0.3222, allocations: 0 / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.826e-06/0.3222, allocations: 0 / 1.071 GB, free: 7.008 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.001327/0.3236, allocations: 0.6721 MB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.3236, allocations: 8.031 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.981e-05/0.3237, allocations: 28.66 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.324, allocations: 269.2 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.3241, allocations: 16.81 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.393e-05/0.3241, allocations: 24.38 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.3248, allocations: 283.6 kB / 1.073 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3248, allocations: 3.938 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.3248, allocations: 15.98 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.3249, allocations: 4 kB / 1.073 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006755/0.3255, allocations: 209.6 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.3267, allocations: 0.6425 MB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006448/0.3274, allocations: 202.4 kB / 1.074 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003272/0.3277, allocations: 88.78 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.3277, allocations: 4 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005703/0.3283, allocations: 191.4 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.994e-06/0.3283, allocations: 0 / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001104/0.3294, allocations: 343.1 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.375e-05/0.3295, allocations: 136.5 kB / 1.074 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.3297, allocations: 218.6 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.3298, allocations: 37.7 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.3299, allocations: 160.1 kB / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/0.3299, allocations: 39.45 kB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.33, allocations: 69.97 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3301, allocations: 330.8 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000376/0.3305, allocations: 120.2 kB / 1.075 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/0.331, allocations: 188.4 kB / 1.075 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007245/0.3317, allocations: 304.3 kB / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3317, allocations: 0 / 1.076 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009426/0.3327, allocations: 431.4 kB / 1.076 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.832e-05/0.3327, allocations: 93.09 kB / 1.076 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3327, allocations: 0 / 1.076 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.3328, allocations: 7.938 kB / 1.076 GB, free: 1.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.333, allocations: 47.89 kB / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.333, allocations: 4 kB / 1.076 GB, free: 1.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.3334, allocations: 71.75 kB / 1.076 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.3334, allocations: 8 kB / 1.076 GB, free: 1.441 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.0001625/0.3336, allocations: 156.4 kB / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.3337, allocations: 15.81 kB / 1.077 GB, free: 1.262 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.645e-05/0.3337, allocations: 29.81 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.3337, allocations: 7.938 kB / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3338, allocations: 0 / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3338, allocations: 3.984 kB / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.3349, allocations: 0.6167 MB / 1.077 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3349, allocations: 3.938 kB / 1.077 GB, free: 0.5508 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.3351, allocations: 31.97 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3351, allocations: 4 kB / 1.077 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.3351, allocations: 3.984 kB / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.3352, allocations: 4 kB / 1.077 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3352, allocations: 11.92 kB / 1.077 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008255/0.336, allocations: 355 kB / 1.078 GB, free: 136 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.307e-05/0.3361, allocations: 88.92 kB / 1.078 GB, free: 28 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/0.3361, allocations: 11.98 kB / 1.078 GB, free: 16 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/0.3365, allocations: 44 kB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.3367, allocations: 51.86 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.3367, allocations: 4 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000123/0.3368, allocations: 147.2 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3368, allocations: 0 / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003282/0.3372, allocations: 63.83 kB / 1.078 GB, free: 15.71 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.0001695/0.3373, allocations: 115.2 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009403/0.3383, allocations: 436.6 kB / 1.078 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3383, allocations: 0 / 1.078 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003916/0.3387, allocations: 115.9 kB / 1.079 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003951/0.3391, allocations: 48.03 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009352/0.34, allocations: 442.7 kB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.3404, allocations: 0.7481 MB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001284/0.3405, allocations: 25.94 kB / 1.08 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.719e-05/0.3406, allocations: 27.42 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of SimCode: time 3.8e-07/0.3406, allocations: 0 / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of Templates: time 0.007028/0.3476, allocations: 3.08 MB / 1.083 GB, free: 10.65 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)