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.0008447/0.0008447, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0009187/0.0009187, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8673/0.8673, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.65/1.65, allocations: 377.8 MB / 0.6221 GB, free: 8.641 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.725e-06/2.725e-06, allocations: 0 / 0.9809 GB, free: 1.465 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.903e-05/2.176e-05, allocations: 6.219 kB / 0.9809 GB, free: 1.457 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.00161/0.001632, allocations: 1.081 MB / 0.982 GB, free: 384 kB / 0.8855 GB Notification: Performance of NFInst.instExpressions: time 0.001106/0.002738, allocations: 1.081 MB / 0.9831 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.002845, allocations: 4 kB / 0.9831 GB, free: 15.28 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 4.635e-05/0.002891, allocations: 19.73 kB / 0.9831 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.003031, allocations: 43.59 kB / 0.9831 GB, free: 15.21 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.003347, allocations: 95.81 kB / 0.9832 GB, free: 15.12 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.003548, allocations: 247.2 kB / 0.9834 GB, free: 14.88 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.003704, allocations: 71.8 kB / 0.9835 GB, free: 14.8 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.003939, allocations: 155.6 kB / 0.9837 GB, free: 14.65 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 9.174e-05/0.00403, allocations: 79.7 kB / 0.9837 GB, free: 14.57 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.993e-05/0.00406, allocations: 24 kB / 0.9838 GB, free: 14.55 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 4.586e-05/0.004106, allocations: 24 kB / 0.9838 GB, free: 14.53 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 3.294e-05/0.004139, allocations: 59.81 kB / 0.9838 GB, free: 14.47 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 5.208e-05/0.004191, allocations: 67.83 kB / 0.9839 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002442/0.004435, allocations: 299 kB / 0.9842 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.004439, allocations: 0 / 0.9842 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.363e-06/0.00444, allocations: 0 / 0.9842 GB, free: 14.11 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.004444, allocations: 0 / 0.9842 GB, free: 14.11 MB / 0.9011 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.0006094/0.005053, allocations: 477.1 kB / 0.9846 GB, free: 13.61 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.00509, allocations: 15.97 kB / 0.9847 GB, free: 13.6 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.183e-05/0.005132, allocations: 54.73 kB / 0.9847 GB, free: 13.54 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.005267, allocations: 40.78 kB / 0.9848 GB, free: 13.5 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.005522, allocations: 209.8 kB / 0.985 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.33e-05/0.005595, allocations: 115.4 kB / 0.9851 GB, free: 13.13 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.005623, allocations: 20.38 kB / 0.9851 GB, free: 13.11 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004206/0.006044, allocations: 194.8 kB / 0.9853 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.006055, allocations: 4.125 kB / 0.9853 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.006072, allocations: 12.11 kB / 0.9853 GB, free: 12.9 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.006078, allocations: 8 kB / 0.9853 GB, free: 12.89 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.00631, allocations: 147.9 kB / 0.9854 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005806/0.006891, allocations: 0.4953 MB / 0.9859 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.00715, allocations: 134.8 kB / 0.986 GB, free: 12.07 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.007267, allocations: 81.11 kB / 0.9861 GB, free: 11.98 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.007292, allocations: 3.906 kB / 0.9861 GB, free: 11.98 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/0.007494, allocations: 147.3 kB / 0.9863 GB, free: 11.82 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=19): time 1.744e-06/0.007496, allocations: 4 kB / 0.9863 GB, free: 11.82 MB / 0.9011 GB Notification: Performance of matching and sorting (n=19): time 0.0004282/0.007924, allocations: 271.4 kB / 0.9865 GB, free: 11.55 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.00796, allocations: 55.41 kB / 0.9866 GB, free: 11.48 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.00808, allocations: 188.4 kB / 0.9868 GB, free: 11.29 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.008098, allocations: 37.69 kB / 0.9868 GB, free: 11.25 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 5.49e-05/0.008153, allocations: 128.6 kB / 0.9869 GB, free: 11.12 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 4.128e-05/0.008194, allocations: 67.42 kB / 0.987 GB, free: 11.05 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.166e-05/0.008246, allocations: 45.64 kB / 0.987 GB, free: 11 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 7.951e-05/0.008326, allocations: 334.8 kB / 0.9873 GB, free: 10.66 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.008437, allocations: 67.95 kB / 0.9874 GB, free: 10.6 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.008565, allocations: 104.9 kB / 0.9875 GB, free: 10.49 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.008789, allocations: 178.4 kB / 0.9877 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.008791, allocations: 4 kB / 0.9877 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002804/0.009071, allocations: 237.3 kB / 0.9879 GB, free: 10.06 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.009087, allocations: 8 kB / 0.9879 GB, free: 10.05 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.009092, allocations: 0 / 0.9879 GB, free: 10.05 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.009105, allocations: 0 / 0.9879 GB, free: 10.05 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.009218, allocations: 51.89 kB / 0.988 GB, free: 10 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.009225, allocations: 4 kB / 0.988 GB, free: 10 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.866e-05/0.009293, allocations: 31.86 kB / 0.988 GB, free: 9.969 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.009304, allocations: 4 kB / 0.988 GB, free: 9.965 MB / 0.9011 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.43e-05/0.009388, allocations: 137.7 kB / 0.9881 GB, free: 9.82 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.009405, allocations: 19.91 kB / 0.9882 GB, free: 9.801 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.009438, allocations: 25.73 kB / 0.9882 GB, free: 9.781 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.00944, allocations: 0 / 0.9882 GB, free: 9.781 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.009444, allocations: 4 kB / 0.9882 GB, free: 9.777 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.009448, allocations: 0 / 0.9882 GB, free: 9.777 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.009604, allocations: 236.5 kB / 0.9884 GB, free: 9.504 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.009606, allocations: 0 / 0.9884 GB, free: 9.504 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.009713, allocations: 39.97 kB / 0.9884 GB, free: 9.465 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.009716, allocations: 4 kB / 0.9885 GB, free: 9.461 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.009729, allocations: 4 kB / 0.9885 GB, free: 9.457 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.00973, allocations: 0 / 0.9885 GB, free: 9.457 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.009732, allocations: 7.938 kB / 0.9885 GB, free: 9.449 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004321/0.01016, allocations: 344.8 kB / 0.9888 GB, free: 9.098 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 1.84e-05/0.01018, allocations: 15.88 kB / 0.9888 GB, free: 9.082 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.0102, allocations: 8 kB / 0.9888 GB, free: 9.074 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.726e-05/0.01026, allocations: 15.97 kB / 0.9888 GB, free: 9.059 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.501e-05/0.01032, allocations: 23.97 kB / 0.9889 GB, free: 9.035 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.188e-06/0.01032, allocations: 4 kB / 0.9889 GB, free: 9.031 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 8.243e-05/0.01041, allocations: 148.3 kB / 0.989 GB, free: 8.887 MB / 0.9011 GB Notification: Performance of sort global known variables: time 6e-08/0.01041, allocations: 0 / 0.989 GB, free: 8.887 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0001656/0.01057, allocations: 43.89 kB / 0.989 GB, free: 8.844 MB / 0.9011 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.0006269/0.0112, allocations: 0.8699 MB / 0.9899 GB, free: 7.941 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0002855/0.01149, allocations: 175.9 kB / 0.9901 GB, free: 7.77 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01149, allocations: 0 / 0.9901 GB, free: 7.77 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.01161, allocations: 86.3 kB / 0.9901 GB, free: 7.688 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.01183, allocations: 35.97 kB / 0.9902 GB, free: 7.652 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.01394, allocations: 2.269 MB / 0.9924 GB, free: 5.285 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.996e-05/0.01401, allocations: 129.4 kB / 0.9925 GB, free: 5.141 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 6.473e-05/0.01408, allocations: 17.64 kB / 0.9925 GB, free: 5.125 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.596e-05/0.01416, allocations: 68.47 kB / 0.9926 GB, free: 5.059 MB / 0.9011 GB Notification: Performance of SimCode: time 8.31e-07/0.01416, allocations: 0 / 0.9926 GB, free: 5.059 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.03167, allocations: 5.411 MB / 0.9979 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.562/6.594, allocations: 5.75 kB / 0.9979 GB, free: 15.85 MB / 0.9167 GB " [Timeout remaining time 293] (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/jenkins/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: 10.36776714771986]