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.001258/0.001258, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001213/0.001213, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.416/1.416, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.675/2.675, allocations: 437 MB / 0.71 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 0.8687 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7604/0.7617, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.004455/0.7662, allocations: 2.023 MB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00139/0.7676, allocations: 0.6545 MB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.833e-05/0.7677, allocations: 0 / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 7.229e-05/0.7679, allocations: 7.984 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.768, allocations: 39.69 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.7686, allocations: 127.7 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004374/0.769, allocations: 319.1 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/0.7693, allocations: 52.31 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002667/0.7695, allocations: 127.6 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.7698, allocations: 159.3 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.237e-05/0.7699, allocations: 28 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.57e-05/0.7699, allocations: 32 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.769e-05/0.77, allocations: 75.78 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.7702, allocations: 139.4 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.7706, allocations: 301 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7706, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7706, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.7706, allocations: 0 / 1.021 GB, free: 14.62 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.001501/0.7721, allocations: 0.6275 MB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.7722, allocations: 12.02 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.7723, allocations: 36.56 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.7725, allocations: 200.8 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002601/0.7728, allocations: 264.2 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.606e-05/0.7729, allocations: 36.36 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006699/0.7735, allocations: 257.9 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.7736, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.7736, allocations: 12 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.7736, allocations: 8 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005784/0.7742, allocations: 175.8 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.7757, allocations: 0.7697 MB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006565/0.7763, allocations: 212.5 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004281/0.7768, allocations: 134.5 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.835e-05/0.7769, allocations: 15.97 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008406/0.7777, allocations: 311.6 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 2.876e-06/0.7777, allocations: 3.938 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001357/0.7791, allocations: 479 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/0.7792, allocations: 114.8 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.7793, allocations: 187.4 kB / 1.024 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.7794, allocations: 37.7 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.536e-05/0.7795, allocations: 113.3 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.7796, allocations: 153.9 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.7798, allocations: 102.3 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.78, allocations: 346.8 kB / 1.025 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004568/0.7804, allocations: 141.2 kB / 1.025 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005868/0.781, allocations: 260.7 kB / 1.026 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009503/0.782, allocations: 390.1 kB / 1.026 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.782, allocations: 0 / 1.026 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001247/0.7833, allocations: 0.4895 MB / 1.026 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.7833, allocations: 4 kB / 1.026 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.7833, allocations: 8.062 kB / 1.026 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/0.7834, allocations: 8 kB / 1.026 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005614/0.7839, allocations: 95.83 kB / 1.027 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.784, allocations: 7.938 kB / 1.027 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000391/0.7844, allocations: 55.66 kB / 1.027 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.662e-05/0.7844, allocations: 27.98 kB / 1.027 GB, free: 8.203 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.0002446/0.7847, allocations: 156 kB / 1.027 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.649e-05/0.7848, allocations: 31.59 kB / 1.027 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.31e-05/0.7849, allocations: 33.86 kB / 1.027 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.7849, allocations: 8 kB / 1.027 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.7849, allocations: 0 / 1.027 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.7849, allocations: 0 / 1.027 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005165/0.7854, allocations: 365 kB / 1.027 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.7855, allocations: 0 / 1.027 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005949/0.7861, allocations: 79.83 kB / 1.027 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.7861, allocations: 8 kB / 1.027 GB, free: 7.477 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.7861, allocations: 11.98 kB / 1.027 GB, free: 7.465 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.7862, allocations: 4 kB / 1.027 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7862, allocations: 0 / 1.027 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.7877, allocations: 0.5906 MB / 1.028 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.281e-05/0.7878, allocations: 108.6 kB / 1.028 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.062e-05/0.7878, allocations: 12 kB / 1.028 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.7882, allocations: 31.95 kB / 1.028 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/0.7884, allocations: 56.02 kB / 1.028 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.517e-05/0.7884, allocations: 15.98 kB / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001359/0.7886, allocations: 129.2 kB / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7886, allocations: 0 / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005651/0.7891, allocations: 76 kB / 1.028 GB, free: 6.41 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.0002561/0.7894, allocations: 134.6 kB / 1.028 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001148/0.7906, allocations: 394.6 kB / 1.029 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.7906, allocations: 4 kB / 1.029 GB, free: 5.875 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005942/0.7912, allocations: 204.1 kB / 1.029 GB, free: 5.68 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.7917, allocations: 49.67 kB / 1.029 GB, free: 5.633 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.7933, allocations: 0.6839 MB / 1.03 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.7938, allocations: 0.7724 MB / 1.03 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002528/0.794, allocations: 39.16 kB / 1.03 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.7942, allocations: 39.42 kB / 1.031 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.7942, allocations: 3.938 kB / 1.031 GB, free: 4.047 MB / 0.7794 GB Notification: Performance of Templates: time 0.01045/0.8047, allocations: 3.588 MB / 1.034 GB, free: 492 kB / 0.7794 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