Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_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.001119/0.001119, 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.001155/0.001155, allocations: 195.6 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.716/2.716, allocations: 469.4 MB / 0.742 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 73.78 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3143, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002438/0.3168, allocations: 1.119 MB / 1.065 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001471/0.3183, allocations: 1.102 MB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.3184, allocations: 0 / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.358e-05/0.3185, allocations: 15.75 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.3187, allocations: 47.52 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005291/0.3192, allocations: 155.7 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003597/0.3196, allocations: 319.2 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.3198, allocations: 52.39 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.32, allocations: 135.5 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.3202, allocations: 147.4 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.82e-05/0.3203, allocations: 28 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.461e-05/0.3204, allocations: 32 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.544e-05/0.3204, allocations: 79.8 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.3206, allocations: 135.3 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003053/0.3209, allocations: 307.3 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3209, allocations: 0 / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3209, allocations: 0 / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.818e-06/0.3209, allocations: 0 / 1.067 GB, free: 10.85 MB / 0.8262 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.001353/0.3223, allocations: 0.6197 MB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3223, allocations: 12.03 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.641e-05/0.3224, allocations: 66.72 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.2e-05/0.3225, allocations: 28.66 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.3227, allocations: 208.7 kB / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002192/0.3229, allocations: 264.3 kB / 1.068 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.844e-05/0.323, allocations: 32.38 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.3235, allocations: 258.1 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.3235, allocations: 3.906 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.3236, allocations: 12 kB / 1.069 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.3236, allocations: 4 kB / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004449/0.324, allocations: 175.8 kB / 1.069 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.3252, allocations: 0.7852 MB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004843/0.3257, allocations: 207.7 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002601/0.326, allocations: 138.5 kB / 1.07 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.286e-05/0.326, allocations: 11.98 kB / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005546/0.3266, allocations: 307.9 kB / 1.07 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 4.508e-06/0.3266, allocations: 3.938 kB / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.001041/0.3277, allocations: 484.2 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/0.3277, allocations: 110.8 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.3279, allocations: 175.4 kB / 1.071 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.328, allocations: 45.69 kB / 1.071 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.923e-05/0.328, allocations: 117.3 kB / 1.071 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.3282, allocations: 150 kB / 1.071 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.3283, allocations: 106.3 kB / 1.071 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3285, allocations: 334.8 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/0.3288, allocations: 149.2 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003589/0.3292, allocations: 256.7 kB / 1.072 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.3298, allocations: 394.1 kB / 1.072 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.3298, allocations: 0 / 1.072 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008587/0.3307, allocations: 492.9 kB / 1.073 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3307, allocations: 7.938 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.3307, allocations: 4 kB / 1.073 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.3307, allocations: 4 kB / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.3311, allocations: 103.9 kB / 1.073 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.3312, allocations: 11.92 kB / 1.073 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.3315, allocations: 55.66 kB / 1.073 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-05/0.3315, allocations: 20 kB / 1.073 GB, free: 4.359 MB / 0.8262 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.0001607/0.3317, allocations: 159.4 kB / 1.073 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.928e-05/0.3317, allocations: 39.55 kB / 1.073 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.936e-05/0.3318, allocations: 29.88 kB / 1.073 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3318, allocations: 7.938 kB / 1.073 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3318, allocations: 4 kB / 1.073 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.3318, allocations: 3.984 kB / 1.073 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003465/0.3322, allocations: 349.2 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3322, allocations: 0 / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.3326, allocations: 75.89 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.124e-06/0.3326, allocations: 7.938 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.3327, allocations: 11.98 kB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.3327, allocations: 4.703 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3327, allocations: 4 kB / 1.074 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.3337, allocations: 0.5822 MB / 1.074 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.037e-05/0.3338, allocations: 108.7 kB / 1.074 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.3339, allocations: 11.98 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.3341, allocations: 31.97 kB / 1.075 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.3343, allocations: 51.94 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.3343, allocations: 15.98 kB / 1.075 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.236e-05/0.3344, allocations: 129.2 kB / 1.075 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3344, allocations: 0 / 1.075 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003536/0.3348, allocations: 80 kB / 1.075 GB, free: 2.574 MB / 0.8262 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.3362, allocations: 1.154 MB / 1.076 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008218/0.3371, allocations: 415.4 kB / 1.076 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3371, allocations: 0 / 1.076 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003901/0.3375, allocations: 196.6 kB / 1.077 GB, free: 0.793 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.3378, allocations: 40.11 kB / 1.077 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.342, allocations: 3.171 MB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.3423, allocations: 0.7686 MB / 1.08 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001719/0.3425, allocations: 34.97 kB / 1.08 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.3427, allocations: 95.39 kB / 1.081 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of SimCode: time 5.61e-07/0.3427, allocations: 0 / 1.081 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02557/0.3683, allocations: 6.551 MB / 1.087 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.95, allocations: 2.625 kB / 1.087 GB, free: 6.074 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches