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.001296/0.001296, 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.00149/0.00149, allocations: 219.3 kB / 23.03 MB, free: 4.922 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.486/1.486, allocations: 230.6 MB / 256.8 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.312/3.312, allocations: 0.49 GB / 0.7959 GB, free: 35.46 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.002075/0.002075, allocations: 70.19 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3311, allocations: 176.1 MB / 1.327 GB, free: 1.531 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.00267/0.3337, allocations: 1.08 MB / 1.328 GB, free: 468 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001686/0.3354, allocations: 1.073 MB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.3356, allocations: 7.938 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.666e-05/0.3357, allocations: 19.73 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.3359, allocations: 43.59 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.3363, allocations: 99.77 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003535/0.3366, allocations: 243.3 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.3369, allocations: 79.78 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003226/0.3372, allocations: 103.6 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.3374, allocations: 107.5 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.204e-05/0.3375, allocations: 24 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.306e-05/0.3376, allocations: 24 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.945e-05/0.3376, allocations: 67.7 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.3377, allocations: 83.59 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003734/0.3381, allocations: 291.1 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3381, allocations: 3.984 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3381, allocations: 0 / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.3381, allocations: 0 / 1.33 GB, free: 14.19 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.0009615/0.3391, allocations: 473.1 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.3391, allocations: 12.03 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.61e-05/0.3391, allocations: 4.188 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.853e-05/0.3392, allocations: 54.72 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002568/0.3394, allocations: 48.72 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00034/0.3398, allocations: 186.1 kB / 1.331 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.3399, allocations: 127.4 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.34, allocations: 24.25 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.3404, allocations: 194.2 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.3404, allocations: 0 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.3404, allocations: 8 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.3405, allocations: 4 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.3409, allocations: 155.8 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009176/0.3418, allocations: 0.4914 MB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004129/0.3422, allocations: 134.7 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/0.3425, allocations: 82.69 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.3425, allocations: 4 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003535/0.3428, allocations: 145 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=19): time 1.883e-06/0.3428, allocations: 0 / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=19): time 0.0007701/0.3436, allocations: 273.4 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.3437, allocations: 51.41 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.3439, allocations: 203.1 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.3439, allocations: 33.7 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.344, allocations: 132.6 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.3441, allocations: 67.42 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.624e-05/0.3442, allocations: 45.64 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3443, allocations: 334.8 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.3446, allocations: 75.89 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.3448, allocations: 98.52 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004534/0.3452, allocations: 174.4 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3452, allocations: 0 / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005539/0.3458, allocations: 237.5 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.3458, allocations: 4 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.3458, allocations: 0 / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.3458, allocations: 4 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.3461, allocations: 51.91 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.3461, allocations: 0 / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.3462, allocations: 31.81 kB / 1.334 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.3463, allocations: 4 kB / 1.334 GB, free: 10.05 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.0001402/0.3464, allocations: 137.8 kB / 1.334 GB, free: 9.91 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.81e-05/0.3464, allocations: 19.86 kB / 1.334 GB, free: 9.891 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.695e-05/0.3465, allocations: 21.81 kB / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.3465, allocations: 4 kB / 1.334 GB, free: 9.859 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3465, allocations: 4 kB / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3465, allocations: 7.922 kB / 1.334 GB, free: 9.848 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002985/0.3468, allocations: 240.5 kB / 1.334 GB, free: 9.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3468, allocations: 0 / 1.334 GB, free: 9.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.3471, allocations: 35.97 kB / 1.334 GB, free: 9.535 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.3471, allocations: 3.984 kB / 1.334 GB, free: 9.531 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.3471, allocations: 11.98 kB / 1.334 GB, free: 9.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3471, allocations: 0 / 1.334 GB, free: 9.52 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3471, allocations: 0 / 1.334 GB, free: 9.52 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008118/0.3479, allocations: 334.3 kB / 1.334 GB, free: 9.176 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.348, allocations: 23.88 kB / 1.334 GB, free: 9.152 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.348, allocations: 4 kB / 1.334 GB, free: 9.148 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.3481, allocations: 11.98 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.204e-05/0.3482, allocations: 27.89 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.3482, allocations: 8.062 kB / 1.335 GB, free: 9.102 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001314/0.3484, allocations: 144.5 kB / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3484, allocations: 0 / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002796/0.3486, allocations: 47.89 kB / 1.335 GB, free: 8.914 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.001116/0.3498, allocations: 0.8676 MB / 1.336 GB, free: 8.016 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005067/0.3503, allocations: 177.4 kB / 1.336 GB, free: 7.844 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3503, allocations: 0 / 1.336 GB, free: 7.844 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000245/0.3505, allocations: 87.89 kB / 1.336 GB, free: 7.758 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.3508, allocations: 42.2 kB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.3543, allocations: 2.285 MB / 1.338 GB, free: 5.34 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.3544, allocations: 121.5 kB / 1.338 GB, free: 5.203 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001046/0.3545, allocations: 21.64 kB / 1.338 GB, free: 5.18 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.3546, allocations: 63.42 kB / 1.338 GB, free: 5.121 MB / 1.029 GB Notification: Performance of SimCode: time 3.7e-07/0.3546, allocations: 0 / 1.338 GB, free: 5.121 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03095/0.3856, allocations: 4.92 MB / 1.343 GB, free: 420 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.26, allocations: 17.62 kB / 1.343 GB, free: 408 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: 19.315650790929794]