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.276/2.276, allocations: 252.6 MB / 265.2 MB, free: 5.719 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001419/0.001419, allocations: 181.9 kB / 324.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.4 MB / 0.5753 GB, free: 10.48 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.001153/0.001153, allocations: 94.31 kB / 0.6797 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.486e-05/3.495e-05, allocations: 7.984 kB / 0.7912 GB, free: 96.58 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2019, allocations: 106.2 MB / 0.8949 GB, free: 6.242 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8465/1.048, allocations: 131.8 MB / 1.024 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/1.049, allocations: 75.88 kB / 1.024 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.007209/1.056, allocations: 1.652 MB / 1.025 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.232e-06/1.056, allocations: 0 / 1.025 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.035e-05/1.056, allocations: 0 / 1.025 GB, free: 1.199 MB / 0.6355 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.0004822/1.057, allocations: 383.6 kB / 1.026 GB, free: 0.7773 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/1.057, allocations: 8.031 kB / 1.026 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/1.057, allocations: 15.45 kB / 1.026 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/1.057, allocations: 179 kB / 1.026 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/1.057, allocations: 7.5 kB / 1.026 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/1.057, allocations: 4 kB / 1.026 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/1.057, allocations: 61.25 kB / 1.026 GB, free: 492 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/1.057, allocations: 0 / 1.026 GB, free: 492 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/1.057, allocations: 7.922 kB / 1.026 GB, free: 484 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/1.057, allocations: 4 kB / 1.026 GB, free: 480 kB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/1.057, allocations: 26.69 kB / 1.026 GB, free: 464 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/1.058, allocations: 302.3 kB / 1.026 GB, free: 128 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/1.058, allocations: 65.7 kB / 1.026 GB, free: 80 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/1.058, allocations: 51.83 kB / 1.026 GB, free: 48 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/1.058, allocations: 0 / 1.026 GB, free: 48 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/1.059, allocations: 113 kB / 1.027 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 5.941e-06/1.059, allocations: 96 / 1.027 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0003706/1.059, allocations: 159.7 kB / 1.027 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/1.059, allocations: 122 kB / 1.027 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.052e-05/1.059, allocations: 96.19 kB / 1.027 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/1.059, allocations: 32.95 kB / 1.027 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.364e-05/1.059, allocations: 86.98 kB / 1.027 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.331e-05/1.059, allocations: 33.16 kB / 1.027 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-05/1.059, allocations: 3.188 kB / 1.027 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000119/1.059, allocations: 318.6 kB / 1.027 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-05/1.06, allocations: 38.73 kB / 1.027 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/1.06, allocations: 105.1 kB / 1.027 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/1.06, allocations: 74.23 kB / 1.028 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/1.06, allocations: 4 kB / 1.028 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003993/1.06, allocations: 191.6 kB / 1.028 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/1.06, allocations: 39.2 kB / 1.028 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/1.06, allocations: 3.953 kB / 1.028 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/1.06, allocations: 4 kB / 1.028 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/1.061, allocations: 26.98 kB / 1.028 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/1.061, allocations: 7.922 kB / 1.028 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/1.061, allocations: 11.91 kB / 1.028 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/1.061, allocations: 11.28 kB / 1.028 GB, free: 14.6 MB / 0.6511 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 () * 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.0001629/1.061, allocations: 161.1 kB / 1.028 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/1.061, allocations: 11.91 kB / 1.028 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/1.061, allocations: 8.062 kB / 1.028 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/1.061, allocations: 7.938 kB / 1.028 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/1.061, allocations: 0 / 1.028 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/1.061, allocations: 4 kB / 1.028 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/1.061, allocations: 188.2 kB / 1.028 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/1.061, allocations: 0 / 1.028 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.063e-05/1.061, allocations: 7.938 kB / 1.028 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/1.061, allocations: 4 kB / 1.028 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/1.061, allocations: 7.984 kB / 1.028 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/1.061, allocations: 4 kB / 1.028 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/1.062, allocations: 3.953 kB / 1.028 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004223/1.062, allocations: 209.8 kB / 1.028 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/1.062, allocations: 81.11 kB / 1.029 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.417e-05/1.062, allocations: 10.55 kB / 1.029 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.899e-05/1.062, allocations: 8 kB / 1.029 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.209e-05/1.062, allocations: 11.94 kB / 1.029 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/1.062, allocations: 6.812 kB / 1.029 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.47e-05/1.062, allocations: 82.72 kB / 1.029 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.11e-07/1.062, allocations: 0 / 1.029 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002979/1.063, allocations: 26.66 kB / 1.029 GB, free: 13.73 MB / 0.6511 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) * 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.0001553/1.063, allocations: 114.4 kB / 1.029 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003528/1.063, allocations: 165.5 kB / 1.029 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.063, allocations: 0 / 1.029 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002308/1.063, allocations: 182.6 kB / 1.029 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002002/1.064, allocations: 13.58 kB / 1.029 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003875/1.064, allocations: 109 kB / 1.029 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/1.064, allocations: 0.702 MB / 1.03 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.9e-05/1.064, allocations: 12.94 kB / 1.03 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.918e-05/1.064, allocations: 11.44 kB / 1.03 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of SimCode: time 7.71e-07/1.064, allocations: 0 / 1.03 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of Templates: time 0.004328/1.069, allocations: 0.8699 MB / 1.031 GB, free: 11.6 MB / 0.6511 GB