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.001273/0.001273, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001583/0.001583, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 8.023 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.195/3.195, allocations: 0.505 GB / 0.8101 GB, free: 22.08 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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="me",version="2.0",platforms={"static"}) [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.002061/0.002061, allocations: 66.81 kB / 1.177 GB, free: 17.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3514, allocations: 180.2 MB / 1.353 GB, free: 8.445 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002502/0.3539, allocations: 1.168 MB / 1.354 GB, free: 7.277 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.3554, allocations: 1.092 MB / 1.355 GB, free: 6.172 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.152e-05/0.3555, allocations: 7.938 kB / 1.355 GB, free: 6.164 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.864e-05/0.3555, allocations: 19.73 kB / 1.355 GB, free: 6.145 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.3557, allocations: 43.59 kB / 1.355 GB, free: 6.102 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003462/0.356, allocations: 95.83 kB / 1.355 GB, free: 6.008 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002903/0.3563, allocations: 243.3 kB / 1.355 GB, free: 5.77 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.3565, allocations: 79.78 kB / 1.356 GB, free: 5.688 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.3567, allocations: 103.6 kB / 1.356 GB, free: 5.586 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.3569, allocations: 99.53 kB / 1.356 GB, free: 5.488 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.3569, allocations: 24 kB / 1.356 GB, free: 5.465 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.812e-05/0.357, allocations: 32 kB / 1.356 GB, free: 5.434 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.58e-05/0.357, allocations: 59.81 kB / 1.356 GB, free: 5.375 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.3571, allocations: 111.4 kB / 1.356 GB, free: 5.266 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003334/0.3575, allocations: 287 kB / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.3575, allocations: 0 / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3575, allocations: 0 / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.3575, allocations: 0 / 1.356 GB, free: 4.984 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.0009013/0.3584, allocations: 481 kB / 1.357 GB, free: 4.484 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.3584, allocations: 12.03 kB / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.028e-05/0.3585, allocations: 50.73 kB / 1.357 GB, free: 4.414 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002516/0.3587, allocations: 44.77 kB / 1.357 GB, free: 4.371 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003276/0.3591, allocations: 186.2 kB / 1.357 GB, free: 4.164 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.3592, allocations: 123.3 kB / 1.357 GB, free: 4.02 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.2e-05/0.3592, allocations: 28.3 kB / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004123/0.3596, allocations: 191 kB / 1.357 GB, free: 3.801 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.3597, allocations: 0 / 1.357 GB, free: 3.801 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.3597, allocations: 7.938 kB / 1.357 GB, free: 3.793 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.3597, allocations: 8 kB / 1.357 GB, free: 3.785 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004203/0.3601, allocations: 155.8 kB / 1.357 GB, free: 3.633 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008489/0.361, allocations: 0.5343 MB / 1.358 GB, free: 3.055 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003903/0.3613, allocations: 134.8 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.3616, allocations: 85.06 kB / 1.358 GB, free: 2.828 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.3616, allocations: 4 kB / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003146/0.3619, allocations: 144.9 kB / 1.358 GB, free: 2.672 MB / 1.045 GB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.3619, allocations: 0 / 1.358 GB, free: 2.672 MB / 1.045 GB Notification: Performance of matching and sorting (n=19): time 0.0007314/0.3626, allocations: 267.1 kB / 1.359 GB, free: 2.406 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.3627, allocations: 59.41 kB / 1.359 GB, free: 2.336 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.3629, allocations: 202.5 kB / 1.359 GB, free: 2.125 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.3629, allocations: 29.7 kB / 1.359 GB, free: 2.09 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.835e-05/0.363, allocations: 132.6 kB / 1.359 GB, free: 1.957 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.731e-05/0.3631, allocations: 71.42 kB / 1.359 GB, free: 1.887 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.3631, allocations: 37.7 kB / 1.359 GB, free: 1.844 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3633, allocations: 338.8 kB / 1.359 GB, free: 1.504 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.3635, allocations: 71.89 kB / 1.359 GB, free: 1.434 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/0.3637, allocations: 107.1 kB / 1.36 GB, free: 1.32 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004071/0.3641, allocations: 178.4 kB / 1.36 GB, free: 1.137 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3641, allocations: 0 / 1.36 GB, free: 1.137 MB / 1.045 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005103/0.3646, allocations: 233.4 kB / 1.36 GB, free: 0.9023 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3647, allocations: 14.48 kB / 1.36 GB, free: 0.8906 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3647, allocations: 4 kB / 1.36 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3647, allocations: 0 / 1.36 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.3649, allocations: 39.97 kB / 1.36 GB, free: 0.8477 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.3649, allocations: 0 / 1.36 GB, free: 0.8477 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.365, allocations: 35.77 kB / 1.36 GB, free: 0.8125 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.3651, allocations: 11.94 kB / 1.36 GB, free: 0.8008 MB / 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.0001302/0.3652, allocations: 137.8 kB / 1.36 GB, free: 0.6562 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.02e-05/0.3652, allocations: 19.89 kB / 1.36 GB, free: 0.6367 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.259e-05/0.3653, allocations: 21.81 kB / 1.36 GB, free: 0.6133 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.3653, allocations: 8 kB / 1.36 GB, free: 0.6055 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3653, allocations: 0 / 1.36 GB, free: 0.6055 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.3653, allocations: 3.938 kB / 1.36 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.3656, allocations: 260.5 kB / 1.36 GB, free: 312 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3656, allocations: 0 / 1.36 GB, free: 312 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.3658, allocations: 43.91 kB / 1.361 GB, free: 268 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3658, allocations: 4 kB / 1.361 GB, free: 264 kB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.3658, allocations: 11.92 kB / 1.361 GB, free: 252 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3658, allocations: 0 / 1.361 GB, free: 252 kB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3658, allocations: 0 / 1.361 GB, free: 252 kB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007646/0.3666, allocations: 332.8 kB / 1.361 GB, free: 15.9 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.3666, allocations: 23.86 kB / 1.361 GB, free: 15.88 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.3666, allocations: 4 kB / 1.361 GB, free: 15.88 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.3668, allocations: 19.92 kB / 1.361 GB, free: 15.86 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/0.3668, allocations: 31.83 kB / 1.361 GB, free: 15.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.3669, allocations: 8 kB / 1.361 GB, free: 15.82 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000125/0.367, allocations: 136.5 kB / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.367, allocations: 0 / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002409/0.3672, allocations: 47.95 kB / 1.361 GB, free: 15.64 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.001036/0.3683, allocations: 0.8733 MB / 1.362 GB, free: 14.73 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004658/0.3687, allocations: 167.8 kB / 1.362 GB, free: 14.57 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3687, allocations: 0 / 1.362 GB, free: 14.57 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002266/0.369, allocations: 89.08 kB / 1.362 GB, free: 14.48 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.3693, allocations: 49.33 kB / 1.362 GB, free: 14.44 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.3724, allocations: 2.279 MB / 1.364 GB, free: 12.06 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.3728, allocations: 0.7323 MB / 1.365 GB, free: 11.3 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.012e-05/0.3729, allocations: 22.09 kB / 1.365 GB, free: 11.28 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.373, allocations: 67.42 kB / 1.365 GB, free: 11.21 MB / 1.061 GB Notification: Performance of SimCode: time 4.11e-07/0.373, allocations: 0 / 1.365 GB, free: 11.21 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.4061, allocations: 4.75 MB / 1.37 GB, free: 6.629 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.09, allocations: 10.06 kB / 1.37 GB, free: 6.621 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage_fmu --startTime=0 --stopTime=2000 --stepSize=0.8 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe 2>&1) [Timeout 840.0] 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: 18.75847690203227]