Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.7/1.7, allocations: 288.3 MB / 303.2 MB, free: 8.156 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.001549/0.001549, allocations: 179.5 kB / 371.8 MB, free: 10.27 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.67/1.67, allocations: 205.4 MB / 0.6306 GB, free: 10 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.001002/0.001002, allocations: 101.6 kB / 0.7439 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004765, allocations: 11.72 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2984, allocations: 115.3 MB / 0.9794 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0009726/0.2994, allocations: 0.5679 MB / 0.98 GB, free: 27.11 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0015/0.3009, allocations: 1.247 MB / 0.9812 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.726e-05/0.301, allocations: 4 kB / 0.9812 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 9.618e-05/0.3011, allocations: 3.938 kB / 0.9812 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.3013, allocations: 39.81 kB / 0.9813 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006293/0.3019, allocations: 235.5 kB / 0.9815 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001622/0.3021, allocations: 151.7 kB / 0.9816 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.3022, allocations: 20.89 kB / 0.9816 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.3024, allocations: 107.8 kB / 0.9818 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.3026, allocations: 103.7 kB / 0.9818 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.491e-05/0.3026, allocations: 12 kB / 0.9819 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.198e-05/0.3027, allocations: 23.92 kB / 0.9819 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.344e-05/0.3028, allocations: 43.81 kB / 0.9819 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.833e-05/0.3029, allocations: 57.64 kB / 0.982 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002013/0.3031, allocations: 171.8 kB / 0.9821 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3031, allocations: 0 / 0.9821 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3031, allocations: 0 / 0.9821 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.3031, allocations: 0 / 0.9821 GB, free: 24.89 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.0009029/0.304, allocations: 0.4908 MB / 0.9826 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.3041, allocations: 8.031 kB / 0.9826 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.3042, allocations: 27.8 kB / 0.9827 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002449/0.3044, allocations: 230.7 kB / 0.9829 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.318e-05/0.3045, allocations: 12 kB / 0.9829 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.051e-05/0.3045, allocations: 23.98 kB / 0.9829 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003454/0.3049, allocations: 180.1 kB / 0.9831 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.3049, allocations: 4 kB / 0.9831 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.556e-05/0.3049, allocations: 7.984 kB / 0.9831 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.305, allocations: 4 kB / 0.9831 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.3052, allocations: 92.11 kB / 0.9832 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006251/0.3058, allocations: 476.7 kB / 0.9836 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002246/0.306, allocations: 138.6 kB / 0.9838 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.3061, allocations: 4 kB / 0.9838 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002854/0.3063, allocations: 207.9 kB / 0.984 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.3064, allocations: 4 kB / 0.984 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.0007888/0.3071, allocations: 0.6007 MB / 0.9846 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.3072, allocations: 63.34 kB / 0.9846 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.057e-05/0.3073, allocations: 139.3 kB / 0.9848 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.518e-05/0.3074, allocations: 41.7 kB / 0.9848 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.879e-05/0.3074, allocations: 104.6 kB / 0.9849 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.584e-05/0.3075, allocations: 79.11 kB / 0.985 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.3075, allocations: 8 kB / 0.985 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.098e-05/0.3076, allocations: 326.8 kB / 0.9853 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.3079, allocations: 156.6 kB / 0.9854 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002823/0.3081, allocations: 201.2 kB / 0.9856 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/0.3084, allocations: 216.4 kB / 0.9858 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3084, allocations: 0 / 0.9858 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006752/0.3091, allocations: 0.5093 MB / 0.9863 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/0.3092, allocations: 71.39 kB / 0.9864 GB, free: 20.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.3092, allocations: 0 / 0.9864 GB, free: 20.19 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.3092, allocations: 4 kB / 0.9864 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.3094, allocations: 51.91 kB / 0.9865 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.3095, allocations: 4 kB / 0.9865 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003915/0.3099, allocations: 99.72 kB / 0.9866 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.482e-05/0.3099, allocations: 23.98 kB / 0.9866 GB, free: 20.01 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.0001421/0.3101, allocations: 166.7 kB / 0.9867 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.3101, allocations: 15.89 kB / 0.9868 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.421e-05/0.3101, allocations: 13.88 kB / 0.9868 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3101, allocations: 3.938 kB / 0.9868 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3101, allocations: 4 kB / 0.9868 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3102, allocations: 0 / 0.9868 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006459/0.3108, allocations: 0.6661 MB / 0.9874 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3108, allocations: 3.984 kB / 0.9874 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.87e-05/0.3109, allocations: 8 kB / 0.9874 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.3109, allocations: 0 / 0.9874 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.3109, allocations: 11.98 kB / 0.9875 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3109, allocations: 0 / 0.9875 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3109, allocations: 11.94 kB / 0.9875 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004865/0.3114, allocations: 459 kB / 0.9879 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.842e-05/0.3115, allocations: 92.86 kB / 0.988 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.822e-05/0.3115, allocations: 15.98 kB / 0.988 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3116, allocations: 11.98 kB / 0.988 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.901e-05/0.3117, allocations: 11.98 kB / 0.988 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.3117, allocations: 23.94 kB / 0.988 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.932e-05/0.3118, allocations: 109.6 kB / 0.9882 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.563e-06/0.3118, allocations: 0 / 0.9882 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003528/0.3122, allocations: 63.94 kB / 0.9882 GB, free: 18.24 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.0001784/0.3123, allocations: 137.5 kB / 0.9883 GB, free: 18.1 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005932/0.3129, allocations: 455.7 kB / 0.9888 GB, free: 17.63 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.313, allocations: 0 / 0.9888 GB, free: 17.63 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.3131, allocations: 123.9 kB / 0.9889 GB, free: 17.51 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.3134, allocations: 29.55 kB / 0.9889 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005048/0.3139, allocations: 353.8 kB / 0.9893 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.3141, allocations: 0.7323 MB / 0.99 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.867e-05/0.3142, allocations: 17.55 kB / 0.99 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.3142, allocations: 15.44 kB / 0.99 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.3142, allocations: 0 / 0.99 GB, free: 16.32 MB / 0.6198 GB Notification: Performance of Templates: time 0.005819/0.3201, allocations: 3.256 MB / 0.9932 GB, free: 13.1 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)