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.338/2.338, allocations: 251.1 MB / 266.1 MB, free: 11.61 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.001446/0.001445, allocations: 189.9 kB / 325.6 MB, free: 2.812 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.613/2.613, allocations: 205.4 MB / 0.5766 GB, free: 20.82 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.00118/0.001179, allocations: 88.61 kB / 0.6811 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004759/0.0004761, allocations: 13.41 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2254, allocations: 106.3 MB / 0.8989 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2279/0.4534, allocations: 132.1 MB / 1.028 GB, free: 13.17 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.4537, allocations: 75.95 kB / 1.028 GB, free: 13.1 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01705/0.4708, allocations: 3.663 MB / 1.032 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4708, allocations: 0 / 1.032 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.534e-05/0.4708, allocations: 4 kB / 1.032 GB, free: 9.422 MB / 0.6823 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.001073/0.4719, allocations: 480 kB / 1.032 GB, free: 8.902 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.472, allocations: 8.031 kB / 1.032 GB, free: 8.895 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.723e-05/0.4721, allocations: 23.75 kB / 1.032 GB, free: 8.871 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.4725, allocations: 224.2 kB / 1.032 GB, free: 8.613 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.379e-05/0.4725, allocations: 16 kB / 1.032 GB, free: 8.598 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/0.4726, allocations: 15.98 kB / 1.032 GB, free: 8.582 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005826/0.4732, allocations: 189.5 kB / 1.032 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.4732, allocations: 0 / 1.032 GB, free: 8.391 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/0.4733, allocations: 11.94 kB / 1.032 GB, free: 8.379 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.4733, allocations: 8 kB / 1.032 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004065/0.4737, allocations: 107.9 kB / 1.033 GB, free: 8.266 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009416/0.4746, allocations: 424.4 kB / 1.033 GB, free: 7.801 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004579/0.4751, allocations: 156.5 kB / 1.033 GB, free: 7.641 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.4752, allocations: 3.938 kB / 1.033 GB, free: 7.637 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005547/0.4757, allocations: 205.4 kB / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=28): time 2.796e-06/0.4757, allocations: 0 / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.001421/0.4772, allocations: 452.5 kB / 1.034 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.4772, allocations: 63.39 kB / 1.034 GB, free: 6.906 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.4774, allocations: 129.9 kB / 1.034 GB, free: 6.77 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.979e-05/0.4775, allocations: 45.64 kB / 1.034 GB, free: 6.719 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.993e-05/0.4776, allocations: 104.6 kB / 1.034 GB, free: 6.613 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 9.423e-05/0.4777, allocations: 67.19 kB / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/0.4777, allocations: 4 kB / 1.034 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4779, allocations: 334.8 kB / 1.034 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003524/0.4783, allocations: 108.6 kB / 1.035 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004022/0.4787, allocations: 168.3 kB / 1.035 GB, free: 5.906 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/0.4791, allocations: 117.4 kB / 1.035 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.4791, allocations: 0 / 1.035 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000923/0.48, allocations: 347.4 kB / 1.035 GB, free: 5.449 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.48, allocations: 8 kB / 1.035 GB, free: 5.441 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.4801, allocations: 4 kB / 1.035 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.4801, allocations: 7.984 kB / 1.035 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005383/0.4806, allocations: 67.91 kB / 1.035 GB, free: 5.363 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.4807, allocations: 7.938 kB / 1.035 GB, free: 5.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003012/0.481, allocations: 39.67 kB / 1.035 GB, free: 5.316 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.481, allocations: 16 kB / 1.035 GB, free: 5.301 MB / 0.6823 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 () * Number of clocked 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.000262/0.4813, allocations: 171.6 kB / 1.035 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.388e-05/0.4814, allocations: 11.91 kB / 1.035 GB, free: 5.113 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.872e-05/0.4814, allocations: 13.86 kB / 1.036 GB, free: 5.105 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.4815, allocations: 4 kB / 1.036 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4815, allocations: 0 / 1.036 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.4815, allocations: 0 / 1.036 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001763/0.4833, allocations: 0.7411 MB / 1.036 GB, free: 4.305 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4833, allocations: 0 / 1.036 GB, free: 4.305 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.064e-05/0.4834, allocations: 11.98 kB / 1.036 GB, free: 4.293 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.4834, allocations: 0 / 1.036 GB, free: 4.293 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.4834, allocations: 15.98 kB / 1.036 GB, free: 4.277 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.4834, allocations: 0 / 1.036 GB, free: 4.277 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4835, allocations: 4 kB / 1.036 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.4845, allocations: 463.3 kB / 1.037 GB, free: 3.805 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.724e-05/0.4846, allocations: 104.9 kB / 1.037 GB, free: 3.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.156e-05/0.4847, allocations: 19.97 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003286/0.485, allocations: 27.98 kB / 1.037 GB, free: 3.637 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.4852, allocations: 19.95 kB / 1.037 GB, free: 3.617 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.854e-05/0.4852, allocations: 15.98 kB / 1.037 GB, free: 3.602 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001068/0.4853, allocations: 103.3 kB / 1.037 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.1e-07/0.4854, allocations: 0 / 1.037 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004529/0.4858, allocations: 55.98 kB / 1.037 GB, free: 3.445 MB / 0.6823 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]) * Number of clocked states: 0 () * 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.0002201/0.486, allocations: 133.4 kB / 1.037 GB, free: 3.309 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0008692/0.4869, allocations: 263.7 kB / 1.037 GB, free: 3.051 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4869, allocations: 0 / 1.037 GB, free: 3.051 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003831/0.4873, allocations: 124.2 kB / 1.038 GB, free: 2.93 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.4877, allocations: 38.66 kB / 1.038 GB, free: 2.895 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009107/0.4887, allocations: 343.2 kB / 1.038 GB, free: 2.527 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.489, allocations: 0.7249 MB / 1.039 GB, free: 1.773 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001174/0.4892, allocations: 21.95 kB / 1.039 GB, free: 1.754 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.899e-05/0.4893, allocations: 19.44 kB / 1.039 GB, free: 1.734 MB / 0.6823 GB Notification: Performance of SimCode: time 2.886e-06/0.4893, allocations: 0 / 1.039 GB, free: 1.734 MB / 0.6823 GB Notification: Performance of Templates: time 0.008322/0.4976, allocations: 2.498 MB / 1.041 GB, free: 15.24 MB / 0.698 GB