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.001694/0.001694, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001934/0.001934, allocations: 193.8 kB / 16.14 MB, free: 6.66 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.391/1.391, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.835/2.835, allocations: 472.6 MB / 0.7447 GB, free: 5 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 65.2 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3047, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.00395/0.3087, allocations: 2.081 MB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001208/0.3099, allocations: 0.5805 MB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.3101, allocations: 4 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.3103, allocations: 15.8 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.3105, allocations: 31.78 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.3108, allocations: 87.91 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003728/0.3111, allocations: 259.3 kB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003217/0.3115, allocations: 115.9 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002406/0.3117, allocations: 103.5 kB / 1.071 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.312, allocations: 127.4 kB / 1.071 GB, free: 7.477 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.599e-05/0.312, allocations: 20 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.565e-05/0.3121, allocations: 16 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.671e-05/0.3122, allocations: 47.81 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.3123, allocations: 107.3 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.3126, allocations: 283.3 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3126, allocations: 3.938 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.11e-07/0.3126, allocations: 0 / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.3126, 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.001309/0.3139, allocations: 0.6605 MB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.314, allocations: 8.031 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.641e-05/0.3141, allocations: 32.64 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.3144, allocations: 265.2 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.3144, allocations: 16.81 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.493e-05/0.3145, allocations: 20.38 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006618/0.3151, allocations: 291.5 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.3152, allocations: 4 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.3152, allocations: 7.984 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3152, allocations: 4 kB / 1.073 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007016/0.3159, allocations: 205.6 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.3171, allocations: 0.6464 MB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/0.3178, allocations: 198.4 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/0.3182, allocations: 84.78 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.3182, allocations: 4 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005809/0.3188, allocations: 195.4 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 2.144e-06/0.3188, allocations: 0 / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001145/0.3199, allocations: 342.8 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.442e-05/0.32, allocations: 136.5 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.3203, allocations: 218.6 kB / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.3203, allocations: 45.58 kB / 1.075 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.3204, allocations: 160.1 kB / 1.075 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.892e-05/0.3205, allocations: 47.44 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.3206, allocations: 57.98 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3207, allocations: 342.8 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/0.3211, allocations: 112.2 kB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004278/0.3215, allocations: 180.4 kB / 1.075 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006964/0.3222, allocations: 312.3 kB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3223, allocations: 0 / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009675/0.3232, allocations: 435.4 kB / 1.076 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.52e-05/0.3233, allocations: 89.11 kB / 1.076 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3233, allocations: 0 / 1.076 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.3233, allocations: 7.938 kB / 1.076 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.3236, allocations: 43.89 kB / 1.076 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.3236, allocations: 7.938 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.324, allocations: 71.75 kB / 1.076 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.324, allocations: 12 kB / 1.076 GB, free: 1.449 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.0001623/0.3242, allocations: 156.3 kB / 1.077 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.3242, allocations: 15.81 kB / 1.077 GB, free: 1.27 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.208e-05/0.3243, allocations: 29.8 kB / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.3243, allocations: 4 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3243, allocations: 4.047 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3243, allocations: 3.984 kB / 1.077 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.3255, allocations: 0.6164 MB / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3255, allocations: 0 / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.3257, allocations: 35.91 kB / 1.077 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3257, allocations: 0 / 1.077 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.3257, allocations: 7.984 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3257, allocations: 4 kB / 1.077 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3257, allocations: 0 / 1.077 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007684/0.3265, allocations: 352.7 kB / 1.078 GB, free: 160 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.492e-05/0.3266, allocations: 92.91 kB / 1.078 GB, free: 48 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.983e-05/0.3266, allocations: 11.94 kB / 1.078 GB, free: 36 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003482/0.327, allocations: 47.94 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.3271, allocations: 51.92 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.3272, allocations: 11.98 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001235/0.3273, allocations: 143.2 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3273, allocations: 0 / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003312/0.3276, allocations: 55.84 kB / 1.078 GB, free: 15.73 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.0001453/0.3278, allocations: 125 kB / 1.078 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009329/0.3287, allocations: 430.3 kB / 1.078 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3288, allocations: 0 / 1.078 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003934/0.3292, allocations: 115.9 kB / 1.079 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.3296, allocations: 42.86 kB / 1.079 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009241/0.3305, allocations: 444.7 kB / 1.079 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.3308, allocations: 0.7403 MB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001266/0.331, allocations: 21.95 kB / 1.08 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.379e-05/0.3311, allocations: 23.42 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.3311, allocations: 0 / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of Templates: time 0.007154/0.3382, allocations: 3.101 MB / 1.083 GB, free: 10.67 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)