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.005718/0.005718, allocations: 99.59 kB / 15.73 MB, free: 6.484 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.001174/0.001174, allocations: 192.2 kB / 16.68 MB, free: 6.367 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.766/2.766, allocations: 437 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 63.91 kB / 1.019 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3708, allocations: 151.6 MB / 1.167 GB, free: 6.723 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.004428/0.3753, allocations: 1.985 MB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001446/0.3768, allocations: 0.6428 MB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002326/0.3771, allocations: 4 kB / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.3772, allocations: 19.69 kB / 1.169 GB, free: 4.051 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002331/0.3775, allocations: 43.56 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006949/0.3782, allocations: 147.8 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004917/0.3787, allocations: 327.1 kB / 1.17 GB, free: 3.543 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.3789, allocations: 44.38 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003063/0.3792, allocations: 135.5 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002532/0.3794, allocations: 151.4 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 7.199e-05/0.3795, allocations: 28 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.314e-05/0.3796, allocations: 32 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.07e-05/0.3797, allocations: 79.78 kB / 1.17 GB, free: 3.078 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.3798, allocations: 131.3 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004088/0.3802, allocations: 310.7 kB / 1.171 GB, free: 2.645 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3803, allocations: 0 / 1.171 GB, free: 2.645 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.376e-06/0.3803, allocations: 4 kB / 1.171 GB, free: 2.641 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.396e-05/0.3803, allocations: 0 / 1.171 GB, free: 2.641 MB / 0.92 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.001385/0.3817, allocations: 0.6312 MB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3817, allocations: 12.03 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.3819, allocations: 32.78 kB / 1.171 GB, free: 1.922 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.3821, allocations: 196.9 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002505/0.3823, allocations: 264.3 kB / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.818e-05/0.3824, allocations: 40.25 kB / 1.172 GB, free: 1.336 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005173/0.3829, allocations: 257.9 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/0.3829, allocations: 8 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.383, allocations: 7.984 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.383, allocations: 8 kB / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004419/0.3834, allocations: 179.8 kB / 1.172 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.3847, allocations: 0.7699 MB / 1.173 GB, free: 40 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005408/0.3853, allocations: 203.7 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002652/0.3855, allocations: 134.5 kB / 1.173 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.3856, allocations: 7.984 kB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006144/0.3862, allocations: 327.9 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 2.354e-06/0.3862, allocations: 0 / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.001058/0.3873, allocations: 480.3 kB / 1.174 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.908e-05/0.3874, allocations: 122.7 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.3876, allocations: 171.5 kB / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.3876, allocations: 45.7 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.519e-05/0.3877, allocations: 121.3 kB / 1.175 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.3878, allocations: 154.8 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.388, allocations: 102.3 kB / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3881, allocations: 342.8 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.3884, allocations: 145.2 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003624/0.3888, allocations: 256.8 kB / 1.175 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006367/0.3895, allocations: 402 kB / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.3895, allocations: 0 / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008999/0.3904, allocations: 493.6 kB / 1.176 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.3904, allocations: 8 kB / 1.176 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.3904, allocations: 7.984 kB / 1.176 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.3905, allocations: 8 kB / 1.176 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003827/0.3909, allocations: 91.83 kB / 1.176 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.3909, allocations: 8 kB / 1.176 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.3912, allocations: 55.75 kB / 1.176 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.73e-05/0.3912, allocations: 23.94 kB / 1.177 GB, free: 12.21 MB / 0.9356 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.0001652/0.3914, allocations: 167.5 kB / 1.177 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.862e-05/0.3914, allocations: 43.67 kB / 1.177 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.766e-05/0.3915, allocations: 29.88 kB / 1.177 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3915, allocations: 7.984 kB / 1.177 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-06/0.3915, allocations: 0 / 1.177 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.3916, allocations: 4 kB / 1.177 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003756/0.3919, allocations: 349.3 kB / 1.177 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.392, allocations: 0 / 1.177 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004073/0.3924, allocations: 79.83 kB / 1.177 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3924, allocations: 0 / 1.177 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.13e-05/0.3924, allocations: 16 kB / 1.177 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3924, allocations: 4.078 kB / 1.177 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.3925, allocations: 7.969 kB / 1.177 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.3935, allocations: 0.5824 MB / 1.178 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.28e-05/0.3936, allocations: 112.8 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.453e-05/0.3937, allocations: 12 kB / 1.178 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.3939, allocations: 32.03 kB / 1.178 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.394, allocations: 59.92 kB / 1.178 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.031e-05/0.3941, allocations: 16 kB / 1.178 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001033/0.3942, allocations: 125.2 kB / 1.178 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3942, allocations: 7.938 kB / 1.178 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003456/0.3946, allocations: 76 kB / 1.178 GB, free: 10.39 MB / 0.9356 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.0001875/0.3947, allocations: 120.1 kB / 1.178 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007667/0.3955, allocations: 386.6 kB / 1.179 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.3955, allocations: 4 kB / 1.179 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.00037/0.3959, allocations: 187.7 kB / 1.179 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.3963, allocations: 44.05 kB / 1.179 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.3974, allocations: 0.6284 MB / 1.179 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.3977, allocations: 0.7685 MB / 1.18 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001581/0.3979, allocations: 42.95 kB / 1.18 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.398, allocations: 35.44 kB / 1.18 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.398, allocations: 0 / 1.18 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of Templates: time 0.007567/0.4056, allocations: 3.952 MB / 1.184 GB, free: 4.203 MB / 0.9356 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