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.001531/0.001531, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.001736/0.001736, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.462/1.462, allocations: 230.6 MB / 253.5 MB, free: 15.11 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 2.91/2.91, allocations: 0.5003 GB / 0.8026 GB, free: 6.773 MB / 0.6387 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_latest_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.001953/0.001953, allocations: 67.89 kB / 1.165 GB, free: 0.5664 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8287/0.8307, allocations: 178.9 MB / 1.34 GB, free: 16.28 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002171/0.8329, allocations: 1.188 MB / 1.341 GB, free: 15.47 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001084/0.8339, allocations: 1.087 MB / 1.342 GB, free: 14.66 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.765e-05/0.834, allocations: 3.812 kB / 1.342 GB, free: 14.66 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.974e-05/0.8341, allocations: 23.12 kB / 1.342 GB, free: 14.64 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.8342, allocations: 40.39 kB / 1.342 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.8345, allocations: 95.23 kB / 1.342 GB, free: 14.55 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.8347, allocations: 241 kB / 1.343 GB, free: 14.43 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.8349, allocations: 81.17 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.8351, allocations: 106.7 kB / 1.343 GB, free: 14.33 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.8352, allocations: 103.7 kB / 1.343 GB, free: 14.27 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.615e-05/0.8352, allocations: 28.31 kB / 1.343 GB, free: 14.27 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.94e-05/0.8353, allocations: 31.36 kB / 1.343 GB, free: 14.27 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.002e-05/0.8353, allocations: 49.19 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.758e-05/0.8354, allocations: 109 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.8357, allocations: 290.5 kB / 1.343 GB, free: 14.04 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.8357, allocations: 0 / 1.343 GB, free: 14.04 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8357, allocations: 1.875 kB / 1.343 GB, free: 14.04 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.8357, allocations: 0 / 1.343 GB, free: 14.04 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.0007748/0.8365, allocations: 0.5391 MB / 1.344 GB, free: 13.58 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.8365, allocations: 10.55 kB / 1.344 GB, free: 13.58 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.8e-05/0.8365, allocations: 9.578 kB / 1.344 GB, free: 13.57 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.665e-05/0.8366, allocations: 56.81 kB / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002329/0.8368, allocations: 41.14 kB / 1.344 GB, free: 13.51 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.837, allocations: 255.5 kB / 1.344 GB, free: 13.26 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.539e-05/0.8371, allocations: 69.67 kB / 1.344 GB, free: 13.19 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.335e-05/0.8371, allocations: 17.55 kB / 1.344 GB, free: 13.18 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003802/0.8375, allocations: 183.9 kB / 1.345 GB, free: 13.1 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.8375, allocations: 1.984 kB / 1.345 GB, free: 13.1 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.8375, allocations: 13.31 kB / 1.345 GB, free: 13.09 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.8375, allocations: 4.125 kB / 1.345 GB, free: 13.09 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.838, allocations: 157.5 kB / 1.345 GB, free: 13.04 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007282/0.8387, allocations: 0.5619 MB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003597/0.839, allocations: 145.4 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.8392, allocations: 75.95 kB / 1.346 GB, free: 12.54 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.8393, allocations: 6.734 kB / 1.346 GB, free: 12.54 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002834/0.8396, allocations: 152 kB / 1.346 GB, free: 12.45 MB / 1.061 GB Notification: Performance of pre-optimization done (n=19): time 1.502e-06/0.8396, allocations: 0 / 1.346 GB, free: 12.45 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.0006983/0.8403, allocations: 269.9 kB / 1.346 GB, free: 12.35 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.8403, allocations: 57.66 kB / 1.346 GB, free: 12.28 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.8404, allocations: 202.7 kB / 1.346 GB, free: 12.14 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.8405, allocations: 32.64 kB / 1.346 GB, free: 12.11 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.8405, allocations: 132.7 kB / 1.346 GB, free: 11.99 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.031e-05/0.8406, allocations: 61.14 kB / 1.346 GB, free: 11.94 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.81e-05/0.8406, allocations: 48.05 kB / 1.346 GB, free: 11.91 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.818e-05/0.8407, allocations: 330 kB / 1.347 GB, free: 11.59 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.8409, allocations: 74.34 kB / 1.347 GB, free: 11.56 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.8411, allocations: 101.5 kB / 1.347 GB, free: 11.52 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003814/0.8415, allocations: 178.3 kB / 1.347 GB, free: 11.43 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.8415, allocations: 4 kB / 1.347 GB, free: 11.43 MB / 1.061 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004802/0.842, allocations: 233.9 kB / 1.347 GB, free: 11.32 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.842, allocations: 6.156 kB / 1.347 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.842, allocations: 1.375 kB / 1.347 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.842, allocations: 1.375 kB / 1.347 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.8422, allocations: 43.11 kB / 1.347 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.8422, allocations: 11.27 kB / 1.347 GB, free: 11.31 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.8424, allocations: 35.75 kB / 1.347 GB, free: 11.29 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.8424, allocations: 6.484 kB / 1.347 GB, free: 11.29 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.5e-05/0.8425, allocations: 140.7 kB / 1.348 GB, free: 11.16 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/0.8425, allocations: 16.89 kB / 1.348 GB, free: 11.15 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.48e-05/0.8425, allocations: 18.34 kB / 1.348 GB, free: 11.14 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.8425, allocations: 3.578 kB / 1.348 GB, free: 11.14 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.8425, allocations: 0 / 1.348 GB, free: 11.14 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.8426, allocations: 10.17 kB / 1.348 GB, free: 11.13 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002137/0.8428, allocations: 291.3 kB / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.8428, allocations: 0.6562 kB / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.843, allocations: 40 kB / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.843, allocations: 2.562 kB / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.843, allocations: 5.922 kB / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.843, allocations: 0 / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.843, allocations: 1.656 kB / 1.348 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000708/0.8437, allocations: 337.5 kB / 1.348 GB, free: 10.71 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.8438, allocations: 99.98 kB / 1.348 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.8438, allocations: 5.391 kB / 1.348 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.8439, allocations: 19.14 kB / 1.348 GB, free: 10.59 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.904e-05/0.844, allocations: 26.55 kB / 1.348 GB, free: 10.58 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.844, allocations: 4.25 kB / 1.348 GB, free: 10.58 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001042/0.8441, allocations: 144 kB / 1.349 GB, free: 10.49 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.8441, allocations: 0 / 1.349 GB, free: 10.49 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002615/0.8444, allocations: 42.03 kB / 1.349 GB, free: 10.48 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.0009035/0.8453, allocations: 0.8706 MB / 1.349 GB, free: 9.785 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005232/0.8458, allocations: 172.8 kB / 1.35 GB, free: 9.738 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.8458, allocations: 4.062 kB / 1.35 GB, free: 9.734 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000235/0.8461, allocations: 87.44 kB / 1.35 GB, free: 9.711 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.8464, allocations: 46.77 kB / 1.35 GB, free: 9.695 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.8491, allocations: 2.287 MB / 1.352 GB, free: 8.121 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001614/0.8493, allocations: 0.7364 MB / 1.353 GB, free: 7.422 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001014/0.8494, allocations: 24.7 kB / 1.353 GB, free: 7.41 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.8495, allocations: 65.19 kB / 1.353 GB, free: 7.363 MB / 1.061 GB Notification: Performance of SimCode: time 8.61e-07/0.8495, allocations: 0 / 1.353 GB, free: 7.363 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.8757, allocations: 4.614 MB / 1.357 GB, free: 6.758 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.323/9.198, allocations: 17.36 kB / 1.357 GB, free: 6.746 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.443233468977269]