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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.006616/0.006616, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001228/0.001228, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.692/2.692, allocations: 472.6 MB / 0.7453 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001286, allocations: 63.91 kB / 1.07 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.106/1.107, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002347/1.11, allocations: 1.109 MB / 1.227 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00142/1.111, allocations: 1.108 MB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.696e-05/1.111, allocations: 3.938 kB / 1.228 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 5.36e-05/1.111, allocations: 19.75 kB / 1.228 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001184/1.111, allocations: 51.5 kB / 1.228 GB, free: 11.18 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004589/1.112, allocations: 143.8 kB / 1.228 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004277/1.112, allocations: 323.1 kB / 1.228 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/1.113, allocations: 52.23 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/1.113, allocations: 127.6 kB / 1.229 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/1.113, allocations: 155.4 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/1.113, allocations: 35.94 kB / 1.229 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.665e-05/1.113, allocations: 32 kB / 1.229 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.391e-05/1.113, allocations: 75.78 kB / 1.229 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001325/1.113, allocations: 131.4 kB / 1.229 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004515/1.114, allocations: 319.3 kB / 1.229 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/1.114, allocations: 0 / 1.229 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.643e-06/1.114, allocations: 0 / 1.229 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.254e-06/1.114, allocations: 0 / 1.229 GB, free: 9.812 MB / 0.9512 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.001316/1.115, allocations: 0.6351 MB / 1.23 GB, free: 9.125 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/1.115, allocations: 8.031 kB / 1.23 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.526e-05/1.115, allocations: 28.8 kB / 1.23 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/1.115, allocations: 213.3 kB / 1.23 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002208/1.116, allocations: 264.3 kB / 1.23 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.832e-05/1.116, allocations: 28.38 kB / 1.23 GB, free: 8.5 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004736/1.116, allocations: 266.2 kB / 1.231 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/1.116, allocations: 3.938 kB / 1.231 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/1.116, allocations: 12 kB / 1.231 GB, free: 8.207 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/1.116, allocations: 4 kB / 1.231 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/1.117, allocations: 175.9 kB / 1.231 GB, free: 8.031 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/1.118, allocations: 0.7816 MB / 1.232 GB, free: 7.191 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/1.118, allocations: 207.7 kB / 1.232 GB, free: 6.961 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/1.119, allocations: 126.5 kB / 1.232 GB, free: 6.828 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/1.119, allocations: 19.97 kB / 1.232 GB, free: 6.809 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005207/1.119, allocations: 299.7 kB / 1.232 GB, free: 6.496 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=48): time 1.674e-06/1.119, allocations: 0 / 1.232 GB, free: 6.496 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48): time 0.001111/1.12, allocations: 0.4905 MB / 1.233 GB, free: 6.004 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.292e-05/1.12, allocations: 114.8 kB / 1.233 GB, free: 5.867 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/1.12, allocations: 183.5 kB / 1.233 GB, free: 5.676 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/1.121, allocations: 37.7 kB / 1.233 GB, free: 5.633 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.941e-05/1.121, allocations: 117.3 kB / 1.233 GB, free: 5.516 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/1.121, allocations: 150.8 kB / 1.233 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002242/1.121, allocations: 110.3 kB / 1.233 GB, free: 5.254 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001668/1.121, allocations: 342.8 kB / 1.234 GB, free: 4.91 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002916/1.121, allocations: 145.2 kB / 1.234 GB, free: 4.77 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/1.122, allocations: 256.7 kB / 1.234 GB, free: 4.48 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006308/1.122, allocations: 402 kB / 1.234 GB, free: 4.051 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/1.122, allocations: 0 / 1.234 GB, free: 4.051 MB / 0.9512 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009379/1.123, allocations: 497.5 kB / 1.235 GB, free: 3.559 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/1.123, allocations: 7.938 kB / 1.235 GB, free: 3.551 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/1.123, allocations: 4 kB / 1.235 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/1.123, allocations: 4 kB / 1.235 GB, free: 3.543 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/1.124, allocations: 95.83 kB / 1.235 GB, free: 3.449 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.352e-05/1.124, allocations: 7.984 kB / 1.235 GB, free: 3.441 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/1.124, allocations: 63.69 kB / 1.235 GB, free: 3.379 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/1.124, allocations: 20 kB / 1.235 GB, free: 3.359 MB / 0.9512 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.0001669/1.124, allocations: 156 kB / 1.235 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/1.124, allocations: 35.73 kB / 1.235 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.128e-05/1.124, allocations: 29.88 kB / 1.235 GB, free: 3.133 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/1.124, allocations: 12 kB / 1.235 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/1.124, allocations: 0 / 1.235 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/1.124, allocations: 3.984 kB / 1.235 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004961/1.125, allocations: 349.3 kB / 1.236 GB, free: 2.727 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.726e-06/1.125, allocations: 3.984 kB / 1.236 GB, free: 2.723 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003841/1.125, allocations: 67.91 kB / 1.236 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/1.125, allocations: 7.938 kB / 1.236 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/1.125, allocations: 15.98 kB / 1.236 GB, free: 2.633 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/1.125, allocations: 7.938 kB / 1.236 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/1.125, allocations: 8 kB / 1.236 GB, free: 2.617 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/1.127, allocations: 0.5825 MB / 1.236 GB, free: 2.004 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.846e-05/1.127, allocations: 104.9 kB / 1.236 GB, free: 1.883 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.106e-05/1.127, allocations: 15.92 kB / 1.236 GB, free: 1.867 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/1.127, allocations: 35.97 kB / 1.237 GB, free: 1.832 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/1.127, allocations: 55.97 kB / 1.237 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.034e-05/1.127, allocations: 15.98 kB / 1.237 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.214e-05/1.127, allocations: 129.2 kB / 1.237 GB, free: 1.637 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/1.127, allocations: 0 / 1.237 GB, free: 1.637 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003133/1.127, allocations: 79.98 kB / 1.237 GB, free: 1.559 MB / 0.9512 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.0002199/1.128, allocations: 126.4 kB / 1.237 GB, free: 1.43 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009414/1.129, allocations: 382.9 kB / 1.237 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/1.129, allocations: 3.938 kB / 1.237 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003738/1.129, allocations: 187.7 kB / 1.237 GB, free: 0.8711 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/1.129, allocations: 55.11 kB / 1.238 GB, free: 0.8203 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/1.131, allocations: 0.6269 MB / 1.238 GB, free: 172 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/1.131, allocations: 0.7647 MB / 1.239 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001454/1.131, allocations: 38.97 kB / 1.239 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/1.131, allocations: 39.42 kB / 1.239 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/1.131, allocations: 0 / 1.239 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of Templates: time 0.008075/1.139, allocations: 3.931 MB / 1.243 GB, free: 11.38 MB / 0.9669 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