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.001849/0.001849, allocations: 113.9 kB / 17.61 MB, free: 4.684 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.002076/0.002076, allocations: 185.9 kB / 20.78 MB, free: 1.52 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.447/1.447, allocations: 225.6 MB / 249.4 MB, free: 3.145 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.89/2.89, allocations: 496.2 MB / 0.7819 GB, free: 12.23 MB / 0.6231 GB " [Timeout remaining time 176] 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=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.002072/0.002072, allocations: 63.89 kB / 1.136 GB, free: 12.34 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9183/0.9204, allocations: 173.6 MB / 1.305 GB, free: 33.46 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003015/0.9234, allocations: 2.077 MB / 1.307 GB, free: 32.03 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008256/0.9242, allocations: 0.577 MB / 1.308 GB, free: 31.62 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.9243, allocations: 10.56 kB / 1.308 GB, free: 31.61 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.9244, allocations: 19.17 kB / 1.308 GB, free: 31.6 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.9246, allocations: 47.98 kB / 1.308 GB, free: 31.56 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.9248, allocations: 97.48 kB / 1.308 GB, free: 31.5 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.9251, allocations: 282.5 kB / 1.308 GB, free: 31.38 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.9253, allocations: 93.02 kB / 1.309 GB, free: 31.32 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.9254, allocations: 123.6 kB / 1.309 GB, free: 31.26 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.9255, allocations: 129.1 kB / 1.309 GB, free: 31.19 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.313e-05/0.9256, allocations: 27.16 kB / 1.309 GB, free: 31.19 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.641e-05/0.9256, allocations: 29.91 kB / 1.309 GB, free: 31.19 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.8e-05/0.9256, allocations: 65.83 kB / 1.309 GB, free: 31.15 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.881e-05/0.9257, allocations: 124.3 kB / 1.309 GB, free: 31.06 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.926, allocations: 297.5 kB / 1.309 GB, free: 30.94 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.926, allocations: 3.938 kB / 1.309 GB, free: 30.94 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.432e-06/0.926, allocations: 0 / 1.309 GB, free: 30.94 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.317e-06/0.926, allocations: 0 / 1.309 GB, free: 30.94 MB / 1.061 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.001065/0.9271, allocations: 0.6628 MB / 1.31 GB, free: 30.38 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.9271, allocations: 15.92 kB / 1.31 GB, free: 30.37 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.304e-05/0.9272, allocations: 27.17 kB / 1.31 GB, free: 30.36 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.9275, allocations: 260.6 kB / 1.31 GB, free: 30.11 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.9275, allocations: 24.47 kB / 1.31 GB, free: 30.09 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.9275, allocations: 21.86 kB / 1.31 GB, free: 30.09 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000567/0.9281, allocations: 286.4 kB / 1.311 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.9281, allocations: 0 / 1.311 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.599e-05/0.9281, allocations: 10.81 kB / 1.311 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.9281, allocations: 14.61 kB / 1.311 GB, free: 29.93 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006276/0.9288, allocations: 199.6 kB / 1.311 GB, free: 29.89 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009835/0.9297, allocations: 0.6492 MB / 1.311 GB, free: 29.47 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.9303, allocations: 195.1 kB / 1.312 GB, free: 29.41 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.9306, allocations: 88.39 kB / 1.312 GB, free: 29.38 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.9306, allocations: 0 / 1.312 GB, free: 29.38 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004566/0.9311, allocations: 198.7 kB / 1.312 GB, free: 29.29 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 1.423e-06/0.9311, allocations: 0 / 1.312 GB, free: 29.29 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0009772/0.9321, allocations: 344 kB / 1.312 GB, free: 29.19 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.9321, allocations: 142.1 kB / 1.312 GB, free: 29.03 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.9323, allocations: 213 kB / 1.313 GB, free: 28.88 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.9323, allocations: 38.64 kB / 1.313 GB, free: 28.85 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.9324, allocations: 150.8 kB / 1.313 GB, free: 28.71 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.9324, allocations: 62.88 kB / 1.313 GB, free: 28.67 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.961e-05/0.9325, allocations: 64.86 kB / 1.313 GB, free: 28.63 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.689e-05/0.9326, allocations: 332.1 kB / 1.313 GB, free: 28.31 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.9329, allocations: 117.4 kB / 1.313 GB, free: 28.28 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.9333, allocations: 187.4 kB / 1.313 GB, free: 28.17 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005811/0.9339, allocations: 317.6 kB / 1.314 GB, free: 27.96 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.9339, allocations: 0 / 1.314 GB, free: 27.96 MB / 1.061 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008036/0.9347, allocations: 428 kB / 1.314 GB, free: 27.75 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.495e-05/0.9347, allocations: 89.03 kB / 1.314 GB, free: 27.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.9347, allocations: 0 / 1.314 GB, free: 27.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.9348, allocations: 6.688 kB / 1.314 GB, free: 27.65 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002246/0.935, allocations: 52.64 kB / 1.314 GB, free: 27.64 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.935, allocations: 2.906 kB / 1.314 GB, free: 27.64 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.9353, allocations: 63.53 kB / 1.314 GB, free: 27.62 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.9353, allocations: 19.8 kB / 1.314 GB, free: 27.62 MB / 1.061 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.0001197/0.9355, allocations: 146.1 kB / 1.315 GB, free: 27.48 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.9355, allocations: 22.03 kB / 1.315 GB, free: 27.47 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.639e-05/0.9356, allocations: 34.83 kB / 1.315 GB, free: 27.45 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.9356, allocations: 0 / 1.315 GB, free: 27.45 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.9356, allocations: 0 / 1.315 GB, free: 27.45 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.9356, allocations: 3 kB / 1.315 GB, free: 27.45 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.9366, allocations: 0.6222 MB / 1.315 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.9366, allocations: 0 / 1.315 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.9367, allocations: 28.88 kB / 1.315 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.9367, allocations: 0 / 1.315 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.9367, allocations: 10.38 kB / 1.315 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.9368, allocations: 0 / 1.315 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.9368, allocations: 3.938 kB / 1.315 GB, free: 27.03 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006417/0.9374, allocations: 359.5 kB / 1.316 GB, free: 26.84 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.9374, allocations: 92.92 kB / 1.316 GB, free: 26.73 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.802e-05/0.9375, allocations: 6.844 kB / 1.316 GB, free: 26.73 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.9378, allocations: 47.38 kB / 1.316 GB, free: 26.73 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.9379, allocations: 49.62 kB / 1.316 GB, free: 26.71 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.9379, allocations: 7.594 kB / 1.316 GB, free: 26.71 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.815e-05/0.938, allocations: 150.1 kB / 1.316 GB, free: 26.62 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.938, allocations: 4 kB / 1.316 GB, free: 26.61 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003177/0.9384, allocations: 66.31 kB / 1.316 GB, free: 26.59 MB / 1.061 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.0001395/0.9385, allocations: 116.7 kB / 1.316 GB, free: 26.5 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007853/0.9393, allocations: 414.8 kB / 1.317 GB, free: 26.25 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.9393, allocations: 0 / 1.317 GB, free: 26.25 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003315/0.9396, allocations: 114.2 kB / 1.317 GB, free: 26.22 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.94, allocations: 34.44 kB / 1.317 GB, free: 26.21 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007912/0.9408, allocations: 398.9 kB / 1.317 GB, free: 25.96 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.9409, allocations: 0.7446 MB / 1.318 GB, free: 25.25 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.909e-05/0.941, allocations: 22.36 kB / 1.318 GB, free: 25.25 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.963e-05/0.9411, allocations: 24.56 kB / 1.318 GB, free: 25.24 MB / 1.061 GB Notification: Performance of SimCode: time 6.02e-07/0.9411, allocations: 4 kB / 1.318 GB, free: 25.24 MB / 1.061 GB Notification: Performance of Templates: time 0.006267/0.9474, allocations: 3.615 MB / 1.321 GB, free: 24.99 MB / 1.061 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 400] 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.302968895062804]