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.001282/0.001282, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001575/0.001575, allocations: 217.6 kB / 23.04 MB, free: 5.074 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.992 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 3.225/3.225, allocations: 0.49 GB / 0.7959 GB, free: 33.37 MB / 0.6231 GB " [Timeout remaining time 176] 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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="cs",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.002048/0.002048, allocations: 69.44 kB / 1.155 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3599, allocations: 176.1 MB / 1.327 GB, free: 1.961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.00265/0.3625, allocations: 1.177 MB / 1.328 GB, free: 0.7891 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001619/0.3642, allocations: 1.096 MB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.3643, allocations: 4 kB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.39e-05/0.3643, allocations: 23.67 kB / 1.329 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.3645, allocations: 35.66 kB / 1.329 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.3648, allocations: 95.83 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000295/0.3651, allocations: 247.3 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.3653, allocations: 79.78 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002394/0.3655, allocations: 103.6 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.3657, allocations: 107.5 kB / 1.33 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.938e-05/0.3657, allocations: 24 kB / 1.33 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.502e-05/0.3658, allocations: 32 kB / 1.33 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.3659, allocations: 55.83 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.366, allocations: 107.4 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.3663, allocations: 287 kB / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3663, allocations: 0 / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3663, allocations: 0 / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.3663, allocations: 0 / 1.33 GB, free: 14.49 MB / 1.029 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.0009428/0.3673, allocations: 473.1 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3673, allocations: 15.97 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.211e-05/0.3674, allocations: 4.188 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.745e-05/0.3674, allocations: 54.67 kB / 1.331 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002522/0.3677, allocations: 52.72 kB / 1.331 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.368, allocations: 190.1 kB / 1.331 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001302/0.3682, allocations: 123.4 kB / 1.331 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.356e-05/0.3682, allocations: 20.38 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004556/0.3687, allocations: 190.1 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.3687, allocations: 0 / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.3687, allocations: 12 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.3687, allocations: 4 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004429/0.3692, allocations: 155.8 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009545/0.3701, allocations: 0.5381 MB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.3705, allocations: 134.8 kB / 1.332 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.3708, allocations: 80.81 kB / 1.332 GB, free: 12.33 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.3708, allocations: 4 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003457/0.3711, allocations: 143.2 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 2.044e-06/0.3711, allocations: 0 / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.0008311/0.372, allocations: 274.8 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.372, allocations: 51.41 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.3722, allocations: 199.1 kB / 1.333 GB, free: 11.63 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.3723, allocations: 33.7 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3724, allocations: 136.5 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.527e-05/0.3724, allocations: 63.44 kB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.162e-05/0.3725, allocations: 41.7 kB / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3727, allocations: 334.8 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.3729, allocations: 79.89 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.3731, allocations: 102.5 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004286/0.3736, allocations: 170.4 kB / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3736, allocations: 4 kB / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006351/0.3742, allocations: 233.4 kB / 1.334 GB, free: 10.41 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3742, allocations: 11.98 kB / 1.334 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.3742, allocations: 0 / 1.334 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.3743, allocations: 3.984 kB / 1.334 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002301/0.3745, allocations: 51.91 kB / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.3745, allocations: 4 kB / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.3747, allocations: 23.81 kB / 1.334 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.3748, allocations: 12 kB / 1.334 GB, free: 10.3 MB / 1.029 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.3749, allocations: 129.8 kB / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/0.375, allocations: 23.84 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.613e-05/0.375, allocations: 25.81 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.375, allocations: 4 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3751, allocations: 3.938 kB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3751, allocations: 3.938 kB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003264/0.3754, allocations: 268.4 kB / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3754, allocations: 0 / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.3756, allocations: 39.91 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3756, allocations: 0 / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.3756, allocations: 11.98 kB / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3757, allocations: 0 / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3757, allocations: 4 kB / 1.334 GB, free: 9.738 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008133/0.3765, allocations: 326.2 kB / 1.335 GB, free: 9.402 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.622e-05/0.3765, allocations: 23.88 kB / 1.335 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.3765, allocations: 4 kB / 1.335 GB, free: 9.375 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.3767, allocations: 16.05 kB / 1.335 GB, free: 9.359 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.553e-05/0.3768, allocations: 27.89 kB / 1.335 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.3768, allocations: 8 kB / 1.335 GB, free: 9.324 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001273/0.3769, allocations: 136.5 kB / 1.335 GB, free: 9.191 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3769, allocations: 0 / 1.335 GB, free: 9.191 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002634/0.3772, allocations: 51.89 kB / 1.335 GB, free: 9.141 MB / 1.029 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.001164/0.3783, allocations: 0.8635 MB / 1.336 GB, free: 8.246 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005157/0.3788, allocations: 173.6 kB / 1.336 GB, free: 8.078 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.862e-05/0.3789, allocations: 8 kB / 1.336 GB, free: 8.07 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002456/0.3791, allocations: 87.88 kB / 1.336 GB, free: 7.984 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.3795, allocations: 45.88 kB / 1.336 GB, free: 7.941 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003519/0.383, allocations: 2.288 MB / 1.338 GB, free: 5.562 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/0.3835, allocations: 0.7323 MB / 1.339 GB, free: 4.805 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001049/0.3836, allocations: 21.62 kB / 1.339 GB, free: 4.785 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.3837, allocations: 63.42 kB / 1.339 GB, free: 4.727 MB / 1.029 GB Notification: Performance of SimCode: time 7.41e-07/0.3837, allocations: 0 / 1.339 GB, free: 4.727 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0284/0.4121, allocations: 4.782 MB / 1.344 GB, free: 124 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.08, allocations: 12 kB / 1.344 GB, free: 120 kB / 1.029 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage_fmu --startTime=0 --stopTime=2000 --stepSize=0.8 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.fmu > Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe 2>&1) [Timeout 420.0] 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: 18.87300546799088]