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.0008686/0.0008691, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.0008738/0.000874, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.435/1.435, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.623/1.623, allocations: 292.7 MB / 0.5499 GB, free: 14.58 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.0005317/0.0005317, allocations: 17.97 kB / 0.6737 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2414, allocations: 116.3 MB / 0.7873 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0009106/0.2424, allocations: 0.5752 MB / 0.7879 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001464/0.2438, allocations: 1.29 MB / 0.7891 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.864e-05/0.2439, allocations: 3.938 kB / 0.7891 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.433e-05/0.244, allocations: 7.922 kB / 0.7891 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.2441, allocations: 27.78 kB / 0.7892 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005794/0.2447, allocations: 239.6 kB / 0.7894 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.2449, allocations: 231.5 kB / 0.7896 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.597e-05/0.245, allocations: 29.09 kB / 0.7896 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.2452, allocations: 103.7 kB / 0.7897 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.2453, allocations: 103.7 kB / 0.7898 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.2454, allocations: 12 kB / 0.7898 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.322e-05/0.2455, allocations: 23.98 kB / 0.7899 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.716e-05/0.2455, allocations: 39.83 kB / 0.7899 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.44e-05/0.2456, allocations: 53.64 kB / 0.79 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001903/0.2458, allocations: 183.8 kB / 0.7901 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2458, allocations: 0 / 0.7901 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2458, allocations: 4 kB / 0.7901 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.2458, allocations: 0 / 0.7901 GB, free: 9.023 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.000729/0.2466, allocations: 494.6 kB / 0.7906 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.2466, allocations: 8.031 kB / 0.7906 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.482e-05/0.2467, allocations: 23.81 kB / 0.7906 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.2469, allocations: 238.6 kB / 0.7909 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.2469, allocations: 11.98 kB / 0.7909 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.247, allocations: 20 kB / 0.7909 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.2473, allocations: 190.2 kB / 0.7911 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.2473, allocations: 0 / 0.7911 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.2474, allocations: 0 / 0.7911 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2474, allocations: 4 kB / 0.7911 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001988/0.2476, allocations: 92.17 kB / 0.7912 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005725/0.2482, allocations: 476.7 kB / 0.7916 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.2484, allocations: 138.6 kB / 0.7918 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.2486, allocations: 93 kB / 0.7918 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.2486, allocations: 4 kB / 0.7918 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.2489, allocations: 211.8 kB / 0.792 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.533e-06/0.2489, allocations: 4 kB / 0.7921 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0007737/0.2497, allocations: 451.5 kB / 0.7925 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.2498, allocations: 75.28 kB / 0.7926 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.2499, allocations: 140.7 kB / 0.7927 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.372e-05/0.2499, allocations: 41.7 kB / 0.7927 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.28e-05/0.25, allocations: 96.69 kB / 0.7928 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.967e-05/0.2501, allocations: 75.11 kB / 0.7929 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.2501, allocations: 12 kB / 0.7929 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2502, allocations: 334.8 kB / 0.7932 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.2505, allocations: 144.7 kB / 0.7934 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.2508, allocations: 213.2 kB / 0.7936 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003376/0.2512, allocations: 212.5 kB / 0.7938 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2512, allocations: 0 / 0.7938 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007788/0.252, allocations: 0.4937 MB / 0.7942 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.966e-05/0.252, allocations: 71.39 kB / 0.7943 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.252, allocations: 0 / 0.7943 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.2521, allocations: 4 kB / 0.7943 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.2523, allocations: 60.03 kB / 0.7944 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.2523, allocations: 3.953 kB / 0.7944 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003694/0.2527, allocations: 103.6 kB / 0.7945 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.534e-05/0.2527, allocations: 19.98 kB / 0.7945 GB, free: 4.254 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,$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.000152/0.2529, allocations: 161.8 kB / 0.7947 GB, free: 4.086 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.2529, allocations: 15.89 kB / 0.7947 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.253, allocations: 17.88 kB / 0.7947 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.253, allocations: 4 kB / 0.7947 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.253, allocations: 4 kB / 0.7947 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.253, allocations: 3.953 kB / 0.7947 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007505/0.2538, allocations: 0.6622 MB / 0.7953 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2538, allocations: 0 / 0.7953 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.265e-05/0.2538, allocations: 8 kB / 0.7954 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2538, allocations: 0 / 0.7954 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.2539, allocations: 15.97 kB / 0.7954 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2539, allocations: 0 / 0.7954 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2539, allocations: 3.953 kB / 0.7954 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000571/0.2544, allocations: 463.7 kB / 0.7958 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.577e-05/0.2545, allocations: 100.8 kB / 0.7959 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.788e-05/0.2546, allocations: 11.98 kB / 0.7959 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.2547, allocations: 15.98 kB / 0.7959 GB, free: 2.68 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.2547, allocations: 15.94 kB / 0.7959 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/0.2548, allocations: 23.97 kB / 0.796 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.335e-05/0.2548, allocations: 102.4 kB / 0.7961 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2548, allocations: 0 / 0.7961 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000326/0.2552, allocations: 68 kB / 0.7961 GB, free: 2.477 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 (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.0001678/0.2553, allocations: 134.6 kB / 0.7963 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006239/0.256, allocations: 458.5 kB / 0.7967 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.256, allocations: 0 / 0.7967 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.2562, allocations: 122.3 kB / 0.7968 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.2565, allocations: 36.22 kB / 0.7969 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005035/0.257, allocations: 354.8 kB / 0.7972 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.2573, allocations: 0.7167 MB / 0.7979 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.931e-05/0.2574, allocations: 21.55 kB / 0.7979 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.239e-05/0.2574, allocations: 15.44 kB / 0.7979 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.2574, allocations: 0 / 0.7979 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of Templates: time 0.005595/0.263, allocations: 3.258 MB / 0.8011 GB, free: 13.33 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: