Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.47/1.47, allocations: 252 MB / 267.6 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001006/0.001007, allocations: 177.5 kB / 327.3 MB, free: 2.203 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.742/1.742, allocations: 205.4 MB / 0.5783 GB, free: 20.22 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008061/0.0008061, allocations: 94.28 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003215, allocations: 8.656 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.205, allocations: 106.3 MB / 0.9008 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.00165/0.2067, allocations: 1.328 MB / 0.9021 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005879/0.2073, allocations: 359.9 kB / 0.9025 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.907e-05/0.2074, allocations: 4 kB / 0.9025 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.875e-05/0.2075, allocations: 11.86 kB / 0.9025 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.2076, allocations: 31.77 kB / 0.9025 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.2078, allocations: 59.92 kB / 0.9026 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.208, allocations: 163.5 kB / 0.9027 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.2081, allocations: 29.39 kB / 0.9028 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.2082, allocations: 67.77 kB / 0.9028 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.2084, allocations: 79.66 kB / 0.9029 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.735e-05/0.2084, allocations: 8 kB / 0.9029 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.403e-05/0.2084, allocations: 4 kB / 0.9029 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.246e-05/0.2085, allocations: 43.81 kB / 0.903 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.775e-05/0.2086, allocations: 49.64 kB / 0.903 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.2087, allocations: 115.9 kB / 0.9031 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2087, allocations: 8 kB / 0.9031 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.953e-06/0.2087, allocations: 0 / 0.9031 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.2087, allocations: 0 / 0.9031 GB, free: 61.49 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008415/0.2096, allocations: 467.2 kB / 0.9036 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2096, allocations: 12.03 kB / 0.9036 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.2097, allocations: 19.75 kB / 0.9036 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.2099, allocations: 209.6 kB / 0.9038 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.2099, allocations: 15.98 kB / 0.9038 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.2099, allocations: 12 kB / 0.9038 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003272/0.2103, allocations: 193.5 kB / 0.904 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2103, allocations: 0 / 0.904 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.2103, allocations: 7.984 kB / 0.904 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.2103, allocations: 4 kB / 0.904 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002152/0.2106, allocations: 99.94 kB / 0.9041 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005299/0.2111, allocations: 420.3 kB / 0.9045 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.2113, allocations: 150.5 kB / 0.9047 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.2115, allocations: 102.8 kB / 0.9048 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2115, allocations: 7.984 kB / 0.9048 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003859/0.2119, allocations: 203.9 kB / 0.905 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 2.304e-06/0.2119, allocations: 0 / 0.905 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.001023/0.213, allocations: 442.6 kB / 0.9054 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.213, allocations: 55.41 kB / 0.9054 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.2132, allocations: 154 kB / 0.9056 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.2132, allocations: 33.7 kB / 0.9056 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.384e-05/0.2133, allocations: 108.6 kB / 0.9057 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.845e-05/0.2134, allocations: 63.25 kB / 0.9058 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.2134, allocations: 11.94 kB / 0.9058 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.039e-05/0.2135, allocations: 330.8 kB / 0.9061 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/0.2137, allocations: 108.3 kB / 0.9062 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/0.214, allocations: 175.3 kB / 0.9064 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/0.2143, allocations: 121 kB / 0.9065 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.2143, allocations: 0 / 0.9065 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006759/0.215, allocations: 347 kB / 0.9068 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.2151, allocations: 6.812 kB / 0.9068 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.2151, allocations: 4 kB / 0.9068 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.2151, allocations: 7.984 kB / 0.9068 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003358/0.2155, allocations: 55.91 kB / 0.9069 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.2155, allocations: 4 kB / 0.9069 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.2157, allocations: 43.89 kB / 0.9069 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.2158, allocations: 15.94 kB / 0.907 GB, free: 57.33 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * 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.000189/0.216, allocations: 165.7 kB / 0.9071 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.263e-05/0.2161, allocations: 19.89 kB / 0.9071 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.07e-05/0.2161, allocations: 13.88 kB / 0.9071 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.2161, allocations: 8 kB / 0.9072 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.2161, allocations: 0 / 0.9072 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.2162, allocations: 3.984 kB / 0.9072 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.2174, allocations: 0.7211 MB / 0.9079 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2174, allocations: 0 / 0.9079 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.367e-05/0.2175, allocations: 11.98 kB / 0.9079 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.2175, allocations: 0 / 0.9079 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.2175, allocations: 11.98 kB / 0.9079 GB, free: 56.31 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.2175, allocations: 3.938 kB / 0.9079 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2175, allocations: 0 / 0.9079 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007047/0.2182, allocations: 455.8 kB / 0.9083 GB, free: 55.84 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.357e-05/0.2183, allocations: 88.92 kB / 0.9084 GB, free: 55.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.321e-05/0.2184, allocations: 19.98 kB / 0.9084 GB, free: 55.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.2186, allocations: 19.97 kB / 0.9084 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.217e-05/0.2187, allocations: 19.97 kB / 0.9085 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.786e-05/0.2188, allocations: 15.98 kB / 0.9085 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.185e-05/0.2189, allocations: 109.7 kB / 0.9086 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2e-07/0.2189, allocations: 0 / 0.9086 GB, free: 55.56 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004969/0.2194, allocations: 59.88 kB / 0.9086 GB, free: 55.5 MB / 0.6042 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.0002119/0.2196, allocations: 129.4 kB / 0.9088 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006133/0.2202, allocations: 263.8 kB / 0.909 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.2203, allocations: 4 kB / 0.909 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002927/0.2206, allocations: 123.3 kB / 0.9091 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005605/0.2211, allocations: 33.38 kB / 0.9092 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008333/0.222, allocations: 385.1 kB / 0.9095 GB, free: 54.54 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.2222, allocations: 0.7206 MB / 0.9102 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.802e-05/0.2223, allocations: 27.42 kB / 0.9103 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of SimCode: time 5.21e-07/0.2223, allocations: 0 / 0.9103 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of Templates: time 0.005724/0.228, allocations: 2.607 MB / 0.9128 GB, free: 51.17 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)