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.001074/0.001074, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001264/0.001264, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.493/2.493, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 63.91 kB / 1.055 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7306/0.7318, allocations: 157.4 MB / 1.208 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002268/0.7341, allocations: 1.107 MB / 1.21 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.7356, allocations: 1.1 MB / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.7357, allocations: 0 / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.816e-05/0.7358, allocations: 23.73 kB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.7359, allocations: 47.52 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004654/0.7364, allocations: 139.7 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000353/0.7368, allocations: 335.1 kB / 1.211 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.7369, allocations: 48.38 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.7372, allocations: 143.5 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.7374, allocations: 143.5 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.774e-05/0.7374, allocations: 28 kB / 1.212 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.304e-05/0.7375, allocations: 32 kB / 1.212 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.7376, allocations: 79.73 kB / 1.212 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.7377, allocations: 139.3 kB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003177/0.738, allocations: 308.8 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.738, allocations: 0 / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.884e-06/0.738, allocations: 0 / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.275e-05/0.7381, allocations: 0 / 1.212 GB, free: 10.08 MB / 0.9356 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.001278/0.7393, allocations: 0.6237 MB / 1.213 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.7394, allocations: 8.031 kB / 1.213 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.196e-05/0.7395, allocations: 32.66 kB / 1.213 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.7396, allocations: 196.8 kB / 1.213 GB, free: 9.129 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.7398, allocations: 272.3 kB / 1.213 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.7399, allocations: 24.38 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/0.7404, allocations: 262.3 kB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.7404, allocations: 7.844 kB / 1.213 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.7404, allocations: 11.94 kB / 1.213 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.7404, allocations: 4 kB / 1.213 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.7409, allocations: 183.8 kB / 1.214 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.742, allocations: 0.7814 MB / 1.214 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004549/0.7424, allocations: 203.7 kB / 1.215 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.7427, allocations: 130.5 kB / 1.215 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.7427, allocations: 16 kB / 1.215 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005214/0.7433, allocations: 299.7 kB / 1.215 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 1.984e-06/0.7433, allocations: 0 / 1.215 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.001016/0.7443, allocations: 494.1 kB / 1.215 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.826e-05/0.7444, allocations: 122.8 kB / 1.216 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002257/0.7446, allocations: 179.3 kB / 1.216 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.371e-05/0.7447, allocations: 41.7 kB / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.608e-05/0.7447, allocations: 117.3 kB / 1.216 GB, free: 5.793 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.7449, allocations: 146 kB / 1.216 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.745, allocations: 110.3 kB / 1.216 GB, free: 5.535 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.7451, allocations: 342.8 kB / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002958/0.7454, allocations: 145.2 kB / 1.217 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003386/0.7458, allocations: 248.8 kB / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006051/0.7464, allocations: 398 kB / 1.217 GB, free: 4.344 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.7464, allocations: 4 kB / 1.217 GB, free: 4.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008496/0.7473, allocations: 485.2 kB / 1.218 GB, free: 3.859 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.7473, allocations: 11.94 kB / 1.218 GB, free: 3.848 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.7473, allocations: 3.938 kB / 1.218 GB, free: 3.844 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.7473, allocations: 8 kB / 1.218 GB, free: 3.836 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.7477, allocations: 95.91 kB / 1.218 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.7477, allocations: 8 kB / 1.218 GB, free: 3.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.748, allocations: 63.56 kB / 1.218 GB, free: 3.672 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/0.748, allocations: 23.98 kB / 1.218 GB, free: 3.648 MB / 0.9356 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.0001571/0.7482, allocations: 163 kB / 1.218 GB, free: 3.484 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.7483, allocations: 27.66 kB / 1.218 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.609e-05/0.7483, allocations: 29.88 kB / 1.218 GB, free: 3.43 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.7483, allocations: 12 kB / 1.218 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.7484, allocations: 0 / 1.218 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.7484, allocations: 3.984 kB / 1.218 GB, free: 3.414 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003923/0.7488, allocations: 353.2 kB / 1.218 GB, free: 3.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.7488, allocations: 4 kB / 1.218 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003889/0.7492, allocations: 71.91 kB / 1.219 GB, free: 2.945 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.7492, allocations: 11.92 kB / 1.219 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.377e-05/0.7492, allocations: 12 kB / 1.219 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.7492, allocations: 4 kB / 1.219 GB, free: 2.918 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.7492, allocations: 0 / 1.219 GB, free: 2.918 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.7503, allocations: 0.5745 MB / 1.219 GB, free: 2.32 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-05/0.7504, allocations: 100.9 kB / 1.219 GB, free: 2.203 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.026e-05/0.7504, allocations: 27.8 kB / 1.219 GB, free: 2.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.7507, allocations: 31.97 kB / 1.219 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.897e-05/0.7508, allocations: 39.95 kB / 1.219 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.7508, allocations: 15.98 kB / 1.219 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.683e-05/0.7509, allocations: 125.2 kB / 1.219 GB, free: 1.969 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7509, allocations: 0 / 1.219 GB, free: 1.969 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003171/0.7512, allocations: 87.83 kB / 1.22 GB, free: 1.883 MB / 0.9356 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.0001506/0.7514, allocations: 120.2 kB / 1.22 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007215/0.7521, allocations: 382.6 kB / 1.22 GB, free: 1.383 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.7521, allocations: 3.938 kB / 1.22 GB, free: 1.379 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003506/0.7525, allocations: 184.9 kB / 1.22 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.7528, allocations: 45.62 kB / 1.22 GB, free: 1.156 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.7539, allocations: 0.6355 MB / 1.221 GB, free: 492 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.7542, allocations: 0.7686 MB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.7544, allocations: 35.44 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of SimCode: time 2.21e-07/0.7544, allocations: 0 / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of Templates: time 0.006155/0.7605, allocations: 3.993 MB / 1.226 GB, free: 11.68 MB / 0.9512 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/jenkins1/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