Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.293/2.293, allocations: 253.2 MB / 260.6 MB, free: 7.469 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.002121/0.002121, allocations: 167.4 kB / 319.9 MB, free: 3.02 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.082/2.082, allocations: 205.6 MB / 0.5708 GB, free: 15.24 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.001084/0.001084, allocations: 98.97 kB / 0.6751 GB, free: 4.586 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.968e-05/1.969e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2445, allocations: 106.3 MB / 0.8887 GB, free: 11.81 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8905/1.135, allocations: 132.2 MB / 1.018 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/1.135, allocations: 72.58 kB / 1.018 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01762/1.153, allocations: 3.638 MB / 1.021 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.793e-06/1.153, allocations: 0 / 1.021 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.644e-05/1.153, allocations: 0.9375 kB / 1.021 GB, free: 2.012 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001041/1.154, allocations: 463.4 kB / 1.022 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/1.154, allocations: 8.031 kB / 1.022 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.225e-05/1.154, allocations: 19.77 kB / 1.022 GB, free: 1.496 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/1.155, allocations: 224.7 kB / 1.022 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/1.155, allocations: 7 kB / 1.022 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.694e-05/1.155, allocations: 15.98 kB / 1.022 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002989/1.155, allocations: 83.3 kB / 1.022 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/1.156, allocations: 174 kB / 1.022 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/1.156, allocations: 3.953 kB / 1.022 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/1.156, allocations: 10.92 kB / 1.022 GB, free: 1.023 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/1.156, allocations: 8 kB / 1.022 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/1.157, allocations: 388.6 kB / 1.023 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/1.157, allocations: 138.9 kB / 1.023 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/1.157, allocations: 90.66 kB / 1.023 GB, free: 488 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/1.157, allocations: 4 kB / 1.023 GB, free: 484 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004482/1.158, allocations: 188.6 kB / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=28): time 3.006e-06/1.158, allocations: 0 / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of matching and sorting (n=28): time 0.0009027/1.159, allocations: 329.4 kB / 1.024 GB, free: 56 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.217e-05/1.159, allocations: 55.41 kB / 1.024 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/1.159, allocations: 143.4 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.354e-05/1.159, allocations: 29.7 kB / 1.024 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.549e-05/1.159, allocations: 103.5 kB / 1.024 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.303e-05/1.159, allocations: 58.7 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.181e-05/1.159, allocations: 0 / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001779/1.159, allocations: 329.7 kB / 1.024 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/1.16, allocations: 86.11 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002976/1.16, allocations: 152.4 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/1.16, allocations: 100.2 kB / 1.025 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/1.16, allocations: 11.89 kB / 1.025 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000732/1.161, allocations: 296.4 kB / 1.025 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/1.161, allocations: 8 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/1.161, allocations: 0 / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/1.161, allocations: 4 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005466/1.162, allocations: 67.91 kB / 1.025 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/1.162, allocations: 4 kB / 1.025 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003109/1.162, allocations: 35.73 kB / 1.025 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-05/1.162, allocations: 15.98 kB / 1.025 GB, free: 14.72 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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.0002138/1.162, allocations: 141.1 kB / 1.025 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.44e-05/1.162, allocations: 23.7 kB / 1.025 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.209e-05/1.163, allocations: 21.08 kB / 1.025 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/1.163, allocations: 4 kB / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/1.163, allocations: 0 / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/1.163, allocations: 0 / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/1.164, allocations: 0.6796 MB / 1.026 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/1.164, allocations: 0 / 1.026 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.382e-05/1.164, allocations: 7.938 kB / 1.026 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/1.164, allocations: 0 / 1.026 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/1.164, allocations: 18.78 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/1.164, allocations: 4 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.164, allocations: 0 / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008412/1.165, allocations: 423.8 kB / 1.026 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.404e-05/1.165, allocations: 96.86 kB / 1.026 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.95e-05/1.166, allocations: 14.55 kB / 1.026 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003259/1.166, allocations: 27.16 kB / 1.026 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.959e-05/1.166, allocations: 23.52 kB / 1.026 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/1.166, allocations: 15.98 kB / 1.026 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.933e-05/1.166, allocations: 101.3 kB / 1.026 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.91e-07/1.166, allocations: 0 / 1.026 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004885/1.167, allocations: 44 kB / 1.027 GB, free: 13.21 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: 27 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.pulseStart) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.0002373/1.167, allocations: 140.5 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006044/1.168, allocations: 221.2 kB / 1.027 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/1.168, allocations: 4 kB / 1.027 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002548/1.168, allocations: 100.2 kB / 1.027 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/1.168, allocations: 34.11 kB / 1.027 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000758/1.169, allocations: 221.6 kB / 1.027 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/1.169, allocations: 0.7286 MB / 1.028 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000141/1.17, allocations: 18.08 kB / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.142e-05/1.17, allocations: 23.42 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of SimCode: time 1.082e-06/1.17, allocations: 4 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of Templates: time 0.008831/1.179, allocations: 2.408 MB / 1.03 GB, free: 9.43 MB / 0.6511 GB