Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|movMea.u|movMea.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|movMea.u|movMea.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.351/1.351, allocations: 251.9 MB / 266.9 MB, free: 10.99 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.001047/0.001047, allocations: 186.2 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.787/1.787, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.001087/0.001087, allocations: 93.52 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000362/0.000362, allocations: 8.031 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2775, allocations: 106.3 MB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1897/0.4672, allocations: 132.1 MB / 1.029 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.4676, allocations: 79.95 kB / 1.029 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00474/0.4724, allocations: 1.652 MB / 1.031 GB, free: 9.871 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4724, allocations: 0 / 1.031 GB, free: 9.871 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.4724, allocations: 0 / 1.031 GB, free: 9.871 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005009/0.4729, allocations: 400.8 kB / 1.031 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.473, allocations: 12.03 kB / 1.031 GB, free: 9.414 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.605e-05/0.473, allocations: 7.906 kB / 1.031 GB, free: 9.406 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.4733, allocations: 183.1 kB / 1.031 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.4733, allocations: 4 kB / 1.031 GB, free: 9.184 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.4733, allocations: 4 kB / 1.031 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.4735, allocations: 77.59 kB / 1.031 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.4735, allocations: 0 / 1.031 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.4736, allocations: 0 / 1.031 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.4736, allocations: 4 kB / 1.031 GB, free: 9.094 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.4737, allocations: 47.97 kB / 1.032 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004734/0.4742, allocations: 292.7 kB / 1.032 GB, free: 8.711 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.4743, allocations: 79.14 kB / 1.032 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.4744, allocations: 8 kB / 1.032 GB, free: 8.617 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001653/0.4745, allocations: 117.1 kB / 1.032 GB, free: 8.484 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.4745, allocations: 0 / 1.032 GB, free: 8.484 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0004932/0.475, allocations: 288.6 kB / 1.032 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.789e-05/0.4751, allocations: 118.7 kB / 1.032 GB, free: 8.031 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.091e-05/0.4752, allocations: 108.9 kB / 1.032 GB, free: 7.918 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.4753, allocations: 29.7 kB / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.44e-05/0.4753, allocations: 88.14 kB / 1.033 GB, free: 7.793 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.4754, allocations: 31.62 kB / 1.033 GB, free: 7.762 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.4754, allocations: 4 kB / 1.033 GB, free: 7.758 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4755, allocations: 322.8 kB / 1.033 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.463e-05/0.4756, allocations: 39.97 kB / 1.033 GB, free: 7.395 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.4757, allocations: 101.2 kB / 1.033 GB, free: 7.266 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.4759, allocations: 89.61 kB / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4759, allocations: 0 / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003102/0.4762, allocations: 203.1 kB / 1.033 GB, free: 6.961 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/0.4762, allocations: 33.7 kB / 1.033 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.4762, allocations: 0 / 1.033 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.4763, allocations: 4 kB / 1.033 GB, free: 6.918 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.4764, allocations: 39.88 kB / 1.033 GB, free: 6.879 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.4764, allocations: 7.984 kB / 1.033 GB, free: 6.871 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.665e-05/0.4765, allocations: 9.812 kB / 1.033 GB, free: 6.863 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.4765, allocations: 16.22 kB / 1.033 GB, free: 6.848 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001491/0.4767, allocations: 167.2 kB / 1.034 GB, free: 6.668 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.4767, allocations: 11.91 kB / 1.034 GB, free: 6.656 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.4767, allocations: 8.359 kB / 1.034 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.4768, allocations: 0 / 1.034 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.371e-06/0.4768, allocations: 7.891 kB / 1.034 GB, free: 6.641 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.797e-05/0.4768, allocations: 4 kB / 1.034 GB, free: 6.637 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.477, allocations: 181.6 kB / 1.034 GB, free: 6.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.477, allocations: 4 kB / 1.034 GB, free: 6.406 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.06e-05/0.477, allocations: 7.984 kB / 1.034 GB, free: 6.398 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.477, allocations: 0 / 1.034 GB, free: 6.398 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.477, allocations: 4 kB / 1.034 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.4771, allocations: 0 / 1.034 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.4771, allocations: 3.938 kB / 1.034 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003341/0.4774, allocations: 234.6 kB / 1.034 GB, free: 6.137 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.4775, allocations: 81.02 kB / 1.034 GB, free: 6.039 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.302e-05/0.4775, allocations: 11.98 kB / 1.034 GB, free: 6.027 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.975e-05/0.4776, allocations: 8 kB / 1.034 GB, free: 6.02 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.4776, allocations: 7.984 kB / 1.034 GB, free: 6.012 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.4776, allocations: 0 / 1.034 GB, free: 6.012 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.194e-05/0.4777, allocations: 87.28 kB / 1.034 GB, free: 5.926 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4777, allocations: 3.938 kB / 1.034 GB, free: 5.922 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002143/0.4779, allocations: 27.95 kB / 1.034 GB, free: 5.895 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001416/0.4781, allocations: 115.4 kB / 1.034 GB, free: 5.77 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002982/0.4784, allocations: 175.2 kB / 1.035 GB, free: 5.586 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4784, allocations: 0.5625 kB / 1.035 GB, free: 5.586 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.4786, allocations: 191.4 kB / 1.035 GB, free: 5.387 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001656/0.4788, allocations: 17.94 kB / 1.035 GB, free: 5.371 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004104/0.4792, allocations: 197.1 kB / 1.035 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.4795, allocations: 0.6965 MB / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.089e-05/0.4796, allocations: 4.672 kB / 1.036 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.842e-05/0.4796, allocations: 11.44 kB / 1.036 GB, free: 4.406 MB / 0.6823 GB Notification: Performance of SimCode: time 4.01e-07/0.4796, allocations: 0 / 1.036 GB, free: 4.406 MB / 0.6823 GB Notification: Performance of Templates: time 0.003178/0.4828, allocations: 0.856 MB / 1.036 GB, free: 3.559 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.csv","../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches