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.001641/0.001641, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.002017/0.002017, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.379/1.379, allocations: 222.9 MB / 241 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.748/2.748, allocations: 461.9 MB / 0.7354 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 67.89 kB / 1.055 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.043/1.045, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003358/1.048, allocations: 1.971 MB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001323/1.05, allocations: 0.6467 MB / 1.211 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001839/1.05, allocations: 0 / 1.211 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 7.926e-05/1.05, allocations: 23.67 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001751/1.05, allocations: 43.58 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000546/1.051, allocations: 155.7 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004266/1.051, allocations: 323.1 kB / 1.212 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/1.051, allocations: 52.36 kB / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002733/1.052, allocations: 127.6 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002389/1.052, allocations: 151.3 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.39e-05/1.052, allocations: 32 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.9e-05/1.052, allocations: 28 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.112e-05/1.052, allocations: 79.78 kB / 1.212 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001391/1.052, allocations: 131.4 kB / 1.212 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003586/1.053, allocations: 314.8 kB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/1.053, allocations: 0 / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.824e-06/1.053, allocations: 3.938 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.795e-05/1.053, allocations: 0 / 1.212 GB, free: 9.551 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.001366/1.054, allocations: 0.6177 MB / 1.213 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/1.054, allocations: 8.031 kB / 1.213 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.827e-05/1.054, allocations: 28.66 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/1.054, allocations: 208.7 kB / 1.213 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/1.054, allocations: 264.3 kB / 1.214 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-05/1.055, allocations: 28.38 kB / 1.214 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005363/1.055, allocations: 265.9 kB / 1.214 GB, free: 7.988 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/1.055, allocations: 3.906 kB / 1.214 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/1.055, allocations: 11.94 kB / 1.214 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/1.055, allocations: 4 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004343/1.056, allocations: 179.8 kB / 1.214 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/1.057, allocations: 0.7774 MB / 1.215 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005001/1.057, allocations: 211.7 kB / 1.215 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000258/1.058, allocations: 126.5 kB / 1.215 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.439e-05/1.058, allocations: 19.91 kB / 1.215 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006874/1.058, allocations: 303.7 kB / 1.215 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 2.955e-06/1.058, allocations: 0 / 1.215 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.001162/1.059, allocations: 486.1 kB / 1.216 GB, free: 5.773 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/1.06, allocations: 118.8 kB / 1.216 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/1.06, allocations: 171.5 kB / 1.216 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/1.06, allocations: 41.64 kB / 1.216 GB, free: 5.406 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.305e-05/1.06, allocations: 125.3 kB / 1.216 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/1.06, allocations: 146 kB / 1.216 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/1.06, allocations: 110.3 kB / 1.217 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001391/1.06, allocations: 334.8 kB / 1.217 GB, free: 4.688 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003076/1.061, allocations: 149.2 kB / 1.217 GB, free: 4.543 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003678/1.061, allocations: 256.7 kB / 1.217 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006378/1.062, allocations: 394.1 kB / 1.218 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/1.062, allocations: 0 / 1.218 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008794/1.063, allocations: 0.4893 MB / 1.218 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/1.063, allocations: 4 kB / 1.218 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/1.063, allocations: 4 kB / 1.218 GB, free: 3.328 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/1.063, allocations: 4.094 kB / 1.218 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/1.063, allocations: 95.83 kB / 1.218 GB, free: 3.23 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/1.063, allocations: 11.92 kB / 1.218 GB, free: 3.219 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/1.063, allocations: 67.55 kB / 1.218 GB, free: 3.152 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/1.063, allocations: 20 kB / 1.218 GB, free: 3.133 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.0001798/1.064, allocations: 162.8 kB / 1.218 GB, free: 2.969 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.295e-05/1.064, allocations: 27.66 kB / 1.218 GB, free: 2.941 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.479e-05/1.064, allocations: 33.86 kB / 1.218 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/1.064, allocations: 4 kB / 1.219 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/1.064, allocations: 4 kB / 1.219 GB, free: 2.902 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/1.064, allocations: 3.984 kB / 1.219 GB, free: 2.898 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003702/1.064, allocations: 349.2 kB / 1.219 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/1.064, allocations: 8 kB / 1.219 GB, free: 2.5 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004113/1.065, allocations: 79.83 kB / 1.219 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.333e-06/1.065, allocations: 7.938 kB / 1.219 GB, free: 2.414 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/1.065, allocations: 15.98 kB / 1.219 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/1.065, allocations: 0 / 1.219 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/1.065, allocations: 4 kB / 1.219 GB, free: 2.395 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/1.066, allocations: 0.5784 MB / 1.22 GB, free: 1.789 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.578e-05/1.066, allocations: 108.6 kB / 1.22 GB, free: 1.664 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/1.066, allocations: 15.98 kB / 1.22 GB, free: 1.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/1.066, allocations: 27.97 kB / 1.22 GB, free: 1.621 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/1.066, allocations: 39.95 kB / 1.22 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.37e-05/1.066, allocations: 19.98 kB / 1.22 GB, free: 1.562 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.694e-05/1.066, allocations: 121.2 kB / 1.22 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.3e-07/1.066, allocations: 0 / 1.22 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003528/1.067, allocations: 83.91 kB / 1.22 GB, free: 1.363 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.0001881/1.067, allocations: 120.1 kB / 1.22 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007545/1.068, allocations: 392.2 kB / 1.22 GB, free: 0.8594 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/1.068, allocations: 0 / 1.22 GB, free: 0.8594 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003633/1.068, allocations: 183.7 kB / 1.221 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/1.068, allocations: 45.8 kB / 1.221 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/1.07, allocations: 0.6317 MB / 1.221 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/1.07, allocations: 0.7648 MB / 1.222 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/1.07, allocations: 39.42 kB / 1.222 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of SimCode: time 2.51e-07/1.07, allocations: 0 / 1.222 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of Templates: time 0.006845/1.077, allocations: 3.991 MB / 1.226 GB, free: 11.17 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sinInpNoDel.y,movAve1.y,movAve2.y,movAve3.y,movAve4.y,sinInp50sDel.y,movAve6.y,movAve7.y,sinInp100sDel.y,movAve8.y,movAve9.y Variables in the result:movAve1.y,movAve2.y,movAve3.y,movAve4.y,movAve6.y,movAve7.y,movAve8.y,movAve9.y,sinInp100sDel.y,sinInp50sDel.y,sinInpNoDel.y,time