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.001651/0.001651, allocations: 104.2 kB / 16.35 MB, free: 5.879 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.001426/0.001426, allocations: 193 kB / 17.29 MB, free: 5.516 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.442/1.442, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.822/1.822, allocations: 292.3 MB / 0.5496 GB, free: 17.45 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.001543/0.001544, allocations: 74.88 kB / 0.6729 GB, free: 5.859 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2538, allocations: 114.6 MB / 0.7848 GB, free: 3.188 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002477/0.2564, allocations: 0.8792 MB / 0.7856 GB, free: 2.305 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001942/0.2583, allocations: 1.304 MB / 0.7869 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.184e-05/0.2584, allocations: 3.938 kB / 0.7869 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.2586, allocations: 19.86 kB / 0.7869 GB, free: 0.9609 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.2587, allocations: 31.72 kB / 0.787 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007704/0.2595, allocations: 265.3 kB / 0.7872 GB, free: 0.6758 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003676/0.2599, allocations: 303.3 kB / 0.7875 GB, free: 388 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.26, allocations: 29.11 kB / 0.7875 GB, free: 360 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.2602, allocations: 131.8 kB / 0.7877 GB, free: 228 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.2605, allocations: 123.6 kB / 0.7878 GB, free: 104 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.485e-05/0.2606, allocations: 24 kB / 0.7878 GB, free: 80 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.2607, allocations: 39.97 kB / 0.7878 GB, free: 40 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.767e-05/0.2608, allocations: 39.84 kB / 0.7879 GB, free: 0 / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.4918/0.7526, allocations: 98.58 kB / 0.788 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003713/0.753, allocations: 267.9 kB / 0.7882 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.753, allocations: 1.375 kB / 0.7882 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.963e-06/0.753, allocations: 0 / 0.7882 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.753, allocations: 0 / 0.7882 GB, free: 47.42 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.000906/0.7539, allocations: 0.5362 MB / 0.7888 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.754, allocations: 9.125 kB / 0.7888 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.587e-05/0.7541, allocations: 26.11 kB / 0.7888 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.7543, allocations: 229.2 kB / 0.789 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.7543, allocations: 15.44 kB / 0.789 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.7544, allocations: 21.45 kB / 0.789 GB, free: 46.77 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/0.7547, allocations: 182.4 kB / 0.7892 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.7548, allocations: 0.8438 kB / 0.7892 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/0.7548, allocations: 8.281 kB / 0.7892 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.7548, allocations: 2.812 kB / 0.7892 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.755, allocations: 97.42 kB / 0.7893 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005624/0.7556, allocations: 471.4 kB / 0.7898 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/0.7558, allocations: 140.7 kB / 0.7899 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.756, allocations: 97.83 kB / 0.79 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.756, allocations: 2.625 kB / 0.79 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/0.7563, allocations: 209 kB / 0.7902 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=28): time 1.853e-06/0.7563, allocations: 0 / 0.7902 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of matching and sorting (n=28): time 0.0008107/0.7571, allocations: 454.8 kB / 0.7906 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.7572, allocations: 60.55 kB / 0.7907 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.27e-05/0.7573, allocations: 142.3 kB / 0.7908 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.988e-05/0.7573, allocations: 40.8 kB / 0.7909 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.254e-05/0.7574, allocations: 105.9 kB / 0.791 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.134e-05/0.7574, allocations: 67.59 kB / 0.791 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.7576, allocations: 87.02 kB / 0.7911 GB, free: 46 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.005e-05/0.7576, allocations: 342.5 kB / 0.7914 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002672/0.7579, allocations: 140.8 kB / 0.7916 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002825/0.7582, allocations: 206.8 kB / 0.7918 GB, free: 45.63 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004338/0.7586, allocations: 362.3 kB / 0.7921 GB, free: 45.51 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.7587, allocations: 0 / 0.7921 GB, free: 45.51 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007615/0.7594, allocations: 0.4917 MB / 0.7926 GB, free: 45.41 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.7595, allocations: 69.23 kB / 0.7927 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.7595, allocations: 6.516 kB / 0.7927 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.7595, allocations: 4.812 kB / 0.7927 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.7598, allocations: 50.23 kB / 0.7927 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.7598, allocations: 3.5 kB / 0.7927 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003668/0.7601, allocations: 79.31 kB / 0.7928 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.7602, allocations: 26.3 kB / 0.7928 GB, free: 45.32 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.0001774/0.7604, allocations: 166.1 kB / 0.793 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.744e-05/0.7604, allocations: 18.5 kB / 0.793 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.319e-05/0.7605, allocations: 16.73 kB / 0.793 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.7605, allocations: 5.328 kB / 0.793 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.7605, allocations: 0 / 0.793 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.7605, allocations: 5.156 kB / 0.793 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008012/0.7613, allocations: 0.6613 MB / 0.7937 GB, free: 44.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.7613, allocations: 0.7188 kB / 0.7937 GB, free: 44.89 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.251e-05/0.7614, allocations: 4.969 kB / 0.7937 GB, free: 44.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.7614, allocations: 7.297 kB / 0.7937 GB, free: 44.89 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.7614, allocations: 9.922 kB / 0.7937 GB, free: 44.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.7614, allocations: 3.938 kB / 0.7937 GB, free: 44.88 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7615, allocations: 2.625 kB / 0.7937 GB, free: 44.88 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005195/0.762, allocations: 454.5 kB / 0.7941 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.901e-05/0.762, allocations: 94.73 kB / 0.7942 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.956e-05/0.7621, allocations: 16.66 kB / 0.7942 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.7622, allocations: 11.05 kB / 0.7943 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.366e-05/0.7623, allocations: 17.06 kB / 0.7943 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/0.7623, allocations: 22.09 kB / 0.7943 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.915e-05/0.7624, allocations: 102.2 kB / 0.7944 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7624, allocations: 0 / 0.7944 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003486/0.7627, allocations: 77.95 kB / 0.7945 GB, free: 44.55 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.0001883/0.7629, allocations: 139 kB / 0.7946 GB, free: 44.46 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00063/0.7635, allocations: 455.5 kB / 0.795 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7636, allocations: 0 / 0.795 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.7638, allocations: 127.8 kB / 0.7952 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.7641, allocations: 29.23 kB / 0.7952 GB, free: 44.34 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005327/0.7647, allocations: 308 kB / 0.7955 GB, free: 44.18 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.7648, allocations: 0.7197 MB / 0.7962 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.544e-05/0.7649, allocations: 22.03 kB / 0.7962 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.684e-05/0.765, allocations: 24.92 kB / 0.7962 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of SimCode: time 3.91e-07/0.765, allocations: 0 / 0.7962 GB, free: 43.47 MB / 0.6544 GB Notification: Performance of Templates: time 0.007935/0.7729, allocations: 3.558 MB / 0.7997 GB, free: 43.33 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)