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 3.197/3.197, allocations: 287.3 MB / 302.3 MB, free: 8.34 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.001739/0.001739, allocations: 186.7 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.309/2.309, allocations: 205.4 MB / 0.6295 GB, free: 10.6 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.001158/0.001158, allocations: 95.81 kB / 0.7428 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004977/0.0004979, allocations: 16.06 kB / 0.8656 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2288, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001065/0.2299, allocations: 0.5755 MB / 0.9788 GB, free: 27.81 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002029/0.232, allocations: 1.247 MB / 0.98 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.095e-05/0.2321, allocations: 0 / 0.98 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.2322, allocations: 7.922 kB / 0.98 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.2324, allocations: 35.88 kB / 0.98 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000997/0.2334, allocations: 242.2 kB / 0.9803 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.2337, allocations: 151.7 kB / 0.9804 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.2338, allocations: 21.11 kB / 0.9804 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/0.2341, allocations: 107.8 kB / 0.9805 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.2343, allocations: 103.7 kB / 0.9806 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.484e-05/0.2344, allocations: 12 kB / 0.9806 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.2345, allocations: 23.92 kB / 0.9807 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.308e-05/0.2346, allocations: 35.89 kB / 0.9807 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.83e-05/0.2347, allocations: 61.56 kB / 0.9807 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000279/0.235, allocations: 175.8 kB / 0.9809 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.235, allocations: 0 / 0.9809 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.733e-06/0.235, allocations: 0 / 0.9809 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.2351, allocations: 0 / 0.9809 GB, free: 25.59 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.001031/0.2361, allocations: 0.4908 MB / 0.9814 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.2362, allocations: 8.031 kB / 0.9814 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.2363, allocations: 23.81 kB / 0.9814 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.2366, allocations: 238.7 kB / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.2367, allocations: 12 kB / 0.9817 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.164e-05/0.2368, allocations: 19.98 kB / 0.9817 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005267/0.2373, allocations: 182.2 kB / 0.9819 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.2373, allocations: 0 / 0.9819 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.2374, allocations: 15.98 kB / 0.9819 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.2374, allocations: 0 / 0.9819 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.2377, allocations: 92.12 kB / 0.982 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000906/0.2386, allocations: 472.6 kB / 0.9824 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003942/0.2391, allocations: 150.6 kB / 0.9826 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.2391, allocations: 4 kB / 0.9826 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005088/0.2396, allocations: 203.9 kB / 0.9828 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=28): time 3.767e-06/0.2397, allocations: 0 / 0.9828 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28): time 0.001321/0.241, allocations: 0.6119 MB / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.241, allocations: 55.41 kB / 0.9834 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.2412, allocations: 144.1 kB / 0.9835 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.433e-05/0.2413, allocations: 41.7 kB / 0.9836 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.666e-05/0.2414, allocations: 104.6 kB / 0.9837 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.719e-05/0.2414, allocations: 71.17 kB / 0.9837 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.895e-05/0.2415, allocations: 12 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.566e-05/0.2416, allocations: 326.8 kB / 0.9841 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.2421, allocations: 148.7 kB / 0.9842 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004961/0.2426, allocations: 205.1 kB / 0.9844 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004801/0.2431, allocations: 220.4 kB / 0.9846 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2431, allocations: 0 / 0.9846 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00124/0.2443, allocations: 0.5016 MB / 0.9851 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.244e-05/0.2444, allocations: 67.39 kB / 0.9852 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.2445, allocations: 7.938 kB / 0.9852 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.2445, allocations: 4 kB / 0.9852 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003967/0.2449, allocations: 47.91 kB / 0.9852 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.2449, allocations: 7.953 kB / 0.9852 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007397/0.2457, allocations: 95.67 kB / 0.9853 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.251e-05/0.2458, allocations: 23.98 kB / 0.9853 GB, free: 20.71 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.0002243/0.246, allocations: 165.8 kB / 0.9855 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.817e-05/0.2461, allocations: 11.91 kB / 0.9855 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.134e-05/0.2461, allocations: 17.94 kB / 0.9855 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.2461, allocations: 4 kB / 0.9855 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.2461, allocations: 0 / 0.9855 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.2461, allocations: 7.891 kB / 0.9855 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.2473, allocations: 0.6662 MB / 0.9862 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.2473, allocations: 0 / 0.9862 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.073e-05/0.2474, allocations: 7.984 kB / 0.9862 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.2474, allocations: 4 kB / 0.9862 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/0.2474, allocations: 11.98 kB / 0.9862 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.2474, allocations: 3.953 kB / 0.9862 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2474, allocations: 0 / 0.9862 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008462/0.2483, allocations: 459.7 kB / 0.9867 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.115e-05/0.2484, allocations: 96.84 kB / 0.9868 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.683e-05/0.2484, allocations: 15.98 kB / 0.9868 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.2486, allocations: 11.94 kB / 0.9868 GB, free: 19.15 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.063e-05/0.2487, allocations: 19.92 kB / 0.9868 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.256e-05/0.2488, allocations: 23.98 kB / 0.9868 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.681e-05/0.2489, allocations: 105.1 kB / 0.9869 GB, free: 19 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2489, allocations: 0 / 0.9869 GB, free: 19 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005224/0.2494, allocations: 64 kB / 0.987 GB, free: 18.94 MB / 0.6198 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.0002126/0.2496, allocations: 133.4 kB / 0.9871 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009954/0.2506, allocations: 454.5 kB / 0.9875 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2507, allocations: 4.25 kB / 0.9876 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.251, allocations: 124.5 kB / 0.9877 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.2514, allocations: 19.98 kB / 0.9877 GB, free: 18.19 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007278/0.2521, allocations: 351.2 kB / 0.988 GB, free: 17.82 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001729/0.2523, allocations: 0.7284 MB / 0.9887 GB, free: 17.07 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001045/0.2524, allocations: 17.55 kB / 0.9888 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.977e-05/0.2525, allocations: 19.44 kB / 0.9888 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of SimCode: time 8.62e-07/0.2525, allocations: 0 / 0.9888 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of Templates: time 0.008808/0.2613, allocations: 3.264 MB / 0.992 GB, free: 13.8 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)