Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001556/0.001556, allocations: 116.7 kB / 17.13 MB, free: 5.945 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.001642/0.001642, allocations: 209.5 kB / 20.09 MB, free: 2.996 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.427/1.427, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.823/2.823, allocations: 0.49 GB / 0.7923 GB, free: 1.297 MB / 0.6231 GB " [Timeout remaining time 177] 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.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_12_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_12_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.002023/0.002023, allocations: 63.91 kB / 1.15 GB, free: 14.89 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8742/0.8762, allocations: 176.1 MB / 1.322 GB, free: 25.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.001988/0.8782, allocations: 1.156 MB / 1.323 GB, free: 24.48 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009951/0.8792, allocations: 1.099 MB / 1.324 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.913e-05/0.8793, allocations: 6.688 kB / 1.324 GB, free: 23.65 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.737e-05/0.8794, allocations: 19.22 kB / 1.324 GB, free: 23.64 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.8795, allocations: 45.2 kB / 1.324 GB, free: 23.6 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.8797, allocations: 95.42 kB / 1.324 GB, free: 23.55 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001851/0.8799, allocations: 242.4 kB / 1.325 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.8801, allocations: 82.41 kB / 1.325 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.8802, allocations: 106.8 kB / 1.325 GB, free: 23.32 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.8803, allocations: 108 kB / 1.325 GB, free: 23.26 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.951e-05/0.8804, allocations: 22.56 kB / 1.325 GB, free: 23.26 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.955e-05/0.8804, allocations: 34.83 kB / 1.325 GB, free: 23.25 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.229e-05/0.8804, allocations: 56.11 kB / 1.325 GB, free: 23.21 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.302e-05/0.8805, allocations: 114.5 kB / 1.325 GB, free: 23.14 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.8807, allocations: 286.4 kB / 1.325 GB, free: 23.02 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.8807, allocations: 0 / 1.325 GB, free: 23.02 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.202e-06/0.8807, allocations: 0 / 1.325 GB, free: 23.02 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.8807, allocations: 0 / 1.325 GB, free: 23.02 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0007424/0.8815, allocations: 0.5378 MB / 1.326 GB, free: 22.56 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.8815, allocations: 12.33 kB / 1.326 GB, free: 22.56 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/0.8817, allocations: 44.5 kB / 1.326 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.882, allocations: 249.4 kB / 1.326 GB, free: 22.3 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.451e-05/0.882, allocations: 64.22 kB / 1.326 GB, free: 22.23 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.882, allocations: 26.14 kB / 1.326 GB, free: 22.22 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.8824, allocations: 187 kB / 1.326 GB, free: 22.14 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.8824, allocations: 11.22 kB / 1.326 GB, free: 22.13 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.8824, allocations: 6.625 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.8824, allocations: 4.969 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003707/0.8828, allocations: 157.8 kB / 1.327 GB, free: 22.08 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006343/0.8834, allocations: 0.5722 MB / 1.327 GB, free: 21.66 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003685/0.8838, allocations: 133.5 kB / 1.327 GB, free: 21.6 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/0.884, allocations: 77.02 kB / 1.327 GB, free: 21.57 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.884, allocations: 2.688 kB / 1.327 GB, free: 21.57 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.8843, allocations: 150.7 kB / 1.327 GB, free: 21.49 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 1.593e-06/0.8843, allocations: 4 kB / 1.327 GB, free: 21.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0007241/0.8851, allocations: 264.7 kB / 1.328 GB, free: 21.39 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.8851, allocations: 58.59 kB / 1.328 GB, free: 21.32 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.8852, allocations: 189.5 kB / 1.328 GB, free: 21.19 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.8853, allocations: 31.7 kB / 1.328 GB, free: 21.16 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.8853, allocations: 140.8 kB / 1.328 GB, free: 21.03 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.259e-05/0.8854, allocations: 65.64 kB / 1.328 GB, free: 20.98 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.877e-05/0.8854, allocations: 38.62 kB / 1.328 GB, free: 20.95 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.757e-05/0.8855, allocations: 334 kB / 1.329 GB, free: 20.63 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/0.8857, allocations: 72.48 kB / 1.329 GB, free: 20.61 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.8859, allocations: 107.4 kB / 1.329 GB, free: 20.55 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003916/0.8863, allocations: 171.4 kB / 1.329 GB, free: 20.48 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.8863, allocations: 0 / 1.329 GB, free: 20.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005011/0.8868, allocations: 241 kB / 1.329 GB, free: 20.37 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.8868, allocations: 4.781 kB / 1.329 GB, free: 20.37 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.8868, allocations: 0.9688 kB / 1.329 GB, free: 20.37 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.8868, allocations: 1.594 kB / 1.329 GB, free: 20.37 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.8871, allocations: 41.81 kB / 1.329 GB, free: 20.37 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.8871, allocations: 5.875 kB / 1.329 GB, free: 20.36 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.8872, allocations: 30.52 kB / 1.329 GB, free: 20.35 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.8872, allocations: 16.84 kB / 1.329 GB, free: 20.34 MB / 1.061 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 8.66e-05/0.8873, allocations: 132.4 kB / 1.329 GB, free: 20.21 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.8873, allocations: 19.89 kB / 1.329 GB, free: 20.2 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.753e-05/0.8874, allocations: 25.45 kB / 1.329 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.8874, allocations: 2 kB / 1.329 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.8874, allocations: 0.8438 kB / 1.329 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.8874, allocations: 0 / 1.329 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002029/0.8876, allocations: 292.2 kB / 1.33 GB, free: 19.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.8876, allocations: 0 / 1.33 GB, free: 19.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.8878, allocations: 47.33 kB / 1.33 GB, free: 19.92 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.8878, allocations: 0.9062 kB / 1.33 GB, free: 19.92 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.8879, allocations: 6.547 kB / 1.33 GB, free: 19.92 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.8879, allocations: 1 kB / 1.33 GB, free: 19.92 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.8879, allocations: 1.094 kB / 1.33 GB, free: 19.92 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007367/0.8886, allocations: 332.3 kB / 1.33 GB, free: 19.76 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.722e-05/0.8886, allocations: 103.4 kB / 1.33 GB, free: 19.64 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.8887, allocations: 6.047 kB / 1.33 GB, free: 19.64 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/0.8888, allocations: 18.3 kB / 1.33 GB, free: 19.64 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.8889, allocations: 19.89 kB / 1.33 GB, free: 19.63 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.8889, allocations: 5.766 kB / 1.33 GB, free: 19.63 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.938e-05/0.889, allocations: 145.6 kB / 1.33 GB, free: 19.53 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.889, allocations: 4.062 kB / 1.33 GB, free: 19.53 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002517/0.8892, allocations: 45.17 kB / 1.33 GB, free: 19.52 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 9.944e-05/0.8893, allocations: 104.2 kB / 1.33 GB, free: 19.42 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004864/0.8898, allocations: 169.8 kB / 1.331 GB, free: 19.38 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.8898, allocations: 1.188 kB / 1.331 GB, free: 19.38 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002237/0.8901, allocations: 89.16 kB / 1.331 GB, free: 19.35 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.8903, allocations: 47.48 kB / 1.331 GB, free: 19.33 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007027/0.8911, allocations: 462.3 kB / 1.331 GB, free: 19.03 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.8912, allocations: 0.7331 MB / 1.332 GB, free: 18.33 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.108e-05/0.8913, allocations: 25.19 kB / 1.332 GB, free: 18.32 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.8913, allocations: 4 kB / 1.332 GB, free: 18.31 MB / 1.061 GB Notification: Performance of Templates: time 0.004977/0.8963, allocations: 2.634 MB / 1.335 GB, free: 18.06 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.331627592997393]