Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.918/4.918, allocations: 0.5623 GB / 0.5775 GB, free: 3.367 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00253/0.002529, allocations: 355.9 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.502/4.502, allocations: 410.7 MB / 1.113 GB, free: 6.039 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002684/0.002684, allocations: 186.3 kB / 1.226 GB, free: 6.145 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004894/0.0004896, allocations: 8 kB / 1.349 GB, free: 8.258 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7878/0.7883, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2064/0.9948, allocations: 138.1 MB / 1.596 GB, free: 146.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.9951, allocations: 86.38 kB / 1.596 GB, free: 146 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.006303/1.001, allocations: 1.635 MB / 1.598 GB, free: 144.4 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.262e-06/1.001, allocations: 1.062 kB / 1.598 GB, free: 144.4 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 9.067e-06/1.001, allocations: 0 / 1.598 GB, free: 144.4 MB / 0.8542 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.0004161/1.002, allocations: 386.2 kB / 1.598 GB, free: 144 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/1.002, allocations: 11.62 kB / 1.598 GB, free: 144 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/1.002, allocations: 8.562 kB / 1.598 GB, free: 144 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/1.002, allocations: 195 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/1.002, allocations: 0.7188 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/1.002, allocations: 10.03 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/1.003, allocations: 72.45 kB / 1.599 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/1.003, allocations: 0 / 1.599 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/1.003, allocations: 4 kB / 1.599 GB, free: 143.6 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/1.003, allocations: 0.875 kB / 1.599 GB, free: 143.6 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/1.003, allocations: 44.59 kB / 1.599 GB, free: 143.6 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/1.003, allocations: 303.8 kB / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/1.003, allocations: 72.17 kB / 1.599 GB, free: 143.2 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/1.004, allocations: 59.27 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/1.004, allocations: 4 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/1.004, allocations: 118.6 kB / 1.599 GB, free: 143 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=11): time 3.917e-06/1.004, allocations: 0.6562 kB / 1.599 GB, free: 143 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11): time 0.0005467/1.004, allocations: 208.9 kB / 1.599 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/1.004, allocations: 118.8 kB / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.762e-05/1.005, allocations: 114.7 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/1.005, allocations: 29.7 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.532e-05/1.005, allocations: 92.7 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/1.005, allocations: 28.31 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/1.005, allocations: 4 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.399e-05/1.005, allocations: 324.1 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/1.005, allocations: 32.64 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/1.005, allocations: 115 kB / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/1.005, allocations: 77.59 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/1.005, allocations: 0 / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004513/1.006, allocations: 207 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/1.006, allocations: 38.19 kB / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/1.006, allocations: 4.969 kB / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/1.006, allocations: 7.953 kB / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/1.006, allocations: 25.23 kB / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/1.006, allocations: 7.938 kB / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/1.006, allocations: 15.78 kB / 1.601 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.011e-05/1.006, allocations: 12.5 kB / 1.601 GB, free: 141.5 MB / 0.8542 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.0001562/1.006, allocations: 171.6 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/1.006, allocations: 9.25 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.943e-05/1.006, allocations: 5.547 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/1.007, allocations: 3.953 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.007, allocations: 7.938 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/1.007, allocations: 1.062 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/1.007, allocations: 181.6 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/1.007, allocations: 1.656 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.121e-05/1.007, allocations: 11.98 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/1.007, allocations: 0 / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/1.007, allocations: 4 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/1.007, allocations: 1.031 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.007, allocations: 3.953 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000465/1.007, allocations: 233.7 kB / 1.601 GB, free: 140.8 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.825e-05/1.007, allocations: 85.05 kB / 1.601 GB, free: 140.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/1.007, allocations: 8.719 kB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.36e-05/1.008, allocations: 4.719 kB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.461e-05/1.008, allocations: 10.38 kB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/1.008, allocations: 9.328 kB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.276e-05/1.008, allocations: 87.27 kB / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.252e-06/1.008, allocations: 0 / 1.601 GB, free: 140.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002977/1.008, allocations: 29.28 kB / 1.601 GB, free: 140.5 MB / 0.8542 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.0001279/1.008, allocations: 103.8 kB / 1.601 GB, free: 140.4 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004044/1.009, allocations: 178.3 kB / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/1.009, allocations: 0 / 1.602 GB, free: 140.2 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002432/1.009, allocations: 193.6 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/1.009, allocations: 11.98 kB / 1.602 GB, free: 140 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004765/1.01, allocations: 195 kB / 1.602 GB, free: 139.8 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/1.01, allocations: 0.7046 MB / 1.603 GB, free: 139.1 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.573e-05/1.01, allocations: 9.625 kB / 1.603 GB, free: 139.1 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/1.01, allocations: 15.38 kB / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of SimCode: time 9.02e-07/1.01, allocations: 0 / 1.603 GB, free: 139 MB / 0.8542 GB Notification: Performance of Templates: time 0.003902/1.014, allocations: 0.8693 MB / 1.604 GB, free: 138.3 MB / 0.8542 GB