Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.846/2.846, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00149/0.00149, allocations: 178.3 kB / 325.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.488/2.488, allocations: 205.4 MB / 0.5766 GB, free: 20.79 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 100.3 kB / 0.6811 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004705/0.0004708, allocations: 9.188 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2233, allocations: 106.3 MB / 0.8989 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001706/0.2251, allocations: 1.107 MB / 0.9 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006224/0.2258, allocations: 274 kB / 0.9002 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.775e-05/0.2258, allocations: 0 / 0.9002 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.861e-05/0.2259, allocations: 3.984 kB / 0.9002 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2261, allocations: 19.91 kB / 0.9003 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001438/0.2262, allocations: 23.92 kB / 0.9003 GB, free: 64 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.116e-05/0.2263, allocations: 35.89 kB / 0.9003 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.291e-05/0.2264, allocations: 11.98 kB / 0.9003 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.2266, allocations: 31.91 kB / 0.9004 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.2267, allocations: 19.92 kB / 0.9004 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.2267, allocations: 4 kB / 0.9004 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.796e-05/0.2267, allocations: 4 kB / 0.9004 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.946e-05/0.2268, allocations: 3.984 kB / 0.9004 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.919e-05/0.2268, allocations: 41.64 kB / 0.9004 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.443e-05/0.2269, allocations: 47.89 kB / 0.9005 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.227, allocations: 4 kB / 0.9005 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.114e-06/0.227, allocations: 0 / 0.9005 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.227, allocations: 0 / 0.9005 GB, free: 63.8 MB / 0.6042 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.0005228/0.2275, allocations: 385.1 kB / 0.9008 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2276, allocations: 8.031 kB / 0.9009 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.16e-05/0.2276, allocations: 7.906 kB / 0.9009 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.2278, allocations: 183 kB / 0.901 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.2278, allocations: 0 / 0.901 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/0.2278, allocations: 4 kB / 0.901 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.2281, allocations: 77.61 kB / 0.9011 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.2281, allocations: 0 / 0.9011 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.2281, allocations: 7.938 kB / 0.9011 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.2281, allocations: 3.984 kB / 0.9011 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.2283, allocations: 43.97 kB / 0.9012 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004787/0.2288, allocations: 300.7 kB / 0.9015 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.229, allocations: 74.56 kB / 0.9015 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.229, allocations: 4.094 kB / 0.9015 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002417/0.2293, allocations: 121.1 kB / 0.9016 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 2.174e-06/0.2293, allocations: 4 kB / 0.9017 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0005958/0.2299, allocations: 292.4 kB / 0.9019 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.23, allocations: 114.8 kB / 0.902 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.495e-05/0.2301, allocations: 117.7 kB / 0.9022 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.2301, allocations: 33.7 kB / 0.9022 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.158e-05/0.2302, allocations: 84.14 kB / 0.9023 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.2302, allocations: 35.58 kB / 0.9023 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.061e-05/0.2302, allocations: 4 kB / 0.9023 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.436e-05/0.2303, allocations: 314.8 kB / 0.9026 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.2304, allocations: 43.97 kB / 0.9026 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.2306, allocations: 102.6 kB / 0.9027 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.2308, allocations: 89.61 kB / 0.9028 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.2308, allocations: 4 kB / 0.9028 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004585/0.2313, allocations: 199.1 kB / 0.903 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.2313, allocations: 30.95 kB / 0.903 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.2314, allocations: 4.281 kB / 0.9031 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.2314, allocations: 15.94 kB / 0.9031 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.2316, allocations: 23.88 kB / 0.9031 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.2316, allocations: 7.984 kB / 0.9031 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.2317, allocations: 12 kB / 0.9031 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.2318, allocations: 4 kB / 0.9031 GB, free: 60.79 MB / 0.6042 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.0001607/0.2319, allocations: 171.2 kB / 0.9033 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.232, allocations: 15.89 kB / 0.9033 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/0.232, allocations: 12.38 kB / 0.9033 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.232, allocations: 3.953 kB / 0.9033 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2321, allocations: 0 / 0.9033 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2321, allocations: 0 / 0.9033 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.2322, allocations: 189.5 kB / 0.9035 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2322, allocations: 0 / 0.9035 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.09e-05/0.2323, allocations: 7.984 kB / 0.9035 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2323, allocations: 4 kB / 0.9035 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.2323, allocations: 0 / 0.9035 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2324, allocations: 4 kB / 0.9035 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.2324, allocations: 7.953 kB / 0.9035 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004631/0.2328, allocations: 234.6 kB / 0.9037 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.047e-05/0.2329, allocations: 89 kB / 0.9038 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.168e-05/0.2329, allocations: 4 kB / 0.9038 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.732e-05/0.233, allocations: 12 kB / 0.9038 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.279e-05/0.2331, allocations: 8.125 kB / 0.9038 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.2331, allocations: 7.953 kB / 0.9039 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.217e-05/0.2332, allocations: 87.27 kB / 0.9039 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2332, allocations: 0 / 0.9039 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003169/0.2335, allocations: 20 kB / 0.904 GB, free: 59.82 MB / 0.6042 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.0001398/0.2337, allocations: 114.8 kB / 0.9041 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004053/0.2341, allocations: 179.2 kB / 0.9042 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2341, allocations: 0 / 0.9042 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002466/0.2344, allocations: 187.4 kB / 0.9044 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/0.2346, allocations: 11.98 kB / 0.9044 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004644/0.2351, allocations: 197.7 kB / 0.9046 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000154/0.2352, allocations: 0.6926 MB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.992e-05/0.2353, allocations: 4.672 kB / 0.9053 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.813e-05/0.2354, allocations: 23.36 kB / 0.9053 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of SimCode: time 8.51e-07/0.2354, allocations: 0 / 0.9053 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of Templates: time 0.003943/0.2393, allocations: 0.8478 MB / 0.9061 GB, free: 57.49 MB / 0.6042 GB