Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.009744/0.009744, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.585/1.585, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.636/2.636, allocations: 390.9 MB / 0.6663 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005824/0.0005824, allocations: 8 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9899/0.9905, allocations: 142.4 MB / 0.9551 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.002019/0.9926, allocations: 1.658 MB / 0.9567 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009835/0.9936, allocations: 0.6371 MB / 0.9573 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.14e-05/0.9937, allocations: 5.219 kB / 0.9573 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.393e-05/0.9937, allocations: 11.86 kB / 0.9573 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.9938, allocations: 32.73 kB / 0.9573 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.9942, allocations: 142.2 kB / 0.9575 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.9945, allocations: 301.8 kB / 0.9578 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.9947, allocations: 47.17 kB / 0.9578 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.9949, allocations: 106 kB / 0.9579 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.995, allocations: 146.3 kB / 0.9581 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.9951, allocations: 19.09 kB / 0.9581 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.587e-05/0.9951, allocations: 15.12 kB / 0.9581 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.959e-05/0.9952, allocations: 66.72 kB / 0.9582 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.9953, allocations: 142.2 kB / 0.9583 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002442/0.9955, allocations: 284.6 kB / 0.9586 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.9956, allocations: 0 / 0.9586 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.344e-06/0.9956, allocations: 1.469 kB / 0.9586 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.9956, allocations: 0 / 0.9586 GB, free: 5.031 MB / 0.7169 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.001144/0.9967, allocations: 0.602 MB / 0.9592 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.9968, allocations: 17.34 kB / 0.9592 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.706e-05/0.9969, allocations: 34.05 kB / 0.9592 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.997, allocations: 199.6 kB / 0.9594 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.9972, allocations: 266.3 kB / 0.9596 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.503e-05/0.9973, allocations: 35.52 kB / 0.9597 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/0.9978, allocations: 269.7 kB / 0.9599 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.9978, allocations: 5.375 kB / 0.9599 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.9978, allocations: 10.73 kB / 0.9599 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.9979, allocations: 4.125 kB / 0.96 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.9983, allocations: 185.8 kB / 0.9601 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009992/0.9993, allocations: 0.7894 MB / 0.9609 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.9998, allocations: 211.4 kB / 0.9611 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002874/1, allocations: 137.4 kB / 0.9612 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/1, allocations: 10.23 kB / 0.9612 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005589/1.001, allocations: 326.9 kB / 0.9616 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/1.001, allocations: 0 / 0.9616 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.00107/1.002, allocations: 496.8 kB / 0.962 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/1.002, allocations: 114.6 kB / 0.9621 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/1.002, allocations: 176.2 kB / 0.9623 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/1.002, allocations: 42.52 kB / 0.9623 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.494e-05/1.002, allocations: 119.1 kB / 0.9625 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/1.002, allocations: 157.8 kB / 0.9626 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/1.002, allocations: 60.69 kB / 0.9627 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.956e-05/1.002, allocations: 341.9 kB / 0.963 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/1.003, allocations: 150.2 kB / 0.9631 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003593/1.003, allocations: 262.9 kB / 0.9634 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006229/1.004, allocations: 408.5 kB / 0.9638 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/1.004, allocations: 1.438 kB / 0.9638 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008315/1.005, allocations: 0.502 MB / 0.9643 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/1.005, allocations: 7.188 kB / 0.9643 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/1.005, allocations: 7.938 kB / 0.9643 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/1.005, allocations: 2.562 kB / 0.9643 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003799/1.005, allocations: 97.27 kB / 0.9644 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/1.005, allocations: 6.375 kB / 0.9644 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/1.005, allocations: 71.17 kB / 0.9645 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/1.005, allocations: 24.22 kB / 0.9645 GB, free: 0.5273 MB / 0.7169 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.0001403/1.006, allocations: 152 kB / 0.9646 GB, free: 396 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.836e-05/1.006, allocations: 31.97 kB / 0.9647 GB, free: 376 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.576e-05/1.006, allocations: 34.83 kB / 0.9647 GB, free: 348 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/1.006, allocations: 5.531 kB / 0.9647 GB, free: 348 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/1.006, allocations: 5.406 kB / 0.9647 GB, free: 344 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/1.006, allocations: 5.234 kB / 0.9647 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000289/1.006, allocations: 351.8 kB / 0.965 GB, free: 4 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-05/1.006, allocations: 5.219 kB / 0.965 GB, free: 0 / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004271/1.006, allocations: 82.39 kB / 0.9651 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/1.006, allocations: 6.688 kB / 0.9651 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/1.007, allocations: 16.08 kB / 0.9651 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/1.007, allocations: 2.875 kB / 0.9651 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.007, allocations: 1 kB / 0.9651 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/1.008, allocations: 0.5989 MB / 0.9657 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.148e-05/1.008, allocations: 108.9 kB / 0.9658 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.157e-05/1.008, allocations: 11.88 kB / 0.9658 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002823/1.008, allocations: 47.36 kB / 0.9659 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/1.008, allocations: 59.58 kB / 0.9659 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/1.008, allocations: 15 kB / 0.966 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001083/1.008, allocations: 124.7 kB / 0.9661 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/1.008, allocations: 0 / 0.9661 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003677/1.009, allocations: 79.66 kB / 0.9662 GB, free: 15.33 MB / 0.7325 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.0001917/1.009, allocations: 122.4 kB / 0.9663 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008848/1.01, allocations: 393.3 kB / 0.9666 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.872e-06/1.01, allocations: 1.125 kB / 0.9666 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004469/1.01, allocations: 218 kB / 0.9669 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/1.011, allocations: 47.22 kB / 0.9669 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/1.012, allocations: 0.7232 MB / 0.9676 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/1.012, allocations: 0.7667 MB / 0.9684 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001742/1.013, allocations: 40.95 kB / 0.9684 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/1.013, allocations: 32.61 kB / 0.9684 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of SimCode: time 4.01e-07/1.013, allocations: 0 / 0.9684 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of Templates: time 0.007479/1.02, allocations: 3.372 MB / 0.9717 GB, free: 12.04 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches