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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001142/0.001142, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001576/0.001576, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.705/2.705, allocations: 437.7 MB / 0.7117 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004268/0.0004269, allocations: 12 kB / 0.8722 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8618/0.8623, allocations: 153.8 MB / 1.022 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002625/0.8649, allocations: 1.631 MB / 1.024 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.8663, allocations: 0.6043 MB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.8666, allocations: 4 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 5.295e-05/0.8666, allocations: 11.86 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.8668, allocations: 31.7 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005816/0.8674, allocations: 123.8 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004392/0.8679, allocations: 283.2 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.8681, allocations: 44.31 kB / 1.025 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003088/0.8684, allocations: 115.6 kB / 1.025 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002611/0.8687, allocations: 127.5 kB / 1.025 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.507e-05/0.8688, allocations: 16 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.501e-05/0.8688, allocations: 16 kB / 1.025 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.718e-05/0.8689, allocations: 67.72 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.464e-05/0.869, allocations: 61.58 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.8692, allocations: 209.4 kB / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.8692, allocations: 0 / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.745e-06/0.8692, allocations: 0 / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.8693, allocations: 0 / 1.026 GB, free: 12.69 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.00129/0.8706, allocations: 0.6119 MB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.8706, allocations: 12.5 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.8708, allocations: 31.62 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.871, allocations: 191.6 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002249/0.8712, allocations: 267.7 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.806e-05/0.8713, allocations: 31.95 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005367/0.8718, allocations: 265.8 kB / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.8719, allocations: 0 / 1.027 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.8719, allocations: 8 kB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.8719, allocations: 7.938 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000439/0.8724, allocations: 191.8 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.8736, allocations: 0.7777 MB / 1.028 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005013/0.8741, allocations: 216.3 kB / 1.028 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002662/0.8744, allocations: 138.8 kB / 1.028 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.607e-05/0.8744, allocations: 20.16 kB / 1.028 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005665/0.875, allocations: 311.4 kB / 1.029 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 2.384e-06/0.875, allocations: 0 / 1.029 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001079/0.8761, allocations: 499.6 kB / 1.029 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.577e-05/0.8762, allocations: 118.8 kB / 1.029 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.8764, allocations: 183.3 kB / 1.029 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.8765, allocations: 41.7 kB / 1.029 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/0.8765, allocations: 125.2 kB / 1.03 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.8767, allocations: 146 kB / 1.03 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-05/0.8767, allocations: 12 kB / 1.03 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.8769, allocations: 334.8 kB / 1.03 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/0.8772, allocations: 157.2 kB / 1.03 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.8776, allocations: 260.7 kB / 1.03 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.8779, allocations: 164 kB / 1.031 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.8779, allocations: 4 kB / 1.031 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008724/0.8788, allocations: 0.4895 MB / 1.031 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.8789, allocations: 4 kB / 1.031 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.8789, allocations: 4 kB / 1.031 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.8789, allocations: 4 kB / 1.031 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.8793, allocations: 103.8 kB / 1.031 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.8793, allocations: 8 kB / 1.031 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.8796, allocations: 71.67 kB / 1.031 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.732e-05/0.8797, allocations: 24 kB / 1.031 GB, free: 6.562 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 ($whenCondition5,$PRE.movAve1.mode,movAve1.mode,$whenCondition6,$PRE.movAve2.mode,movAve2.mode,$whenCondition7,$PRE.movAve3.mode,movAve3.mode,$whenCondition8,$PRE.movAve4.mode,movAve4.mode,$whenCondition9,$PRE.movAve5.mode,movAve5.mode,$whenCondition3,$PRE.movAve6.mode,movAve6.mode,$whenCondition4,$PRE.movAve7.mode,movAve7.mode,$whenCondition1,$PRE.movAve8.mode,movAve8.mode,$whenCondition2,$PRE.movAve9.mode,movAve9.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000185/0.8799, allocations: 164.1 kB / 1.031 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.329e-05/0.8799, allocations: 31.62 kB / 1.031 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.994e-05/0.88, allocations: 33.86 kB / 1.032 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.88, allocations: 4 kB / 1.032 GB, free: 6.324 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.88, allocations: 0 / 1.032 GB, free: 6.324 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.8801, allocations: 4 kB / 1.032 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000389/0.8804, allocations: 357.1 kB / 1.032 GB, free: 5.922 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.8805, allocations: 4 kB / 1.032 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.8809, allocations: 79.89 kB / 1.032 GB, free: 5.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/0.8809, allocations: 4 kB / 1.032 GB, free: 5.836 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.8809, allocations: 15.94 kB / 1.032 GB, free: 5.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.563e-06/0.8809, allocations: 7.984 kB / 1.032 GB, free: 5.812 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.8809, allocations: 0 / 1.032 GB, free: 5.812 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.882, allocations: 0.5977 MB / 1.033 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.122e-05/0.8821, allocations: 100.8 kB / 1.033 GB, free: 5.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.852e-05/0.8821, allocations: 16 kB / 1.033 GB, free: 5.059 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.8823, allocations: 43.95 kB / 1.033 GB, free: 5.016 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.8825, allocations: 35.95 kB / 1.033 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-05/0.8825, allocations: 19.98 kB / 1.033 GB, free: 4.961 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001024/0.8826, allocations: 125.2 kB / 1.033 GB, free: 4.84 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8826, allocations: 0 / 1.033 GB, free: 4.84 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003673/0.883, allocations: 83.94 kB / 1.033 GB, free: 4.758 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002117/0.8832, allocations: 134.2 kB / 1.033 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007446/0.884, allocations: 390.1 kB / 1.033 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.884, allocations: 0 / 1.033 GB, free: 4.238 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.00037/0.8843, allocations: 187.7 kB / 1.034 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.8847, allocations: 44.69 kB / 1.034 GB, free: 4.012 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.8859, allocations: 0.6987 MB / 1.034 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.8862, allocations: 0.7724 MB / 1.035 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001745/0.8864, allocations: 43.05 kB / 1.035 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.8865, allocations: 35.42 kB / 1.035 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of SimCode: time 3.637e-06/0.8865, allocations: 0 / 1.035 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of Templates: time 0.007148/0.8937, allocations: 3.011 MB / 1.038 GB, free: 15.42 MB / 0.795 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches