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.00124/0.00124, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001348/0.001348, allocations: 213.9 kB / 23.03 MB, free: 4.926 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.402/1.402, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.108/3.108, allocations: 0.5003 GB / 0.8062 GB, free: 28.3 MB / 0.6231 GB " [Timeout remaining time 177] 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.002182/0.002182, allocations: 66.25 kB / 1.17 GB, free: 19.62 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3087, allocations: 179 MB / 1.345 GB, free: 16 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002429/0.3111, allocations: 1.082 MB / 1.346 GB, free: 14.91 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.3125, allocations: 1.069 MB / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.747e-05/0.3126, allocations: 4 kB / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.519e-05/0.3126, allocations: 23.67 kB / 1.347 GB, free: 13.8 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001472/0.3128, allocations: 43.58 kB / 1.347 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.3131, allocations: 95.84 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002712/0.3134, allocations: 255.2 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.3135, allocations: 71.81 kB / 1.348 GB, free: 13.34 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.3138, allocations: 107.6 kB / 1.348 GB, free: 13.23 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.3139, allocations: 103.5 kB / 1.348 GB, free: 13.13 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.3139, allocations: 24 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.624e-05/0.314, allocations: 32 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.775e-05/0.3141, allocations: 55.78 kB / 1.348 GB, free: 13.02 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 9.298e-05/0.3142, allocations: 87.56 kB / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003256/0.3145, allocations: 287.1 kB / 1.349 GB, free: 12.65 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3145, allocations: 4 kB / 1.349 GB, free: 12.65 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3145, allocations: 4 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.3145, allocations: 0 / 1.349 GB, free: 12.64 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.000909/0.3154, allocations: 477.1 kB / 1.349 GB, free: 12.15 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.3154, allocations: 8.031 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.46e-05/0.3155, allocations: 4.188 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.411e-05/0.3155, allocations: 62.67 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.3157, allocations: 40.78 kB / 1.349 GB, free: 12.03 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/0.3161, allocations: 194 kB / 1.349 GB, free: 11.81 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.3162, allocations: 119.4 kB / 1.349 GB, free: 11.67 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.46e-05/0.3162, allocations: 16.38 kB / 1.349 GB, free: 11.66 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004245/0.3166, allocations: 190.2 kB / 1.35 GB, free: 11.46 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3166, allocations: 0 / 1.35 GB, free: 11.46 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.3167, allocations: 4 kB / 1.35 GB, free: 11.46 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.3167, allocations: 8 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000424/0.3171, allocations: 163.8 kB / 1.35 GB, free: 11.29 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008375/0.3179, allocations: 0.4914 MB / 1.35 GB, free: 10.76 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003903/0.3183, allocations: 138.8 kB / 1.35 GB, free: 10.61 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.3185, allocations: 77.12 kB / 1.35 GB, free: 10.54 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.3186, allocations: 0 / 1.35 GB, free: 10.54 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003329/0.3189, allocations: 153 kB / 1.351 GB, free: 10.38 MB / 1.045 GB Notification: Performance of pre-optimization done (n=19): time 1.643e-06/0.3189, allocations: 4 kB / 1.351 GB, free: 10.37 MB / 1.045 GB Notification: Performance of matching and sorting (n=19): time 0.0007359/0.3196, allocations: 269.4 kB / 1.351 GB, free: 10.1 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.3197, allocations: 55.41 kB / 1.351 GB, free: 10.04 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001974/0.3199, allocations: 194.5 kB / 1.351 GB, free: 9.832 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.3199, allocations: 29.7 kB / 1.351 GB, free: 9.797 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/0.32, allocations: 132.6 kB / 1.351 GB, free: 9.664 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.476e-05/0.3201, allocations: 67.44 kB / 1.351 GB, free: 9.598 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.857e-05/0.3201, allocations: 37.7 kB / 1.351 GB, free: 9.555 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3203, allocations: 338.8 kB / 1.352 GB, free: 9.215 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.3205, allocations: 71.89 kB / 1.352 GB, free: 9.145 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.3207, allocations: 114.4 kB / 1.352 GB, free: 9.023 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.3211, allocations: 174.4 kB / 1.352 GB, free: 8.844 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3211, allocations: 4 kB / 1.352 GB, free: 8.84 MB / 1.045 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005117/0.3216, allocations: 229.4 kB / 1.352 GB, free: 8.609 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3216, allocations: 8 kB / 1.352 GB, free: 8.602 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.3217, allocations: 0 / 1.352 GB, free: 8.602 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3217, allocations: 0 / 1.352 GB, free: 8.602 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.3219, allocations: 43.91 kB / 1.352 GB, free: 8.559 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.3219, allocations: 4.156 kB / 1.352 GB, free: 8.555 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.322, allocations: 43.8 kB / 1.352 GB, free: 8.512 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.3221, allocations: 8 kB / 1.352 GB, free: 8.504 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.0001213/0.3222, allocations: 129.8 kB / 1.352 GB, free: 8.367 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/0.3222, allocations: 19.91 kB / 1.352 GB, free: 8.348 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.32e-05/0.3223, allocations: 25.8 kB / 1.352 GB, free: 8.32 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3223, allocations: 0 / 1.352 GB, free: 8.32 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3223, allocations: 0 / 1.352 GB, free: 8.32 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3223, allocations: 7.875 kB / 1.352 GB, free: 8.312 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.3225, allocations: 236.5 kB / 1.353 GB, free: 8.039 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3225, allocations: 4 kB / 1.353 GB, free: 8.035 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002323/0.3228, allocations: 39.97 kB / 1.353 GB, free: 7.996 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3228, allocations: 7.938 kB / 1.353 GB, free: 7.988 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.3228, allocations: 0 / 1.353 GB, free: 7.988 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.3228, allocations: 3.984 kB / 1.353 GB, free: 7.984 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3228, allocations: 4 kB / 1.353 GB, free: 7.98 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007687/0.3236, allocations: 338.5 kB / 1.353 GB, free: 7.633 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.3236, allocations: 15.94 kB / 1.353 GB, free: 7.617 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.3236, allocations: 4 kB / 1.353 GB, free: 7.613 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.3238, allocations: 19.97 kB / 1.353 GB, free: 7.594 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.776e-05/0.3238, allocations: 23.91 kB / 1.353 GB, free: 7.57 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.3239, allocations: 4 kB / 1.353 GB, free: 7.566 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001219/0.324, allocations: 144.2 kB / 1.353 GB, free: 7.426 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.324, allocations: 0 / 1.353 GB, free: 7.426 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002407/0.3242, allocations: 43.89 kB / 1.353 GB, free: 7.383 MB / 1.045 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.001023/0.3252, allocations: 0.875 MB / 1.354 GB, free: 6.477 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004643/0.3257, allocations: 169.8 kB / 1.354 GB, free: 6.312 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3257, allocations: 0 / 1.354 GB, free: 6.312 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002253/0.3259, allocations: 87.89 kB / 1.354 GB, free: 6.227 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.3262, allocations: 56.16 kB / 1.354 GB, free: 6.176 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.3295, allocations: 2.289 MB / 1.357 GB, free: 3.789 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.3296, allocations: 129.5 kB / 1.357 GB, free: 3.645 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001049/0.3297, allocations: 17.64 kB / 1.357 GB, free: 3.629 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.3298, allocations: 67.41 kB / 1.357 GB, free: 3.562 MB / 1.045 GB Notification: Performance of SimCode: time 5.21e-07/0.3298, allocations: 3.938 kB / 1.357 GB, free: 3.559 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.3569, allocations: 4.894 MB / 1.362 GB, free: 14.86 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.24, allocations: 12.05 kB / 1.362 GB, free: 14.85 MB / 1.061 GB " [Timeout remaining time 289] (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: 17.670600184006616]