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.001488/0.001488, allocations: 101.7 kB / 16.27 MB, free: 6.418 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: 189.8 kB / 17.2 MB, free: 5.953 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.499/1.499, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.794/1.794, allocations: 292.3 MB / 0.5495 GB, free: 17.48 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.00169/0.00169, allocations: 71.91 kB / 0.6722 GB, free: 6.5 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.28, allocations: 114.6 MB / 0.784 GB, free: 3.828 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00273/0.2827, allocations: 0.8804 MB / 0.7849 GB, free: 2.941 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00209/0.2849, allocations: 1.297 MB / 0.7862 GB, free: 1.629 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.285, allocations: 3.938 kB / 0.7862 GB, free: 1.625 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.2852, allocations: 19.8 kB / 0.7862 GB, free: 1.605 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.2853, allocations: 31.77 kB / 0.7862 GB, free: 1.574 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009209/0.2863, allocations: 268.5 kB / 0.7865 GB, free: 1.316 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004574/0.2867, allocations: 291.4 kB / 0.7868 GB, free: 1.031 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.2869, allocations: 29.05 kB / 0.7868 GB, free: 1.004 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.2872, allocations: 127.7 kB / 0.7869 GB, free: 0.8789 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.2875, allocations: 115.7 kB / 0.787 GB, free: 0.7656 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.903e-05/0.2875, allocations: 24 kB / 0.787 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.2877, allocations: 35.98 kB / 0.7871 GB, free: 0.707 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.301e-05/0.2878, allocations: 47.81 kB / 0.7871 GB, free: 0.6602 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.2879, allocations: 99.62 kB / 0.7872 GB, free: 0.5625 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.2883, allocations: 263.5 kB / 0.7875 GB, free: 312 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.2883, allocations: 0 / 0.7875 GB, free: 312 kB / 0.6544 GB Notification: Performance of FrontEnd: time 3.376e-06/0.2883, allocations: 4 kB / 0.7875 GB, free: 308 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.2883, allocations: 0 / 0.7875 GB, free: 308 kB / 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.5444/0.8328, allocations: 0.5326 MB / 0.788 GB, free: 48.95 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.8328, allocations: 10.5 kB / 0.788 GB, free: 48.95 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.833, allocations: 19.38 kB / 0.788 GB, free: 48.95 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.8333, allocations: 227 kB / 0.7882 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.665e-05/0.8333, allocations: 18.7 kB / 0.7882 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.534e-05/0.8334, allocations: 21.48 kB / 0.7883 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004103/0.8338, allocations: 187.7 kB / 0.7884 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.8338, allocations: 192 / 0.7884 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.8338, allocations: 10.81 kB / 0.7885 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.8339, allocations: 1.219 kB / 0.7885 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.8341, allocations: 95.52 kB / 0.7886 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005988/0.8347, allocations: 473.6 kB / 0.789 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/0.8349, allocations: 138.2 kB / 0.7891 GB, free: 48.41 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.8351, allocations: 93.97 kB / 0.7892 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.8351, allocations: 2.188 kB / 0.7892 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003417/0.8355, allocations: 211.9 kB / 0.7894 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=28): time 1.614e-06/0.8355, allocations: 0 / 0.7894 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of matching and sorting (n=28): time 0.0008356/0.8363, allocations: 454.6 kB / 0.7899 GB, free: 48.31 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.8364, allocations: 57.56 kB / 0.7899 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.8365, allocations: 150 kB / 0.7901 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.8366, allocations: 40.47 kB / 0.7901 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.8367, allocations: 100.1 kB / 0.7902 GB, free: 48.03 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.994e-05/0.8367, allocations: 73.89 kB / 0.7903 GB, free: 48 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.8369, allocations: 85.03 kB / 0.7903 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.868e-05/0.8369, allocations: 338.5 kB / 0.7907 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.8372, allocations: 139.8 kB / 0.7908 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.8375, allocations: 206.9 kB / 0.791 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004502/0.8379, allocations: 360.9 kB / 0.7913 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.838, allocations: 3.469 kB / 0.7913 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007786/0.8387, allocations: 0.4947 MB / 0.7918 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.249e-05/0.8388, allocations: 65.33 kB / 0.7919 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.8388, allocations: 3.125 kB / 0.7919 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.8389, allocations: 8.375 kB / 0.7919 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.8391, allocations: 58.52 kB / 0.792 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.8391, allocations: 1.328 kB / 0.792 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003817/0.8395, allocations: 76.5 kB / 0.792 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.832e-05/0.8396, allocations: 24.39 kB / 0.7921 GB, free: 47.3 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.0001739/0.8398, allocations: 167.3 kB / 0.7922 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.8398, allocations: 17.33 kB / 0.7922 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.846e-05/0.8399, allocations: 16.2 kB / 0.7922 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.8399, allocations: 5.531 kB / 0.7923 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.8399, allocations: 0 / 0.7923 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.8399, allocations: 3.938 kB / 0.7923 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007457/0.8407, allocations: 0.663 MB / 0.7929 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.8407, allocations: 0.5938 kB / 0.7929 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.163e-05/0.8407, allocations: 7.844 kB / 0.7929 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.8407, allocations: 0 / 0.7929 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.8408, allocations: 14.53 kB / 0.7929 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.8408, allocations: 9.125 kB / 0.7929 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.8408, allocations: 0 / 0.7929 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005703/0.8414, allocations: 455.2 kB / 0.7934 GB, free: 46.73 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.555e-05/0.8414, allocations: 97.16 kB / 0.7935 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.354e-05/0.8415, allocations: 17.95 kB / 0.7935 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.8416, allocations: 12.88 kB / 0.7935 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.642e-05/0.8417, allocations: 15.8 kB / 0.7935 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.8417, allocations: 28.53 kB / 0.7935 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.555e-05/0.8418, allocations: 105.6 kB / 0.7936 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8418, allocations: 0 / 0.7936 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003419/0.8421, allocations: 63.75 kB / 0.7937 GB, free: 46.54 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.0002532/0.8424, allocations: 137.9 kB / 0.7938 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0007417/0.8431, allocations: 474.3 kB / 0.7943 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8431, allocations: 0 / 0.7943 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.8434, allocations: 126.5 kB / 0.7944 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.8437, allocations: 28.47 kB / 0.7944 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005788/0.8443, allocations: 346.6 kB / 0.7948 GB, free: 46.13 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.8445, allocations: 0.7226 MB / 0.7955 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.051e-05/0.8446, allocations: 21.02 kB / 0.7955 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.8446, allocations: 2.156 kB / 0.7955 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of Templates: time 0.006085/0.8507, allocations: 3.036 MB / 0.7984 GB, free: 45.27 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)