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.001331/0.001331, allocations: 107 kB / 15.99 MB, free: 6.359 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.001155/0.001155, allocations: 195.2 kB / 16.91 MB, free: 6.191 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.484/1.484, allocations: 205.1 MB / 222.8 MB, free: 4.719 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.3 MB / 0.5492 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.001641/0.001641, allocations: 69.23 kB / 0.6717 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2544, allocations: 114.5 MB / 0.7835 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00249/0.257, allocations: 0.9372 MB / 0.7844 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001924/0.2589, allocations: 1.313 MB / 0.7857 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.2591, allocations: 0 / 0.7857 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.2592, allocations: 7.875 kB / 0.7857 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.2594, allocations: 23.83 kB / 0.7857 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007904/0.2602, allocations: 250.8 kB / 0.786 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003752/0.2606, allocations: 299.3 kB / 0.7863 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.2607, allocations: 29.09 kB / 0.7863 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.261, allocations: 119.8 kB / 0.7864 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.2613, allocations: 119.6 kB / 0.7865 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.325e-05/0.2614, allocations: 27.94 kB / 0.7866 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.2615, allocations: 39.98 kB / 0.7866 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.815e-05/0.2616, allocations: 51.83 kB / 0.7866 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.2617, allocations: 103.6 kB / 0.7867 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.262, allocations: 183.8 kB / 0.7869 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.262, allocations: 0 / 0.7869 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.774e-06/0.262, allocations: 0 / 0.7869 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.262, allocations: 0 / 0.7869 GB, free: 10.4 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.00111/0.2631, allocations: 0.5377 MB / 0.7874 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.2632, allocations: 8.031 kB / 0.7875 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.2633, allocations: 16.84 kB / 0.7875 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.2636, allocations: 243.9 kB / 0.7877 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.2636, allocations: 16.36 kB / 0.7877 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.2637, allocations: 20.38 kB / 0.7877 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/0.264, allocations: 185.6 kB / 0.7879 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2641, allocations: 4.172 kB / 0.7879 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.2641, allocations: 7.938 kB / 0.7879 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.2641, allocations: 4 kB / 0.7879 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.2643, allocations: 88.17 kB / 0.788 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006379/0.265, allocations: 476.6 kB / 0.7885 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.2652, allocations: 138.5 kB / 0.7886 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.2654, allocations: 92.81 kB / 0.7887 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.2654, allocations: 0 / 0.7887 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003292/0.2657, allocations: 215.8 kB / 0.7889 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.2657, allocations: 0 / 0.7889 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008686/0.2666, allocations: 451.5 kB / 0.7893 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.2667, allocations: 59.39 kB / 0.7894 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.2668, allocations: 140.4 kB / 0.7895 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.2669, allocations: 49.64 kB / 0.7896 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.65e-05/0.2669, allocations: 104.6 kB / 0.7897 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/0.267, allocations: 67.27 kB / 0.7897 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.2672, allocations: 86 kB / 0.7898 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2673, allocations: 334.8 kB / 0.7901 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.2676, allocations: 140.7 kB / 0.7903 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003085/0.2679, allocations: 217.2 kB / 0.7905 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.2684, allocations: 358.4 kB / 0.7908 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2684, allocations: 4 kB / 0.7908 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007808/0.2692, allocations: 0.4948 MB / 0.7913 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.347e-05/0.2693, allocations: 67.39 kB / 0.7914 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.2693, allocations: 4 kB / 0.7914 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.2693, allocations: 4 kB / 0.7914 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.2695, allocations: 51.84 kB / 0.7914 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.2695, allocations: 4 kB / 0.7914 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.2699, allocations: 87.67 kB / 0.7915 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.82e-05/0.27, allocations: 19.98 kB / 0.7915 GB, free: 5.371 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.0001692/0.2702, allocations: 161.8 kB / 0.7917 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.2703, allocations: 19.8 kB / 0.7917 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.144e-05/0.2703, allocations: 13.97 kB / 0.7917 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.2703, allocations: 7.984 kB / 0.7917 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2703, allocations: 0 / 0.7917 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.2703, allocations: 3.938 kB / 0.7917 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.2714, allocations: 0.6584 MB / 0.7924 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2714, allocations: 0 / 0.7924 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.053e-05/0.2714, allocations: 4 kB / 0.7924 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.2715, allocations: 4 kB / 0.7924 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.398e-05/0.2715, allocations: 15.98 kB / 0.7924 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.2715, allocations: 7.922 kB / 0.7924 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2715, allocations: 0 / 0.7924 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000766/0.2723, allocations: 459.7 kB / 0.7928 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.98e-05/0.2724, allocations: 92.86 kB / 0.7929 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.144e-05/0.2724, allocations: 19.98 kB / 0.7929 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.2726, allocations: 15.92 kB / 0.793 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.2727, allocations: 19.98 kB / 0.793 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.2727, allocations: 15.98 kB / 0.793 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.809e-05/0.2728, allocations: 105.6 kB / 0.7931 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2728, allocations: 0 / 0.7931 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004768/0.2733, allocations: 64 kB / 0.7932 GB, free: 3.602 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.0002424/0.2736, allocations: 137.3 kB / 0.7933 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001096/0.2747, allocations: 474.5 kB / 0.7937 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2747, allocations: 0 / 0.7937 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000269/0.275, allocations: 123.9 kB / 0.7939 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004006/0.2754, allocations: 27.97 kB / 0.7939 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006802/0.2761, allocations: 389.5 kB / 0.7943 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.2764, allocations: 0.7322 MB / 0.795 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.332e-05/0.2764, allocations: 15.44 kB / 0.795 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2764, allocations: 0 / 0.795 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of Templates: time 0.004947/0.2814, allocations: 3.036 MB / 0.7979 GB, free: 14.62 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)