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 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.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.007483/0.007483, allocations: 98.97 kB / 15.73 MB, free: 6.012 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.00154/0.00154, allocations: 201.5 kB / 16.68 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.776/2.776, allocations: 482.4 MB / 0.7548 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 66.83 kB / 1.083 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2863, allocations: 162.2 MB / 1.242 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002178/0.2885, allocations: 1.111 MB / 1.243 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001341/0.2899, allocations: 1.105 MB / 1.244 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.164e-05/0.2899, allocations: 4 kB / 1.244 GB, free: 7 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.748e-05/0.29, allocations: 19.73 kB / 1.244 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001224/0.2901, allocations: 39.58 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.2905, allocations: 151.7 kB / 1.244 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003417/0.2909, allocations: 331.1 kB / 1.244 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.2911, allocations: 45.8 kB / 1.244 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.2912, allocations: 131.6 kB / 1.244 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.2915, allocations: 155.3 kB / 1.245 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.18e-05/0.2915, allocations: 28 kB / 1.245 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.414e-05/0.2916, allocations: 32 kB / 1.245 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.2917, allocations: 79.72 kB / 1.245 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.2918, allocations: 131.4 kB / 1.245 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003371/0.2921, allocations: 311.1 kB / 1.245 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2922, allocations: 3.938 kB / 1.245 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2922, allocations: 0 / 1.245 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.2922, allocations: 8 kB / 1.245 GB, free: 5.559 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001234/0.2934, allocations: 0.629 MB / 1.246 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.2935, allocations: 12.03 kB / 1.246 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.919e-05/0.2936, allocations: 58.66 kB / 1.246 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.719e-05/0.2936, allocations: 32.8 kB / 1.246 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.2938, allocations: 196.9 kB / 1.246 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002361/0.294, allocations: 268.3 kB / 1.246 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.55e-05/0.2941, allocations: 36.31 kB / 1.246 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000514/0.2946, allocations: 266 kB / 1.247 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.2947, allocations: 4 kB / 1.247 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.2947, allocations: 7.984 kB / 1.247 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.2947, allocations: 8 kB / 1.247 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004515/0.2952, allocations: 179.8 kB / 1.247 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.2963, allocations: 0.7738 MB / 1.247 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004796/0.2968, allocations: 203.7 kB / 1.248 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.297, allocations: 134.5 kB / 1.248 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.184e-05/0.2971, allocations: 11.98 kB / 1.248 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005897/0.2977, allocations: 319.8 kB / 1.248 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=48): time 1.764e-06/0.2977, allocations: 0 / 1.248 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of matching and sorting (n=48): time 0.001079/0.2988, allocations: 484.6 kB / 1.249 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.2989, allocations: 114.8 kB / 1.249 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.299, allocations: 172.1 kB / 1.249 GB, free: 1.375 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/0.2991, allocations: 41.7 kB / 1.249 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.66e-05/0.2992, allocations: 121.3 kB / 1.249 GB, free: 1.207 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.2993, allocations: 158.8 kB / 1.249 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.2995, allocations: 102.3 kB / 1.249 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001916/0.2997, allocations: 338.8 kB / 1.25 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.3, allocations: 153.2 kB / 1.25 GB, free: 468 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.3004, allocations: 256.8 kB / 1.25 GB, free: 172 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006777/0.3011, allocations: 398.1 kB / 1.25 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3011, allocations: 0 / 1.25 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008735/0.302, allocations: 485.6 kB / 1.251 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.302, allocations: 11.94 kB / 1.251 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.302, allocations: 4.062 kB / 1.251 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.302, allocations: 12 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000394/0.3024, allocations: 91.83 kB / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.3025, allocations: 8 kB / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/0.3027, allocations: 55.75 kB / 1.251 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.3028, allocations: 28 kB / 1.251 GB, free: 15.05 MB / 0.9825 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.0001705/0.303, allocations: 160 kB / 1.251 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.809e-05/0.303, allocations: 35.75 kB / 1.251 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.548e-05/0.3031, allocations: 37.8 kB / 1.251 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3031, allocations: 4.094 kB / 1.251 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3031, allocations: 0 / 1.251 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.3031, allocations: 7.984 kB / 1.251 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003804/0.3035, allocations: 349.3 kB / 1.252 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.3035, allocations: 4 kB / 1.252 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/0.304, allocations: 75.89 kB / 1.252 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.304, allocations: 7.938 kB / 1.252 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.572e-05/0.304, allocations: 15.98 kB / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/0.304, allocations: 11.92 kB / 1.252 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.304, allocations: 0 / 1.252 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.3051, allocations: 0.5786 MB / 1.252 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.303e-05/0.3052, allocations: 116.7 kB / 1.252 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.6e-05/0.3053, allocations: 8 kB / 1.252 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.3055, allocations: 31.95 kB / 1.252 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.3057, allocations: 59.97 kB / 1.252 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.3057, allocations: 23.92 kB / 1.252 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001005/0.3058, allocations: 129.2 kB / 1.253 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3058, allocations: 0 / 1.253 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003327/0.3062, allocations: 80 kB / 1.253 GB, free: 13.24 MB / 0.9825 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.001561/0.3077, allocations: 1.14 MB / 1.254 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007693/0.3085, allocations: 374.8 kB / 1.254 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3085, allocations: 0 / 1.254 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003965/0.3089, allocations: 199.7 kB / 1.254 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.3093, allocations: 40.09 kB / 1.254 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/0.3136, allocations: 3.173 MB / 1.257 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.314, allocations: 0.7686 MB / 1.258 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001655/0.3142, allocations: 38.95 kB / 1.258 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.3144, allocations: 91.41 kB / 1.258 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of SimCode: time 3.71e-07/0.3144, allocations: 0 / 1.258 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.3429, allocations: 6.531 MB / 1.265 GB, free: 0.8125 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/8.483, allocations: 3.938 kB / 1.265 GB, free: 0.8086 MB / 0.9825 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 400 --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