Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.747/1.747, allocations: 287.4 MB / 303.2 MB, free: 8.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 180.8 kB / 371.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.791/1.791, allocations: 205.4 MB / 0.6304 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009396/0.0009397, allocations: 97.3 kB / 0.7438 GB, free: 6.535 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004444/0.0004444, allocations: 11.03 kB / 0.8667 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2106, allocations: 115.3 MB / 0.9793 GB, free: 28.17 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.0009822/0.2117, allocations: 0.5754 MB / 0.9799 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001415/0.2131, allocations: 1.278 MB / 0.9811 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.938e-05/0.2132, allocations: 7.938 kB / 0.9811 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.2133, allocations: 3.938 kB / 0.9811 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.2134, allocations: 31.77 kB / 0.9811 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006193/0.2141, allocations: 238.7 kB / 0.9814 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002103/0.2143, allocations: 235.5 kB / 0.9816 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.2144, allocations: 21.11 kB / 0.9816 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.2146, allocations: 107.7 kB / 0.9817 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.2148, allocations: 107.7 kB / 0.9818 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.218e-05/0.2148, allocations: 12 kB / 0.9818 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.356e-05/0.2149, allocations: 23.98 kB / 0.9819 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.147e-05/0.215, allocations: 39.88 kB / 0.9819 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.168e-05/0.215, allocations: 57.58 kB / 0.9819 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.2152, allocations: 175.8 kB / 0.9821 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.2153, allocations: 4 kB / 0.9821 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.104e-06/0.2153, allocations: 0 / 0.9821 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.85e-06/0.2153, allocations: 0 / 0.9821 GB, free: 25.25 MB / 0.6198 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.0007861/0.2161, allocations: 0.4889 MB / 0.9826 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.2161, allocations: 15.97 kB / 0.9826 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.264e-05/0.2162, allocations: 24.73 kB / 0.9826 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.2164, allocations: 232 kB / 0.9829 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/0.2164, allocations: 8.375 kB / 0.9829 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.2165, allocations: 24.36 kB / 0.9829 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003011/0.2168, allocations: 182.8 kB / 0.9831 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.2168, allocations: 192 / 0.9831 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2168, allocations: 11.92 kB / 0.9831 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.2169, allocations: 4 kB / 0.9831 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.217, allocations: 96.16 kB / 0.9832 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005036/0.2175, allocations: 484.5 kB / 0.9836 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.2178, allocations: 134.5 kB / 0.9838 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.2179, allocations: 92.81 kB / 0.9838 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.2179, allocations: 4 kB / 0.9839 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.2182, allocations: 211.9 kB / 0.9841 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.2182, allocations: 4 kB / 0.9841 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.0007087/0.2189, allocations: 456.4 kB / 0.9845 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.219, allocations: 55.41 kB / 0.9845 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.508e-05/0.2191, allocations: 143.9 kB / 0.9847 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.2191, allocations: 45.69 kB / 0.9847 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.218e-05/0.2192, allocations: 100.6 kB / 0.9848 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.2192, allocations: 67.23 kB / 0.9849 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.2193, allocations: 11.94 kB / 0.9849 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.194e-05/0.2193, allocations: 338.9 kB / 0.9852 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.2196, allocations: 144.7 kB / 0.9854 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002635/0.2199, allocations: 217.1 kB / 0.9856 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/0.2203, allocations: 362.3 kB / 0.9859 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2203, allocations: 0 / 0.9859 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006842/0.221, allocations: 0.4898 MB / 0.9864 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.221, allocations: 71.39 kB / 0.9865 GB, free: 20.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.221, allocations: 0 / 0.9865 GB, free: 20.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.2211, allocations: 4 kB / 0.9865 GB, free: 20.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.2213, allocations: 60.03 kB / 0.9865 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2213, allocations: 0 / 0.9865 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003777/0.2217, allocations: 99.67 kB / 0.9866 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.2217, allocations: 23.92 kB / 0.9866 GB, free: 20.31 MB / 0.6198 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.0001284/0.2219, allocations: 161.8 kB / 0.9868 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.41e-05/0.2219, allocations: 15.81 kB / 0.9868 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.2219, allocations: 17.86 kB / 0.9868 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2219, allocations: 7.938 kB / 0.9868 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2219, allocations: 0 / 0.9868 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.659e-05/0.222, allocations: 96.8 kB / 0.9869 GB, free: 19.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.222, allocations: 19.92 kB / 0.9869 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.589e-05/0.2221, allocations: 16.08 kB / 0.987 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.2222, allocations: 19.95 kB / 0.987 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004807/0.2227, allocations: 432.7 kB / 0.9874 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004789/0.2231, allocations: 0.5217 MB / 0.9879 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001592/0.2233, allocations: 116.5 kB / 0.988 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.069e-05/0.2234, allocations: 105.9 kB / 0.9881 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of Backend: time 3.71e-07/0.2234, allocations: 0 / 0.9881 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007216/0.2241, allocations: 445 kB / 0.9885 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0005679/0.2247, allocations: 0.7534 MB / 0.9893 GB, free: 17.49 MB / 0.6198 GB Notification: Performance of Templates: time 0.005449/0.2301, allocations: 3.387 MB / 0.9926 GB, free: 14.13 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)