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.001305/0.001305, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.00157/0.00157, allocations: 215.2 kB / 22.25 MB, free: 5.258 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.449/1.449, allocations: 230.6 MB / 256 MB, free: 7.781 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.152/3.152, allocations: 0.49 GB / 0.7951 GB, free: 35.54 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_12_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.002053/0.002053, allocations: 66.78 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3416, allocations: 176.1 MB / 1.326 GB, free: 1.547 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002642/0.3442, allocations: 1.074 MB / 1.327 GB, free: 488 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001688/0.3459, allocations: 1.073 MB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.3461, allocations: 8 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.14e-05/0.3461, allocations: 19.73 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.3463, allocations: 43.58 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003891/0.3467, allocations: 103.8 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003057/0.347, allocations: 243.3 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.3472, allocations: 75.8 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002461/0.3474, allocations: 103.6 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.3476, allocations: 107.5 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/0.3476, allocations: 24 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-05/0.3477, allocations: 28 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.644e-05/0.3478, allocations: 63.75 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.3479, allocations: 87.53 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.3483, allocations: 287.1 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3483, allocations: 0 / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3483, allocations: 4 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.077e-06/0.3483, allocations: 3.938 kB / 1.329 GB, free: 14.2 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.0009937/0.3493, allocations: 473.1 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3493, allocations: 8.031 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.537e-05/0.3494, allocations: 54.73 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.3497, allocations: 48.72 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.35, allocations: 186.2 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.3501, allocations: 127.3 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.3502, allocations: 16.38 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.3506, allocations: 198.3 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.3507, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.3507, allocations: 4 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.3507, allocations: 7.984 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004335/0.3511, allocations: 155.9 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008935/0.352, allocations: 0.4952 MB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.3524, allocations: 144.5 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/0.3526, allocations: 72.81 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.3527, allocations: 8 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003274/0.353, allocations: 143.3 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 1.673e-06/0.353, allocations: 0 / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.0007371/0.3537, allocations: 272.3 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.3538, allocations: 59.41 kB / 1.331 GB, free: 11.6 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.354, allocations: 195.2 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.354, allocations: 29.7 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.988e-05/0.3541, allocations: 136.6 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.894e-05/0.3542, allocations: 71.42 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.883e-05/0.3543, allocations: 37.7 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3544, allocations: 334.8 kB / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.3546, allocations: 75.88 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.3549, allocations: 102.5 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004062/0.3553, allocations: 174.4 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3553, allocations: 0 / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005191/0.3558, allocations: 237.4 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.3558, allocations: 8 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.3558, allocations: 4 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3558, allocations: 3.984 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.356, allocations: 43.91 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.3561, allocations: 4 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.3562, allocations: 27.81 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.3562, allocations: 12 kB / 1.333 GB, free: 10.07 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.0001265/0.3564, allocations: 128.8 kB / 1.333 GB, free: 9.938 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.3564, allocations: 23.86 kB / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.3565, allocations: 25.8 kB / 1.333 GB, free: 9.883 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3565, allocations: 7.938 kB / 1.333 GB, free: 9.875 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.3565, allocations: 3.938 kB / 1.333 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3565, allocations: 3.938 kB / 1.333 GB, free: 9.867 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002646/0.3567, allocations: 232.5 kB / 1.333 GB, free: 9.598 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3567, allocations: 0 / 1.333 GB, free: 9.598 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002369/0.357, allocations: 39.97 kB / 1.333 GB, free: 9.559 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.357, allocations: 4 kB / 1.333 GB, free: 9.555 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.357, allocations: 0 / 1.333 GB, free: 9.555 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.357, allocations: 7.938 kB / 1.333 GB, free: 9.547 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.357, allocations: 0 / 1.333 GB, free: 9.547 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007622/0.3578, allocations: 336.7 kB / 1.334 GB, free: 9.199 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.146e-05/0.3578, allocations: 23.88 kB / 1.334 GB, free: 9.176 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.3578, allocations: 4 kB / 1.334 GB, free: 9.172 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.358, allocations: 20.05 kB / 1.334 GB, free: 9.152 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.05e-05/0.3581, allocations: 19.91 kB / 1.334 GB, free: 9.133 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.3581, allocations: 7.984 kB / 1.334 GB, free: 9.125 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001244/0.3582, allocations: 140.5 kB / 1.334 GB, free: 8.988 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3582, allocations: 0 / 1.334 GB, free: 8.988 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002638/0.3585, allocations: 47.88 kB / 1.334 GB, free: 8.941 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.001096/0.3596, allocations: 0.8714 MB / 1.335 GB, free: 8.039 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004835/0.3601, allocations: 165.2 kB / 1.335 GB, free: 7.879 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3601, allocations: 4 kB / 1.335 GB, free: 7.875 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.3603, allocations: 87.88 kB / 1.335 GB, free: 7.789 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.3606, allocations: 51 kB / 1.335 GB, free: 7.742 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.3639, allocations: 2.297 MB / 1.337 GB, free: 5.355 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.364, allocations: 125.5 kB / 1.337 GB, free: 5.215 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.569e-05/0.3641, allocations: 21.62 kB / 1.337 GB, free: 5.191 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.3642, allocations: 63.42 kB / 1.338 GB, free: 5.133 MB / 1.029 GB Notification: Performance of SimCode: time 7.22e-07/0.3642, allocations: 0 / 1.338 GB, free: 5.133 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0338/0.398, allocations: 5.307 MB / 1.343 GB, free: 4 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.69, allocations: 15.12 kB / 1.343 GB, free: 15.99 MB / 1.045 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.326515676017152]