Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.041/2.041, allocations: 287.5 MB / 302.6 MB, free: 8.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001214/0.001214, allocations: 172.9 kB / 371.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.4 MB / 0.6298 GB, free: 10.48 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006947/0.0006948, allocations: 80.31 kB / 0.7432 GB, free: 6.477 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003384, allocations: 11.45 kB / 0.8661 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1844, allocations: 115.3 MB / 0.9787 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0008529/0.1853, allocations: 0.5715 MB / 0.9793 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.1867, allocations: 1.267 MB / 0.9805 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.623e-05/0.1868, allocations: 7.938 kB / 0.9805 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.583e-05/0.1869, allocations: 15.92 kB / 0.9805 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.1871, allocations: 27.77 kB / 0.9805 GB, free: 26.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.1877, allocations: 237.7 kB / 0.9808 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.188, allocations: 231.5 kB / 0.981 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.852e-05/0.1881, allocations: 29.11 kB / 0.981 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.1883, allocations: 103.7 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.1884, allocations: 103.7 kB / 0.9812 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.47e-05/0.1885, allocations: 12 kB / 0.9812 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.856e-05/0.1886, allocations: 35.91 kB / 0.9813 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.714e-05/0.1886, allocations: 31.84 kB / 0.9813 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.438e-05/0.1887, allocations: 53.64 kB / 0.9813 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.1889, allocations: 187.8 kB / 0.9815 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.189, allocations: 0 / 0.9815 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.894e-06/0.189, allocations: 0 / 0.9815 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.189, allocations: 0 / 0.9815 GB, free: 25.25 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008554/0.1898, allocations: 498.8 kB / 0.982 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1899, allocations: 8.031 kB / 0.982 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.567e-05/0.19, allocations: 20.75 kB / 0.982 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002396/0.1902, allocations: 232 kB / 0.9822 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.1903, allocations: 16.38 kB / 0.9823 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.581e-05/0.1903, allocations: 20.36 kB / 0.9823 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/0.1907, allocations: 182.8 kB / 0.9825 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1907, allocations: 192 / 0.9825 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.1907, allocations: 11.92 kB / 0.9825 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.1907, allocations: 0 / 0.9825 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.1909, allocations: 96.17 kB / 0.9826 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006603/0.1916, allocations: 480.5 kB / 0.983 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.1918, allocations: 138.5 kB / 0.9832 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/0.192, allocations: 96.8 kB / 0.9832 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/0.192, allocations: 8 kB / 0.9833 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002966/0.1923, allocations: 211.9 kB / 0.9835 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 2.084e-06/0.1923, allocations: 0 / 0.9835 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.000705/0.193, allocations: 456.4 kB / 0.9839 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.1931, allocations: 55.41 kB / 0.9839 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.3e-05/0.1932, allocations: 148.3 kB / 0.9841 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.762e-05/0.1932, allocations: 41.7 kB / 0.9841 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.747e-05/0.1933, allocations: 104.6 kB / 0.9842 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.831e-05/0.1933, allocations: 75.17 kB / 0.9843 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.351e-05/0.1933, allocations: 11.94 kB / 0.9843 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.642e-05/0.1934, allocations: 330.8 kB / 0.9846 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002541/0.1937, allocations: 148.7 kB / 0.9848 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.1939, allocations: 205.2 kB / 0.985 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/0.1944, allocations: 366.3 kB / 0.9853 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1944, allocations: 4 kB / 0.9853 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006747/0.1951, allocations: 0.4899 MB / 0.9858 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.1951, allocations: 67.39 kB / 0.9859 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1951, allocations: 0 / 0.9859 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.1951, allocations: 4 kB / 0.9859 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.1954, allocations: 51.91 kB / 0.9859 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1954, allocations: 8 kB / 0.9859 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.1958, allocations: 103.6 kB / 0.986 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.885e-05/0.1959, allocations: 23.97 kB / 0.986 GB, free: 20.31 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,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 (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.000148/0.196, allocations: 165.8 kB / 0.9862 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.1961, allocations: 15.81 kB / 0.9862 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.1961, allocations: 13.88 kB / 0.9862 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1961, allocations: 4 kB / 0.9862 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.1961, allocations: 3.938 kB / 0.9862 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.922e-06/0.1961, allocations: 7.922 kB / 0.9862 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006478/0.1968, allocations: 0.6583 MB / 0.9869 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1968, allocations: 4 kB / 0.9869 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.296e-05/0.1968, allocations: 8 kB / 0.9869 GB, free: 19.37 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1969, allocations: 0 / 0.9869 GB, free: 19.37 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.1969, allocations: 11.97 kB / 0.9869 GB, free: 19.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.1969, allocations: 7.938 kB / 0.9869 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1969, allocations: 0 / 0.9869 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005149/0.1974, allocations: 459.1 kB / 0.9873 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.1975, allocations: 96.84 kB / 0.9874 GB, free: 18.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.996e-05/0.1975, allocations: 19.98 kB / 0.9875 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.1976, allocations: 11.92 kB / 0.9875 GB, free: 18.74 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.856e-05/0.1977, allocations: 15.98 kB / 0.9875 GB, free: 18.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.1977, allocations: 19.97 kB / 0.9875 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.642e-05/0.1978, allocations: 100.7 kB / 0.9876 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1978, allocations: 8 kB / 0.9876 GB, free: 18.6 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000335/0.1981, allocations: 67.97 kB / 0.9877 GB, free: 18.54 MB / 0.6198 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 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0001866/0.1983, allocations: 137.3 kB / 0.9878 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005941/0.1989, allocations: 458.7 kB / 0.9882 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1989, allocations: 0 / 0.9882 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.1991, allocations: 112.6 kB / 0.9884 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004625/0.1996, allocations: 29.38 kB / 0.9884 GB, free: 17.79 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009082/0.2005, allocations: 351.3 kB / 0.9887 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.2008, allocations: 0.7206 MB / 0.9894 GB, free: 16.67 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001346/0.2009, allocations: 17.55 kB / 0.9894 GB, free: 16.65 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.853e-05/0.201, allocations: 23.44 kB / 0.9895 GB, free: 16.63 MB / 0.6198 GB Notification: Performance of SimCode: time 3.81e-07/0.201, allocations: 0 / 0.9895 GB, free: 16.63 MB / 0.6198 GB Notification: Performance of Templates: time 0.009575/0.2106, allocations: 3.293 MB / 0.9927 GB, free: 13.37 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)