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.001455/0.001455, allocations: 106.6 kB / 16.41 MB, free: 6 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.00153/0.00153, allocations: 186.5 kB / 17.34 MB, free: 5.586 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.598/2.598, allocations: 472.7 MB / 0.746 GB, free: 408 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 67.91 kB / 1.07 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9774/0.9788, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003461/0.9823, allocations: 2.036 MB / 1.228 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001025/0.9834, allocations: 0.565 MB / 1.229 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.9835, allocations: 8 kB / 1.229 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.9837, allocations: 23.67 kB / 1.229 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.9838, allocations: 43.59 kB / 1.229 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.9841, allocations: 99.81 kB / 1.229 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003464/0.9844, allocations: 295.2 kB / 1.229 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002672/0.9847, allocations: 119.5 kB / 1.23 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.9849, allocations: 119.5 kB / 1.23 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.985, allocations: 127.5 kB / 1.23 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.865e-05/0.9851, allocations: 28 kB / 1.23 GB, free: 10.01 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 3.599e-05/0.9851, allocations: 28 kB / 1.23 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.783e-05/0.9852, allocations: 67.75 kB / 1.23 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.9853, allocations: 119.4 kB / 1.23 GB, free: 9.801 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003511/0.9857, allocations: 303.3 kB / 1.23 GB, free: 9.508 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.9857, allocations: 4 kB / 1.23 GB, free: 9.504 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9857, allocations: 0 / 1.23 GB, free: 9.504 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.888e-06/0.9857, allocations: 0 / 1.23 GB, free: 9.504 MB / 0.9512 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.001185/0.9869, allocations: 0.6642 MB / 1.231 GB, free: 8.773 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.987, allocations: 12.03 kB / 1.231 GB, free: 8.762 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.328e-05/0.987, allocations: 28.8 kB / 1.231 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/0.9874, allocations: 273.8 kB / 1.231 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.9875, allocations: 20.81 kB / 1.231 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.59e-05/0.9875, allocations: 28.34 kB / 1.231 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006051/0.9881, allocations: 283.6 kB / 1.232 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.9882, allocations: 4 kB / 1.232 GB, free: 8.078 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.9882, allocations: 8 kB / 1.232 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.9882, allocations: 7.938 kB / 1.232 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006151/0.9888, allocations: 201.5 kB / 1.232 GB, free: 7.867 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.9899, allocations: 0.6388 MB / 1.232 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005879/0.9905, allocations: 206.3 kB / 1.233 GB, free: 6.969 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.9908, allocations: 84.78 kB / 1.233 GB, free: 6.883 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.9908, allocations: 4 kB / 1.233 GB, free: 6.879 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004441/0.9913, allocations: 203.1 kB / 1.233 GB, free: 6.668 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=19): time 1.733e-06/0.9913, allocations: 0 / 1.233 GB, free: 6.668 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001012/0.9923, allocations: 343 kB / 1.233 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.388e-05/0.9924, allocations: 140.5 kB / 1.233 GB, free: 6.16 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.9926, allocations: 207 kB / 1.233 GB, free: 5.949 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.9927, allocations: 37.7 kB / 1.234 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.9928, allocations: 160.7 kB / 1.234 GB, free: 5.746 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.193e-05/0.9928, allocations: 55.56 kB / 1.234 GB, free: 5.691 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.9929, allocations: 65.97 kB / 1.234 GB, free: 5.621 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.9931, allocations: 338.8 kB / 1.234 GB, free: 5.281 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/0.9934, allocations: 116.2 kB / 1.234 GB, free: 5.168 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003731/0.9938, allocations: 188.4 kB / 1.234 GB, free: 4.957 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005971/0.9944, allocations: 314.4 kB / 1.235 GB, free: 4.613 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.9944, allocations: 0 / 1.235 GB, free: 4.613 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000844/0.9953, allocations: 427.5 kB / 1.235 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.19e-05/0.9954, allocations: 93.09 kB / 1.235 GB, free: 4.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.9954, allocations: 0 / 1.235 GB, free: 4.062 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.9954, allocations: 7.938 kB / 1.235 GB, free: 4.055 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.9956, allocations: 39.91 kB / 1.235 GB, free: 4.016 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.9956, allocations: 7.984 kB / 1.235 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.996, allocations: 67.91 kB / 1.235 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.996, allocations: 12 kB / 1.235 GB, free: 3.93 MB / 0.9512 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.0001691/0.9962, allocations: 153 kB / 1.235 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/0.9962, allocations: 19.86 kB / 1.236 GB, free: 3.75 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.231e-05/0.9963, allocations: 33.8 kB / 1.236 GB, free: 3.715 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.9963, allocations: 4 kB / 1.236 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.9963, allocations: 4 kB / 1.236 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.9963, allocations: 0 / 1.236 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.9973, allocations: 0.6172 MB / 1.236 GB, free: 3.035 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.9973, allocations: 0 / 1.236 GB, free: 3.035 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.9975, allocations: 35.95 kB / 1.236 GB, free: 3 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.9975, allocations: 0 / 1.236 GB, free: 3 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.9975, allocations: 4 kB / 1.236 GB, free: 2.996 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.9975, allocations: 4 kB / 1.236 GB, free: 2.992 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.9975, allocations: 3.938 kB / 1.236 GB, free: 2.988 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006787/0.9982, allocations: 355.1 kB / 1.237 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.546e-05/0.9983, allocations: 89.02 kB / 1.237 GB, free: 2.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.762e-05/0.9983, allocations: 12 kB / 1.237 GB, free: 2.508 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002916/0.9986, allocations: 43.94 kB / 1.237 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.9988, allocations: 59.88 kB / 1.237 GB, free: 2.406 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.9988, allocations: 8 kB / 1.237 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001264/0.999, allocations: 144.6 kB / 1.237 GB, free: 2.258 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.999, allocations: 0 / 1.237 GB, free: 2.258 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003079/0.9993, allocations: 59.88 kB / 1.237 GB, free: 2.199 MB / 0.9512 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.0001645/0.9994, allocations: 115.2 kB / 1.237 GB, free: 2.074 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008501/1, allocations: 430.4 kB / 1.237 GB, free: 1.617 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1, allocations: 0 / 1.237 GB, free: 1.617 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003338/1.001, allocations: 113.6 kB / 1.238 GB, free: 1.508 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/1.001, allocations: 48.16 kB / 1.238 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008245/1.002, allocations: 404.2 kB / 1.238 GB, free: 1.039 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/1.002, allocations: 0.7437 MB / 1.239 GB, free: 276 kB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.32e-05/1.002, allocations: 31.42 kB / 1.239 GB, free: 244 kB / 0.9512 GB Notification: Performance of SimCode: time 3.61e-07/1.002, allocations: 0 / 1.239 GB, free: 244 kB / 0.9512 GB Notification: Performance of Templates: time 0.004978/1.007, allocations: 3.106 MB / 1.242 GB, free: 13.16 MB / 0.9669 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