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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007351/0.007351, allocations: 99.03 kB / 15.73 MB, free: 6.043 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.001423/0.001424, allocations: 195.3 kB / 16.68 MB, free: 5.973 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.625/1.625, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.839/2.839, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.91 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4916/0.4928, allocations: 157.4 MB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.003395/0.4963, allocations: 1.109 MB / 1.209 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002148/0.4985, allocations: 1.108 MB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.4987, allocations: 0 / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 9.347e-05/0.4989, allocations: 23.69 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.4991, allocations: 39.58 kB / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006659/0.4998, allocations: 147.8 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004749/0.5003, allocations: 327.1 kB / 1.21 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.5005, allocations: 52.23 kB / 1.211 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.5008, allocations: 131.6 kB / 1.211 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002811/0.5011, allocations: 159.3 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.205e-05/0.5012, allocations: 32 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.469e-05/0.5012, allocations: 32 kB / 1.211 GB, free: 6.477 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.931e-05/0.5013, allocations: 75.78 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.5015, allocations: 135.4 kB / 1.211 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000383/0.5019, allocations: 311 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.5019, allocations: 0 / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.754e-06/0.5019, allocations: 0 / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.464e-05/0.5019, allocations: 0 / 1.211 GB, free: 5.965 MB / 0.9669 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.001467/0.5034, allocations: 0.6314 MB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.5034, allocations: 8.625 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.5036, allocations: 28.66 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.5038, allocations: 200.8 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002474/0.504, allocations: 272.3 kB / 1.212 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.5041, allocations: 32.3 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/0.5047, allocations: 258.3 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.5047, allocations: 11.84 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.5047, allocations: 11.94 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.5047, allocations: 4 kB / 1.213 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004805/0.5052, allocations: 175.9 kB / 1.213 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.5067, allocations: 0.7775 MB / 1.214 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005881/0.5073, allocations: 207.7 kB / 1.214 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002648/0.5076, allocations: 132.9 kB / 1.214 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.606e-05/0.5076, allocations: 15.98 kB / 1.214 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006309/0.5083, allocations: 303.7 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=48): time 2.284e-06/0.5083, allocations: 0 / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of matching and sorting (n=48): time 0.00106/0.5093, allocations: 490.5 kB / 1.215 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.5094, allocations: 110.8 kB / 1.215 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.5096, allocations: 179.5 kB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.5097, allocations: 41.69 kB / 1.215 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.901e-05/0.5097, allocations: 117.2 kB / 1.215 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.5099, allocations: 150.5 kB / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.5101, allocations: 110.3 kB / 1.215 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.5102, allocations: 342.8 kB / 1.216 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.5105, allocations: 141.2 kB / 1.216 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003596/0.5109, allocations: 264.9 kB / 1.216 GB, free: 0.6445 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.5115, allocations: 386.1 kB / 1.217 GB, free: 236 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5115, allocations: 4 kB / 1.217 GB, free: 232 kB / 0.9669 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008966/0.5124, allocations: 493 kB / 1.217 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.5125, allocations: 7.938 kB / 1.217 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.5125, allocations: 8.062 kB / 1.217 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.5125, allocations: 4 kB / 1.217 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003801/0.5129, allocations: 99.77 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.031e-05/0.5129, allocations: 7.984 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003283/0.5133, allocations: 63.56 kB / 1.217 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.102e-05/0.5133, allocations: 24 kB / 1.217 GB, free: 15.53 MB / 0.9825 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.0002228/0.5136, allocations: 155.5 kB / 1.217 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.71e-05/0.5136, allocations: 35.62 kB / 1.217 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.522e-05/0.5137, allocations: 29.88 kB / 1.217 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.465e-06/0.5137, allocations: 8 kB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.5138, allocations: 4 kB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5138, allocations: 3.984 kB / 1.217 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004357/0.5142, allocations: 349.2 kB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.5142, allocations: 0 / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004003/0.5146, allocations: 75.89 kB / 1.218 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.5147, allocations: 7.938 kB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.5147, allocations: 11.98 kB / 1.218 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.167e-06/0.5147, allocations: 4 kB / 1.218 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5147, allocations: 3.938 kB / 1.218 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.5159, allocations: 0.5868 MB / 1.218 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.958e-05/0.516, allocations: 100.8 kB / 1.219 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.743e-05/0.5161, allocations: 19.92 kB / 1.219 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.5163, allocations: 31.97 kB / 1.219 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.5165, allocations: 55.94 kB / 1.219 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.5165, allocations: 11.98 kB / 1.219 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001242/0.5166, allocations: 125.2 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.8e-07/0.5167, allocations: 0 / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003879/0.517, allocations: 83.98 kB / 1.219 GB, free: 13.74 MB / 0.9825 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.0002915/0.5173, allocations: 126.1 kB / 1.219 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008462/0.5182, allocations: 388.1 kB / 1.219 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5182, allocations: 0 / 1.219 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003873/0.5186, allocations: 192.7 kB / 1.22 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.519, allocations: 59.97 kB / 1.22 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.5203, allocations: 0.5947 MB / 1.22 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.5206, allocations: 0.7725 MB / 1.221 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001554/0.5208, allocations: 34.97 kB / 1.221 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.5209, allocations: 39.42 kB / 1.221 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.5209, allocations: 0 / 1.221 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of Templates: time 0.008936/0.5299, allocations: 3.944 MB / 1.225 GB, free: 7.57 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) 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) Reference file matches