Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movingMean_1.y|movingMean_2.y|movingMean_3.y|movingMean_4.y|sinInp50sDel.y|movingMean_6.y|movingMean_7.y|sinInp100sDel.y|movingMean_8.y|movingMean_9.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sinInpNoDel.y|movingMean_1.y|movingMean_2.y|movingMean_3.y|movingMean_4.y|sinInp50sDel.y|movingMean_6.y|movingMean_7.y|sinInp100sDel.y|movingMean_8.y|movingMean_9.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.465/1.465, allocations: 249.3 MB / 261.8 MB, free: 5.824 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 170.1 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.2 MB / 0.572 GB, free: 10.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008479/0.0008479, allocations: 88.09 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.492e-05/3.493e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2053, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7287/0.9341, allocations: 132.4 MB / 1.021 GB, free: 2.332 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.9344, allocations: 78.38 kB / 1.021 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02349/0.9579, allocations: 8.741 MB / 1.03 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.013e-06/0.958, allocations: 0 / 1.03 GB, free: 11.01 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.958, allocations: 8 kB / 1.03 GB, free: 11 MB / 0.6511 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.00106/0.9591, allocations: 0.59 MB / 1.03 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.9592, allocations: 16.03 kB / 1.03 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.111e-05/0.9592, allocations: 30.34 kB / 1.03 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.9594, allocations: 198.9 kB / 1.031 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.9596, allocations: 259.1 kB / 1.031 GB, free: 9.805 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/0.9597, allocations: 34.72 kB / 1.031 GB, free: 9.781 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004289/0.9601, allocations: 244.2 kB / 1.031 GB, free: 9.594 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.9602, allocations: 3.938 kB / 1.031 GB, free: 9.59 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.9602, allocations: 13.98 kB / 1.031 GB, free: 9.582 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.9602, allocations: 11.98 kB / 1.031 GB, free: 9.57 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002753/0.9605, allocations: 140.7 kB / 1.031 GB, free: 9.48 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.9617, allocations: 0.8034 MB / 1.032 GB, free: 8.73 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003954/0.9621, allocations: 190.4 kB / 1.032 GB, free: 8.559 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/0.9623, allocations: 110.1 kB / 1.032 GB, free: 8.48 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.155e-05/0.9624, allocations: 18.91 kB / 1.032 GB, free: 8.465 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000451/0.9628, allocations: 294.2 kB / 1.033 GB, free: 8.215 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=48): time 1.713e-06/0.9628, allocations: 0 / 1.033 GB, free: 8.215 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48): time 0.000622/0.9635, allocations: 333.4 kB / 1.033 GB, free: 7.953 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.831e-05/0.9636, allocations: 118.1 kB / 1.033 GB, free: 7.816 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.9637, allocations: 151.7 kB / 1.033 GB, free: 7.676 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.263e-05/0.9638, allocations: 43.69 kB / 1.033 GB, free: 7.637 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.37e-05/0.9639, allocations: 118.4 kB / 1.033 GB, free: 7.531 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.964, allocations: 157 kB / 1.033 GB, free: 7.398 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.176e-05/0.964, allocations: 10.94 kB / 1.033 GB, free: 7.398 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.9642, allocations: 348.4 kB / 1.034 GB, free: 7.062 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.9644, allocations: 127.8 kB / 1.034 GB, free: 6.984 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.9647, allocations: 236.3 kB / 1.034 GB, free: 6.773 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.9649, allocations: 141.5 kB / 1.034 GB, free: 6.676 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.9649, allocations: 0 / 1.034 GB, free: 6.676 MB / 0.6511 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0006444/0.9656, allocations: 449.6 kB / 1.035 GB, free: 6.336 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.9656, allocations: 4 kB / 1.035 GB, free: 6.332 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.9656, allocations: 4 kB / 1.035 GB, free: 6.328 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.9657, allocations: 4 kB / 1.035 GB, free: 6.324 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003817/0.9661, allocations: 107.6 kB / 1.035 GB, free: 6.223 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.9661, allocations: 7.938 kB / 1.035 GB, free: 6.215 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.9664, allocations: 65.97 kB / 1.035 GB, free: 6.16 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.9664, allocations: 23.25 kB / 1.035 GB, free: 6.141 MB / 0.6511 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 ($whenCondition5,$PRE.movingMean_1.mode,movingMean_1.mode,$whenCondition6,$PRE.movingMean_2.mode,movingMean_2.mode,$whenCondition7,$PRE.movingMean_3.mode,movingMean_3.mode,$whenCondition8,$PRE.movingMean_4.mode,movingMean_4.mode,$whenCondition9,$PRE.movingMean_5.mode,movingMean_5.mode,$whenCondition3,$PRE.movingMean_6.mode,movingMean_6.mode,$whenCondition4,$PRE.movingMean_7.mode,movingMean_7.mode,$whenCondition1,$PRE.movingMean_8.mode,movingMean_8.mode,$whenCondition2,$PRE.movingMean_9.mode,movingMean_9.mode) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.9666, allocations: 147.2 kB / 1.035 GB, free: 6.012 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.9666, allocations: 31.69 kB / 1.035 GB, free: 5.98 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.742e-05/0.9667, allocations: 26.72 kB / 1.035 GB, free: 5.965 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.9667, allocations: 8 kB / 1.035 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.9667, allocations: 0 / 1.035 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.9668, allocations: 3.984 kB / 1.035 GB, free: 5.953 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003473/0.9671, allocations: 359.2 kB / 1.035 GB, free: 5.613 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.9671, allocations: 3.938 kB / 1.035 GB, free: 5.609 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003831/0.9675, allocations: 79.89 kB / 1.036 GB, free: 5.531 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.9675, allocations: 4 kB / 1.036 GB, free: 5.527 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.9676, allocations: 13.92 kB / 1.036 GB, free: 5.52 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.9676, allocations: 0 / 1.036 GB, free: 5.52 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.9676, allocations: 4 kB / 1.036 GB, free: 5.516 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008452/0.9684, allocations: 0.564 MB / 1.036 GB, free: 5.055 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.578e-05/0.9685, allocations: 108.7 kB / 1.036 GB, free: 4.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.9686, allocations: 10.92 kB / 1.036 GB, free: 4.926 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.9688, allocations: 47.47 kB / 1.036 GB, free: 4.887 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.9689, allocations: 34.52 kB / 1.036 GB, free: 4.859 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.969, allocations: 27.31 kB / 1.036 GB, free: 4.836 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.83e-05/0.9691, allocations: 125.2 kB / 1.036 GB, free: 4.727 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9691, allocations: 0 / 1.036 GB, free: 4.727 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003141/0.9694, allocations: 86.98 kB / 1.037 GB, free: 4.656 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movingMean_1.mu,movingMean_2.mu,movingMean_3.mu,movingMean_4.mu,movingMean_5.mu,movingMean_6.mu,movingMean_7.mu,movingMean_8.mu,movingMean_9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movingMean_1.mode,movingMean_2.mode,movingMean_3.mode,movingMean_4.mode,movingMean_5.mode,$whenCondition4,$whenCondition3,movingMean_6.mode,movingMean_7.mode,$whenCondition2,$whenCondition1,movingMean_8.mode,movingMean_9.mode) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000201/0.9696, allocations: 118.2 kB / 1.037 GB, free: 4.539 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005565/0.9702, allocations: 363 kB / 1.037 GB, free: 4.281 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.9702, allocations: 0 / 1.037 GB, free: 4.281 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.9704, allocations: 164 kB / 1.037 GB, free: 4.164 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.9707, allocations: 29.23 kB / 1.037 GB, free: 4.145 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009825/0.9717, allocations: 0.5008 MB / 1.038 GB, free: 3.68 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.9721, allocations: 0.7764 MB / 1.038 GB, free: 2.879 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001593/0.9722, allocations: 35.16 kB / 1.038 GB, free: 2.844 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.9724, allocations: 34.61 kB / 1.039 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of SimCode: time 5.21e-07/0.9724, allocations: 0 / 1.039 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of Templates: time 0.006414/0.9788, allocations: 3.043 MB / 1.041 GB, free: 15.81 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches