Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 221.6 kB / 23 MB, free: 4.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.272/3.272, allocations: 0.5107 GB / 0.8166 GB, free: 17.86 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002932/0.002932, allocations: 68.05 kB / 1.187 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3577, allocations: 181.9 MB / 1.365 GB, free: 13.56 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003311/0.3611, allocations: 1.921 MB / 1.367 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001287/0.3623, allocations: 0.6984 MB / 1.367 GB, free: 10.93 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.203e-05/0.3624, allocations: 0 / 1.367 GB, free: 10.93 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.795e-05/0.3625, allocations: 27.61 kB / 1.367 GB, free: 10.9 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.3626, allocations: 47.58 kB / 1.367 GB, free: 10.85 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004996/0.3631, allocations: 167.7 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.3635, allocations: 323.1 kB / 1.368 GB, free: 10.37 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.3636, allocations: 40.84 kB / 1.368 GB, free: 10.32 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.3639, allocations: 151.5 kB / 1.368 GB, free: 10.18 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.3641, allocations: 127.4 kB / 1.368 GB, free: 10.05 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.623e-05/0.3642, allocations: 35.98 kB / 1.368 GB, free: 10.02 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.304e-05/0.3643, allocations: 36 kB / 1.368 GB, free: 9.98 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.528e-05/0.3643, allocations: 71.8 kB / 1.368 GB, free: 9.91 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.3644, allocations: 119.5 kB / 1.368 GB, free: 9.793 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.3648, allocations: 318.7 kB / 1.369 GB, free: 9.48 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3648, allocations: 8 kB / 1.369 GB, free: 9.473 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3648, allocations: 0 / 1.369 GB, free: 9.473 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.3648, allocations: 0 / 1.369 GB, free: 9.473 MB / 1.061 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.001247/0.3661, allocations: 0.5559 MB / 1.369 GB, free: 8.891 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3661, allocations: 8.031 kB / 1.369 GB, free: 8.883 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000338/0.3665, allocations: 68.7 kB / 1.369 GB, free: 8.816 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.3668, allocations: 186.1 kB / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004256/0.3672, allocations: 0.4918 MB / 1.37 GB, free: 8.008 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.934e-05/0.3673, allocations: 32.31 kB / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005455/0.3679, allocations: 265.6 kB / 1.37 GB, free: 7.699 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.3679, allocations: 0 / 1.37 GB, free: 7.699 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.3679, allocations: 15.88 kB / 1.37 GB, free: 7.684 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.3679, allocations: 4 kB / 1.37 GB, free: 7.68 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/0.3684, allocations: 180.9 kB / 1.37 GB, free: 7.504 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.3694, allocations: 0.6525 MB / 1.371 GB, free: 6.812 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005064/0.3699, allocations: 195.7 kB / 1.371 GB, free: 6.594 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002992/0.3702, allocations: 122.5 kB / 1.371 GB, free: 6.465 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-05/0.3703, allocations: 12 kB / 1.371 GB, free: 6.453 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005389/0.3708, allocations: 315.7 kB / 1.372 GB, free: 6.129 MB / 1.061 GB Notification: Performance of pre-optimization done (n=48): time 2.003e-06/0.3708, allocations: 0 / 1.372 GB, free: 6.129 MB / 1.061 GB Notification: Performance of matching and sorting (n=48): time 0.001172/0.372, allocations: 492.3 kB / 1.372 GB, free: 5.645 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/0.3721, allocations: 118.8 kB / 1.372 GB, free: 5.504 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.3722, allocations: 182.9 kB / 1.372 GB, free: 5.316 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/0.3723, allocations: 41.69 kB / 1.372 GB, free: 5.27 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.604e-05/0.3724, allocations: 121.3 kB / 1.373 GB, free: 5.148 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.3725, allocations: 158.8 kB / 1.373 GB, free: 4.992 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.3727, allocations: 106.3 kB / 1.373 GB, free: 4.883 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3728, allocations: 346.8 kB / 1.373 GB, free: 4.535 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003183/0.3732, allocations: 141.2 kB / 1.373 GB, free: 4.395 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004211/0.3736, allocations: 252.8 kB / 1.374 GB, free: 4.113 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006896/0.3743, allocations: 394 kB / 1.374 GB, free: 3.691 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3743, allocations: 4 kB / 1.374 GB, free: 3.688 MB / 1.061 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000887/0.3752, allocations: 489.6 kB / 1.374 GB, free: 3.203 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3752, allocations: 15.88 kB / 1.374 GB, free: 3.188 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3752, allocations: 160 / 1.374 GB, free: 3.188 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.3752, allocations: 8 kB / 1.374 GB, free: 3.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/0.3756, allocations: 95.81 kB / 1.374 GB, free: 3.086 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.3756, allocations: 15.98 kB / 1.374 GB, free: 3.07 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.3759, allocations: 59.7 kB / 1.375 GB, free: 3.012 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.751e-05/0.3759, allocations: 23.94 kB / 1.375 GB, free: 2.988 MB / 1.061 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.0001749/0.3761, allocations: 163.4 kB / 1.375 GB, free: 2.816 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.387e-05/0.3762, allocations: 31.8 kB / 1.375 GB, free: 2.785 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.141e-05/0.3762, allocations: 29.97 kB / 1.375 GB, free: 2.746 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.3762, allocations: 8 kB / 1.375 GB, free: 2.738 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3762, allocations: 4 kB / 1.375 GB, free: 2.734 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3763, allocations: 3.984 kB / 1.375 GB, free: 2.73 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003127/0.3766, allocations: 237.1 kB / 1.375 GB, free: 2.469 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3766, allocations: 0 / 1.375 GB, free: 2.469 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004128/0.377, allocations: 79.95 kB / 1.375 GB, free: 2.391 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.377, allocations: 3.938 kB / 1.375 GB, free: 2.387 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.651e-05/0.377, allocations: 19.92 kB / 1.375 GB, free: 2.367 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.377, allocations: 0 / 1.375 GB, free: 2.367 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.377, allocations: 0 / 1.375 GB, free: 2.367 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.3782, allocations: 0.5938 MB / 1.376 GB, free: 1.75 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.3782, allocations: 35.69 kB / 1.376 GB, free: 1.715 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.078e-05/0.3783, allocations: 15.94 kB / 1.376 GB, free: 1.699 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.3785, allocations: 31.95 kB / 1.376 GB, free: 1.668 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.3786, allocations: 35.94 kB / 1.376 GB, free: 1.633 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.3786, allocations: 19.98 kB / 1.376 GB, free: 1.613 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000111/0.3788, allocations: 136.3 kB / 1.376 GB, free: 1.48 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3788, allocations: 0 / 1.376 GB, free: 1.48 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003524/0.3791, allocations: 76 kB / 1.376 GB, free: 1.406 MB / 1.061 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.0001524/0.3793, allocations: 115.3 kB / 1.376 GB, free: 1.285 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007578/0.38, allocations: 354.6 kB / 1.376 GB, free: 0.9375 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.38, allocations: 4 kB / 1.376 GB, free: 0.9336 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003679/0.3804, allocations: 172.5 kB / 1.377 GB, free: 0.7656 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.3807, allocations: 43.97 kB / 1.377 GB, free: 0.7227 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.382, allocations: 0.6615 MB / 1.377 GB, free: 28 kB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.3822, allocations: 160.1 kB / 1.377 GB, free: 15.85 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.3824, allocations: 47.42 kB / 1.378 GB, free: 15.8 MB / 1.076 GB Notification: Performance of SimCode: time 3.3e-07/0.3824, allocations: 0 / 1.378 GB, free: 15.8 MB / 1.076 GB Notification: Performance of Templates: time 0.007062/0.3894, allocations: 4.143 MB / 1.382 GB, free: 11.68 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 11.715942587237805]