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.001427/0.001427, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.01259/0.01259, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.602/1.602, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.964/2.964, allocations: 462.7 MB / 0.7364 GB, free: 268 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003822, allocations: 14.95 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4226, allocations: 159.6 MB / 1.059 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002479/0.4252, allocations: 0.8115 MB / 1.059 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002949/0.4282, allocations: 1.115 MB / 1.061 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001965/0.4284, allocations: 0 / 1.061 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.978e-05/0.4285, allocations: 11.86 kB / 1.061 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003361/0.4289, allocations: 35.7 kB / 1.061 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008877/0.4298, allocations: 135.7 kB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006183/0.4304, allocations: 307.2 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.4307, allocations: 48.25 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003459/0.4311, allocations: 111.6 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.4314, allocations: 139.3 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.787e-05/0.4315, allocations: 16 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.158e-05/0.4316, allocations: 12 kB / 1.061 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.4317, allocations: 55.8 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002681/0.432, allocations: 153 kB / 1.062 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004919/0.4325, allocations: 283.2 kB / 1.062 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.056e-05/0.4326, allocations: 11.98 kB / 1.062 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.725e-06/0.4326, allocations: 0 / 1.062 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.218e-05/0.4326, allocations: 0 / 1.062 GB, free: 2.211 MB / 0.8106 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.002219/0.4348, allocations: 0.6093 MB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.296e-05/0.4349, allocations: 12.03 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.4351, allocations: 32.56 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.4355, allocations: 192.9 kB / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004485/0.4359, allocations: 264.3 kB / 1.063 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.4361, allocations: 32.36 kB / 1.063 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.4372, allocations: 270.3 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.348e-05/0.4372, allocations: 3.938 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.286e-05/0.4373, allocations: 8 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.4373, allocations: 4 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009247/0.4383, allocations: 193.4 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.4404, allocations: 0.7735 MB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009068/0.4414, allocations: 211.7 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005078/0.4419, allocations: 142.5 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.058e-05/0.442, allocations: 11.98 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008715/0.4429, allocations: 319.6 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 5.26e-06/0.4429, allocations: 3.984 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.001771/0.4447, allocations: 0.4984 MB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.4448, allocations: 118.8 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.4451, allocations: 179.3 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.983e-05/0.4451, allocations: 41.64 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.4453, allocations: 121.3 kB / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001876/0.4455, allocations: 146 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.4456, allocations: 61.69 kB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001831/0.4458, allocations: 338.8 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004739/0.4463, allocations: 153.2 kB / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005665/0.4469, allocations: 268.8 kB / 1.067 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.448, allocations: 410 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/0.448, allocations: 4 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001372/0.4494, allocations: 0.4892 MB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.024e-05/0.4494, allocations: 9.344 kB / 1.068 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.4494, allocations: 4 kB / 1.068 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.96e-05/0.4495, allocations: 8 kB / 1.068 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005452/0.45, allocations: 99.81 kB / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.892e-05/0.45, allocations: 4 kB / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.4505, allocations: 71.66 kB / 1.068 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.014e-05/0.4505, allocations: 20 kB / 1.068 GB, free: 11.74 MB / 0.8262 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.0002656/0.4508, allocations: 167.4 kB / 1.068 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.282e-05/0.4509, allocations: 35.55 kB / 1.068 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.973e-05/0.451, allocations: 29.88 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.451, allocations: 4 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/0.451, allocations: 0 / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.451, allocations: 11.92 kB / 1.068 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006344/0.4517, allocations: 349.2 kB / 1.068 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.4517, allocations: 0 / 1.068 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005804/0.4523, allocations: 79.84 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/0.4523, allocations: 7.938 kB / 1.068 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.772e-05/0.4524, allocations: 15.98 kB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.333e-06/0.4524, allocations: 4 kB / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4524, allocations: 0 / 1.068 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.454, allocations: 0.5954 MB / 1.069 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.629e-05/0.4541, allocations: 100.8 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.4541, allocations: 19.92 kB / 1.069 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.4544, allocations: 44.06 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.4546, allocations: 59.86 kB / 1.069 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/0.4546, allocations: 19.98 kB / 1.069 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001275/0.4547, allocations: 125.2 kB / 1.069 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4547, allocations: 0 / 1.069 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003456/0.4551, allocations: 80 kB / 1.069 GB, free: 9.906 MB / 0.8262 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.0002433/0.4553, allocations: 124.2 kB / 1.07 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008397/0.4562, allocations: 404.9 kB / 1.07 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.4562, allocations: 3.938 kB / 1.07 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004178/0.4566, allocations: 211.7 kB / 1.07 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.457, allocations: 40.36 kB / 1.07 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.4584, allocations: 0.7361 MB / 1.071 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.4588, allocations: 0.7647 MB / 1.072 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001795/0.459, allocations: 38.95 kB / 1.072 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.4591, allocations: 35.44 kB / 1.072 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of SimCode: time 1.021e-06/0.4591, allocations: 0 / 1.072 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of Templates: time 0.008613/0.4678, allocations: 3.37 MB / 1.075 GB, free: 4.164 MB / 0.8262 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