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.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 90] 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.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,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: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 108 kB / 16.62 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 188.7 kB / 17.62 MB, free: 4.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 225.6 MB / 244.1 MB, free: 13.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.101/3.101, allocations: 489.7 MB / 0.7682 GB, free: 33.69 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 68.64 kB / 1.117 GB, free: 36.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3801/0.382, allocations: 172.1 MB / 1.285 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002594/0.3846, allocations: 1.181 MB / 1.286 GB, free: 11.6 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.3861, allocations: 1.045 MB / 1.287 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.3862, allocations: 4 kB / 1.287 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 6.362e-05/0.3862, allocations: 19.73 kB / 1.287 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001563/0.3864, allocations: 43.58 kB / 1.287 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003146/0.3867, allocations: 95.84 kB / 1.287 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.387, allocations: 247.2 kB / 1.287 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.3872, allocations: 71.23 kB / 1.287 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.3874, allocations: 99.62 kB / 1.287 GB, free: 9.969 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.3876, allocations: 103.5 kB / 1.288 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.002e-05/0.3876, allocations: 24 kB / 1.288 GB, free: 9.844 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.538e-05/0.3876, allocations: 28 kB / 1.288 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.721e-05/0.3877, allocations: 59.77 kB / 1.288 GB, free: 9.758 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.3878, allocations: 99.45 kB / 1.288 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003249/0.3881, allocations: 286.8 kB / 1.288 GB, free: 9.379 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3881, allocations: 0 / 1.288 GB, free: 9.379 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3881, allocations: 0 / 1.288 GB, free: 9.379 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.251e-06/0.3881, allocations: 0 / 1.288 GB, free: 9.379 MB / 0.9981 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.000992/0.3891, allocations: 0.5412 MB / 1.289 GB, free: 8.789 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3892, allocations: 12.03 kB / 1.289 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.056e-05/0.3892, allocations: 28.75 kB / 1.289 GB, free: 8.75 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.3896, allocations: 244.5 kB / 1.289 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.766e-05/0.3897, allocations: 67.97 kB / 1.289 GB, free: 8.395 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.3897, allocations: 16.38 kB / 1.289 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004607/0.3902, allocations: 205.7 kB / 1.289 GB, free: 8.172 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.3902, allocations: 3.953 kB / 1.289 GB, free: 8.168 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.3902, allocations: 8 kB / 1.289 GB, free: 8.16 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.3902, allocations: 8 kB / 1.289 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004201/0.3907, allocations: 151.8 kB / 1.289 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009076/0.3916, allocations: 0.5704 MB / 1.29 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003821/0.3919, allocations: 130.8 kB / 1.29 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.3922, allocations: 84.8 kB / 1.29 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.3922, allocations: 3.984 kB / 1.29 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.3925, allocations: 153.4 kB / 1.29 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=19): time 1.283e-06/0.3925, allocations: 0 / 1.29 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19): time 0.0007391/0.3933, allocations: 269.4 kB / 1.29 GB, free: 6.727 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.3933, allocations: 59.39 kB / 1.29 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.3935, allocations: 190.3 kB / 1.291 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.3936, allocations: 29.7 kB / 1.291 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.3937, allocations: 136.4 kB / 1.291 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.174e-05/0.3937, allocations: 63.5 kB / 1.291 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.757e-05/0.3938, allocations: 49.64 kB / 1.291 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001805/0.394, allocations: 334.8 kB / 1.291 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.3942, allocations: 75.89 kB / 1.291 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002321/0.3944, allocations: 98.52 kB / 1.291 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003913/0.3948, allocations: 178.4 kB / 1.292 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3948, allocations: 0 / 1.292 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005117/0.3953, allocations: 229.4 kB / 1.292 GB, free: 5.242 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3954, allocations: 13.81 kB / 1.292 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.3954, allocations: 0 / 1.292 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.3954, allocations: 4 kB / 1.292 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.3956, allocations: 35.97 kB / 1.292 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.3956, allocations: 4 kB / 1.292 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.3958, allocations: 27.88 kB / 1.292 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.3958, allocations: 7.938 kB / 1.292 GB, free: 5.152 MB / 0.9981 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.0001357/0.3959, allocations: 143 kB / 1.292 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/0.396, allocations: 23.86 kB / 1.292 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.396, allocations: 17.88 kB / 1.292 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.396, allocations: 0 / 1.292 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.396, allocations: 0 / 1.292 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.396, allocations: 3.984 kB / 1.292 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003119/0.3963, allocations: 301.3 kB / 1.292 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3963, allocations: 3.984 kB / 1.292 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.3966, allocations: 35.92 kB / 1.292 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.3966, allocations: 11.98 kB / 1.292 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.3966, allocations: 4 kB / 1.292 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3966, allocations: 0 / 1.292 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3966, allocations: 0 / 1.292 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007578/0.3974, allocations: 334.8 kB / 1.293 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.979e-05/0.3974, allocations: 100.9 kB / 1.293 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.3975, allocations: 8 kB / 1.293 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.3976, allocations: 19.97 kB / 1.293 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.143e-05/0.3977, allocations: 19.92 kB / 1.293 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.3977, allocations: 4 kB / 1.293 GB, free: 4.051 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001286/0.3978, allocations: 151.2 kB / 1.293 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3978, allocations: 3.938 kB / 1.293 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002387/0.3981, allocations: 40.02 kB / 1.293 GB, free: 3.859 MB / 0.9981 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.0001464/0.3982, allocations: 111.2 kB / 1.293 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004989/0.3987, allocations: 168.2 kB / 1.293 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3987, allocations: 0 / 1.293 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000231/0.399, allocations: 98.11 kB / 1.293 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.3993, allocations: 34.75 kB / 1.293 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008251/0.4001, allocations: 432.6 kB / 1.294 GB, free: 2.996 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.4004, allocations: 0.7401 MB / 1.295 GB, free: 2.227 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.993e-05/0.4005, allocations: 21.53 kB / 1.295 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.132e-05/0.4006, allocations: 27.42 kB / 1.295 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.4006, allocations: 0 / 1.295 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of Templates: time 0.006423/0.407, allocations: 2.396 MB / 1.297 GB, free: 15.82 MB / 1.014 GB 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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe 2>&1) [Timeout 400] 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/jenkins/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] Reference file matches