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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 113.9 kB / 18.94 MB, free: 2.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 191.7 kB / 22.23 MB, free: 5.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 225.6 MB / 251 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.177/3.177, allocations: 495.7 MB / 0.7831 GB, free: 33.54 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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=100,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=100,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 65.08 kB / 1.137 GB, free: 33.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3488, allocations: 173.6 MB / 1.307 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.00364/0.3524, allocations: 2.063 MB / 1.309 GB, free: 15.88 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001057/0.3535, allocations: 0.5845 MB / 1.31 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.948e-05/0.3536, allocations: 7.938 kB / 1.31 GB, free: 15.28 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.3537, allocations: 19.73 kB / 1.31 GB, free: 15.26 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.3538, allocations: 51.58 kB / 1.31 GB, free: 15.21 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.3541, allocations: 83.89 kB / 1.31 GB, free: 15.12 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.3544, allocations: 303 kB / 1.31 GB, free: 14.83 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.3546, allocations: 83.94 kB / 1.31 GB, free: 14.74 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.3548, allocations: 123.6 kB / 1.31 GB, free: 14.62 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.3549, allocations: 131.4 kB / 1.31 GB, free: 14.49 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/0.355, allocations: 28 kB / 1.31 GB, free: 14.46 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.666e-05/0.355, allocations: 32 kB / 1.31 GB, free: 14.43 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.468e-05/0.3551, allocations: 67.75 kB / 1.31 GB, free: 14.36 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.3552, allocations: 119.4 kB / 1.311 GB, free: 14.25 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003521/0.3556, allocations: 298.8 kB / 1.311 GB, free: 13.95 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.3556, allocations: 0 / 1.311 GB, free: 13.95 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3556, allocations: 0 / 1.311 GB, free: 13.95 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.3556, allocations: 0 / 1.311 GB, free: 13.95 MB / 1.014 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.001229/0.3568, allocations: 0.5966 MB / 1.311 GB, free: 13.31 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.3569, allocations: 11.97 kB / 1.311 GB, free: 13.3 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.562e-05/0.3569, allocations: 32.75 kB / 1.312 GB, free: 13.27 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.3573, allocations: 204.1 kB / 1.312 GB, free: 13.04 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.3573, allocations: 12.81 kB / 1.312 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.3573, allocations: 28.36 kB / 1.312 GB, free: 13 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006957/0.358, allocations: 287.6 kB / 1.312 GB, free: 12.7 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.358, allocations: 0 / 1.312 GB, free: 12.7 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.3581, allocations: 8 kB / 1.312 GB, free: 12.69 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3581, allocations: 11.98 kB / 1.312 GB, free: 12.68 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.3588, allocations: 205.5 kB / 1.312 GB, free: 12.48 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.3601, allocations: 0.6105 MB / 1.313 GB, free: 11.82 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007069/0.3608, allocations: 182.4 kB / 1.313 GB, free: 11.64 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003427/0.3611, allocations: 88.78 kB / 1.313 GB, free: 11.55 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.3611, allocations: 4 kB / 1.313 GB, free: 11.54 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005181/0.3617, allocations: 196.9 kB / 1.313 GB, free: 11.34 MB / 1.014 GB Notification: Performance of pre-optimization done (n=19): time 3.366e-06/0.3617, allocations: 8 kB / 1.313 GB, free: 11.33 MB / 1.014 GB Notification: Performance of matching and sorting (n=19): time 0.001164/0.3628, allocations: 339.4 kB / 1.314 GB, free: 11 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.678e-05/0.3629, allocations: 140.5 kB / 1.314 GB, free: 10.83 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.3631, allocations: 215.1 kB / 1.314 GB, free: 10.61 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.3632, allocations: 37.7 kB / 1.314 GB, free: 10.57 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.3633, allocations: 160.4 kB / 1.314 GB, free: 10.41 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.639e-05/0.3634, allocations: 43.64 kB / 1.314 GB, free: 10.36 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.3635, allocations: 69.97 kB / 1.314 GB, free: 10.29 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3636, allocations: 330.8 kB / 1.315 GB, free: 9.957 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004049/0.364, allocations: 120.2 kB / 1.315 GB, free: 9.84 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.3645, allocations: 185.8 kB / 1.315 GB, free: 9.633 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007273/0.3652, allocations: 310.5 kB / 1.315 GB, free: 9.293 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3652, allocations: 4 kB / 1.315 GB, free: 9.289 MB / 1.014 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009951/0.3662, allocations: 423.5 kB / 1.316 GB, free: 8.852 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 6.97e-05/0.3663, allocations: 97.25 kB / 1.316 GB, free: 8.738 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.3663, allocations: 0 / 1.316 GB, free: 8.738 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3663, allocations: 7.938 kB / 1.316 GB, free: 8.73 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/0.3665, allocations: 43.89 kB / 1.316 GB, free: 8.688 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.3666, allocations: 4 kB / 1.316 GB, free: 8.684 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/0.3669, allocations: 71.72 kB / 1.316 GB, free: 8.613 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.572e-05/0.367, allocations: 8 kB / 1.316 GB, free: 8.605 MB / 1.014 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.0001651/0.3671, allocations: 160.3 kB / 1.316 GB, free: 8.441 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.3672, allocations: 19.91 kB / 1.316 GB, free: 8.422 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.699e-05/0.3672, allocations: 33.73 kB / 1.316 GB, free: 8.391 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3672, allocations: 4 kB / 1.316 GB, free: 8.387 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3672, allocations: 7.922 kB / 1.316 GB, free: 8.379 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.3672, allocations: 0 / 1.316 GB, free: 8.379 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.3684, allocations: 0.587 MB / 1.317 GB, free: 7.742 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3684, allocations: 0 / 1.317 GB, free: 7.742 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.3686, allocations: 31.97 kB / 1.317 GB, free: 7.711 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3686, allocations: 0 / 1.317 GB, free: 7.711 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.3686, allocations: 3.984 kB / 1.317 GB, free: 7.707 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3686, allocations: 4 kB / 1.317 GB, free: 7.703 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3686, allocations: 4 kB / 1.317 GB, free: 7.699 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008453/0.3695, allocations: 352.5 kB / 1.317 GB, free: 7.34 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.3695, allocations: 23.86 kB / 1.317 GB, free: 7.316 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.042e-05/0.3696, allocations: 11.98 kB / 1.317 GB, free: 7.305 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000358/0.3699, allocations: 43.94 kB / 1.317 GB, free: 7.262 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.3701, allocations: 51.92 kB / 1.317 GB, free: 7.211 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.3701, allocations: 7.984 kB / 1.317 GB, free: 7.203 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001375/0.3702, allocations: 148.4 kB / 1.317 GB, free: 7.059 MB / 1.014 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3702, allocations: 0 / 1.317 GB, free: 7.059 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003262/0.3706, allocations: 63.89 kB / 1.317 GB, free: 6.996 MB / 1.014 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.0001628/0.3707, allocations: 123.5 kB / 1.317 GB, free: 6.867 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0009654/0.3717, allocations: 414.9 kB / 1.318 GB, free: 6.426 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3717, allocations: 0 / 1.318 GB, free: 6.426 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004092/0.3721, allocations: 113.4 kB / 1.318 GB, free: 6.316 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.3725, allocations: 35.92 kB / 1.318 GB, free: 6.281 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009467/0.3734, allocations: 388.8 kB / 1.318 GB, free: 5.875 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.3738, allocations: 0.7437 MB / 1.319 GB, free: 5.105 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 9.98e-05/0.3739, allocations: 21.95 kB / 1.319 GB, free: 5.086 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.475e-05/0.374, allocations: 35.36 kB / 1.319 GB, free: 5.051 MB / 1.014 GB Notification: Performance of SimCode: time 3.1e-07/0.374, allocations: 0 / 1.319 GB, free: 5.051 MB / 1.014 GB Notification: Performance of Templates: time 0.00765/0.3816, allocations: 3.66 MB / 1.323 GB, free: 1.445 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.000426623038948]