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.001606/0.001606, allocations: 100.4 kB / 19.7 MB, free: 2.125 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.002232/0.002232, allocations: 212.2 kB / 22.99 MB, free: 4.949 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.443/1.443, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 3.193/3.193, allocations: 0.5107 GB / 0.8166 GB, free: 17.81 MB / 0.6231 GB " [Timeout remaining time 176] 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.002213/0.002213, allocations: 66.98 kB / 1.187 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3494, allocations: 181.9 MB / 1.365 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002591/0.352, allocations: 1.082 MB / 1.366 GB, free: 12.52 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0018/0.3538, allocations: 1.078 MB / 1.367 GB, free: 11.43 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.3539, allocations: 4 kB / 1.367 GB, free: 11.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 6.618e-05/0.354, allocations: 19.73 kB / 1.367 GB, free: 11.41 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.3542, allocations: 39.59 kB / 1.367 GB, free: 11.37 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.3545, allocations: 95.83 kB / 1.367 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003335/0.3549, allocations: 247.3 kB / 1.367 GB, free: 11.04 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.355, allocations: 63.81 kB / 1.367 GB, free: 10.96 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.3553, allocations: 115.5 kB / 1.367 GB, free: 10.85 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001745/0.3555, allocations: 99.41 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.607e-05/0.3555, allocations: 28 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.792e-05/0.3556, allocations: 24 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.09e-05/0.3556, allocations: 55.83 kB / 1.367 GB, free: 10.65 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.3558, allocations: 87.58 kB / 1.368 GB, free: 10.56 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003619/0.3561, allocations: 290.8 kB / 1.368 GB, free: 10.28 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3561, allocations: 0 / 1.368 GB, free: 10.28 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3561, allocations: 0 / 1.368 GB, free: 10.28 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.3561, allocations: 0 / 1.368 GB, free: 10.28 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.0009593/0.3571, allocations: 481.1 kB / 1.368 GB, free: 9.777 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.3571, allocations: 12.03 kB / 1.368 GB, free: 9.766 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.3574, allocations: 36.78 kB / 1.368 GB, free: 9.73 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.3577, allocations: 182.2 kB / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.3578, allocations: 139.2 kB / 1.369 GB, free: 9.367 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.3579, allocations: 16.38 kB / 1.369 GB, free: 9.352 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004428/0.3583, allocations: 186.6 kB / 1.369 GB, free: 9.164 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.3583, allocations: 8 kB / 1.369 GB, free: 9.156 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.3584, allocations: 4 kB / 1.369 GB, free: 9.152 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.3584, allocations: 4 kB / 1.369 GB, free: 9.148 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004325/0.3588, allocations: 159.8 kB / 1.369 GB, free: 8.992 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008163/0.3596, allocations: 455.8 kB / 1.369 GB, free: 8.516 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003908/0.36, allocations: 134.8 kB / 1.37 GB, free: 8.375 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.3602, allocations: 80.8 kB / 1.37 GB, free: 8.293 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.3602, allocations: 4 kB / 1.37 GB, free: 8.289 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/0.3606, allocations: 149.1 kB / 1.37 GB, free: 8.133 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 1.673e-06/0.3606, allocations: 0 / 1.37 GB, free: 8.133 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0007583/0.3613, allocations: 266.9 kB / 1.37 GB, free: 7.867 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.3614, allocations: 63.39 kB / 1.37 GB, free: 7.793 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.3616, allocations: 171.3 kB / 1.37 GB, free: 7.613 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.595e-05/0.3616, allocations: 29.7 kB / 1.37 GB, free: 7.578 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.383e-05/0.3617, allocations: 140.5 kB / 1.37 GB, free: 7.438 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.605e-05/0.3618, allocations: 63.52 kB / 1.37 GB, free: 7.375 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.822e-05/0.3618, allocations: 41.7 kB / 1.371 GB, free: 7.328 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.362, allocations: 330.8 kB / 1.371 GB, free: 6.996 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.3622, allocations: 75.89 kB / 1.371 GB, free: 6.922 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.3625, allocations: 105.8 kB / 1.371 GB, free: 6.812 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004298/0.3629, allocations: 182.4 kB / 1.371 GB, free: 6.625 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3629, allocations: 0 / 1.371 GB, free: 6.625 MB / 1.061 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005316/0.3634, allocations: 233.4 kB / 1.371 GB, free: 6.391 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.3634, allocations: 9.875 kB / 1.371 GB, free: 6.383 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3635, allocations: 3.938 kB / 1.371 GB, free: 6.379 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3635, allocations: 4 kB / 1.371 GB, free: 6.375 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/0.3637, allocations: 43.91 kB / 1.371 GB, free: 6.332 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3637, allocations: 0 / 1.371 GB, free: 6.332 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.3638, allocations: 31.86 kB / 1.371 GB, free: 6.301 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.3639, allocations: 4 kB / 1.371 GB, free: 6.297 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 0.0001458/0.364, allocations: 142.8 kB / 1.372 GB, free: 6.148 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.364, allocations: 27.8 kB / 1.372 GB, free: 6.121 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.996e-05/0.3641, allocations: 13.81 kB / 1.372 GB, free: 6.105 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.3641, allocations: 7.984 kB / 1.372 GB, free: 6.098 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3641, allocations: 0 / 1.372 GB, free: 6.098 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3641, allocations: 0 / 1.372 GB, free: 6.098 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002332/0.3643, allocations: 201.1 kB / 1.372 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3643, allocations: 4 kB / 1.372 GB, free: 5.867 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.3646, allocations: 35.97 kB / 1.372 GB, free: 5.832 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.3646, allocations: 0 / 1.372 GB, free: 5.832 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.3646, allocations: 4 kB / 1.372 GB, free: 5.828 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3646, allocations: 4 kB / 1.372 GB, free: 5.824 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3646, allocations: 4 kB / 1.372 GB, free: 5.82 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007847/0.3654, allocations: 336.7 kB / 1.372 GB, free: 5.473 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.755e-05/0.3654, allocations: 15.94 kB / 1.372 GB, free: 5.457 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/0.3654, allocations: 8 kB / 1.372 GB, free: 5.449 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.3656, allocations: 20.05 kB / 1.372 GB, free: 5.43 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.159e-05/0.3656, allocations: 15.97 kB / 1.372 GB, free: 5.414 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.3656, allocations: 7.984 kB / 1.372 GB, free: 5.406 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001156/0.3658, allocations: 135.2 kB / 1.372 GB, free: 5.273 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3658, allocations: 0 / 1.372 GB, free: 5.273 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002515/0.366, allocations: 43.89 kB / 1.372 GB, free: 5.23 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.000129/0.3661, allocations: 109.7 kB / 1.373 GB, free: 5.113 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004946/0.3666, allocations: 182.2 kB / 1.373 GB, free: 4.938 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3666, allocations: 0 / 1.373 GB, free: 4.938 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.3669, allocations: 83.89 kB / 1.373 GB, free: 4.855 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.3672, allocations: 44.36 kB / 1.373 GB, free: 4.812 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008479/0.368, allocations: 451.6 kB / 1.373 GB, free: 4.34 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.3681, allocations: 133.4 kB / 1.373 GB, free: 4.188 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.313e-05/0.3682, allocations: 23.44 kB / 1.373 GB, free: 4.164 MB / 1.061 GB Notification: Performance of SimCode: time 3.2e-07/0.3682, allocations: 0 / 1.373 GB, free: 4.164 MB / 1.061 GB Notification: Performance of Templates: time 0.004851/0.3731, allocations: 2.656 MB / 1.376 GB, free: 1.52 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: 11.231154437176883]