Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_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_10_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_10_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.001486/0.001486, allocations: 108.4 kB / 16.41 MB, free: 6.457 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.001638/0.001638, allocations: 187 kB / 17.34 MB, free: 5.719 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.436/1.436, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.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.45/2.45, allocations: 437 MB / 0.7112 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 63.91 kB / 1.019 GB, free: 9.363 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.012/1.014, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003068/1.017, allocations: 1.975 MB / 1.169 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001082/1.018, allocations: 0.6467 MB / 1.17 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.062e-05/1.018, allocations: 4 kB / 1.17 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.095e-05/1.018, allocations: 19.69 kB / 1.17 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/1.018, allocations: 47.56 kB / 1.17 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004531/1.019, allocations: 155.6 kB / 1.17 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003032/1.019, allocations: 319.2 kB / 1.17 GB, free: 0.6836 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/1.019, allocations: 48.38 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/1.02, allocations: 135.5 kB / 1.171 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/1.02, allocations: 143.5 kB / 1.171 GB, free: 368 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.317e-05/1.02, allocations: 28 kB / 1.171 GB, free: 340 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.079e-05/1.02, allocations: 32 kB / 1.171 GB, free: 308 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.251e-05/1.02, allocations: 83.72 kB / 1.171 GB, free: 224 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001549/1.02, allocations: 135.4 kB / 1.171 GB, free: 88 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000436/1.021, allocations: 302.8 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 1.22e-05/1.021, allocations: 4 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.088e-06/1.021, allocations: 0 / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.751e-05/1.021, allocations: 0 / 1.171 GB, free: 15.79 MB / 0.9044 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.001534/1.022, allocations: 0.6216 MB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 6.226e-05/1.022, allocations: 12.92 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/1.022, allocations: 32.64 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/1.023, allocations: 200.8 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002639/1.023, allocations: 260.3 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.643e-05/1.023, allocations: 32.38 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005198/1.023, allocations: 265.8 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/1.024, allocations: 7.906 kB / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/1.024, allocations: 7.984 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/1.024, allocations: 8 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/1.024, allocations: 179.8 kB / 1.173 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/1.025, allocations: 0.7737 MB / 1.174 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004958/1.026, allocations: 203.7 kB / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/1.026, allocations: 136 kB / 1.174 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.987e-05/1.026, allocations: 11.98 kB / 1.174 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006102/1.027, allocations: 315.8 kB / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/1.027, allocations: 0 / 1.174 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=48): time 0.001051/1.028, allocations: 481.7 kB / 1.175 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/1.028, allocations: 126.7 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/1.028, allocations: 172 kB / 1.175 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/1.028, allocations: 41.7 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.673e-05/1.028, allocations: 117.3 kB / 1.175 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/1.028, allocations: 150 kB / 1.175 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/1.029, allocations: 98.34 kB / 1.175 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001688/1.029, allocations: 346.8 kB / 1.176 GB, free: 10.92 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/1.029, allocations: 149.2 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003646/1.029, allocations: 256.8 kB / 1.176 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006499/1.03, allocations: 402 kB / 1.177 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.03, allocations: 0 / 1.177 GB, free: 10.06 MB / 0.9044 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008236/1.031, allocations: 492.9 kB / 1.177 GB, free: 9.57 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/1.031, allocations: 8 kB / 1.177 GB, free: 9.562 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/1.031, allocations: 7.984 kB / 1.177 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/1.031, allocations: 4 kB / 1.177 GB, free: 9.551 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004015/1.031, allocations: 99.83 kB / 1.177 GB, free: 9.453 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/1.031, allocations: 4 kB / 1.177 GB, free: 9.449 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/1.032, allocations: 59.56 kB / 1.177 GB, free: 9.391 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/1.032, allocations: 20 kB / 1.177 GB, free: 9.371 MB / 0.9044 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.0001691/1.032, allocations: 167.4 kB / 1.177 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.704e-05/1.032, allocations: 27.66 kB / 1.177 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.118e-05/1.032, allocations: 29.88 kB / 1.177 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/1.032, allocations: 4 kB / 1.177 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/1.032, allocations: 3.984 kB / 1.177 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/1.032, allocations: 8 kB / 1.177 GB, free: 9.125 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000355/1.032, allocations: 353.2 kB / 1.178 GB, free: 8.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/1.032, allocations: 0 / 1.178 GB, free: 8.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/1.033, allocations: 75.83 kB / 1.178 GB, free: 8.656 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/1.033, allocations: 0 / 1.178 GB, free: 8.656 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/1.033, allocations: 16 kB / 1.178 GB, free: 8.641 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/1.033, allocations: 0 / 1.178 GB, free: 8.641 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/1.033, allocations: 0 / 1.178 GB, free: 8.641 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009922/1.034, allocations: 0.5927 MB / 1.178 GB, free: 8.02 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/1.034, allocations: 116.6 kB / 1.179 GB, free: 7.887 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/1.034, allocations: 4.188 kB / 1.179 GB, free: 7.883 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/1.034, allocations: 27.97 kB / 1.179 GB, free: 7.855 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/1.034, allocations: 55.88 kB / 1.179 GB, free: 7.801 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/1.034, allocations: 12.06 kB / 1.179 GB, free: 7.789 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.433e-05/1.034, allocations: 133.2 kB / 1.179 GB, free: 7.66 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/1.034, allocations: 0 / 1.179 GB, free: 7.66 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003295/1.035, allocations: 75.91 kB / 1.179 GB, free: 7.586 MB / 0.9044 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.0001743/1.035, allocations: 120.1 kB / 1.179 GB, free: 7.461 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007073/1.036, allocations: 384.3 kB / 1.179 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.036, allocations: 0 / 1.179 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003329/1.036, allocations: 188.6 kB / 1.179 GB, free: 6.906 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/1.036, allocations: 44 kB / 1.18 GB, free: 6.863 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/1.038, allocations: 0.6319 MB / 1.18 GB, free: 6.199 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/1.038, allocations: 0.7647 MB / 1.181 GB, free: 5.41 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/1.038, allocations: 43.42 kB / 1.181 GB, free: 5.367 MB / 0.9044 GB Notification: Performance of SimCode: time 4.91e-07/1.038, allocations: 0 / 1.181 GB, free: 5.367 MB / 0.9044 GB Notification: Performance of Templates: time 0.006031/1.044, allocations: 3.985 MB / 1.185 GB, free: 1.398 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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