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.001238/0.001238, 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.001362/0.001362, 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.832/2.832, allocations: 472.6 MB / 0.7451 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 65.38 kB / 0.912 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.307, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003311/0.3103, allocations: 2.02 MB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009629/0.3113, allocations: 0.5843 MB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.3114, allocations: 4 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.3115, allocations: 23.67 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.3117, allocations: 43.58 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.3119, allocations: 95.88 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002934/0.3122, allocations: 283.4 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002585/0.3125, allocations: 119.4 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.3127, allocations: 123.5 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.3129, allocations: 127.5 kB / 1.072 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.3129, allocations: 31.94 kB / 1.072 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.358e-05/0.313, allocations: 32 kB / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.72e-05/0.313, allocations: 63.81 kB / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.3132, allocations: 123.4 kB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.3135, allocations: 287.3 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3135, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3135, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.3135, allocations: 0 / 1.072 GB, free: 6.406 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.001242/0.3147, allocations: 0.6643 MB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.3148, allocations: 8.031 kB / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.601e-05/0.3149, allocations: 28.66 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.3153, allocations: 269.1 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.3153, allocations: 16.81 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.3153, allocations: 28.36 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00063/0.316, allocations: 287.6 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.316, allocations: 0 / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.316, allocations: 8 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.316, allocations: 4 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006947/0.3167, allocations: 213.5 kB / 1.074 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.3179, allocations: 0.6386 MB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006861/0.3186, allocations: 198.4 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003126/0.3189, allocations: 84.78 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.319, allocations: 4 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00055/0.3195, allocations: 199.4 kB / 1.075 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.843e-06/0.3195, allocations: 3.938 kB / 1.075 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001099/0.3206, allocations: 339.3 kB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/0.3207, allocations: 140.5 kB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.3209, allocations: 218.6 kB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.321, allocations: 37.7 kB / 1.075 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.3211, allocations: 164.1 kB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.3211, allocations: 43.45 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.3213, allocations: 65.97 kB / 1.076 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3214, allocations: 334.8 kB / 1.076 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.3218, allocations: 120.2 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004107/0.3222, allocations: 192.4 kB / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006805/0.3229, allocations: 307.8 kB / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3229, allocations: 0 / 1.076 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009284/0.3238, allocations: 427.4 kB / 1.077 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.32e-05/0.3239, allocations: 94.5 kB / 1.077 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.3239, allocations: 0 / 1.077 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.3239, allocations: 7.938 kB / 1.077 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002479/0.3242, allocations: 39.91 kB / 1.077 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.3242, allocations: 11.97 kB / 1.077 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.3246, allocations: 75.75 kB / 1.077 GB, free: 0.8398 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.3246, allocations: 8 kB / 1.077 GB, free: 0.832 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.0001806/0.3248, allocations: 152.4 kB / 1.077 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.561e-05/0.3248, allocations: 15.81 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.135e-05/0.3249, allocations: 33.8 kB / 1.077 GB, free: 0.6328 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.3249, allocations: 4 kB / 1.077 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3249, allocations: 0 / 1.077 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3249, allocations: 4 kB / 1.077 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.3261, allocations: 0.6168 MB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3261, allocations: 0 / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.3263, allocations: 35.95 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3263, allocations: 4 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.3263, allocations: 0 / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.3263, allocations: 4 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3263, allocations: 0 / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008155/0.3271, allocations: 358.9 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.046e-05/0.3272, allocations: 96.86 kB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.058e-05/0.3273, allocations: 8 kB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003355/0.3276, allocations: 43.94 kB / 1.078 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.3278, allocations: 55.92 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-05/0.3278, allocations: 7.938 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001296/0.3279, allocations: 148.6 kB / 1.079 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.328, allocations: 0 / 1.079 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003422/0.3283, allocations: 63.83 kB / 1.079 GB, free: 15.11 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.000209/0.3285, allocations: 115.7 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009854/0.3295, allocations: 445.2 kB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3295, allocations: 4 kB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003864/0.3299, allocations: 115.9 kB / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/0.3303, allocations: 43.97 kB / 1.079 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008914/0.3312, allocations: 369 kB / 1.08 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.3316, allocations: 0.7439 MB / 1.08 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001263/0.3318, allocations: 25.94 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.954e-05/0.3318, allocations: 27.42 kB / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.3319, allocations: 0 / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of Templates: time 0.008329/0.3402, allocations: 3.505 MB / 1.084 GB, free: 9.695 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)