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.0011/0.0011, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00113/0.001131, allocations: 195.5 kB / 16.14 MB, free: 6.656 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.543/1.543, allocations: 205.1 MB / 222 MB, free: 4.723 MB / 174.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.794/1.794, allocations: 292.2 MB / 0.5484 GB, free: 13.67 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.001427/0.001427, allocations: 69.3 kB / 0.6708 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2876, allocations: 114.5 MB / 0.7827 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002779/0.2904, allocations: 0.9411 MB / 0.7836 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00208/0.2926, allocations: 1.321 MB / 0.7849 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.108e-05/0.2927, allocations: 7.938 kB / 0.7849 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.2928, allocations: 7.922 kB / 0.7849 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.2931, allocations: 27.77 kB / 0.7849 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007289/0.2938, allocations: 246.4 kB / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.2941, allocations: 267.4 kB / 0.7854 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.2942, allocations: 25.11 kB / 0.7854 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.2944, allocations: 111.7 kB / 0.7856 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.2946, allocations: 111.7 kB / 0.7857 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.447e-05/0.2947, allocations: 19.94 kB / 0.7857 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.771e-05/0.2948, allocations: 23.98 kB / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.922e-05/0.2948, allocations: 39.88 kB / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.295, allocations: 95.61 kB / 0.7858 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000277/0.2953, allocations: 247.5 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2953, allocations: 0 / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2953, allocations: 3.938 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2953, allocations: 0 / 0.7861 GB, free: 10.52 MB / 0.6075 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.001055/0.2963, allocations: 0.5417 MB / 0.7866 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.2964, allocations: 8.031 kB / 0.7866 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.751e-05/0.2965, allocations: 16.84 kB / 0.7866 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.2969, allocations: 239.9 kB / 0.7869 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.464e-05/0.2969, allocations: 12.38 kB / 0.7869 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.476e-05/0.297, allocations: 20.36 kB / 0.7869 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004085/0.2974, allocations: 187.9 kB / 0.7871 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2974, allocations: 192 / 0.7871 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.2974, allocations: 15.92 kB / 0.7871 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.2975, allocations: 0 / 0.7871 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002316/0.2977, allocations: 87.03 kB / 0.7872 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007704/0.2985, allocations: 480.5 kB / 0.7876 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.2988, allocations: 138.5 kB / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.299, allocations: 92.81 kB / 0.7878 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.299, allocations: 0 / 0.7878 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003895/0.2994, allocations: 211.8 kB / 0.788 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.704e-06/0.2994, allocations: 0 / 0.788 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0009474/0.3004, allocations: 455.5 kB / 0.7885 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/0.3004, allocations: 59.39 kB / 0.7885 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.3006, allocations: 148.8 kB / 0.7887 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.002e-05/0.3007, allocations: 41.69 kB / 0.7887 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.938e-05/0.3008, allocations: 96.61 kB / 0.7888 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.098e-05/0.3009, allocations: 67.27 kB / 0.7889 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.301, allocations: 86 kB / 0.789 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3012, allocations: 338.8 kB / 0.7893 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002991/0.3015, allocations: 152.7 kB / 0.7894 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003399/0.3019, allocations: 209.1 kB / 0.7896 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005308/0.3024, allocations: 362.4 kB / 0.79 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3024, allocations: 0 / 0.79 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008182/0.3032, allocations: 0.4947 MB / 0.7905 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.045e-05/0.3033, allocations: 71.39 kB / 0.7905 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3033, allocations: 0 / 0.7905 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.3033, allocations: 8.125 kB / 0.7905 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/0.3036, allocations: 51.91 kB / 0.7906 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.3036, allocations: 4 kB / 0.7906 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/0.304, allocations: 79.55 kB / 0.7907 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.174e-05/0.304, allocations: 24.08 kB / 0.7907 GB, free: 5.484 MB / 0.6075 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.0001779/0.3042, allocations: 166.4 kB / 0.7908 GB, free: 5.312 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-05/0.3043, allocations: 19.8 kB / 0.7909 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.3043, allocations: 9.875 kB / 0.7909 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3043, allocations: 4 kB / 0.7909 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3043, allocations: 0 / 0.7909 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3043, allocations: 3.938 kB / 0.7909 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008521/0.3052, allocations: 0.6623 MB / 0.7915 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3052, allocations: 8 kB / 0.7915 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.3053, allocations: 4 kB / 0.7915 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.3053, allocations: 0 / 0.7915 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.11e-05/0.3053, allocations: 11.97 kB / 0.7915 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.3053, allocations: 3.938 kB / 0.7915 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3053, allocations: 0 / 0.7915 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006378/0.306, allocations: 463.6 kB / 0.792 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.306, allocations: 96.86 kB / 0.7921 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/0.3061, allocations: 19.98 kB / 0.7921 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.3062, allocations: 15.92 kB / 0.7921 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.175e-05/0.3063, allocations: 15.98 kB / 0.7921 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.3063, allocations: 19.97 kB / 0.7922 GB, free: 3.875 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.448e-05/0.3064, allocations: 103.3 kB / 0.7922 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3064, allocations: 0 / 0.7922 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003589/0.3068, allocations: 60 kB / 0.7923 GB, free: 3.715 MB / 0.6075 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.0002248/0.307, allocations: 137.5 kB / 0.7924 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006501/0.3077, allocations: 454.5 kB / 0.7929 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3077, allocations: 0 / 0.7929 GB, free: 3.105 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.3079, allocations: 119.9 kB / 0.793 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.3083, allocations: 39.03 kB / 0.793 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006473/0.3089, allocations: 353.1 kB / 0.7934 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.3093, allocations: 0.7206 MB / 0.7941 GB, free: 1.84 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.422e-05/0.3094, allocations: 21.55 kB / 0.7941 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.21e-05/0.3094, allocations: 19.44 kB / 0.7941 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of SimCode: time 6.12e-07/0.3094, allocations: 3.938 kB / 0.7941 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of Templates: time 0.006584/0.316, allocations: 3.418 MB / 0.7974 GB, free: 14.4 MB / 0.6231 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)