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.001543/0.001544, allocations: 105 kB / 15.99 MB, free: 6.355 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.001549/0.00155, allocations: 199.1 kB / 16.91 MB, free: 6.188 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.406/1.406, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.756/2.756, allocations: 472.7 MB / 0.7455 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 68.02 kB / 0.9123 GB, free: 10.97 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3685, allocations: 159.9 MB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003779/0.3723, allocations: 2.075 MB / 1.07 GB, free: 8.996 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001082/0.3734, allocations: 0.5689 MB / 1.071 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.3736, allocations: 0 / 1.071 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.3737, allocations: 23.8 kB / 1.071 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.3739, allocations: 27.78 kB / 1.071 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.3741, allocations: 83.84 kB / 1.071 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003564/0.3745, allocations: 283.4 kB / 1.071 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002924/0.3748, allocations: 135.4 kB / 1.072 GB, free: 7.879 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.375, allocations: 119.5 kB / 1.072 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.3751, allocations: 127.4 kB / 1.072 GB, free: 7.637 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.067e-05/0.3752, allocations: 32 kB / 1.072 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.688e-05/0.3753, allocations: 28 kB / 1.072 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.384e-05/0.3753, allocations: 71.69 kB / 1.072 GB, free: 7.508 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.3755, allocations: 119.4 kB / 1.072 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.3758, allocations: 219.8 kB / 1.072 GB, free: 7.176 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3758, allocations: 0 / 1.072 GB, free: 7.176 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3758, allocations: 4 kB / 1.072 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.3758, allocations: 0 / 1.072 GB, free: 7.172 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.001312/0.3771, allocations: 0.6565 MB / 1.073 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3772, allocations: 12.03 kB / 1.073 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/0.3773, allocations: 28.66 kB / 1.073 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.3776, allocations: 273.7 kB / 1.073 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.3777, allocations: 16.81 kB / 1.073 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.3777, allocations: 24.38 kB / 1.073 GB, free: 6.062 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006744/0.3784, allocations: 283.5 kB / 1.074 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.3784, allocations: 0 / 1.074 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.3784, allocations: 16 kB / 1.074 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.3785, allocations: 4 kB / 1.074 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000682/0.3791, allocations: 201.6 kB / 1.074 GB, free: 5.551 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.3804, allocations: 0.6464 MB / 1.074 GB, free: 4.855 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006711/0.3811, allocations: 198.4 kB / 1.075 GB, free: 4.652 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003036/0.3814, allocations: 96.78 kB / 1.075 GB, free: 4.555 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.3815, allocations: 0 / 1.075 GB, free: 4.555 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005672/0.382, allocations: 189.5 kB / 1.075 GB, free: 4.359 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.643e-06/0.382, allocations: 0 / 1.075 GB, free: 4.359 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001119/0.3832, allocations: 342.8 kB / 1.075 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.3833, allocations: 140.5 kB / 1.075 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.3835, allocations: 216.1 kB / 1.075 GB, free: 3.633 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.3836, allocations: 37.7 kB / 1.076 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.3837, allocations: 160.1 kB / 1.076 GB, free: 3.43 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.3838, allocations: 43.45 kB / 1.076 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.3839, allocations: 69.97 kB / 1.076 GB, free: 3.312 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.3841, allocations: 330.8 kB / 1.076 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003618/0.3844, allocations: 112.2 kB / 1.076 GB, free: 2.871 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004313/0.3849, allocations: 188.4 kB / 1.076 GB, free: 2.66 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006819/0.3856, allocations: 299.8 kB / 1.077 GB, free: 2.332 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.3856, allocations: 3.984 kB / 1.077 GB, free: 2.328 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009358/0.3865, allocations: 424.4 kB / 1.077 GB, free: 1.891 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.46e-05/0.3866, allocations: 97.03 kB / 1.077 GB, free: 1.777 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3866, allocations: 4 kB / 1.077 GB, free: 1.773 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.3867, allocations: 8.094 kB / 1.077 GB, free: 1.766 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.3869, allocations: 47.95 kB / 1.077 GB, free: 1.719 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3869, allocations: 11.81 kB / 1.077 GB, free: 1.707 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.3873, allocations: 67.62 kB / 1.077 GB, free: 1.641 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/0.3873, allocations: 8 kB / 1.077 GB, free: 1.633 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.000175/0.3875, allocations: 156.4 kB / 1.077 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/0.3875, allocations: 23.81 kB / 1.077 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.365e-05/0.3876, allocations: 25.81 kB / 1.078 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3876, allocations: 0 / 1.078 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3876, allocations: 0 / 1.078 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.3876, allocations: 3.984 kB / 1.078 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.3888, allocations: 0.6152 MB / 1.078 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.3888, allocations: 0 / 1.078 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.389, allocations: 35.91 kB / 1.078 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.389, allocations: 0 / 1.078 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.389, allocations: 7.984 kB / 1.078 GB, free: 0.7109 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.389, allocations: 0 / 1.078 GB, free: 0.7109 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3891, allocations: 0 / 1.078 GB, free: 0.7109 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007722/0.3898, allocations: 357.2 kB / 1.078 GB, free: 356 kB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.473e-05/0.3899, allocations: 92.97 kB / 1.079 GB, free: 244 kB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.255e-05/0.39, allocations: 15.97 kB / 1.079 GB, free: 228 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000323/0.3903, allocations: 43.94 kB / 1.079 GB, free: 184 kB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.3905, allocations: 51.94 kB / 1.079 GB, free: 132 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.3905, allocations: 7.984 kB / 1.079 GB, free: 124 kB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.5651/0.9556, allocations: 150.2 kB / 1.079 GB, free: 18.96 MB / 0.8419 GB Notification: Performance of sort global known variables: time 7.01e-07/0.9556, allocations: 0 / 1.079 GB, free: 18.96 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005396/0.9562, allocations: 61.62 kB / 1.079 GB, free: 18.96 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.0002195/0.9564, allocations: 112.6 kB / 1.079 GB, free: 18.88 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001091/0.9575, allocations: 440.5 kB / 1.079 GB, free: 18.69 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.9575, allocations: 0.7188 kB / 1.079 GB, free: 18.69 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003939/0.9579, allocations: 109.9 kB / 1.08 GB, free: 18.69 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.9583, allocations: 35.3 kB / 1.08 GB, free: 18.69 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009931/0.9593, allocations: 491.1 kB / 1.08 GB, free: 18.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.9595, allocations: 0.7399 MB / 1.081 GB, free: 17.7 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.9597, allocations: 27.27 kB / 1.081 GB, free: 17.69 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/0.9597, allocations: 0 / 1.081 GB, free: 17.69 MB / 0.8419 GB Notification: Performance of Templates: time 0.006741/0.9664, allocations: 3.07 MB / 1.084 GB, free: 17.51 MB / 0.8419 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=480 -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/jenkins1/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