Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,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_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,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_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001465/0.001464, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.552/1.552, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.971/2.971, allocations: 437 MB / 0.7104 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002856/0.002856, allocations: 71.89 kB / 0.8693 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7548/0.7577, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002509/0.7602, allocations: 1.112 MB / 1.018 GB, free: 1.344 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001442/0.7617, allocations: 1.111 MB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.833e-05/0.7618, allocations: 4 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.636e-05/0.7619, allocations: 19.73 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.762, allocations: 43.58 kB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004663/0.7625, allocations: 143.7 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003538/0.7628, allocations: 323.1 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.763, allocations: 52.31 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001926/0.7632, allocations: 131.6 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.7635, allocations: 159.3 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.04e-05/0.7635, allocations: 32 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.033e-05/0.7636, allocations: 28 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.906e-05/0.7637, allocations: 71.8 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.7638, allocations: 139.4 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003325/0.7642, allocations: 308.9 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.7642, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7642, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.7642, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 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.001307/0.7655, allocations: 0.6276 MB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.7655, allocations: 11.98 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.509e-05/0.7656, allocations: 32.66 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001819/0.7658, allocations: 196.8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.7661, allocations: 264.3 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.803e-05/0.7661, allocations: 32.28 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005067/0.7667, allocations: 262.3 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.7667, allocations: 7.938 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.7667, allocations: 8 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.7667, allocations: 4 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004369/0.7672, allocations: 179.8 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.7684, allocations: 0.7853 MB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005019/0.769, allocations: 199.7 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002727/0.7692, allocations: 130.5 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.7693, allocations: 11.98 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005684/0.7699, allocations: 303.6 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 2.024e-06/0.7699, allocations: 0 / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001068/0.7709, allocations: 492 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.064e-05/0.771, allocations: 122.7 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.7712, allocations: 179.4 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.707e-05/0.7713, allocations: 41.69 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.108e-05/0.7714, allocations: 121.2 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.7715, allocations: 150 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.7717, allocations: 106.3 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.7719, allocations: 338.8 kB / 1.025 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.7722, allocations: 149.2 kB / 1.025 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.7726, allocations: 256.8 kB / 1.026 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006776/0.7733, allocations: 398 kB / 1.026 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.7733, allocations: 0 / 1.026 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001098/0.7744, allocations: 488.9 kB / 1.027 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.7744, allocations: 11.94 kB / 1.027 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.7744, allocations: 0 / 1.027 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.7745, allocations: 8 kB / 1.027 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.7749, allocations: 91.83 kB / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.7749, allocations: 11.98 kB / 1.027 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002738/0.7752, allocations: 55.66 kB / 1.027 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/0.7752, allocations: 20 kB / 1.027 GB, free: 8.375 MB / 0.7794 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.0001877/0.7754, allocations: 155.5 kB / 1.027 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.782e-05/0.7755, allocations: 35.64 kB / 1.027 GB, free: 8.176 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.264e-05/0.7756, allocations: 29.88 kB / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.7756, allocations: 11.94 kB / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.7756, allocations: 0 / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.7756, allocations: 7.984 kB / 1.027 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004154/0.776, allocations: 361 kB / 1.027 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.776, allocations: 4 kB / 1.027 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004179/0.7765, allocations: 75.89 kB / 1.027 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.7765, allocations: 3.938 kB / 1.027 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.634e-05/0.7765, allocations: 11.98 kB / 1.027 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.7765, allocations: 4 kB / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7765, allocations: 0 / 1.027 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.7777, allocations: 0.5822 MB / 1.028 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.192e-05/0.7777, allocations: 104.7 kB / 1.028 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.437e-05/0.7778, allocations: 19.98 kB / 1.028 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/0.7781, allocations: 35.97 kB / 1.028 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.7782, allocations: 51.94 kB / 1.028 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.7782, allocations: 19.98 kB / 1.028 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.737e-05/0.7783, allocations: 121.2 kB / 1.028 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7784, allocations: 0 / 1.028 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003302/0.7787, allocations: 83.94 kB / 1.028 GB, free: 6.578 MB / 0.7794 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.0001805/0.7789, allocations: 128.2 kB / 1.029 GB, free: 6.441 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008353/0.7797, allocations: 413.1 kB / 1.029 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.7797, allocations: 3.938 kB / 1.029 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0004104/0.7801, allocations: 197.3 kB / 1.029 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.7805, allocations: 45.73 kB / 1.029 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.7817, allocations: 0.6104 MB / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.782, allocations: 0.7648 MB / 1.03 GB, free: 4.367 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001559/0.7822, allocations: 42.94 kB / 1.031 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.7823, allocations: 35.44 kB / 1.031 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.7823, allocations: 0 / 1.031 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of Templates: time 0.008311/0.7906, allocations: 3.987 MB / 1.034 GB, free: 336 kB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches