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.0008955/0.0008956, allocations: 103.3 kB / 15.06 MB, free: 1.098 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.001033/0.001033, allocations: 173.3 kB / 15.95 MB, free: 212 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.357/1.357, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.685/1.685, allocations: 292.5 MB / 0.5497 GB, free: 14.62 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.000516/0.000516, allocations: 18.16 kB / 0.6736 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2455, allocations: 116.3 MB / 0.7871 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0009437/0.2465, allocations: 0.5764 MB / 0.7877 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001415/0.2479, allocations: 1.242 MB / 0.7889 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.664e-05/0.248, allocations: 7.938 kB / 0.7889 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.527e-05/0.248, allocations: 11.92 kB / 0.7889 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.2482, allocations: 27.95 kB / 0.789 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005842/0.2487, allocations: 238.7 kB / 0.7892 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000175/0.2489, allocations: 151.7 kB / 0.7893 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.249, allocations: 21.11 kB / 0.7893 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.2492, allocations: 111.7 kB / 0.7895 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.2494, allocations: 99.69 kB / 0.7895 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.23e-05/0.2494, allocations: 12 kB / 0.7896 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.325e-05/0.2495, allocations: 27.92 kB / 0.7896 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.776e-05/0.2496, allocations: 39.88 kB / 0.7896 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.355e-05/0.2496, allocations: 53.64 kB / 0.7897 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.2498, allocations: 179.8 kB / 0.7898 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2498, allocations: 0 / 0.7898 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.143e-06/0.2499, allocations: 0 / 0.7898 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.2499, allocations: 4 kB / 0.7898 GB, free: 9.145 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.000752/0.2506, allocations: 494.6 kB / 0.7903 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2507, allocations: 15.97 kB / 0.7903 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.863e-05/0.2507, allocations: 23.8 kB / 0.7904 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.251, allocations: 230.7 kB / 0.7906 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.758e-05/0.2511, allocations: 12 kB / 0.7906 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.531e-05/0.2511, allocations: 19.98 kB / 0.7906 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.2514, allocations: 190.2 kB / 0.7908 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.2515, allocations: 0 / 0.7908 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/0.2515, allocations: 3.984 kB / 0.7908 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.2515, allocations: 4 kB / 0.7908 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002013/0.2517, allocations: 92.17 kB / 0.7909 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000581/0.2523, allocations: 476.7 kB / 0.7913 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.2525, allocations: 138.5 kB / 0.7915 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.2526, allocations: 4 kB / 0.7915 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003083/0.2529, allocations: 215.9 kB / 0.7917 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.473e-06/0.2529, allocations: 0 / 0.7917 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008574/0.2538, allocations: 0.5993 MB / 0.7923 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.2538, allocations: 67.34 kB / 0.7923 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.736e-05/0.2539, allocations: 136.8 kB / 0.7925 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.092e-05/0.254, allocations: 37.7 kB / 0.7925 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.86e-05/0.2541, allocations: 108.6 kB / 0.7926 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.084e-05/0.2541, allocations: 71.17 kB / 0.7927 GB, free: 6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.2542, allocations: 8 kB / 0.7927 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.2543, allocations: 330.8 kB / 0.793 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/0.2546, allocations: 148.7 kB / 0.7931 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003366/0.2549, allocations: 217.2 kB / 0.7933 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002926/0.2552, allocations: 212.4 kB / 0.7935 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2552, allocations: 0 / 0.7935 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007658/0.256, allocations: 0.4898 MB / 0.794 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.928e-05/0.256, allocations: 71.39 kB / 0.7941 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.2561, allocations: 0 / 0.7941 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.2561, allocations: 4 kB / 0.7941 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2563, allocations: 59.91 kB / 0.7942 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.2563, allocations: 4 kB / 0.7942 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000407/0.2567, allocations: 99.75 kB / 0.7943 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.2568, allocations: 23.98 kB / 0.7943 GB, free: 4.281 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.0001614/0.2569, allocations: 165.8 kB / 0.7944 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/0.257, allocations: 15.89 kB / 0.7944 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.191e-05/0.257, allocations: 17.88 kB / 0.7945 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.257, allocations: 4 kB / 0.7945 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.257, allocations: 7.875 kB / 0.7945 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.257, allocations: 0 / 0.7945 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007451/0.2578, allocations: 0.6623 MB / 0.7951 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2578, allocations: 0 / 0.7951 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.353e-05/0.2579, allocations: 11.94 kB / 0.7951 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.2579, allocations: 0 / 0.7951 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.2579, allocations: 7.984 kB / 0.7951 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.2579, allocations: 3.984 kB / 0.7951 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2579, allocations: 7.953 kB / 0.7952 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005596/0.2585, allocations: 463.8 kB / 0.7956 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.241e-05/0.2585, allocations: 92.86 kB / 0.7957 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.846e-05/0.2586, allocations: 15.98 kB / 0.7957 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.2587, allocations: 7.984 kB / 0.7957 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.193e-05/0.2588, allocations: 15.98 kB / 0.7957 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.2588, allocations: 19.94 kB / 0.7957 GB, free: 2.676 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.884e-05/0.2589, allocations: 110.4 kB / 0.7958 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2589, allocations: 0 / 0.7958 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003183/0.2592, allocations: 64 kB / 0.7959 GB, free: 2.508 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.0001903/0.2594, allocations: 150.4 kB / 0.796 GB, free: 2.355 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006399/0.2601, allocations: 454.5 kB / 0.7965 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2601, allocations: 0 / 0.7965 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.2603, allocations: 122.3 kB / 0.7966 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.2605, allocations: 27.98 kB / 0.7966 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005616/0.2611, allocations: 339.2 kB / 0.7969 GB, free: 1.383 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.2614, allocations: 0.7323 MB / 0.7977 GB, free: 0.625 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.849e-05/0.2615, allocations: 17.55 kB / 0.7977 GB, free: 0.6094 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.819e-05/0.2615, allocations: 19.44 kB / 0.7977 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.2615, allocations: 0 / 0.7977 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of Templates: time 0.005971/0.2675, allocations: 3.27 MB / 0.8009 GB, free: 13.35 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: