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.008981/0.008981, allocations: 99.64 kB / 15.73 MB, free: 5.547 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.001837/0.001837, allocations: 193.5 kB / 16.67 MB, free: 5.492 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.621/1.621, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.834/2.834, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.91 kB / 1.054 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.4069, allocations: 157.4 MB / 1.208 GB, free: 9.59 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002259/0.4092, allocations: 1.099 MB / 1.209 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.4106, allocations: 1.104 MB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.888e-05/0.4107, allocations: 4 kB / 1.21 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.874e-05/0.4108, allocations: 15.75 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.4109, allocations: 47.45 kB / 1.21 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004608/0.4114, allocations: 147.7 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003363/0.4117, allocations: 331.1 kB / 1.21 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.4119, allocations: 56.22 kB / 1.211 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.4121, allocations: 131.6 kB / 1.211 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.4123, allocations: 151.3 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.795e-05/0.4123, allocations: 36 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.4124, allocations: 28 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.51e-05/0.4124, allocations: 79.78 kB / 1.211 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.4126, allocations: 131.4 kB / 1.211 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003071/0.4129, allocations: 318.9 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4129, allocations: 0 / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4129, allocations: 0 / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.4129, allocations: 0 / 1.211 GB, free: 5.918 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.001257/0.4142, allocations: 0.6314 MB / 1.212 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.4142, allocations: 8.625 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.171e-05/0.4143, allocations: 28.66 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.4145, allocations: 200.8 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/0.4147, allocations: 260.3 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.23e-05/0.4148, allocations: 28.38 kB / 1.212 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000496/0.4153, allocations: 270.2 kB / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.4154, allocations: 7.844 kB / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.4154, allocations: 8 kB / 1.213 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.4154, allocations: 4 kB / 1.213 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004117/0.4158, allocations: 179.9 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.417, allocations: 0.7814 MB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004772/0.4174, allocations: 203.7 kB / 1.214 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002532/0.4177, allocations: 130.5 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.865e-05/0.4178, allocations: 19.97 kB / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005729/0.4183, allocations: 299.7 kB / 1.214 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=48): time 2.415e-06/0.4184, allocations: 0 / 1.214 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of matching and sorting (n=48): time 0.001051/0.4194, allocations: 490 kB / 1.215 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.796e-05/0.4195, allocations: 118.8 kB / 1.215 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.4197, allocations: 171.5 kB / 1.215 GB, free: 1.809 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/0.4197, allocations: 41.7 kB / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.702e-05/0.4198, allocations: 125.2 kB / 1.215 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.4199, allocations: 142.6 kB / 1.215 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.4201, allocations: 114.3 kB / 1.215 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4203, allocations: 338.8 kB / 1.216 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.4205, allocations: 149.2 kB / 1.216 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003461/0.4209, allocations: 260.7 kB / 1.216 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006004/0.4215, allocations: 398 kB / 1.217 GB, free: 180 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4215, allocations: 0 / 1.217 GB, free: 180 kB / 0.9669 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000805/0.4223, allocations: 485.4 kB / 1.217 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.4224, allocations: 7.938 kB / 1.217 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4224, allocations: 4 kB / 1.217 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.4224, allocations: 4.094 kB / 1.217 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.4228, allocations: 99.83 kB / 1.217 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.641e-05/0.4228, allocations: 12.12 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.4231, allocations: 67.55 kB / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.4231, allocations: 20 kB / 1.217 GB, free: 15.48 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.000166/0.4233, allocations: 159.4 kB / 1.217 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.613e-05/0.4234, allocations: 27.66 kB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.812e-05/0.4234, allocations: 33.86 kB / 1.217 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.4234, allocations: 8 kB / 1.217 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.4235, allocations: 4 kB / 1.217 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.4235, allocations: 3.984 kB / 1.217 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003641/0.4238, allocations: 349.2 kB / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4239, allocations: 0 / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003904/0.4242, allocations: 71.89 kB / 1.218 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.4243, allocations: 7.938 kB / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.856e-05/0.4243, allocations: 20.05 kB / 1.218 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.4243, allocations: 3.938 kB / 1.218 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4243, allocations: 4 kB / 1.218 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.4254, allocations: 0.5823 MB / 1.218 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.716e-05/0.4254, allocations: 100.8 kB / 1.219 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/0.4255, allocations: 15.92 kB / 1.219 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.4257, allocations: 35.97 kB / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.4259, allocations: 51.97 kB / 1.219 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.405e-05/0.4259, allocations: 19.98 kB / 1.219 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001017/0.426, allocations: 121.2 kB / 1.219 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.51e-07/0.426, allocations: 0 / 1.219 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003242/0.4264, allocations: 83.91 kB / 1.219 GB, free: 13.7 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.0002316/0.4266, allocations: 124 kB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007513/0.4273, allocations: 387.4 kB / 1.219 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4274, allocations: 3.938 kB / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003571/0.4277, allocations: 192.4 kB / 1.22 GB, free: 13 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/0.4281, allocations: 52.03 kB / 1.22 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.4292, allocations: 0.601 MB / 1.22 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.4296, allocations: 0.7647 MB / 1.221 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001381/0.4297, allocations: 38.97 kB / 1.221 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.4298, allocations: 39.42 kB / 1.221 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of SimCode: time 7.52e-07/0.4298, allocations: 0 / 1.221 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of Templates: time 0.007799/0.4376, allocations: 4.117 MB / 1.225 GB, free: 7.355 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