Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 113.2 kB / 16.37 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002275/0.002275, allocations: 192 kB / 17.31 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.792/1.792, allocations: 292.3 MB / 0.5496 GB, free: 17.58 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 71.91 kB / 0.6729 GB, free: 5.832 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2353, allocations: 114.6 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002354/0.2377, allocations: 0.8869 MB / 0.7857 GB, free: 2.277 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001856/0.2396, allocations: 1.3 MB / 0.7869 GB, free: 0.9609 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.56e-05/0.2397, allocations: 3.938 kB / 0.7869 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.2399, allocations: 15.86 kB / 0.787 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.24, allocations: 35.72 kB / 0.787 GB, free: 0.9062 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007061/0.2408, allocations: 269.4 kB / 0.7873 GB, free: 0.6484 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.2411, allocations: 295.4 kB / 0.7875 GB, free: 368 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.2412, allocations: 33.11 kB / 0.7876 GB, free: 336 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.2414, allocations: 127.8 kB / 0.7877 GB, free: 208 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002275/0.2417, allocations: 123.6 kB / 0.7878 GB, free: 84 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.383e-05/0.2417, allocations: 27.94 kB / 0.7878 GB, free: 56 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.475e-05/0.2418, allocations: 39.97 kB / 0.7879 GB, free: 16 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.4115/0.6533, allocations: 32.77 kB / 0.7879 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.6536, allocations: 105.8 kB / 0.788 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.654, allocations: 263 kB / 0.7883 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.654, allocations: 0.5625 kB / 0.7883 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.593e-06/0.654, allocations: 0.8438 kB / 0.7883 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.654, allocations: 2.844 kB / 0.7883 GB, free: 46.77 MB / 0.6544 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.0009627/0.655, allocations: 0.5384 MB / 0.7888 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.655, allocations: 9.25 kB / 0.7888 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.582e-05/0.6551, allocations: 25.81 kB / 0.7888 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.6554, allocations: 230 kB / 0.789 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.6554, allocations: 16.36 kB / 0.7891 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/0.6554, allocations: 17.59 kB / 0.7891 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003492/0.6558, allocations: 185 kB / 0.7892 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.6558, allocations: 3.156 kB / 0.7892 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.6559, allocations: 7.953 kB / 0.7893 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.6559, allocations: 2.75 kB / 0.7893 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.6561, allocations: 90.5 kB / 0.7893 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005587/0.6566, allocations: 474.2 kB / 0.7898 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002332/0.6569, allocations: 136.7 kB / 0.7899 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.657, allocations: 94.34 kB / 0.79 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.6571, allocations: 5.531 kB / 0.79 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.6574, allocations: 209.6 kB / 0.7902 GB, free: 45.72 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=28): time 1.944e-06/0.6574, allocations: 0 / 0.7902 GB, free: 45.72 MB / 0.6544 GB Notification: Performance of matching and sorting (n=28): time 0.0008471/0.6582, allocations: 457 kB / 0.7907 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.6583, allocations: 63.53 kB / 0.7907 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.783e-05/0.6584, allocations: 139.9 kB / 0.7909 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.6584, allocations: 40.69 kB / 0.7909 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.04e-05/0.6585, allocations: 103.3 kB / 0.791 GB, free: 45.4 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.206e-05/0.6586, allocations: 69.06 kB / 0.7911 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.6587, allocations: 86.59 kB / 0.7911 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.784e-05/0.6588, allocations: 336.2 kB / 0.7915 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.6591, allocations: 147.4 kB / 0.7916 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.6593, allocations: 210.9 kB / 0.7918 GB, free: 44.97 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000426/0.6598, allocations: 357.9 kB / 0.7921 GB, free: 44.86 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.6598, allocations: 3.5 kB / 0.7921 GB, free: 44.86 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007183/0.6605, allocations: 0.4955 MB / 0.7926 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.571e-05/0.6606, allocations: 68.8 kB / 0.7927 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.6606, allocations: 0 / 0.7927 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.6606, allocations: 3.5 kB / 0.7927 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002251/0.6608, allocations: 49.03 kB / 0.7927 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.6609, allocations: 8.75 kB / 0.7928 GB, free: 44.69 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.6612, allocations: 81.19 kB / 0.7928 GB, free: 44.67 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.714e-05/0.6613, allocations: 21.61 kB / 0.7929 GB, free: 44.67 MB / 0.6544 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,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001486/0.6614, allocations: 167.4 kB / 0.793 GB, free: 44.55 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/0.6615, allocations: 15.47 kB / 0.793 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/0.6615, allocations: 21.5 kB / 0.793 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.6615, allocations: 4.719 kB / 0.7931 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.6616, allocations: 0 / 0.7931 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.6616, allocations: 3.938 kB / 0.7931 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006692/0.6622, allocations: 0.6534 MB / 0.7937 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.6622, allocations: 0 / 0.7937 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.207e-05/0.6623, allocations: 12.81 kB / 0.7937 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.6623, allocations: 1 kB / 0.7937 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.6623, allocations: 13.39 kB / 0.7937 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.6623, allocations: 7.438 kB / 0.7937 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.6624, allocations: 4.375 kB / 0.7937 GB, free: 44.23 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000526/0.6629, allocations: 447.9 kB / 0.7942 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.183e-05/0.6629, allocations: 95.67 kB / 0.7942 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.764e-05/0.663, allocations: 16.58 kB / 0.7943 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.6631, allocations: 17.19 kB / 0.7943 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.851e-05/0.6632, allocations: 13.64 kB / 0.7943 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.6632, allocations: 26.73 kB / 0.7943 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.349e-05/0.6633, allocations: 100.7 kB / 0.7944 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6633, allocations: 0 / 0.7944 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003449/0.6636, allocations: 80.41 kB / 0.7945 GB, free: 43.9 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001931/0.6638, allocations: 133.8 kB / 0.7946 GB, free: 43.81 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0006291/0.6645, allocations: 456.7 kB / 0.7951 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6645, allocations: 3.5 kB / 0.7951 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.6647, allocations: 117.3 kB / 0.7952 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.6651, allocations: 31.39 kB / 0.7952 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005729/0.6657, allocations: 339 kB / 0.7955 GB, free: 43.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001577/0.6658, allocations: 0.7244 MB / 0.7962 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.404e-05/0.6659, allocations: 21.81 kB / 0.7963 GB, free: 42.79 MB / 0.6544 GB Notification: Performance of SimCode: time 4.71e-07/0.6659, allocations: 0 / 0.7963 GB, free: 42.79 MB / 0.6544 GB Notification: Performance of Templates: time 0.005479/0.6714, allocations: 3.032 MB / 0.7992 GB, free: 42.64 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)