Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.009808/0.009808, allocations: 97.69 kB / 15.73 MB, free: 6.055 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.002171/0.002171, allocations: 198.5 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.01/3.01, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 5.246/5.246, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.003019/0.00302, allocations: 59.91 kB / 0.9505 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.799/1.802, allocations: 140.4 MB / 1.088 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.00334/1.806, allocations: 1.116 MB / 1.089 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001988/1.808, allocations: 1.104 MB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/1.808, allocations: 1.188 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 7.15e-05/1.808, allocations: 18.48 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001633/1.808, allocations: 45.19 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006503/1.809, allocations: 153.3 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004872/1.809, allocations: 329.7 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/1.809, allocations: 45.2 kB / 1.09 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/1.81, allocations: 129 kB / 1.09 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003052/1.81, allocations: 156.8 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.012e-05/1.81, allocations: 29.5 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.494e-05/1.81, allocations: 29.31 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/1.81, allocations: 73.2 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001812/1.81, allocations: 135.4 kB / 1.091 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000612/1.811, allocations: 315.7 kB / 1.091 GB, free: 3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/1.811, allocations: 0.7969 kB / 1.091 GB, free: 3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.834e-06/1.811, allocations: 1.094 kB / 1.091 GB, free: 3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.857e-06/1.811, allocations: 0 / 1.091 GB, free: 3 MB / 0.8575 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.001632/1.813, allocations: 0.6306 MB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/1.813, allocations: 9.562 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.512e-05/1.813, allocations: 63.42 kB / 1.092 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/1.813, allocations: 34.97 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/1.813, allocations: 197.8 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002291/1.813, allocations: 266.2 kB / 1.092 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.341e-05/1.814, allocations: 28.84 kB / 1.092 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007363/1.814, allocations: 267.5 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/1.814, allocations: 6.469 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/1.814, allocations: 11.58 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/1.814, allocations: 4.344 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006653/1.815, allocations: 174.3 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/1.817, allocations: 0.7783 MB / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006832/1.817, allocations: 210.9 kB / 1.094 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003855/1.818, allocations: 133.7 kB / 1.094 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.641e-05/1.818, allocations: 7.75 kB / 1.094 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008855/1.819, allocations: 319 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 4.238e-06/1.819, allocations: 0.9062 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001605/1.82, allocations: 485.2 kB / 1.095 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.359e-05/1.82, allocations: 120.5 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000223/1.821, allocations: 173.2 kB / 1.095 GB, free: 360 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/1.821, allocations: 38.27 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.936e-05/1.821, allocations: 117.5 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/1.821, allocations: 159.2 kB / 1.095 GB, free: 84 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/1.821, allocations: 107.9 kB / 1.095 GB, free: 24 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000202/1.821, allocations: 340.4 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/1.822, allocations: 148.2 kB / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006022/1.822, allocations: 255 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/1.824, allocations: 390.2 kB / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/1.824, allocations: 4 kB / 1.096 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001689/1.825, allocations: 490.2 kB / 1.097 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.679e-05/1.825, allocations: 10.53 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/1.825, allocations: 3.812 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.494e-05/1.826, allocations: 5.312 kB / 1.097 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007006/1.826, allocations: 98.53 kB / 1.097 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.868e-05/1.826, allocations: 7.172 kB / 1.097 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005523/1.827, allocations: 62.94 kB / 1.097 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.152e-05/1.827, allocations: 23.7 kB / 1.097 GB, free: 14.99 MB / 0.8731 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.0004066/1.827, allocations: 157.5 kB / 1.097 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/1.827, allocations: 29.34 kB / 1.097 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001276/1.828, allocations: 36.77 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/1.828, allocations: 5.25 kB / 1.097 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.249e-05/1.828, allocations: 5.359 kB / 1.097 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/1.828, allocations: 3.891 kB / 1.097 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000718/1.828, allocations: 350.9 kB / 1.098 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/1.828, allocations: 1.312 kB / 1.098 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006391/1.829, allocations: 74.48 kB / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.819e-05/1.829, allocations: 7.281 kB / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.628e-05/1.829, allocations: 14.91 kB / 1.098 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/1.829, allocations: 2.75 kB / 1.098 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.829, allocations: 1.75 kB / 1.098 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001847/1.831, allocations: 0.5918 MB / 1.098 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/1.831, allocations: 106 kB / 1.098 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.801e-05/1.831, allocations: 13.94 kB / 1.098 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/1.832, allocations: 28.91 kB / 1.098 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/1.832, allocations: 60.59 kB / 1.098 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.274e-05/1.832, allocations: 17.44 kB / 1.098 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001724/1.832, allocations: 125.9 kB / 1.099 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.51e-07/1.832, allocations: 1.125 kB / 1.099 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006284/1.833, allocations: 83.88 kB / 1.099 GB, free: 13.96 MB / 0.8731 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.002388/1.835, allocations: 1.152 MB / 1.1 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001613/1.837, allocations: 388.9 kB / 1.1 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/1.837, allocations: 0 / 1.1 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006381/1.837, allocations: 186.6 kB / 1.1 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005668/1.838, allocations: 45.25 kB / 1.1 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007809/1.846, allocations: 3.169 MB / 1.103 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006786/1.847, allocations: 0.765 MB / 1.104 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003462/1.847, allocations: 37.91 kB / 1.104 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002914/1.847, allocations: 92.92 kB / 1.104 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of SimCode: time 1.904e-06/1.847, allocations: 4 kB / 1.104 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0594/1.907, allocations: 6.526 MB / 1.111 GB, free: 9.398 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/16.11, allocations: 7.516 kB / 1.111 GB, free: 9.395 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches