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.229/2.229, allocations: 252.6 MB / 265.2 MB, free: 5.727 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.002141/0.002141, allocations: 167.9 kB / 324.5 MB, free: 14.35 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.266/2.266, allocations: 205.4 MB / 0.5754 GB, free: 10.45 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.001119/0.001119, allocations: 86.7 kB / 0.6797 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.606e-05/4.622e-05, allocations: 4 kB / 0.7911 GB, free: 96.57 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2629, allocations: 106.2 MB / 0.8949 GB, free: 6.242 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.013/1.276, allocations: 132 MB / 1.024 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003868/1.276, allocations: 77.44 kB / 1.024 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02171/1.298, allocations: 3.661 MB / 1.027 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.392e-06/1.298, allocations: 3.938 kB / 1.027 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.558e-05/1.298, allocations: 4 kB / 1.027 GB, free: 15.39 MB / 0.6511 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.001061/1.299, allocations: 452.5 kB / 1.028 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/1.299, allocations: 8.031 kB / 1.028 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/1.299, allocations: 19.77 kB / 1.028 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004111/1.3, allocations: 236.1 kB / 1.028 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/1.3, allocations: 12.44 kB / 1.028 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.528e-05/1.3, allocations: 19.73 kB / 1.028 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005035/1.3, allocations: 186.3 kB / 1.028 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/1.3, allocations: 0 / 1.028 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.584e-05/1.3, allocations: 11.94 kB / 1.028 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/1.3, allocations: 8 kB / 1.028 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002799/1.301, allocations: 80.42 kB / 1.028 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000932/1.302, allocations: 430.7 kB / 1.029 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003658/1.302, allocations: 148.1 kB / 1.029 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/1.302, allocations: 91.59 kB / 1.029 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/1.302, allocations: 3.984 kB / 1.029 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004999/1.303, allocations: 195.1 kB / 1.029 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=28): time 2.695e-06/1.303, allocations: 0 / 1.029 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of matching and sorting (n=28): time 0.0009561/1.304, allocations: 350.6 kB / 1.03 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/1.304, allocations: 59.41 kB / 1.03 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/1.304, allocations: 126.8 kB / 1.03 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.767e-05/1.304, allocations: 40.56 kB / 1.03 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.851e-05/1.304, allocations: 100.3 kB / 1.03 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.563e-05/1.304, allocations: 69.05 kB / 1.03 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.448e-05/1.304, allocations: 7.062 kB / 1.03 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001519/1.304, allocations: 333.4 kB / 1.03 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002673/1.305, allocations: 92.61 kB / 1.03 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/1.305, allocations: 159.2 kB / 1.031 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/1.305, allocations: 113.9 kB / 1.031 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/1.305, allocations: 4 kB / 1.031 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007742/1.306, allocations: 320.4 kB / 1.031 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/1.306, allocations: 8 kB / 1.031 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/1.306, allocations: 3.938 kB / 1.031 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/1.306, allocations: 7.938 kB / 1.031 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000556/1.307, allocations: 71.09 kB / 1.031 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/1.307, allocations: 4 kB / 1.031 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/1.307, allocations: 43.3 kB / 1.031 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/1.307, allocations: 11.98 kB / 1.031 GB, free: 11.97 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.0002082/1.307, allocations: 155.4 kB / 1.031 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.213e-05/1.308, allocations: 15.81 kB / 1.031 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.963e-05/1.308, allocations: 13.2 kB / 1.031 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/1.308, allocations: 8 kB / 1.031 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/1.308, allocations: 0 / 1.031 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/1.308, allocations: 4 kB / 1.031 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00164/1.309, allocations: 0.7336 MB / 1.032 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/1.309, allocations: 0 / 1.032 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.641e-05/1.309, allocations: 11.98 kB / 1.032 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/1.309, allocations: 0 / 1.032 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/1.31, allocations: 14.86 kB / 1.032 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.636e-06/1.31, allocations: 7.984 kB / 1.032 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.31, allocations: 0 / 1.032 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009408/1.311, allocations: 442.2 kB / 1.032 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.232e-05/1.311, allocations: 92.92 kB / 1.033 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.435e-05/1.311, allocations: 15.23 kB / 1.033 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/1.311, allocations: 31.84 kB / 1.033 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.842e-05/1.311, allocations: 15.97 kB / 1.033 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/1.311, allocations: 19.05 kB / 1.033 GB, free: 10.52 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001127/1.311, allocations: 106.2 kB / 1.033 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.11e-07/1.311, allocations: 0 / 1.033 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004426/1.312, allocations: 57.64 kB / 1.033 GB, free: 10.38 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.0002324/1.312, allocations: 140.5 kB / 1.033 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006792/1.313, allocations: 236.7 kB / 1.033 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.313, allocations: 0 / 1.033 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003043/1.313, allocations: 115.2 kB / 1.033 GB, free: 9.996 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/1.314, allocations: 31.97 kB / 1.033 GB, free: 9.969 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007588/1.314, allocations: 230.5 kB / 1.034 GB, free: 9.754 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/1.315, allocations: 0.7247 MB / 1.034 GB, free: 9.004 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001364/1.315, allocations: 26.02 kB / 1.034 GB, free: 8.98 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.076e-05/1.315, allocations: 19.44 kB / 1.034 GB, free: 8.961 MB / 0.6511 GB Notification: Performance of SimCode: time 1.082e-06/1.315, allocations: 3.938 kB / 1.034 GB, free: 8.957 MB / 0.6511 GB Notification: Performance of Templates: time 0.00857/1.324, allocations: 2.494 MB / 1.037 GB, free: 6.488 MB / 0.6511 GB