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.00746/0.007461, allocations: 103.2 kB / 15.73 MB, free: 6.047 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.001548/0.001548, allocations: 188.3 kB / 16.67 MB, free: 5.969 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.442/1.442, 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 11.0.1-master/package.mo): time 2.596/2.596, allocations: 461.9 MB / 0.7348 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 67.91 kB / 1.054 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.004/1.005, allocations: 157.4 MB / 1.208 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003886/1.009, allocations: 1.97 MB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001167/1.01, allocations: 0.6467 MB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.814e-05/1.01, allocations: 0 / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.918e-05/1.01, allocations: 19.73 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001285/1.01, allocations: 51.52 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005051/1.011, allocations: 143.7 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003503/1.011, allocations: 319.1 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/1.011, allocations: 52.36 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/1.012, allocations: 127.6 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/1.012, allocations: 151.4 kB / 1.211 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.366e-05/1.012, allocations: 32 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.674e-05/1.012, allocations: 28 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.975e-05/1.012, allocations: 79.72 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001745/1.012, allocations: 139.4 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000339/1.013, allocations: 300.8 kB / 1.212 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/1.013, allocations: 0 / 1.212 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.313e-06/1.013, allocations: 3.938 kB / 1.212 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.003e-06/1.013, allocations: 3.938 kB / 1.212 GB, free: 9.727 MB / 0.9356 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.001237/1.014, allocations: 0.6276 MB / 1.212 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/1.014, allocations: 8.031 kB / 1.212 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.827e-05/1.014, allocations: 28.66 kB / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/1.014, allocations: 200.8 kB / 1.213 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/1.014, allocations: 264.3 kB / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.386e-05/1.015, allocations: 40.36 kB / 1.213 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004897/1.015, allocations: 261.8 kB / 1.213 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/1.015, allocations: 11.83 kB / 1.213 GB, free: 8.141 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/1.015, allocations: 12 kB / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/1.015, allocations: 4 kB / 1.213 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/1.016, allocations: 175.9 kB / 1.213 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/1.017, allocations: 0.7737 MB / 1.214 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005035/1.017, allocations: 215.6 kB / 1.214 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002649/1.018, allocations: 126.5 kB / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.492e-05/1.018, allocations: 11.98 kB / 1.214 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005774/1.018, allocations: 311.7 kB / 1.215 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 2.415e-06/1.018, allocations: 0 / 1.215 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.001093/1.019, allocations: 491.3 kB / 1.215 GB, free: 5.934 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/1.019, allocations: 110.8 kB / 1.215 GB, free: 5.801 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/1.02, allocations: 179.5 kB / 1.215 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/1.02, allocations: 37.7 kB / 1.215 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/1.02, allocations: 121.2 kB / 1.216 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/1.02, allocations: 146 kB / 1.216 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/1.02, allocations: 106.3 kB / 1.216 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001331/1.02, allocations: 342.8 kB / 1.216 GB, free: 4.852 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/1.021, allocations: 145.2 kB / 1.216 GB, free: 4.711 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000361/1.021, allocations: 252.7 kB / 1.217 GB, free: 4.426 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006449/1.022, allocations: 394.1 kB / 1.217 GB, free: 4.004 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/1.022, allocations: 3.938 kB / 1.217 GB, free: 4 MB / 0.9356 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009275/1.023, allocations: 0.4891 MB / 1.217 GB, free: 3.504 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/1.023, allocations: 5.875 kB / 1.217 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/1.023, allocations: 7.938 kB / 1.217 GB, free: 3.492 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/1.023, allocations: 4 kB / 1.217 GB, free: 3.488 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003905/1.023, allocations: 95.83 kB / 1.218 GB, free: 3.395 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/1.023, allocations: 4 kB / 1.218 GB, free: 3.391 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/1.023, allocations: 67.61 kB / 1.218 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/1.023, allocations: 24 kB / 1.218 GB, free: 3.301 MB / 0.9356 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.0001806/1.023, allocations: 159.4 kB / 1.218 GB, free: 3.137 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.47e-05/1.024, allocations: 27.66 kB / 1.218 GB, free: 3.109 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.303e-05/1.024, allocations: 33.86 kB / 1.218 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/1.024, allocations: 8.094 kB / 1.218 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/1.024, allocations: 3.984 kB / 1.218 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/1.024, allocations: 4 kB / 1.218 GB, free: 3.062 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003627/1.024, allocations: 353.2 kB / 1.218 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/1.024, allocations: 0 / 1.218 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003934/1.024, allocations: 79.83 kB / 1.218 GB, free: 2.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/1.024, allocations: 4 kB / 1.218 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.363e-05/1.024, allocations: 11.98 kB / 1.218 GB, free: 2.574 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/1.024, allocations: 4 kB / 1.218 GB, free: 2.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.025, allocations: 4.641 kB / 1.218 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/1.026, allocations: 0.5862 MB / 1.219 GB, free: 1.953 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.606e-05/1.026, allocations: 108.6 kB / 1.219 GB, free: 1.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/1.026, allocations: 8 kB / 1.219 GB, free: 1.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/1.026, allocations: 39.95 kB / 1.219 GB, free: 1.781 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/1.026, allocations: 51.94 kB / 1.219 GB, free: 1.73 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.9e-05/1.026, allocations: 15.98 kB / 1.219 GB, free: 1.715 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.511e-05/1.026, allocations: 125.3 kB / 1.219 GB, free: 1.594 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/1.026, allocations: 3.938 kB / 1.219 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004001/1.027, allocations: 79.91 kB / 1.219 GB, free: 1.512 MB / 0.9356 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.0001948/1.027, allocations: 127 kB / 1.219 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009398/1.028, allocations: 383.6 kB / 1.22 GB, free: 1.012 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/1.028, allocations: 0 / 1.22 GB, free: 1.012 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003617/1.028, allocations: 191.7 kB / 1.22 GB, free: 0.8242 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/1.029, allocations: 51.84 kB / 1.22 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/1.03, allocations: 0.6065 MB / 1.221 GB, free: 136 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/1.03, allocations: 0.7688 MB / 1.221 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001405/1.031, allocations: 34.97 kB / 1.221 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/1.031, allocations: 43.36 kB / 1.221 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of SimCode: time 4.11e-07/1.031, allocations: 0 / 1.221 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of Templates: time 0.008691/1.039, allocations: 4.102 MB / 1.225 GB, free: 11.19 MB / 0.9512 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