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.001358/0.001358, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.905/2.905, allocations: 482.6 MB / 0.7549 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 75.7 kB / 0.9242 GB, free: 29.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2636, allocations: 162.3 MB / 1.083 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.LoadAverage): time 0.00246/0.2661, allocations: 1.169 MB / 1.084 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2674, allocations: 1.045 MB / 1.085 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.377e-05/0.2675, allocations: 0 / 1.085 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 6.263e-05/0.2676, allocations: 19.73 kB / 1.085 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.2677, allocations: 47.58 kB / 1.085 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.268, allocations: 95.78 kB / 1.085 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.2683, allocations: 243.3 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2685, allocations: 95.22 kB / 1.085 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.2687, allocations: 103.6 kB / 1.085 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.2688, allocations: 107.5 kB / 1.086 GB, free: 9.938 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.605e-05/0.2689, allocations: 24 kB / 1.086 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 3.832e-05/0.2689, allocations: 27.94 kB / 1.086 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.894e-05/0.269, allocations: 55.83 kB / 1.086 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.2691, allocations: 111.3 kB / 1.086 GB, free: 9.723 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.2694, allocations: 267.4 kB / 1.086 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2694, allocations: 0 / 1.086 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.125e-06/0.2694, allocations: 3.984 kB / 1.086 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.2694, allocations: 0 / 1.086 GB, free: 9.457 MB / 0.8419 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.000895/0.2703, allocations: 0.5298 MB / 1.087 GB, free: 8.879 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.2703, allocations: 8.031 kB / 1.087 GB, free: 8.871 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.478e-05/0.2704, allocations: 54.73 kB / 1.087 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.407e-05/0.2704, allocations: 24.66 kB / 1.087 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002816/0.2707, allocations: 252.3 kB / 1.087 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.937e-05/0.2708, allocations: 71.95 kB / 1.087 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.2709, allocations: 24.31 kB / 1.087 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.2713, allocations: 197.6 kB / 1.087 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2713, allocations: 0 / 1.087 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.2713, allocations: 4 kB / 1.087 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.2714, allocations: 4 kB / 1.087 GB, free: 8.188 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004523/0.2718, allocations: 155.9 kB / 1.087 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008789/0.2727, allocations: 0.5856 MB / 1.088 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.2731, allocations: 142.8 kB / 1.088 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.2733, allocations: 84.81 kB / 1.088 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.2734, allocations: 4 kB / 1.088 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/0.2737, allocations: 139.3 kB / 1.088 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=19): time 1.553e-06/0.2737, allocations: 0 / 1.088 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.0007547/0.2745, allocations: 279.2 kB / 1.088 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.2745, allocations: 55.41 kB / 1.089 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.2747, allocations: 193.6 kB / 1.089 GB, free: 6.469 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.2748, allocations: 29.7 kB / 1.089 GB, free: 6.434 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.649e-05/0.2749, allocations: 132.4 kB / 1.089 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.111e-05/0.2749, allocations: 59.11 kB / 1.089 GB, free: 6.242 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-05/0.275, allocations: 45.7 kB / 1.089 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2752, allocations: 334.8 kB / 1.089 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.2754, allocations: 71.95 kB / 1.089 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.2757, allocations: 100 kB / 1.089 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000432/0.2761, allocations: 170.5 kB / 1.09 GB, free: 5.504 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2761, allocations: 0 / 1.09 GB, free: 5.504 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005486/0.2767, allocations: 241.2 kB / 1.09 GB, free: 5.262 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.2767, allocations: 4 kB / 1.09 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2767, allocations: 4 kB / 1.09 GB, free: 5.254 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.899e-06/0.2767, allocations: 4 kB / 1.09 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.2769, allocations: 47.91 kB / 1.09 GB, free: 5.203 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.277, allocations: 3.938 kB / 1.09 GB, free: 5.199 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.2771, allocations: 35.77 kB / 1.09 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.2772, allocations: 4 kB / 1.09 GB, free: 5.16 MB / 0.8419 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.0001281/0.2773, allocations: 139.5 kB / 1.09 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.403e-05/0.2773, allocations: 23.72 kB / 1.09 GB, free: 4.992 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.496e-05/0.2774, allocations: 21.88 kB / 1.09 GB, free: 4.977 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2774, allocations: 0 / 1.09 GB, free: 4.977 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2774, allocations: 4 kB / 1.09 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.2774, allocations: 7.922 kB / 1.09 GB, free: 4.965 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002857/0.2777, allocations: 285.5 kB / 1.09 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2777, allocations: 0 / 1.09 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.2779, allocations: 35.97 kB / 1.09 GB, free: 4.602 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.278, allocations: 0 / 1.09 GB, free: 4.602 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.278, allocations: 7.984 kB / 1.09 GB, free: 4.594 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.278, allocations: 8 kB / 1.09 GB, free: 4.586 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.278, allocations: 0 / 1.09 GB, free: 4.586 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007834/0.2788, allocations: 338.6 kB / 1.091 GB, free: 4.238 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.419e-05/0.2789, allocations: 96.95 kB / 1.091 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.2789, allocations: 11.94 kB / 1.091 GB, free: 4.113 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.2791, allocations: 11.98 kB / 1.091 GB, free: 4.102 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.602e-05/0.2791, allocations: 23.91 kB / 1.091 GB, free: 4.078 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.2791, allocations: 8 kB / 1.091 GB, free: 4.07 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001251/0.2793, allocations: 139.3 kB / 1.091 GB, free: 3.934 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2793, allocations: 0 / 1.091 GB, free: 3.934 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000248/0.2795, allocations: 43.91 kB / 1.091 GB, free: 3.891 MB / 0.8419 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.001079/0.2806, allocations: 0.8756 MB / 1.092 GB, free: 2.984 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005206/0.2811, allocations: 183.9 kB / 1.092 GB, free: 2.805 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2812, allocations: 3.938 kB / 1.092 GB, free: 2.801 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002476/0.2814, allocations: 99.86 kB / 1.092 GB, free: 2.703 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.2817, allocations: 47.64 kB / 1.092 GB, free: 2.656 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.2849, allocations: 2.267 MB / 1.094 GB, free: 304 kB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.2853, allocations: 0.74 MB / 1.095 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.578e-05/0.2854, allocations: 18.02 kB / 1.095 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.2855, allocations: 67.42 kB / 1.095 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.2855, allocations: 0 / 1.095 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02665/0.3121, allocations: 4.519 MB / 1.1 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.532/7.844, allocations: 9.25 kB / 1.1 GB, free: 11.07 MB / 0.8575 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