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_nonZeroStart.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_nonZeroStart,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_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart,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_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 178.8 kB / 326.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0009664/0.0009666, allocations: 87.23 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004371/0.0004377, allocations: 11.72 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2512, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1815/0.4327, allocations: 132.5 MB / 1.03 GB, free: 11.24 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.4331, allocations: 71.95 kB / 1.03 GB, free: 11.17 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02428/0.4574, allocations: 8.792 MB / 1.038 GB, free: 2.363 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.044e-06/0.4574, allocations: 0 / 1.038 GB, free: 2.363 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.595e-05/0.4575, allocations: 4 kB / 1.038 GB, free: 2.359 MB / 0.6823 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.001318/0.4588, allocations: 0.6184 MB / 1.039 GB, free: 1.688 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.4588, allocations: 12.03 kB / 1.039 GB, free: 1.676 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.459, allocations: 39.56 kB / 1.039 GB, free: 1.637 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.4592, allocations: 195.6 kB / 1.039 GB, free: 1.402 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/0.4595, allocations: 263.8 kB / 1.039 GB, free: 1.086 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.008e-05/0.4595, allocations: 24 kB / 1.039 GB, free: 1.062 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000528/0.4601, allocations: 277.6 kB / 1.04 GB, free: 0.7812 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.4601, allocations: 0 / 1.04 GB, free: 0.7812 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.4602, allocations: 11.98 kB / 1.04 GB, free: 0.7695 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.4602, allocations: 4 kB / 1.04 GB, free: 0.7656 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004175/0.4606, allocations: 187.8 kB / 1.04 GB, free: 0.582 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.4619, allocations: 0.8012 MB / 1.041 GB, free: 15.71 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004865/0.4624, allocations: 204.3 kB / 1.041 GB, free: 15.49 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.993e-05/0.4625, allocations: 20.48 kB / 1.041 GB, free: 15.47 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005804/0.4631, allocations: 307.5 kB / 1.041 GB, free: 15.14 MB / 0.698 GB Notification: Performance of pre-optimization done (n=48): time 2.444e-06/0.4631, allocations: 0 / 1.041 GB, free: 15.14 MB / 0.698 GB Notification: Performance of matching and sorting (n=48): time 0.001042/0.4642, allocations: 0.4892 MB / 1.042 GB, free: 14.65 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.97e-05/0.4642, allocations: 114.8 kB / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.4644, allocations: 162.5 kB / 1.042 GB, free: 14.35 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/0.4645, allocations: 41.7 kB / 1.042 GB, free: 14.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.244e-05/0.4646, allocations: 121.3 kB / 1.042 GB, free: 14.18 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.4647, allocations: 145.9 kB / 1.042 GB, free: 14.04 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.4647, allocations: 16 kB / 1.042 GB, free: 14.02 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.4649, allocations: 346.8 kB / 1.042 GB, free: 13.67 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003212/0.4652, allocations: 153.2 kB / 1.043 GB, free: 13.52 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003626/0.4656, allocations: 244.8 kB / 1.043 GB, free: 13.25 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.4659, allocations: 179.8 kB / 1.043 GB, free: 13.08 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.466, allocations: 4 kB / 1.043 GB, free: 13.07 MB / 0.698 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008464/0.4668, allocations: 0.4894 MB / 1.043 GB, free: 12.58 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4668, allocations: 6.188 kB / 1.043 GB, free: 12.57 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.4669, allocations: 4 kB / 1.043 GB, free: 12.57 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.4669, allocations: 4 kB / 1.043 GB, free: 12.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003861/0.4673, allocations: 99.83 kB / 1.044 GB, free: 12.47 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.4673, allocations: 7.938 kB / 1.044 GB, free: 12.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.4676, allocations: 75.64 kB / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.4677, allocations: 20 kB / 1.044 GB, free: 12.37 MB / 0.698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001841/0.4679, allocations: 163.9 kB / 1.044 GB, free: 12.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.4679, allocations: 27.72 kB / 1.044 GB, free: 12.17 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.132e-05/0.468, allocations: 33.86 kB / 1.044 GB, free: 12.14 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.468, allocations: 8 kB / 1.044 GB, free: 12.13 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.468, allocations: 0 / 1.044 GB, free: 12.13 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.4681, allocations: 7.984 kB / 1.044 GB, free: 12.12 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003838/0.4685, allocations: 357.1 kB / 1.044 GB, free: 11.73 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4685, allocations: 3.938 kB / 1.044 GB, free: 11.72 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003978/0.4689, allocations: 75.89 kB / 1.044 GB, free: 11.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.4689, allocations: 4 kB / 1.044 GB, free: 11.64 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.4689, allocations: 15.92 kB / 1.044 GB, free: 11.63 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.4689, allocations: 4 kB / 1.044 GB, free: 11.62 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.469, allocations: 4 kB / 1.044 GB, free: 11.62 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.47, allocations: 0.6324 MB / 1.045 GB, free: 10.95 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.336e-05/0.4701, allocations: 100.8 kB / 1.045 GB, free: 10.84 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.608e-05/0.4702, allocations: 11.98 kB / 1.045 GB, free: 10.82 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.4704, allocations: 47.97 kB / 1.045 GB, free: 10.78 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.4705, allocations: 31.95 kB / 1.045 GB, free: 10.75 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.4706, allocations: 19.98 kB / 1.045 GB, free: 10.73 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.121e-05/0.4707, allocations: 124 kB / 1.045 GB, free: 10.61 MB / 0.698 GB Notification: Performance of sort global known variables: time 1e-07/0.4707, allocations: 0 / 1.045 GB, free: 10.61 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003647/0.4711, allocations: 87.98 kB / 1.045 GB, free: 10.52 MB / 0.698 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 () * 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 (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.0002398/0.4713, allocations: 125.6 kB / 1.045 GB, free: 10.39 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007391/0.472, allocations: 396.2 kB / 1.046 GB, free: 10 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4721, allocations: 0 / 1.046 GB, free: 10 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003444/0.4724, allocations: 183.8 kB / 1.046 GB, free: 9.82 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.4727, allocations: 40.16 kB / 1.046 GB, free: 9.781 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.4739, allocations: 0.7027 MB / 1.047 GB, free: 9.051 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.4742, allocations: 0.7686 MB / 1.047 GB, free: 8.258 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001724/0.4744, allocations: 34.97 kB / 1.048 GB, free: 8.223 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.4745, allocations: 35.42 kB / 1.048 GB, free: 8.188 MB / 0.698 GB Notification: Performance of SimCode: time 3.81e-07/0.4745, allocations: 4 kB / 1.048 GB, free: 8.184 MB / 0.698 GB Notification: Performance of Templates: time 0.006965/0.4815, allocations: 3.026 MB / 1.051 GB, free: 5.191 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingMean_nonZeroStart.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingMean_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches