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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004326/0.004326, allocations: 100.9 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 195.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.817/2.817, allocations: 482.4 MB / 0.7548 GB, free: 6.875 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 63.47 kB / 1.083 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2761, allocations: 162.2 MB / 1.241 GB, free: 9.309 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.002397/0.2785, allocations: 1.163 MB / 1.243 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.2799, allocations: 1.041 MB / 1.244 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.471e-05/0.28, allocations: 4 kB / 1.244 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.669e-05/0.2801, allocations: 23.67 kB / 1.244 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.2802, allocations: 39.64 kB / 1.244 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.2805, allocations: 91.84 kB / 1.244 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002874/0.2808, allocations: 247.2 kB / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.281, allocations: 103.2 kB / 1.244 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.2812, allocations: 95.62 kB / 1.244 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.2814, allocations: 107.5 kB / 1.244 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.527e-05/0.2814, allocations: 32 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.956e-05/0.2815, allocations: 24 kB / 1.244 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.94e-05/0.2815, allocations: 55.77 kB / 1.244 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.2817, allocations: 99.47 kB / 1.244 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.282, allocations: 287.1 kB / 1.245 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.282, allocations: 3.984 kB / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.252e-06/0.282, allocations: 0 / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.282, allocations: 0 / 1.245 GB, free: 5.891 MB / 0.9669 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.0009517/0.283, allocations: 0.5412 MB / 1.245 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.283, allocations: 12.03 kB / 1.245 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.762e-05/0.2831, allocations: 50.73 kB / 1.245 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.545e-05/0.2832, allocations: 24.8 kB / 1.245 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.2835, allocations: 251.9 kB / 1.246 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.755e-05/0.2836, allocations: 67.97 kB / 1.246 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.111e-05/0.2836, allocations: 28.36 kB / 1.246 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004494/0.2841, allocations: 193.5 kB / 1.246 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.2841, allocations: 0 / 1.246 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.2841, allocations: 12 kB / 1.246 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2842, allocations: 4 kB / 1.246 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004667/0.2846, allocations: 155.9 kB / 1.246 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009052/0.2855, allocations: 0.5664 MB / 1.247 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004049/0.286, allocations: 142.8 kB / 1.247 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002392/0.2862, allocations: 84.81 kB / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.2862, allocations: 3.984 kB / 1.247 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/0.2866, allocations: 139.3 kB / 1.247 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 1.623e-06/0.2866, allocations: 0 / 1.247 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.0007976/0.2874, allocations: 279 kB / 1.247 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.2875, allocations: 63.39 kB / 1.247 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.2877, allocations: 188.4 kB / 1.247 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.2877, allocations: 29.7 kB / 1.247 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.2878, allocations: 140.5 kB / 1.248 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.057e-05/0.2879, allocations: 59.5 kB / 1.248 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.077e-05/0.288, allocations: 37.7 kB / 1.248 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.2881, allocations: 334.8 kB / 1.248 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/0.2884, allocations: 71.95 kB / 1.248 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.2886, allocations: 110 kB / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004636/0.2891, allocations: 186.3 kB / 1.248 GB, free: 1.914 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2891, allocations: 3.938 kB / 1.248 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005725/0.2897, allocations: 237.4 kB / 1.249 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.2897, allocations: 4 kB / 1.249 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.2897, allocations: 0 / 1.249 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.2897, allocations: 4 kB / 1.249 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.29, allocations: 47.91 kB / 1.249 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.29, allocations: 0 / 1.249 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.2902, allocations: 27.81 kB / 1.249 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.094e-05/0.2902, allocations: 15.98 kB / 1.249 GB, free: 1.574 MB / 0.9669 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.0001277/0.2903, allocations: 133.8 kB / 1.249 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.2904, allocations: 15.91 kB / 1.249 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.997e-05/0.2904, allocations: 21.88 kB / 1.249 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2904, allocations: 3.938 kB / 1.249 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-06/0.2905, allocations: 0 / 1.249 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.2905, allocations: 11.92 kB / 1.249 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002934/0.2908, allocations: 285.4 kB / 1.249 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2908, allocations: 4 kB / 1.249 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.291, allocations: 43.97 kB / 1.249 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.291, allocations: 0 / 1.249 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.2911, allocations: 0 / 1.249 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.2911, allocations: 4 kB / 1.249 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2911, allocations: 0 / 1.249 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008257/0.2919, allocations: 346.6 kB / 1.25 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.508e-05/0.292, allocations: 92.98 kB / 1.25 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.292, allocations: 0 / 1.25 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.2922, allocations: 27.97 kB / 1.25 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.923e-05/0.2923, allocations: 19.92 kB / 1.25 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.2923, allocations: 7.984 kB / 1.25 GB, free: 496 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000138/0.2924, allocations: 144.3 kB / 1.25 GB, free: 352 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2924, allocations: 0 / 1.25 GB, free: 352 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002458/0.2927, allocations: 43.95 kB / 1.25 GB, free: 308 kB / 0.9669 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.001158/0.2938, allocations: 0.8777 MB / 1.251 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005266/0.2944, allocations: 175.8 kB / 1.251 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.2944, allocations: 0 / 1.251 GB, free: 15.22 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002579/0.2947, allocations: 91.94 kB / 1.251 GB, free: 15.13 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.295, allocations: 43.86 kB / 1.251 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.2983, allocations: 2.282 MB / 1.253 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.2987, allocations: 0.7401 MB / 1.254 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.551e-05/0.2988, allocations: 22 kB / 1.254 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.2989, allocations: 67.41 kB / 1.254 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of SimCode: time 2.61e-07/0.2989, allocations: 0 / 1.254 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.3258, allocations: 4.55 MB / 1.258 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.814/8.139, allocations: 16.25 kB / 1.259 GB, free: 7.473 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.csv --start-time 0 --stop-time 2000 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.8 Buildings_latest_Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_StagingRotation_Validation_LoadAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches