Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 112.4 kB / 17.13 MB, free: 6.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 211.2 kB / 20.1 MB, free: 3.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.914/2.914, allocations: 0.49 GB / 0.7923 GB, free: 1.395 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_12_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_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002014/0.002014, allocations: 67.91 kB / 1.15 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.033/1.035, allocations: 176.1 MB / 1.322 GB, free: 25.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003176/1.038, allocations: 2.129 MB / 1.324 GB, free: 23.62 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001025/1.039, allocations: 0.6379 MB / 1.325 GB, free: 23.17 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/1.039, allocations: 6.844 kB / 1.325 GB, free: 23.16 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001347/1.04, allocations: 26.44 kB / 1.325 GB, free: 23.14 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001387/1.04, allocations: 44.19 kB / 1.325 GB, free: 23.11 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/1.04, allocations: 105.2 kB / 1.325 GB, free: 23.05 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002843/1.04, allocations: 325.8 kB / 1.325 GB, free: 22.89 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/1.04, allocations: 104.8 kB / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/1.041, allocations: 136.8 kB / 1.325 GB, free: 22.76 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/1.041, allocations: 149.7 kB / 1.326 GB, free: 22.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/1.041, allocations: 31.31 kB / 1.326 GB, free: 22.68 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.971e-05/1.041, allocations: 33.56 kB / 1.326 GB, free: 22.68 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.527e-05/1.041, allocations: 63.86 kB / 1.326 GB, free: 22.64 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.921e-05/1.041, allocations: 147.2 kB / 1.326 GB, free: 22.54 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002951/1.041, allocations: 341.1 kB / 1.326 GB, free: 22.4 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/1.041, allocations: 0 / 1.326 GB, free: 22.4 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.934e-06/1.041, allocations: 0 / 1.326 GB, free: 22.4 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.123e-06/1.041, allocations: 4 kB / 1.326 GB, free: 22.4 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001118/1.042, allocations: 0.7009 MB / 1.327 GB, free: 21.82 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/1.042, allocations: 15.08 kB / 1.327 GB, free: 21.82 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.678e-05/1.043, allocations: 41.59 kB / 1.327 GB, free: 21.79 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/1.043, allocations: 275.3 kB / 1.327 GB, free: 21.54 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/1.043, allocations: 20 kB / 1.327 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.322e-05/1.043, allocations: 32.39 kB / 1.327 GB, free: 21.51 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006679/1.044, allocations: 314.5 kB / 1.328 GB, free: 21.36 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/1.044, allocations: 0 / 1.328 GB, free: 21.36 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/1.044, allocations: 10.56 kB / 1.328 GB, free: 21.35 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/1.044, allocations: 5.094 kB / 1.328 GB, free: 21.35 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007496/1.044, allocations: 214.1 kB / 1.328 GB, free: 21.3 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/1.046, allocations: 0.7 MB / 1.328 GB, free: 20.87 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007633/1.046, allocations: 211.7 kB / 1.329 GB, free: 20.79 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003575/1.047, allocations: 95.16 kB / 1.329 GB, free: 20.76 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/1.047, allocations: 1.719 kB / 1.329 GB, free: 20.76 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000587/1.047, allocations: 207.8 kB / 1.329 GB, free: 20.68 MB / 1.061 GB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/1.047, allocations: 0.5625 kB / 1.329 GB, free: 20.68 MB / 1.061 GB Notification: Performance of matching and sorting (n=21): time 0.001251/1.049, allocations: 362.3 kB / 1.329 GB, free: 20.57 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/1.049, allocations: 161.6 kB / 1.329 GB, free: 20.38 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000246/1.049, allocations: 228.5 kB / 1.33 GB, free: 20.23 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/1.049, allocations: 40.83 kB / 1.33 GB, free: 20.19 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/1.049, allocations: 169.2 kB / 1.33 GB, free: 20.05 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.338e-05/1.049, allocations: 58.91 kB / 1.33 GB, free: 20 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/1.049, allocations: 75 kB / 1.33 GB, free: 19.96 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.944e-05/1.049, allocations: 336 kB / 1.33 GB, free: 19.64 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004244/1.05, allocations: 122.3 kB / 1.33 GB, free: 19.61 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004582/1.05, allocations: 206.3 kB / 1.331 GB, free: 19.48 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006884/1.051, allocations: 324 kB / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/1.051, allocations: 0.8906 kB / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009814/1.052, allocations: 452.1 kB / 1.331 GB, free: 19.04 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.018e-05/1.052, allocations: 87.69 kB / 1.331 GB, free: 18.95 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/1.052, allocations: 1.469 kB / 1.331 GB, free: 18.95 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/1.052, allocations: 3.344 kB / 1.331 GB, free: 18.95 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/1.052, allocations: 56.72 kB / 1.331 GB, free: 18.93 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/1.052, allocations: 2.734 kB / 1.331 GB, free: 18.93 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/1.053, allocations: 79.2 kB / 1.332 GB, free: 18.91 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/1.053, allocations: 14.42 kB / 1.332 GB, free: 18.91 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: 31 (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.errAndSetOn.y,minFloRatSaf.ySetOn.y,$PRE.minFloRatSaf.ySetOn.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 (36): * Single equations (assignments): 33 * 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.0001402/1.053, allocations: 160.4 kB / 1.332 GB, free: 18.77 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-05/1.053, allocations: 27.73 kB / 1.332 GB, free: 18.75 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.281e-05/1.053, allocations: 29.77 kB / 1.332 GB, free: 18.73 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/1.053, allocations: 2.156 kB / 1.332 GB, free: 18.73 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/1.053, allocations: 0.6562 kB / 1.332 GB, free: 18.73 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/1.053, allocations: 5.719 kB / 1.332 GB, free: 18.72 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/1.054, allocations: 0.6456 MB / 1.332 GB, free: 18.31 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/1.054, allocations: 0 / 1.332 GB, free: 18.31 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/1.054, allocations: 28.66 kB / 1.332 GB, free: 18.31 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/1.054, allocations: 1.125 kB / 1.332 GB, free: 18.31 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/1.054, allocations: 9.062 kB / 1.332 GB, free: 18.31 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/1.054, allocations: 5.703 kB / 1.332 GB, free: 18.3 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/1.054, allocations: 0 / 1.332 GB, free: 18.3 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008/1.055, allocations: 365.8 kB / 1.333 GB, free: 18.11 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/1.055, allocations: 100.9 kB / 1.333 GB, free: 18 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/1.055, allocations: 8.469 kB / 1.333 GB, free: 18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/1.055, allocations: 63.33 kB / 1.333 GB, free: 17.99 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/1.056, allocations: 56.88 kB / 1.333 GB, free: 17.97 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/1.056, allocations: 8.906 kB / 1.333 GB, free: 17.97 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001411/1.056, allocations: 156 kB / 1.333 GB, free: 17.88 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.056, allocations: 0 / 1.333 GB, free: 17.88 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003398/1.056, allocations: 67.97 kB / 1.333 GB, free: 17.86 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: 17 (minFloRatSaf.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.booPasThr.y,minFloRatSaf.ySetOn.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: 8 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,minFloRatSaf.ySetOn.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * 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.0001578/1.056, allocations: 123.6 kB / 1.333 GB, free: 17.76 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009602/1.057, allocations: 430.4 kB / 1.334 GB, free: 17.51 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.057, allocations: 320 / 1.334 GB, free: 17.51 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0004102/1.058, allocations: 120.7 kB / 1.334 GB, free: 17.48 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/1.058, allocations: 37.91 kB / 1.334 GB, free: 17.46 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009354/1.059, allocations: 460.2 kB / 1.334 GB, free: 17.16 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/1.059, allocations: 0.7436 MB / 1.335 GB, free: 16.46 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/1.059, allocations: 30.89 kB / 1.335 GB, free: 16.45 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/1.059, allocations: 4 kB / 1.335 GB, free: 16.45 MB / 1.061 GB Notification: Performance of Templates: time 0.007325/1.067, allocations: 3.409 MB / 1.338 GB, free: 16.11 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.778591046007932]