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.001388/0.001388, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001656/0.001656, allocations: 194.5 kB / 16.26 MB, free: 6.145 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.668/1.668, allocations: 205.1 MB / 222.1 MB, free: 4.578 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.89/1.89, allocations: 292.2 MB / 0.5485 GB, free: 13.63 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.00141/0.00141, allocations: 69.88 kB / 0.671 GB, free: 26.4 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3212, allocations: 114.5 MB / 0.7829 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002486/0.3237, allocations: 0.9402 MB / 0.7838 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001917/0.3256, allocations: 1.309 MB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.131e-05/0.3257, allocations: 3.938 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.3259, allocations: 11.94 kB / 0.7851 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.3261, allocations: 23.78 kB / 0.7851 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007447/0.3268, allocations: 242.4 kB / 0.7853 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003099/0.3271, allocations: 299.4 kB / 0.7856 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.3273, allocations: 25.11 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.3275, allocations: 127.7 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.3277, allocations: 111.7 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.663e-05/0.3277, allocations: 27.94 kB / 0.7859 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.282e-05/0.3278, allocations: 39.98 kB / 0.7859 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.967e-05/0.3279, allocations: 43.89 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.328, allocations: 111.5 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.3283, allocations: 255.5 kB / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3283, allocations: 0 / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.954e-06/0.3284, allocations: 4 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.3284, allocations: 0 / 0.7863 GB, free: 10.36 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.001029/0.3294, allocations: 0.5338 MB / 0.7868 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3294, allocations: 8.031 kB / 0.7869 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.461e-05/0.3295, allocations: 28.83 kB / 0.7869 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.3298, allocations: 243.9 kB / 0.7871 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.3299, allocations: 8.375 kB / 0.7871 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/0.3299, allocations: 24.36 kB / 0.7871 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.3303, allocations: 181.8 kB / 0.7873 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3303, allocations: 192 / 0.7873 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.916e-05/0.3304, allocations: 15.92 kB / 0.7873 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.3304, allocations: 4 kB / 0.7873 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.3306, allocations: 84.17 kB / 0.7874 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006966/0.3313, allocations: 476.6 kB / 0.7879 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.3316, allocations: 138.5 kB / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3317, allocations: 88.81 kB / 0.7881 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.3318, allocations: 4 kB / 0.7881 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003679/0.3321, allocations: 207.9 kB / 0.7883 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.3322, allocations: 0 / 0.7883 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008897/0.3331, allocations: 455.5 kB / 0.7887 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.3331, allocations: 55.41 kB / 0.7888 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.3333, allocations: 152.5 kB / 0.7889 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.07e-05/0.3333, allocations: 45.67 kB / 0.789 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.12e-05/0.3334, allocations: 104.6 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.647e-05/0.3335, allocations: 63.28 kB / 0.7891 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.3336, allocations: 89.98 kB / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.3338, allocations: 330.8 kB / 0.7895 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002846/0.3341, allocations: 152.7 kB / 0.7897 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.3344, allocations: 209.2 kB / 0.7899 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004793/0.3349, allocations: 358.3 kB / 0.7902 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3349, allocations: 4 kB / 0.7902 GB, free: 6.09 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008106/0.3357, allocations: 0.4909 MB / 0.7907 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.573e-05/0.3358, allocations: 67.41 kB / 0.7908 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3358, allocations: 0 / 0.7908 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.3359, allocations: 7.984 kB / 0.7908 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.3361, allocations: 47.92 kB / 0.7908 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.3361, allocations: 7.875 kB / 0.7908 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/0.3365, allocations: 91.67 kB / 0.7909 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.576e-05/0.3366, allocations: 24.08 kB / 0.7909 GB, free: 5.328 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.3368, allocations: 162.4 kB / 0.7911 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/0.3368, allocations: 15.81 kB / 0.7911 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.664e-05/0.3369, allocations: 17.88 kB / 0.7911 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3369, allocations: 0 / 0.7911 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3369, allocations: 0 / 0.7911 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.3369, allocations: 11.92 kB / 0.7911 GB, free: 5.113 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000858/0.3378, allocations: 0.6545 MB / 0.7918 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3378, allocations: 0 / 0.7918 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.681e-05/0.3378, allocations: 12 kB / 0.7918 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.3378, allocations: 3.984 kB / 0.7918 GB, free: 4.387 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.926e-05/0.3379, allocations: 11.98 kB / 0.7918 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/0.3379, allocations: 7.938 kB / 0.7918 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3379, allocations: 0 / 0.7918 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00062/0.3385, allocations: 451.8 kB / 0.7922 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.188e-05/0.3386, allocations: 92.86 kB / 0.7923 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.305e-05/0.3386, allocations: 19.98 kB / 0.7923 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3388, allocations: 11.92 kB / 0.7924 GB, free: 3.77 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.3389, allocations: 23.92 kB / 0.7924 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.291e-05/0.3389, allocations: 19.97 kB / 0.7924 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.918e-05/0.339, allocations: 106.1 kB / 0.7925 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.339, allocations: 0 / 0.7925 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003302/0.3393, allocations: 67.98 kB / 0.7926 GB, free: 3.559 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.0002262/0.3395, allocations: 129.4 kB / 0.7927 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007092/0.3403, allocations: 478.4 kB / 0.7931 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3403, allocations: 4 kB / 0.7931 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.3405, allocations: 115.9 kB / 0.7933 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.3408, allocations: 27.97 kB / 0.7933 GB, free: 2.789 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007283/0.3416, allocations: 361.3 kB / 0.7936 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.3419, allocations: 0.7206 MB / 0.7943 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.309e-05/0.342, allocations: 25.48 kB / 0.7944 GB, free: 1.641 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.308e-05/0.342, allocations: 23.42 kB / 0.7944 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of SimCode: time 6.01e-07/0.342, allocations: 0 / 0.7944 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of Templates: time 0.00689/0.3489, allocations: 3.596 MB / 0.7979 GB, free: 14.05 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)