Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.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.001499/0.001499, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001646/0.001646, allocations: 212.1 kB / 22.25 MB, free: 5.258 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.661/1.661, allocations: 230.6 MB / 256 MB, free: 7.785 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.583/3.583, allocations: 0.5107 GB / 0.8158 GB, free: 17.77 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,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") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,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") [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.00218/0.00218, allocations: 67.81 kB / 1.186 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4039, allocations: 181.9 MB / 1.364 GB, free: 13.48 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002688/0.4066, allocations: 1.025 MB / 1.365 GB, free: 12.45 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001744/0.4083, allocations: 1.127 MB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.662e-05/0.4084, allocations: 4 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 6.2e-05/0.4085, allocations: 23.67 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.4086, allocations: 43.58 kB / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005492/0.4092, allocations: 155.7 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003882/0.4096, allocations: 331.1 kB / 1.367 GB, free: 10.76 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.4097, allocations: 28.58 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002848/0.41, allocations: 143.6 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.4103, allocations: 135.3 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.653e-05/0.4103, allocations: 28 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.39e-05/0.4104, allocations: 36 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.218e-05/0.4105, allocations: 75.8 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.4106, allocations: 115.5 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004273/0.4111, allocations: 318.8 kB / 1.367 GB, free: 9.895 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4111, allocations: 3.938 kB / 1.367 GB, free: 9.891 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.164e-06/0.4111, allocations: 0 / 1.367 GB, free: 9.891 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.4111, allocations: 0 / 1.367 GB, free: 9.891 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.001487/0.4126, allocations: 0.5637 MB / 1.368 GB, free: 9.293 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.4126, allocations: 8.031 kB / 1.368 GB, free: 9.285 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003647/0.413, allocations: 60.77 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.4132, allocations: 158.9 kB / 1.368 GB, free: 9.043 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000421/0.4136, allocations: 499.6 kB / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.4136, allocations: 28.38 kB / 1.369 GB, free: 8.414 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005266/0.4142, allocations: 262.3 kB / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.4142, allocations: 3.938 kB / 1.369 GB, free: 8.141 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.4142, allocations: 11.98 kB / 1.369 GB, free: 8.129 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.4142, allocations: 4 kB / 1.369 GB, free: 8.125 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004282/0.4147, allocations: 172.9 kB / 1.369 GB, free: 7.957 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.4158, allocations: 0.6525 MB / 1.37 GB, free: 7.266 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005815/0.4164, allocations: 203.7 kB / 1.37 GB, free: 7.039 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.4166, allocations: 123.6 kB / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.412e-05/0.4167, allocations: 15.92 kB / 1.37 GB, free: 6.895 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005776/0.4173, allocations: 303.4 kB / 1.37 GB, free: 6.578 MB / 1.061 GB Notification: Performance of pre-optimization done (n=48): time 1.773e-06/0.4173, allocations: 0 / 1.37 GB, free: 6.578 MB / 1.061 GB Notification: Performance of matching and sorting (n=48): time 0.001106/0.4184, allocations: 492.8 kB / 1.371 GB, free: 6.094 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.394e-05/0.4185, allocations: 118.8 kB / 1.371 GB, free: 5.953 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.4187, allocations: 179.5 kB / 1.371 GB, free: 5.766 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.22e-05/0.4187, allocations: 41.64 kB / 1.371 GB, free: 5.719 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.4188, allocations: 129.3 kB / 1.371 GB, free: 5.59 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.4189, allocations: 146.8 kB / 1.371 GB, free: 5.445 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/0.4191, allocations: 110.3 kB / 1.372 GB, free: 5.328 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4193, allocations: 338.8 kB / 1.372 GB, free: 4.988 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/0.4196, allocations: 145.2 kB / 1.372 GB, free: 4.848 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.42, allocations: 260.7 kB / 1.372 GB, free: 4.555 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007044/0.4207, allocations: 394.1 kB / 1.373 GB, free: 4.133 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.4207, allocations: 4 kB / 1.373 GB, free: 4.129 MB / 1.061 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008946/0.4216, allocations: 489.2 kB / 1.373 GB, free: 3.645 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.4217, allocations: 8 kB / 1.373 GB, free: 3.637 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.4217, allocations: 0 / 1.373 GB, free: 3.637 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.4217, allocations: 11.94 kB / 1.373 GB, free: 3.625 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/0.4221, allocations: 91.83 kB / 1.373 GB, free: 3.535 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.092e-05/0.4221, allocations: 12 kB / 1.373 GB, free: 3.523 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.4224, allocations: 71.67 kB / 1.373 GB, free: 3.453 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.4224, allocations: 20 kB / 1.373 GB, free: 3.434 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.0002035/0.4226, allocations: 159.5 kB / 1.373 GB, free: 3.266 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.633e-05/0.4227, allocations: 31.81 kB / 1.373 GB, free: 3.234 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.18e-05/0.4228, allocations: 37.89 kB / 1.373 GB, free: 3.195 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.4228, allocations: 4 kB / 1.373 GB, free: 3.191 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4228, allocations: 0 / 1.373 GB, free: 3.191 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.4228, allocations: 11.98 kB / 1.373 GB, free: 3.18 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003567/0.4231, allocations: 233 kB / 1.374 GB, free: 2.922 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.4231, allocations: 4 kB / 1.374 GB, free: 2.918 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003866/0.4235, allocations: 63.91 kB / 1.374 GB, free: 2.855 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.4235, allocations: 7.984 kB / 1.374 GB, free: 2.848 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.4236, allocations: 12 kB / 1.374 GB, free: 2.836 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.12e-05/0.4236, allocations: 7.938 kB / 1.374 GB, free: 2.828 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4236, allocations: 0 / 1.374 GB, free: 2.828 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.4247, allocations: 0.59 MB / 1.374 GB, free: 2.219 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.805e-05/0.4248, allocations: 27.75 kB / 1.374 GB, free: 2.191 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.859e-05/0.4248, allocations: 15.98 kB / 1.374 GB, free: 2.176 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.4251, allocations: 31.91 kB / 1.374 GB, free: 2.145 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.4252, allocations: 59.91 kB / 1.375 GB, free: 2.086 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.4253, allocations: 15.98 kB / 1.375 GB, free: 2.07 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001147/0.4254, allocations: 125.2 kB / 1.375 GB, free: 1.949 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4254, allocations: 0 / 1.375 GB, free: 1.949 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003471/0.4257, allocations: 84 kB / 1.375 GB, free: 1.867 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.0001743/0.4259, allocations: 119.2 kB / 1.375 GB, free: 1.742 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007714/0.4267, allocations: 360.2 kB / 1.375 GB, free: 1.391 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4267, allocations: 0 / 1.375 GB, free: 1.391 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0004202/0.4271, allocations: 192.4 kB / 1.375 GB, free: 1.203 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.4274, allocations: 39.97 kB / 1.375 GB, free: 1.164 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.4287, allocations: 0.6109 MB / 1.376 GB, free: 0.5195 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001588/0.4288, allocations: 164.1 kB / 1.376 GB, free: 348 kB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001682/0.429, allocations: 34.97 kB / 1.376 GB, free: 308 kB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.4291, allocations: 35.44 kB / 1.376 GB, free: 272 kB / 1.061 GB Notification: Performance of SimCode: time 3.41e-07/0.4291, allocations: 0 / 1.376 GB, free: 272 kB / 1.061 GB Notification: Performance of Templates: time 0.009161/0.4383, allocations: 4.236 MB / 1.38 GB, free: 12.1 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.34392113238573]