Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002476/0.002476, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.509/1.509, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.802/2.802, allocations: 461.9 MB / 0.7343 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 71.73 kB / 0.8986 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3963, allocations: 157.4 MB / 1.052 GB, free: 8.75 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003681/0.4, allocations: 2.026 MB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001417/0.4014, allocations: 0.6542 MB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.4016, allocations: 4 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.831e-05/0.4017, allocations: 11.86 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.4019, allocations: 39.64 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.4024, allocations: 135.8 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003624/0.4028, allocations: 311.2 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.403, allocations: 52.36 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002537/0.4032, allocations: 135.5 kB / 1.056 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000217/0.4034, allocations: 151.4 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.4036, allocations: 32 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.057e-05/0.4036, allocations: 28 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.889e-05/0.4037, allocations: 79.78 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002138/0.4039, allocations: 131.4 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.4043, allocations: 307.3 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.4043, allocations: 3.938 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4043, allocations: 0 / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.394e-05/0.4044, allocations: 0 / 1.056 GB, free: 4.652 MB / 0.8106 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.001364/0.4057, allocations: 0.6213 MB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.4058, allocations: 8.625 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.842e-05/0.4059, allocations: 36.56 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.4061, allocations: 196.8 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002329/0.4063, allocations: 268.3 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-05/0.4064, allocations: 24.38 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.4069, allocations: 265.9 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.407, allocations: 3.938 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.407, allocations: 11.98 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.407, allocations: 4 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004349/0.4074, allocations: 179.8 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.4087, allocations: 0.7697 MB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004869/0.4092, allocations: 207.7 kB / 1.059 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.4095, allocations: 134.5 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-05/0.4095, allocations: 11.98 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006176/0.4102, allocations: 315.8 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=48): time 2.945e-06/0.4102, allocations: 3.938 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of matching and sorting (n=48): time 0.001041/0.4112, allocations: 482.5 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.4114, allocations: 118.8 kB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.4115, allocations: 179.3 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.236e-05/0.4116, allocations: 37.7 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.722e-05/0.4117, allocations: 117.3 kB / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.4118, allocations: 142 kB / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.4119, allocations: 114.3 kB / 1.06 GB, free: 136 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.4121, allocations: 346.8 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000316/0.4124, allocations: 145.2 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.4128, allocations: 256.7 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000671/0.4135, allocations: 390.1 kB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.4135, allocations: 8 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008807/0.4144, allocations: 493.2 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.4144, allocations: 11.94 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.4144, allocations: 0 / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.4145, allocations: 8 kB / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003847/0.4149, allocations: 95.81 kB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.4149, allocations: 8 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/0.4152, allocations: 59.66 kB / 1.062 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.565e-05/0.4152, allocations: 20.09 kB / 1.062 GB, free: 14.24 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.0001986/0.4154, allocations: 168 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.517e-05/0.4155, allocations: 31.56 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.383e-05/0.4156, allocations: 37.81 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.4156, allocations: 4 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.4156, allocations: 4 kB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.4157, allocations: 3.984 kB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004433/0.4161, allocations: 353.2 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.4161, allocations: 4 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004124/0.4165, allocations: 75.83 kB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.4165, allocations: 4 kB / 1.063 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.973e-05/0.4166, allocations: 12 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.4166, allocations: 4 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.666e-06/0.4166, allocations: 3.938 kB / 1.063 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.4177, allocations: 0.5745 MB / 1.063 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.4178, allocations: 108.7 kB / 1.063 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.254e-05/0.4179, allocations: 16.06 kB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.4181, allocations: 31.97 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.4183, allocations: 59.92 kB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/0.4183, allocations: 16 kB / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.67e-05/0.4184, allocations: 129.2 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.583e-06/0.4184, allocations: 0 / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003399/0.4188, allocations: 79.94 kB / 1.064 GB, free: 12.44 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.0002732/0.419, allocations: 123 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009212/0.42, allocations: 397.7 kB / 1.064 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.42, allocations: 0 / 1.064 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004173/0.4204, allocations: 207.7 kB / 1.064 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.4208, allocations: 49.67 kB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.4221, allocations: 0.6962 MB / 1.065 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.4224, allocations: 0.7686 MB / 1.066 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000165/0.4226, allocations: 38.91 kB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.4227, allocations: 39.42 kB / 1.066 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.4227, allocations: 0 / 1.066 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of Templates: time 0.007426/0.4301, allocations: 3.588 MB / 1.07 GB, free: 6.527 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches