Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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_nonZeroStart,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_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,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_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001766/0.001766, allocations: 191.7 kB / 16.14 MB, free: 6.711 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.447/1.447, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.869/2.869, allocations: 472.6 MB / 0.7447 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 70.8 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4339/0.4359, allocations: 159.9 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003747/0.4397, allocations: 2.028 MB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001103/0.4408, allocations: 0.6466 MB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.103e-05/0.4409, allocations: 0 / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.088e-05/0.441, allocations: 11.86 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.4411, allocations: 31.7 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000448/0.4416, allocations: 143.7 kB / 1.07 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003033/0.4419, allocations: 307.1 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.4421, allocations: 48.36 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.4423, allocations: 111.7 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.4425, allocations: 155.3 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.153e-05/0.4426, allocations: 20 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.052e-05/0.4426, allocations: 16 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.4427, allocations: 59.8 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.4428, allocations: 123.4 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002876/0.4431, allocations: 287.3 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.4431, allocations: 0 / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.253e-06/0.4431, allocations: 0 / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.533e-06/0.4431, allocations: 0 / 1.071 GB, free: 6.863 MB / 0.8262 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.001321/0.4445, allocations: 0.6352 MB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.4445, allocations: 12.03 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.4446, allocations: 32.66 kB / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.4448, allocations: 196.8 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/0.445, allocations: 264.3 kB / 1.073 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.747e-05/0.445, allocations: 32.31 kB / 1.073 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005141/0.4456, allocations: 265.8 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.4456, allocations: 3.906 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.4457, allocations: 19.98 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.4457, allocations: 4 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004091/0.4461, allocations: 167.9 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.4472, allocations: 0.7931 MB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004912/0.4477, allocations: 206.7 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.4479, allocations: 134.5 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.133e-05/0.448, allocations: 4 kB / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005879/0.4486, allocations: 315.7 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 1.813e-06/0.4486, allocations: 0 / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.00105/0.4496, allocations: 482.8 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/0.4497, allocations: 118.8 kB / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.4499, allocations: 179.5 kB / 1.075 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.45, allocations: 37.7 kB / 1.075 GB, free: 2.691 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.913e-05/0.45, allocations: 113.3 kB / 1.075 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.4502, allocations: 145.9 kB / 1.075 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.4503, allocations: 106.3 kB / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.4505, allocations: 342.8 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002905/0.4508, allocations: 149.2 kB / 1.076 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003763/0.4511, allocations: 252.8 kB / 1.076 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006365/0.4518, allocations: 398 kB / 1.077 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.4518, allocations: 0 / 1.077 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000848/0.4526, allocations: 496.7 kB / 1.077 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.4527, allocations: 8 kB / 1.077 GB, free: 0.6211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.4527, allocations: 4 kB / 1.077 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.4527, allocations: 8.094 kB / 1.077 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004069/0.4531, allocations: 95.81 kB / 1.077 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.4532, allocations: 8 kB / 1.077 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.4535, allocations: 59.55 kB / 1.077 GB, free: 460 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.4535, allocations: 20 kB / 1.077 GB, free: 440 kB / 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.000176/0.4537, allocations: 167.4 kB / 1.077 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.4537, allocations: 27.66 kB / 1.077 GB, free: 236 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.311e-05/0.4538, allocations: 33.88 kB / 1.078 GB, free: 204 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.4538, allocations: 4 kB / 1.078 GB, free: 200 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.4538, allocations: 0 / 1.078 GB, free: 200 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.4539, allocations: 3.984 kB / 1.078 GB, free: 196 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003815/0.4542, allocations: 357.2 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.4543, allocations: 4 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000404/0.4547, allocations: 79.83 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.4547, allocations: 4 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.512e-05/0.4547, allocations: 16 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.4547, allocations: 4 kB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4547, allocations: 0 / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.4559, allocations: 0.5844 MB / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.461e-05/0.456, allocations: 108.7 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.456, allocations: 8 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.4563, allocations: 31.97 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.4564, allocations: 59.95 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.4565, allocations: 15.98 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001101/0.4566, allocations: 133.2 kB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4566, allocations: 0 / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003466/0.4569, allocations: 79.91 kB / 1.079 GB, free: 14.63 MB / 0.8419 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.0002685/0.4572, allocations: 121.3 kB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007836/0.458, allocations: 380.6 kB / 1.079 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.458, allocations: 4 kB / 1.079 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004087/0.4584, allocations: 203.9 kB / 1.08 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.4588, allocations: 44.12 kB / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.4601, allocations: 0.6975 MB / 1.08 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003716/0.4605, allocations: 0.7647 MB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001753/0.4607, allocations: 34.97 kB / 1.081 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.4608, allocations: 35.42 kB / 1.081 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of SimCode: time 6.51e-07/0.4608, allocations: 0 / 1.081 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of Templates: time 0.007213/0.4681, allocations: 3.406 MB / 1.084 GB, free: 8.926 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches