Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|minFloRatSaf.sigBus.mEvaMea_flow|minFloRatSaf.sigBus.mConMea_flow|minFloRatSaf.mEvaMin_flow|minFloRatSaf.mConMin_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,tolerance=1e-08,outputFormat="mat",numberOfIntervals=200,variableFilter="time|ySet|yOut|minFloRatSaf.sigBus.mEvaMea_flow|minFloRatSaf.sigBus.mConMea_flow|minFloRatSaf.mEvaMin_flow|minFloRatSaf.mConMin_flow",fileNamePrefix="Buildings_latest_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.00138/0.00138, 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.001978/0.001978, allocations: 197.3 kB / 16.14 MB, free: 6.707 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.463/1.463, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.052/3.052, allocations: 482.4 MB / 0.7542 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 65.36 kB / 0.9232 GB, free: 29.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3566, allocations: 162.2 MB / 1.082 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003637/0.3603, allocations: 2.086 MB / 1.084 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.3614, allocations: 0.5767 MB / 1.084 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.3615, allocations: 4 kB / 1.084 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.3617, allocations: 15.8 kB / 1.084 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.3618, allocations: 23.78 kB / 1.084 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002339/0.3621, allocations: 87.91 kB / 1.084 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.3624, allocations: 263.3 kB / 1.085 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002589/0.3626, allocations: 119.3 kB / 1.085 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.3628, allocations: 111.5 kB / 1.085 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.363, allocations: 123.4 kB / 1.085 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.363, allocations: 16 kB / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.993e-05/0.3631, allocations: 16 kB / 1.085 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.052e-05/0.3631, allocations: 43.83 kB / 1.085 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.3633, allocations: 111.4 kB / 1.085 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.3636, allocations: 279.3 kB / 1.085 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3636, allocations: 3.938 kB / 1.085 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of FrontEnd: time 8.12e-07/0.3636, allocations: 0 / 1.085 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.3636, allocations: 0 / 1.085 GB, free: 9.828 MB / 0.8419 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.001329/0.3649, allocations: 0.6644 MB / 1.086 GB, free: 9.098 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.365, allocations: 12.03 kB / 1.086 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.413e-05/0.3651, allocations: 28.66 kB / 1.086 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.3654, allocations: 257.2 kB / 1.086 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.3655, allocations: 16.81 kB / 1.086 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.3655, allocations: 28.36 kB / 1.086 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000708/0.3662, allocations: 287.5 kB / 1.087 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3663, allocations: 4 kB / 1.087 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.3663, allocations: 7.938 kB / 1.087 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.3663, allocations: 4 kB / 1.087 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007342/0.3671, allocations: 209.6 kB / 1.087 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.3684, allocations: 0.6503 MB / 1.087 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000705/0.3691, allocations: 194.4 kB / 1.088 GB, free: 7.301 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.3694, allocations: 88.78 kB / 1.088 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.3694, allocations: 4 kB / 1.088 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006476/0.3701, allocations: 200.5 kB / 1.088 GB, free: 7 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 2.114e-06/0.3701, allocations: 4 kB / 1.088 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001151/0.3713, allocations: 331.9 kB / 1.088 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.882e-05/0.3714, allocations: 140.5 kB / 1.088 GB, free: 6.5 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.3716, allocations: 218.6 kB / 1.089 GB, free: 6.277 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.3716, allocations: 37.7 kB / 1.089 GB, free: 6.234 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.3718, allocations: 160.1 kB / 1.089 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.248e-05/0.3718, allocations: 47.44 kB / 1.089 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.372, allocations: 65.97 kB / 1.089 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3721, allocations: 334.8 kB / 1.089 GB, free: 5.621 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004099/0.3725, allocations: 116.2 kB / 1.089 GB, free: 5.508 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.373, allocations: 184.4 kB / 1.089 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.3737, allocations: 312.4 kB / 1.09 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3737, allocations: 0 / 1.09 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009791/0.3747, allocations: 423.5 kB / 1.09 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.423e-05/0.3748, allocations: 97.25 kB / 1.09 GB, free: 4.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3748, allocations: 3.938 kB / 1.09 GB, free: 4.406 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.3748, allocations: 7.938 kB / 1.09 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.3751, allocations: 39.91 kB / 1.09 GB, free: 4.359 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.3751, allocations: 7.984 kB / 1.09 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.3755, allocations: 71.62 kB / 1.09 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.3755, allocations: 8 kB / 1.09 GB, free: 4.273 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.0001637/0.3757, allocations: 152.4 kB / 1.091 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.68e-05/0.3757, allocations: 15.81 kB / 1.091 GB, free: 4.102 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.846e-05/0.3758, allocations: 33.8 kB / 1.091 GB, free: 4.07 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.3758, allocations: 7.938 kB / 1.091 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3758, allocations: 0 / 1.091 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3758, allocations: 0 / 1.091 GB, free: 4.062 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.377, allocations: 0.6152 MB / 1.091 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.377, allocations: 0 / 1.091 GB, free: 3.391 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.3772, allocations: 35.95 kB / 1.091 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.3772, allocations: 0 / 1.091 GB, free: 3.355 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.3772, allocations: 3.938 kB / 1.091 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.3772, allocations: 8 kB / 1.091 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3772, allocations: 0 / 1.091 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007941/0.378, allocations: 352.9 kB / 1.092 GB, free: 2.984 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-05/0.3781, allocations: 96.92 kB / 1.092 GB, free: 2.871 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.102e-05/0.3782, allocations: 12 kB / 1.092 GB, free: 2.859 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/0.3785, allocations: 43.98 kB / 1.092 GB, free: 2.816 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.3787, allocations: 55.91 kB / 1.092 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.3787, allocations: 7.984 kB / 1.092 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001413/0.3788, allocations: 148.4 kB / 1.092 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3789, allocations: 0 / 1.092 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003171/0.3792, allocations: 63.84 kB / 1.092 GB, free: 2.547 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.0001732/0.3794, allocations: 122.3 kB / 1.092 GB, free: 2.418 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009547/0.3803, allocations: 426.6 kB / 1.093 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3803, allocations: 0 / 1.093 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003975/0.3807, allocations: 119.8 kB / 1.093 GB, free: 1.848 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.3811, allocations: 31.92 kB / 1.093 GB, free: 1.816 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009378/0.3821, allocations: 454.7 kB / 1.093 GB, free: 1.348 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.3824, allocations: 0.7441 MB / 1.094 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.3826, allocations: 25.94 kB / 1.094 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.206e-05/0.3827, allocations: 23.44 kB / 1.094 GB, free: 0.5312 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.3827, allocations: 0 / 1.094 GB, free: 0.5312 MB / 0.8419 GB Notification: Performance of Templates: time 0.007125/0.3898, allocations: 3.099 MB / 1.097 GB, free: 13.49 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches