Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",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.007482/0.007482, allocations: 99.08 kB / 15.73 MB, free: 6.008 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.001832/0.001832, allocations: 189.9 kB / 16.67 MB, free: 5.926 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.38/2.38, allocations: 437.1 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.84 kB / 1.018 GB, free: 9.801 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7276/0.729, allocations: 151.6 MB / 1.166 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002168/0.7312, allocations: 1.113 MB / 1.167 GB, free: 2.727 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.7326, allocations: 1.106 MB / 1.168 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.7327, allocations: 4 kB / 1.168 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 6.082e-05/0.7328, allocations: 23.69 kB / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001149/0.7329, allocations: 39.58 kB / 1.168 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.7334, allocations: 147.7 kB / 1.169 GB, free: 1.398 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003224/0.7337, allocations: 319.2 kB / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.7338, allocations: 48.38 kB / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.7341, allocations: 139.5 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.7343, allocations: 151.4 kB / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.994e-05/0.7343, allocations: 28 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 4.49e-05/0.7344, allocations: 32 kB / 1.169 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.58e-05/0.7344, allocations: 83.78 kB / 1.169 GB, free: 0.6094 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.7346, allocations: 131.4 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.7349, allocations: 310.4 kB / 1.17 GB, free: 184 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.7349, allocations: 8 kB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of FrontEnd: time 2.825e-06/0.7349, allocations: 0 / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.587e-06/0.7349, allocations: 3.938 kB / 1.17 GB, free: 172 kB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.00126/0.7362, allocations: 0.6273 MB / 1.17 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.7362, allocations: 12.92 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.521e-05/0.7363, allocations: 58.73 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.877e-05/0.7364, allocations: 28.8 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.7365, allocations: 204.9 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.7368, allocations: 268.2 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/0.7368, allocations: 32.33 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.7373, allocations: 262 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.7374, allocations: 4 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/0.7374, allocations: 8 kB / 1.171 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.7374, allocations: 8 kB / 1.171 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004443/0.7379, allocations: 175.8 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.7389, allocations: 0.7776 MB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004705/0.7394, allocations: 203.7 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002487/0.7397, allocations: 130.5 kB / 1.172 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.7397, allocations: 15.97 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005334/0.7403, allocations: 311.8 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=48): time 2.194e-06/0.7403, allocations: 0 / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of matching and sorting (n=48): time 0.0009966/0.7413, allocations: 494.6 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.7414, allocations: 114.8 kB / 1.173 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.7415, allocations: 176 kB / 1.174 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.7416, allocations: 45.62 kB / 1.174 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.952e-05/0.7416, allocations: 117.3 kB / 1.174 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.7418, allocations: 158.7 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.7419, allocations: 106.3 kB / 1.174 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.742, allocations: 338.8 kB / 1.174 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.7424, allocations: 149.2 kB / 1.174 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003557/0.7427, allocations: 252.8 kB / 1.175 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006286/0.7434, allocations: 398 kB / 1.175 GB, free: 10.35 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.7434, allocations: 0 / 1.175 GB, free: 10.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008269/0.7442, allocations: 493.1 kB / 1.176 GB, free: 9.863 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.7442, allocations: 11.94 kB / 1.176 GB, free: 9.852 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.7443, allocations: 4 kB / 1.176 GB, free: 9.848 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.7443, allocations: 4 kB / 1.176 GB, free: 9.844 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/0.7447, allocations: 95.92 kB / 1.176 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.7447, allocations: 11.92 kB / 1.176 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.745, allocations: 55.75 kB / 1.176 GB, free: 9.684 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.745, allocations: 23.98 kB / 1.176 GB, free: 9.66 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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.000151/0.7452, allocations: 155.5 kB / 1.176 GB, free: 9.5 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.037e-05/0.7452, allocations: 39.73 kB / 1.176 GB, free: 9.461 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.327e-05/0.7453, allocations: 29.88 kB / 1.176 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.7453, allocations: 8 kB / 1.176 GB, free: 9.422 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.7453, allocations: 0 / 1.176 GB, free: 9.422 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.7453, allocations: 7.984 kB / 1.176 GB, free: 9.414 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.7457, allocations: 357.2 kB / 1.176 GB, free: 9.016 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.7457, allocations: 3.938 kB / 1.176 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004216/0.7461, allocations: 75.95 kB / 1.176 GB, free: 8.938 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.7461, allocations: 3.938 kB / 1.176 GB, free: 8.934 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.7462, allocations: 19.98 kB / 1.176 GB, free: 8.914 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.7462, allocations: 0 / 1.176 GB, free: 8.914 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.7462, allocations: 0 / 1.176 GB, free: 8.914 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.7472, allocations: 0.5848 MB / 1.177 GB, free: 8.305 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.942e-05/0.7473, allocations: 112.8 kB / 1.177 GB, free: 8.176 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.935e-05/0.7474, allocations: 7.984 kB / 1.177 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.7476, allocations: 35.97 kB / 1.177 GB, free: 8.133 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.7478, allocations: 51.94 kB / 1.177 GB, free: 8.082 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.7478, allocations: 19.98 kB / 1.177 GB, free: 8.062 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.283e-05/0.7479, allocations: 121.2 kB / 1.177 GB, free: 7.945 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.71e-07/0.7479, allocations: 0 / 1.177 GB, free: 7.945 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003403/0.7482, allocations: 87.92 kB / 1.177 GB, free: 7.859 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001434/0.7497, allocations: 1.148 MB / 1.179 GB, free: 6.68 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008447/0.7505, allocations: 395.9 kB / 1.179 GB, free: 6.297 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.7506, allocations: 0 / 1.179 GB, free: 6.297 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003972/0.751, allocations: 183.8 kB / 1.179 GB, free: 6.117 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.7513, allocations: 46.47 kB / 1.179 GB, free: 6.074 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004353/0.7557, allocations: 3.16 MB / 1.182 GB, free: 2.75 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.756, allocations: 0.7686 MB / 1.183 GB, free: 1.957 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001616/0.7562, allocations: 43.52 kB / 1.183 GB, free: 1.914 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.7564, allocations: 87.41 kB / 1.183 GB, free: 1.828 MB / 0.9044 GB Notification: Performance of SimCode: time 5.11e-07/0.7564, allocations: 0 / 1.183 GB, free: 1.828 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.781, allocations: 6.529 MB / 1.189 GB, free: 11.43 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.014/8.795, allocations: 7.953 kB / 1.189 GB, free: 11.42 MB / 0.92 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches