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.0008151/0.0008151, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.000873/0.000873, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.884/0.884, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.756/1.756, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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="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 3.005e-06/3.005e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.067e-05/2.367e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.001675/0.001698, allocations: 1.072 MB / 1.001 GB, free: 12.44 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.002786, allocations: 1.073 MB / 1.002 GB, free: 11.36 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.1e-05/0.002877, allocations: 11.94 kB / 1.002 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 4.703e-05/0.002924, allocations: 23.67 kB / 1.002 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.003058, allocations: 39.59 kB / 1.002 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.003348, allocations: 99.77 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.003543, allocations: 251.2 kB / 1.002 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.003694, allocations: 71.86 kB / 1.002 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.00392, allocations: 143.7 kB / 1.002 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 9.874e-05/0.004018, allocations: 87.69 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.004049, allocations: 24 kB / 1.002 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5e-05/0.004099, allocations: 28 kB / 1.002 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.559e-05/0.004134, allocations: 59.75 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.628e-05/0.00419, allocations: 67.83 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.004455, allocations: 303 kB / 1.003 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.004458, allocations: 0 / 1.003 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.212e-06/0.004459, allocations: 0 / 1.003 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.339e-06/0.004463, allocations: 0 / 1.003 GB, free: 10.16 MB / 0.9636 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.0006568/0.00512, allocations: 469.2 kB / 1.003 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.005159, allocations: 8.75 kB / 1.003 GB, free: 9.668 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.197e-05/0.005201, allocations: 50.73 kB / 1.003 GB, free: 9.609 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001455/0.005346, allocations: 44.77 kB / 1.003 GB, free: 9.566 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.005601, allocations: 193.3 kB / 1.004 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.648e-05/0.005677, allocations: 131.3 kB / 1.004 GB, free: 9.199 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.005706, allocations: 16.38 kB / 1.004 GB, free: 9.184 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002707/0.005976, allocations: 190 kB / 1.004 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.005991, allocations: 4.172 kB / 1.004 GB, free: 8.988 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.006007, allocations: 12.12 kB / 1.004 GB, free: 8.977 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.006014, allocations: 4 kB / 1.004 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.006265, allocations: 151.9 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006109/0.006876, allocations: 0.4992 MB / 1.005 GB, free: 8.281 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.007152, allocations: 142.8 kB / 1.005 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.007273, allocations: 77.12 kB / 1.005 GB, free: 8.055 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.0073, allocations: 8 kB / 1.005 GB, free: 8.047 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002063/0.007507, allocations: 147.2 kB / 1.005 GB, free: 7.891 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=19): time 2.384e-06/0.007509, allocations: 0 / 1.005 GB, free: 7.891 MB / 0.9636 GB Notification: Performance of matching and sorting (n=19): time 0.0004589/0.007968, allocations: 267.7 kB / 1.005 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.008008, allocations: 59.34 kB / 1.005 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.008141, allocations: 194.8 kB / 1.005 GB, free: 7.352 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.008158, allocations: 29.7 kB / 1.005 GB, free: 7.316 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002581/0.008416, allocations: 128.6 kB / 1.006 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 4.491e-05/0.008461, allocations: 71.45 kB / 1.006 GB, free: 7.117 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.271e-05/0.008514, allocations: 41.7 kB / 1.006 GB, free: 7.07 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.008603, allocations: 330.8 kB / 1.006 GB, free: 6.738 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.008726, allocations: 71.95 kB / 1.006 GB, free: 6.668 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.00886, allocations: 106.5 kB / 1.006 GB, free: 6.555 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.009102, allocations: 182.4 kB / 1.006 GB, free: 6.367 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.009105, allocations: 3.938 kB / 1.006 GB, free: 6.363 MB / 0.9636 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002952/0.0094, allocations: 233.4 kB / 1.007 GB, free: 6.129 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.009417, allocations: 8 kB / 1.007 GB, free: 6.121 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.009423, allocations: 0 / 1.007 GB, free: 6.121 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.009438, allocations: 4 kB / 1.007 GB, free: 6.117 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.009558, allocations: 39.97 kB / 1.007 GB, free: 6.078 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.009566, allocations: 3.938 kB / 1.007 GB, free: 6.074 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.343e-05/0.009639, allocations: 31.86 kB / 1.007 GB, free: 6.043 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.00965, allocations: 4 kB / 1.007 GB, free: 6.039 MB / 0.9636 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 9.555e-05/0.009745, allocations: 140.7 kB / 1.007 GB, free: 5.895 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.009763, allocations: 23.86 kB / 1.007 GB, free: 5.871 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.254e-05/0.009805, allocations: 25.8 kB / 1.007 GB, free: 5.84 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.009808, allocations: 4 kB / 1.007 GB, free: 5.836 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.009812, allocations: 0 / 1.007 GB, free: 5.836 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.009819, allocations: 0 / 1.007 GB, free: 5.836 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.009989, allocations: 236.5 kB / 1.007 GB, free: 5.562 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.00999, allocations: 0 / 1.007 GB, free: 5.562 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.01011, allocations: 39.91 kB / 1.007 GB, free: 5.523 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.01011, allocations: 0 / 1.007 GB, free: 5.523 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.01012, allocations: 8 kB / 1.007 GB, free: 5.516 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.01012, allocations: 4 kB / 1.007 GB, free: 5.512 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01012, allocations: 0 / 1.007 GB, free: 5.512 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004466/0.01057, allocations: 334.8 kB / 1.007 GB, free: 5.168 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.229e-05/0.01059, allocations: 23.83 kB / 1.007 GB, free: 5.145 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.01061, allocations: 4 kB / 1.007 GB, free: 5.141 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.365e-05/0.01068, allocations: 24.03 kB / 1.008 GB, free: 5.117 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.084e-05/0.01074, allocations: 19.97 kB / 1.008 GB, free: 5.098 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.01075, allocations: 4 kB / 1.008 GB, free: 5.094 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 9.452e-05/0.01084, allocations: 146.7 kB / 1.008 GB, free: 4.953 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.01084, allocations: 0 / 1.008 GB, free: 4.953 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001692/0.01101, allocations: 39.94 kB / 1.008 GB, free: 4.914 MB / 0.9636 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.0006458/0.01166, allocations: 0.8777 MB / 1.009 GB, free: 4.008 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002924/0.01195, allocations: 171.8 kB / 1.009 GB, free: 3.84 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.01195, allocations: 0 / 1.009 GB, free: 3.84 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.01208, allocations: 85.78 kB / 1.009 GB, free: 3.758 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.01231, allocations: 46.66 kB / 1.009 GB, free: 3.715 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.01432, allocations: 2.263 MB / 1.011 GB, free: 1.359 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.826e-05/0.01439, allocations: 129.5 kB / 1.011 GB, free: 1.211 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 7.278e-05/0.01447, allocations: 26.08 kB / 1.011 GB, free: 1.188 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.922e-05/0.01456, allocations: 64.47 kB / 1.011 GB, free: 1.125 MB / 0.9636 GB Notification: Performance of SimCode: time 5.01e-07/0.01456, allocations: 0 / 1.011 GB, free: 1.125 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01834/0.0329, allocations: 5.415 MB / 1.017 GB, free: 11.91 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.538/6.571, allocations: 0.5 kB / 1.017 GB, free: 11.91 MB / 0.9792 GB " [Timeout remaining time 293] (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/jenkins/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: 10.546452773734927]