Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.009578/0.009578, allocations: 111.5 kB / 15.06 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001114/0.001115, allocations: 184.8 kB / 15.95 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.926/1.926, allocations: 194.6 MB / 211.3 MB, free: 11.04 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.28/2.28, allocations: 236.2 MB / 492.6 MB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004715/0.0004716, allocations: 15.98 kB / 0.587 GB, free: 2.18 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6099/0.6104, allocations: 98.71 MB / 0.6834 GB, free: 16.8 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1876/0.7981, allocations: 124.6 MB / 0.805 GB, free: 1.734 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.7983, allocations: 71.95 kB / 0.8051 GB, free: 1.664 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.006085/0.8044, allocations: 1.567 MB / 0.8066 GB, free: 92 kB / 0.6198 GB Notification: Performance of FrontEnd: time 1.594e-06/0.8045, allocations: 0 / 0.8066 GB, free: 92 kB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.444e-06/0.8045, allocations: 0 / 0.8066 GB, free: 92 kB / 0.6198 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.0005094/0.805, allocations: 396.7 kB / 0.807 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.8051, allocations: 8.031 kB / 0.807 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.245e-05/0.8051, allocations: 7.906 kB / 0.807 GB, free: 15.63 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.8053, allocations: 179 kB / 0.8072 GB, free: 15.42 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.8054, allocations: 4 kB / 0.8072 GB, free: 15.41 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.8054, allocations: 4 kB / 0.8072 GB, free: 15.41 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.8056, allocations: 73.66 kB / 0.8073 GB, free: 15.33 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.8057, allocations: 0 / 0.8073 GB, free: 15.33 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.8057, allocations: 4 kB / 0.8073 GB, free: 15.33 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.329e-06/0.8057, allocations: 3.938 kB / 0.8073 GB, free: 15.32 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.8059, allocations: 47.95 kB / 0.8073 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.8064, allocations: 296.8 kB / 0.8076 GB, free: 14.94 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.8066, allocations: 70.55 kB / 0.8077 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.8066, allocations: 0 / 0.8077 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.8069, allocations: 129.1 kB / 0.8078 GB, free: 14.71 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.497e-06/0.8069, allocations: 0 / 0.8078 GB, free: 14.71 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0006171/0.8075, allocations: 284.8 kB / 0.8081 GB, free: 14.41 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.219e-05/0.8076, allocations: 118.8 kB / 0.8082 GB, free: 14.27 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.8078, allocations: 104.9 kB / 0.8083 GB, free: 14.16 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.8078, allocations: 37.7 kB / 0.8083 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.046e-05/0.8079, allocations: 92.08 kB / 0.8084 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.588e-05/0.8079, allocations: 27.64 kB / 0.8084 GB, free: 13.99 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.808, allocations: 4 kB / 0.8084 GB, free: 13.99 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.8081, allocations: 322.8 kB / 0.8087 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.8083, allocations: 31.98 kB / 0.8088 GB, free: 13.63 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.8085, allocations: 115.5 kB / 0.8089 GB, free: 13.49 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.8086, allocations: 81.69 kB / 0.8089 GB, free: 13.41 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.405e-06/0.8087, allocations: 0 / 0.8089 GB, free: 13.41 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004612/0.8091, allocations: 203.2 kB / 0.8091 GB, free: 13.2 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.477e-05/0.8092, allocations: 41.72 kB / 0.8092 GB, free: 13.15 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.025e-06/0.8092, allocations: 3.938 kB / 0.8092 GB, free: 13.14 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.8092, allocations: 7.953 kB / 0.8092 GB, free: 13.14 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.8094, allocations: 27.92 kB / 0.8092 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.8094, allocations: 4 kB / 0.8092 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.8095, allocations: 12 kB / 0.8092 GB, free: 13.09 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.33e-05/0.8096, allocations: 8 kB / 0.8092 GB, free: 13.09 MB / 0.6355 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.0001957/0.8098, allocations: 180.1 kB / 0.8094 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.016e-05/0.8098, allocations: 11.91 kB / 0.8094 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.639e-05/0.8099, allocations: 4.375 kB / 0.8094 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.026e-06/0.8099, allocations: 3.953 kB / 0.8094 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.955e-06/0.8099, allocations: 0 / 0.8094 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.645e-06/0.8099, allocations: 0 / 0.8094 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.8101, allocations: 193.5 kB / 0.8096 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.8101, allocations: 0 / 0.8096 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.769e-05/0.8102, allocations: 7.984 kB / 0.8096 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.192e-06/0.8102, allocations: 4 kB / 0.8096 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.8102, allocations: 4 kB / 0.8096 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.123e-06/0.8102, allocations: 0 / 0.8096 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.293e-06/0.8103, allocations: 3.953 kB / 0.8096 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005/0.8108, allocations: 230.6 kB / 0.8099 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.8108, allocations: 85 kB / 0.8099 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.583e-05/0.8109, allocations: 8 kB / 0.8099 GB, free: 12.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.311e-05/0.811, allocations: 11.94 kB / 0.81 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.395e-05/0.8111, allocations: 7.984 kB / 0.81 GB, free: 12.24 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.8111, allocations: 8.094 kB / 0.81 GB, free: 12.23 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.124e-05/0.8112, allocations: 95.56 kB / 0.8101 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.41e-07/0.8112, allocations: 0 / 0.8101 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003207/0.8115, allocations: 20 kB / 0.8101 GB, free: 12.12 MB / 0.6355 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.0001684/0.8117, allocations: 124.4 kB / 0.8102 GB, free: 11.98 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003982/0.8121, allocations: 171.2 kB / 0.8104 GB, free: 11.8 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.62e-06/0.8121, allocations: 0 / 0.8104 GB, free: 11.8 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002754/0.8124, allocations: 191.3 kB / 0.8105 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001866/0.8126, allocations: 18.44 kB / 0.8106 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004821/0.8131, allocations: 201 kB / 0.8108 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.8135, allocations: 0.6887 MB / 0.8114 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.51e-05/0.8136, allocations: 8.672 kB / 0.8114 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/0.8136, allocations: 15.42 kB / 0.8115 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of SimCode: time 1.487e-06/0.8136, allocations: 0 / 0.8115 GB, free: 10.62 MB / 0.6355 GB Notification: Performance of Templates: time 0.003766/0.8174, allocations: 0.8545 MB / 0.8123 GB, free: 9.777 MB / 0.6355 GB