Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.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.00135/0.00135, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.00168/0.00168, allocations: 212.8 kB / 23 MB, free: 4.57 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.32/1.32, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.937/2.937, allocations: 0.505 GB / 0.8108 GB, free: 22.05 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loaHea.TSupSet|loaHea.TRet|loaHea.V_flow|loaHea.QReq_flow|loaCoo.TSupSet|loaCoo.TRet|loaCoo.V_flow|loaCoo.QReq_flow",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage") translateModel(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loaHea.TSupSet|loaHea.TRet|loaHea.V_flow|loaHea.QReq_flow|loaCoo.TSupSet|loaCoo.TRet|loaCoo.V_flow|loaCoo.QReq_flow",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage") [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.002044/0.002044, allocations: 65.33 kB / 1.178 GB, free: 16.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2863, allocations: 180.2 MB / 1.354 GB, free: 8.012 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002269/0.2885, allocations: 1.18 MB / 1.355 GB, free: 6.832 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2898, allocations: 1.092 MB / 1.356 GB, free: 5.727 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.2899, allocations: 4 kB / 1.356 GB, free: 5.723 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.104e-05/0.2899, allocations: 23.67 kB / 1.356 GB, free: 5.699 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.2901, allocations: 39.66 kB / 1.356 GB, free: 5.66 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.2904, allocations: 99.77 kB / 1.356 GB, free: 5.562 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.2906, allocations: 235.4 kB / 1.357 GB, free: 5.332 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.2908, allocations: 75.78 kB / 1.357 GB, free: 5.254 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.291, allocations: 107.6 kB / 1.357 GB, free: 5.148 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.2911, allocations: 111.5 kB / 1.357 GB, free: 5.039 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.2911, allocations: 27.98 kB / 1.357 GB, free: 5.012 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 5.424e-05/0.2912, allocations: 24 kB / 1.357 GB, free: 4.988 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.929e-05/0.2913, allocations: 55.83 kB / 1.357 GB, free: 4.934 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.413e-05/0.2913, allocations: 103.5 kB / 1.357 GB, free: 4.832 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.2916, allocations: 290.7 kB / 1.357 GB, free: 4.547 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2916, allocations: 0 / 1.357 GB, free: 4.547 MB / 1.045 GB Notification: Performance of FrontEnd: time 4.388e-06/0.2916, allocations: 3.984 kB / 1.357 GB, free: 4.543 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.2917, allocations: 0 / 1.357 GB, free: 4.543 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008341/0.2925, allocations: 481.1 kB / 1.358 GB, free: 4.043 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 2.797e-05/0.2925, allocations: 8.031 kB / 1.358 GB, free: 4.035 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.2927, allocations: 44.77 kB / 1.358 GB, free: 3.992 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.293, allocations: 186.1 kB / 1.358 GB, free: 3.785 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.84e-05/0.2931, allocations: 127.3 kB / 1.358 GB, free: 3.637 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.64e-05/0.2932, allocations: 20.38 kB / 1.358 GB, free: 3.617 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.2935, allocations: 191.2 kB / 1.358 GB, free: 3.426 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.2936, allocations: 0 / 1.358 GB, free: 3.426 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.2936, allocations: 4 kB / 1.358 GB, free: 3.422 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.2936, allocations: 4 kB / 1.358 GB, free: 3.418 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003936/0.294, allocations: 155.9 kB / 1.359 GB, free: 3.266 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007913/0.2948, allocations: 0.5343 MB / 1.359 GB, free: 2.688 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.2951, allocations: 146.7 kB / 1.359 GB, free: 2.535 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.2953, allocations: 76.81 kB / 1.359 GB, free: 2.457 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.2953, allocations: 7.938 kB / 1.359 GB, free: 2.449 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.2956, allocations: 147.6 kB / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of pre-optimization done (n=19): time 1.383e-06/0.2956, allocations: 3.938 kB / 1.359 GB, free: 2.289 MB / 1.045 GB Notification: Performance of matching and sorting (n=19): time 0.0006734/0.2963, allocations: 267.1 kB / 1.36 GB, free: 2.023 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.2964, allocations: 55.41 kB / 1.36 GB, free: 1.957 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.2965, allocations: 202.5 kB / 1.36 GB, free: 1.746 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.2966, allocations: 33.7 kB / 1.36 GB, free: 1.707 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/0.2966, allocations: 124.6 kB / 1.36 GB, free: 1.582 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.106e-05/0.2967, allocations: 75.41 kB / 1.36 GB, free: 1.508 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.981e-05/0.2968, allocations: 37.7 kB / 1.36 GB, free: 1.465 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.2969, allocations: 334.8 kB / 1.361 GB, free: 1.129 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.2971, allocations: 75.88 kB / 1.361 GB, free: 1.055 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.2973, allocations: 107.1 kB / 1.361 GB, free: 0.9414 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/0.2977, allocations: 174.4 kB / 1.361 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2977, allocations: 0 / 1.361 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004709/0.2982, allocations: 237.4 kB / 1.361 GB, free: 0.5234 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.2982, allocations: 5.562 kB / 1.361 GB, free: 0.5195 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.2982, allocations: 4 kB / 1.361 GB, free: 0.5156 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.2982, allocations: 0 / 1.361 GB, free: 0.5156 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.2984, allocations: 43.91 kB / 1.361 GB, free: 484 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.2984, allocations: 3.984 kB / 1.361 GB, free: 480 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.2985, allocations: 35.83 kB / 1.361 GB, free: 444 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.2985, allocations: 11.94 kB / 1.361 GB, free: 432 kB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (loaHea.movAve.mode,$PRE.loaHea.movAve.mode,$whenCondition1,loaCoo.movAve.mode,$PRE.loaCoo.movAve.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001208/0.2987, allocations: 137.7 kB / 1.361 GB, free: 284 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/0.2987, allocations: 15.91 kB / 1.361 GB, free: 268 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.868e-05/0.2987, allocations: 25.8 kB / 1.361 GB, free: 240 kB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2988, allocations: 4 kB / 1.361 GB, free: 236 kB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2988, allocations: 0 / 1.361 GB, free: 236 kB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2988, allocations: 0 / 1.361 GB, free: 236 kB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002723/0.299, allocations: 264.4 kB / 1.362 GB, free: 15.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.299, allocations: 4 kB / 1.362 GB, free: 15.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002145/0.2992, allocations: 39.97 kB / 1.362 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2992, allocations: 0 / 1.362 GB, free: 15.89 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.2993, allocations: 4 kB / 1.362 GB, free: 15.88 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2993, allocations: 0 / 1.362 GB, free: 15.88 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2993, allocations: 3.938 kB / 1.362 GB, free: 15.88 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006872/0.3, allocations: 334.8 kB / 1.362 GB, free: 15.54 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.125e-05/0.3, allocations: 23.88 kB / 1.362 GB, free: 15.51 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.3, allocations: 4 kB / 1.362 GB, free: 15.51 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.3001, allocations: 15.98 kB / 1.362 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.3002, allocations: 23.84 kB / 1.362 GB, free: 15.47 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.3002, allocations: 8.062 kB / 1.362 GB, free: 15.46 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001186/0.3003, allocations: 152.4 kB / 1.362 GB, free: 15.31 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3003, allocations: 0 / 1.362 GB, free: 15.31 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002249/0.3006, allocations: 43.89 kB / 1.362 GB, free: 15.27 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (loaHea.movAve.mu,loaCoo.movAve.mu) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,loaHea.movAve.mode,loaCoo.movAve.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001096/0.3007, allocations: 109 kB / 1.362 GB, free: 15.15 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004417/0.3011, allocations: 175.8 kB / 1.363 GB, free: 14.98 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3011, allocations: 0 / 1.363 GB, free: 14.98 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.3013, allocations: 87.84 kB / 1.363 GB, free: 14.89 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.3016, allocations: 35.97 kB / 1.363 GB, free: 14.86 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007325/0.3023, allocations: 456.6 kB / 1.363 GB, free: 14.38 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.3026, allocations: 0.7361 MB / 1.364 GB, free: 13.61 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.553e-05/0.3027, allocations: 27.44 kB / 1.364 GB, free: 13.59 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/0.3027, allocations: 0 / 1.364 GB, free: 13.59 MB / 1.061 GB Notification: Performance of Templates: time 0.004248/0.307, allocations: 2.656 MB / 1.366 GB, free: 10.95 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.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: 10.070690372987883]