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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.6 MB / 247.8 MB, free: 3.734 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.892/2.892, allocations: 497.2 MB / 0.7812 GB, free: 12.14 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 67.89 kB / 1.134 GB, free: 11.11 MB / 0.8731 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8741/0.8762, allocations: 173.9 MB / 1.304 GB, free: 15.67 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002526/0.8787, allocations: 1.173 MB / 1.305 GB, free: 14.88 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.8802, allocations: 1.049 MB / 1.306 GB, free: 14.09 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.8803, allocations: 2.125 kB / 1.306 GB, free: 14.09 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 6.433e-05/0.8803, allocations: 23.44 kB / 1.306 GB, free: 14.07 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.8805, allocations: 37.05 kB / 1.306 GB, free: 14.05 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003537/0.8808, allocations: 99.19 kB / 1.306 GB, free: 13.99 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000317/0.8812, allocations: 245.4 kB / 1.307 GB, free: 13.87 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.8814, allocations: 71.61 kB / 1.307 GB, free: 13.82 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.8816, allocations: 97.58 kB / 1.307 GB, free: 13.77 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.8817, allocations: 107.1 kB / 1.307 GB, free: 13.71 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.427e-05/0.8818, allocations: 24.53 kB / 1.307 GB, free: 13.71 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.421e-05/0.8818, allocations: 28.31 kB / 1.307 GB, free: 13.71 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.63e-05/0.8819, allocations: 57.75 kB / 1.307 GB, free: 13.67 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.882, allocations: 105.5 kB / 1.307 GB, free: 13.6 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004271/0.8824, allocations: 291.6 kB / 1.307 GB, free: 13.48 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.8825, allocations: 0 / 1.307 GB, free: 13.48 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.235e-06/0.8825, allocations: 0 / 1.307 GB, free: 13.48 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.8825, allocations: 0.875 kB / 1.307 GB, free: 13.48 MB / 1.014 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.001065/0.8835, allocations: 0.5368 MB / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.8836, allocations: 8.531 kB / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.412e-05/0.8836, allocations: 54.48 kB / 1.308 GB, free: 12.96 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.894e-05/0.8837, allocations: 24.64 kB / 1.308 GB, free: 12.95 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003671/0.8841, allocations: 242.9 kB / 1.308 GB, free: 12.71 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-05/0.8841, allocations: 74.38 kB / 1.308 GB, free: 12.64 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.686e-05/0.8842, allocations: 16.5 kB / 1.308 GB, free: 12.64 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004207/0.8846, allocations: 193 kB / 1.308 GB, free: 12.55 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.8846, allocations: 4 kB / 1.308 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.8846, allocations: 10 kB / 1.308 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.872e-06/0.8846, allocations: 5.062 kB / 1.308 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00042/0.8851, allocations: 148.7 kB / 1.309 GB, free: 12.5 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009523/0.886, allocations: 0.5813 MB / 1.309 GB, free: 12.07 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003945/0.8864, allocations: 132.7 kB / 1.309 GB, free: 12.01 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.8866, allocations: 83.86 kB / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.8867, allocations: 3.484 kB / 1.309 GB, free: 11.98 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000335/0.887, allocations: 142.8 kB / 1.309 GB, free: 11.9 MB / 1.014 GB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.887, allocations: 0 / 1.309 GB, free: 11.9 MB / 1.014 GB Notification: Performance of matching and sorting (n=19): time 0.0007357/0.8877, allocations: 276.5 kB / 1.31 GB, free: 11.79 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.8878, allocations: 55.08 kB / 1.31 GB, free: 11.73 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.888, allocations: 192.3 kB / 1.31 GB, free: 11.6 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.888, allocations: 31.78 kB / 1.31 GB, free: 11.56 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.896e-05/0.8881, allocations: 133.5 kB / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 6.693e-05/0.8882, allocations: 64.03 kB / 1.31 GB, free: 11.39 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.25e-05/0.8883, allocations: 48.77 kB / 1.31 GB, free: 11.36 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001747/0.8885, allocations: 333.6 kB / 1.311 GB, free: 11.04 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.8887, allocations: 71 kB / 1.311 GB, free: 11.02 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.8889, allocations: 99.12 kB / 1.311 GB, free: 10.97 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004107/0.8893, allocations: 178.4 kB / 1.311 GB, free: 10.88 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.8893, allocations: 1.156 kB / 1.311 GB, free: 10.88 MB / 1.014 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000521/0.8898, allocations: 229.3 kB / 1.311 GB, free: 10.79 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.8898, allocations: 5.812 kB / 1.311 GB, free: 10.79 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.8898, allocations: 5.156 kB / 1.311 GB, free: 10.78 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.8899, allocations: 1.406 kB / 1.311 GB, free: 10.78 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.8901, allocations: 52.53 kB / 1.311 GB, free: 10.77 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.8901, allocations: 2.031 kB / 1.311 GB, free: 10.77 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.8902, allocations: 32.58 kB / 1.311 GB, free: 10.75 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.8903, allocations: 4.688 kB / 1.311 GB, free: 10.75 MB / 1.014 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.0001416/0.8904, allocations: 132.8 kB / 1.311 GB, free: 10.62 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.545e-05/0.8904, allocations: 29.28 kB / 1.311 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.539e-05/0.8905, allocations: 20.23 kB / 1.311 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.8905, allocations: 2.062 kB / 1.311 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.8905, allocations: 0.75 kB / 1.311 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.8905, allocations: 5.781 kB / 1.311 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.8908, allocations: 296.1 kB / 1.312 GB, free: 10.34 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.8909, allocations: 4.656 kB / 1.312 GB, free: 10.34 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.8911, allocations: 36.12 kB / 1.312 GB, free: 10.34 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.8911, allocations: 0 / 1.312 GB, free: 10.34 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.8911, allocations: 8.297 kB / 1.312 GB, free: 10.33 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.8911, allocations: 4 kB / 1.312 GB, free: 10.33 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.8911, allocations: 0 / 1.312 GB, free: 10.33 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007535/0.8919, allocations: 338.6 kB / 1.312 GB, free: 10.16 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 7.248e-05/0.8919, allocations: 99.69 kB / 1.312 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.892, allocations: 5.75 kB / 1.312 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.8921, allocations: 14.52 kB / 1.312 GB, free: 10.05 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.8922, allocations: 26.39 kB / 1.312 GB, free: 10.04 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.8922, allocations: 10 kB / 1.312 GB, free: 10.04 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001355/0.8923, allocations: 139.8 kB / 1.312 GB, free: 9.945 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.8923, allocations: 0 / 1.312 GB, free: 9.945 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002436/0.8926, allocations: 44.72 kB / 1.312 GB, free: 9.934 MB / 1.014 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.001156/0.8937, allocations: 0.8716 MB / 1.313 GB, free: 9.238 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005339/0.8943, allocations: 175.7 kB / 1.313 GB, free: 9.188 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8943, allocations: 0 / 1.313 GB, free: 9.188 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.8945, allocations: 87.5 kB / 1.313 GB, free: 9.156 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.8949, allocations: 51.3 kB / 1.313 GB, free: 9.129 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.8984, allocations: 2.289 MB / 1.316 GB, free: 7.379 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.8988, allocations: 0.7384 MB / 1.316 GB, free: 6.656 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001069/0.8989, allocations: 19.44 kB / 1.316 GB, free: 6.648 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.8991, allocations: 67.25 kB / 1.317 GB, free: 6.594 MB / 1.014 GB Notification: Performance of SimCode: time 5.21e-07/0.8991, allocations: 0 / 1.317 GB, free: 6.594 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03568/0.9347, allocations: 4.58 MB / 1.321 GB, free: 4.336 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.323/9.257, allocations: 3.844 kB / 1.321 GB, free: 4.336 MB / 1.014 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_2/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.353146903216839]