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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01102/0.01102, allocations: 107.9 kB / 15.05 MB, free: 5.988 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.001197/0.001198, allocations: 178.8 kB / 15.94 MB, free: 5.941 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 2.001/2.001, allocations: 194.6 MB / 211.3 MB, free: 11.09 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.283/2.283, allocations: 236.1 MB / 492.6 MB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004795/0.0004794, allocations: 12 kB / 0.587 GB, free: 2.086 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6546/0.6551, allocations: 98.72 MB / 0.6834 GB, free: 16.85 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.22/0.8751, allocations: 124.6 MB / 0.8051 GB, free: 1.734 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.8755, allocations: 75.94 kB / 0.8052 GB, free: 1.66 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.006609/0.8821, allocations: 1.564 MB / 0.8067 GB, free: 92 kB / 0.6198 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8821, allocations: 3.938 kB / 0.8067 GB, free: 88 kB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.047e-05/0.8821, allocations: 0 / 0.8067 GB, free: 88 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.0005303/0.8827, allocations: 404.8 kB / 0.8071 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.8827, allocations: 8.031 kB / 0.8071 GB, free: 15.63 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.8828, allocations: 34.56 kB / 0.8071 GB, free: 15.59 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.8829, allocations: 15.84 kB / 0.8071 GB, free: 15.57 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.8831, allocations: 175.1 kB / 0.8073 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.8831, allocations: 4 kB / 0.8073 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.8832, allocations: 0 / 0.8073 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.8834, allocations: 69.67 kB / 0.8074 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.8834, allocations: 3.938 kB / 0.8074 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.8835, allocations: 4 kB / 0.8074 GB, free: 15.27 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.8835, allocations: 4 kB / 0.8074 GB, free: 15.27 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.8837, allocations: 43.97 kB / 0.8074 GB, free: 15.23 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005278/0.8842, allocations: 296.7 kB / 0.8077 GB, free: 14.89 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.8844, allocations: 74.56 kB / 0.8078 GB, free: 14.8 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.8845, allocations: 0 / 0.8078 GB, free: 14.8 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.8847, allocations: 125.1 kB / 0.8079 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 3.677e-06/0.8847, allocations: 112 / 0.8079 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0006743/0.8854, allocations: 292.3 kB / 0.8082 GB, free: 14.35 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.737e-05/0.8855, allocations: 118.8 kB / 0.8083 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.449e-05/0.8856, allocations: 105 kB / 0.8084 GB, free: 14.1 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.8857, allocations: 29.7 kB / 0.8084 GB, free: 14.06 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.546e-05/0.8857, allocations: 96.11 kB / 0.8085 GB, free: 13.96 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.8858, allocations: 23.66 kB / 0.8085 GB, free: 13.94 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.241e-05/0.8858, allocations: 4 kB / 0.8086 GB, free: 13.94 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.8859, allocations: 329.2 kB / 0.8089 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.8861, allocations: 47.91 kB / 0.8089 GB, free: 13.56 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.8863, allocations: 102.5 kB / 0.809 GB, free: 13.43 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.8865, allocations: 77.69 kB / 0.8091 GB, free: 13.35 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.8865, allocations: 0 / 0.8091 GB, free: 13.35 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000517/0.8871, allocations: 211 kB / 0.8093 GB, free: 13.13 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.8871, allocations: 37.64 kB / 0.8093 GB, free: 13.09 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.8872, allocations: 7.953 kB / 0.8093 GB, free: 13.08 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.8872, allocations: 4 kB / 0.8093 GB, free: 13.08 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.8874, allocations: 23.92 kB / 0.8094 GB, free: 13.05 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.8874, allocations: 4 kB / 0.8094 GB, free: 13.05 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.8875, allocations: 16.19 kB / 0.8094 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.8876, allocations: 11.98 kB / 0.8094 GB, free: 13.02 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.0002028/0.8878, allocations: 176.2 kB / 0.8096 GB, free: 12.84 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.719e-05/0.8878, allocations: 8 kB / 0.8096 GB, free: 12.83 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.8878, allocations: 4.375 kB / 0.8096 GB, free: 12.82 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.8879, allocations: 3.953 kB / 0.8096 GB, free: 12.82 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.8879, allocations: 4 kB / 0.8096 GB, free: 12.82 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.8879, allocations: 3.984 kB / 0.8096 GB, free: 12.81 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.8881, allocations: 193.5 kB / 0.8098 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.8881, allocations: 0 / 0.8098 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.94e-05/0.8882, allocations: 4 kB / 0.8098 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.8882, allocations: 0 / 0.8098 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.8882, allocations: 7.984 kB / 0.8098 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.8883, allocations: 0 / 0.8098 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.8883, allocations: 3.953 kB / 0.8098 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.8888, allocations: 230.7 kB / 0.81 GB, free: 12.31 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.8889, allocations: 88.95 kB / 0.8101 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/0.8889, allocations: 4 kB / 0.8101 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.173e-05/0.8891, allocations: 7.984 kB / 0.8101 GB, free: 12.19 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.8891, allocations: 11.95 kB / 0.8101 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.8891, allocations: 4 kB / 0.8101 GB, free: 12.18 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.695e-05/0.8892, allocations: 87.27 kB / 0.8102 GB, free: 12.09 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.51e-07/0.8892, allocations: 0 / 0.8102 GB, free: 12.09 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003002/0.8895, allocations: 24 kB / 0.8102 GB, free: 12.07 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.0008563/0.8904, allocations: 0.7791 MB / 0.811 GB, free: 11.25 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004317/0.8908, allocations: 179.2 kB / 0.8111 GB, free: 11.06 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8909, allocations: 0 / 0.8111 GB, free: 11.06 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003002/0.8912, allocations: 187.4 kB / 0.8113 GB, free: 10.87 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000199/0.8914, allocations: 16.5 kB / 0.8113 GB, free: 10.85 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.8927, allocations: 1.802 MB / 0.8131 GB, free: 8.965 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.8929, allocations: 0.6926 MB / 0.8138 GB, free: 8.246 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.969e-05/0.893, allocations: 12.66 kB / 0.8138 GB, free: 8.23 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.162e-05/0.8931, allocations: 19.44 kB / 0.8138 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of SimCode: time 8.81e-07/0.8931, allocations: 0 / 0.8138 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.9184, allocations: 1.797 MB / 0.8156 GB, free: 6.52 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003104/0.9188, allocations: 190.7 kB / 0.8157 GB, free: 6.277 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/3.219, allocations: 0 / 0.8157 GB, free: 6.277 MB / 0.6355 GB