Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.4/2.4, allocations: 251.3 MB / 266.2 MB, free: 11.52 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001319/0.001319, allocations: 186.2 kB / 325.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.622/2.622, allocations: 205.4 MB / 0.5767 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009457/0.0009457, allocations: 88 kB / 0.6812 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004753/0.0004757, allocations: 13.64 kB / 0.7953 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2135, allocations: 106.3 MB / 0.899 GB, free: 65.4 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001908/0.2155, allocations: 1.324 MB / 0.9003 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008523/0.2164, allocations: 363.9 kB / 0.9007 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.907e-05/0.2164, allocations: 7.938 kB / 0.9007 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 9.499e-05/0.2166, allocations: 3.938 kB / 0.9007 GB, free: 63.69 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.2167, allocations: 31.75 kB / 0.9007 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.217, allocations: 63.88 kB / 0.9008 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001968/0.2172, allocations: 163.5 kB / 0.9009 GB, free: 63.44 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.2174, allocations: 29.48 kB / 0.901 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.2176, allocations: 71.75 kB / 0.901 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.2177, allocations: 79.72 kB / 0.9011 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.2178, allocations: 4 kB / 0.9011 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.41e-05/0.2178, allocations: 8 kB / 0.9011 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.328e-05/0.2179, allocations: 31.89 kB / 0.9012 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.668e-05/0.218, allocations: 57.56 kB / 0.9012 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.2182, allocations: 120 kB / 0.9013 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2182, allocations: 0 / 0.9013 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.345e-06/0.2182, allocations: 0 / 0.9013 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.2182, allocations: 0 / 0.9013 GB, free: 63.03 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.001107/0.2194, allocations: 475.2 kB / 0.9018 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.2194, allocations: 8.031 kB / 0.9018 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.892e-05/0.2195, allocations: 16.75 kB / 0.9018 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.2197, allocations: 217 kB / 0.902 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.2198, allocations: 8.375 kB / 0.902 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.2198, allocations: 20.36 kB / 0.902 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.2204, allocations: 182.1 kB / 0.9022 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.2204, allocations: 192 / 0.9022 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/0.2204, allocations: 11.94 kB / 0.9022 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2204, allocations: 4 kB / 0.9022 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/0.2208, allocations: 103.9 kB / 0.9023 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007823/0.2216, allocations: 420.4 kB / 0.9027 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.222, allocations: 154.2 kB / 0.9029 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/0.2223, allocations: 101.6 kB / 0.903 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.2223, allocations: 0 / 0.903 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000473/0.2228, allocations: 203.9 kB / 0.9032 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 2.976e-06/0.2228, allocations: 0 / 0.9032 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.001206/0.2241, allocations: 436.8 kB / 0.9036 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/0.2241, allocations: 63.39 kB / 0.9036 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.2243, allocations: 144 kB / 0.9038 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.818e-05/0.2244, allocations: 45.62 kB / 0.9038 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.2244, allocations: 100.5 kB / 0.9039 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.702e-05/0.2245, allocations: 67.23 kB / 0.904 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.2245, allocations: 8 kB / 0.904 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.2246, allocations: 338.8 kB / 0.9043 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.2249, allocations: 104.3 kB / 0.9044 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.2253, allocations: 175.3 kB / 0.9046 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003451/0.2257, allocations: 133 kB / 0.9047 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2257, allocations: 4 kB / 0.9047 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008671/0.2266, allocations: 339 kB / 0.905 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.2266, allocations: 10.19 kB / 0.905 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.2266, allocations: 0 / 0.905 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.2267, allocations: 4 kB / 0.9051 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004474/0.2271, allocations: 55.91 kB / 0.9051 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.2271, allocations: 8.156 kB / 0.9051 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.2274, allocations: 43.73 kB / 0.9052 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.172e-05/0.2275, allocations: 11.98 kB / 0.9052 GB, free: 58.86 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.0002099/0.2277, allocations: 165.6 kB / 0.9053 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.937e-05/0.2278, allocations: 15.81 kB / 0.9053 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.439e-05/0.2278, allocations: 21.86 kB / 0.9054 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.2279, allocations: 4 kB / 0.9054 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.2279, allocations: 4 kB / 0.9054 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2279, allocations: 0 / 0.9054 GB, free: 58.65 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.2293, allocations: 0.7284 MB / 0.9061 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.2293, allocations: 4 kB / 0.9061 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.035e-05/0.2294, allocations: 7.984 kB / 0.9061 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.2294, allocations: 0 / 0.9061 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.585e-05/0.2295, allocations: 19.91 kB / 0.9061 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2295, allocations: 0 / 0.9061 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2295, allocations: 4 kB / 0.9061 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008561/0.2304, allocations: 439.9 kB / 0.9065 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.466e-05/0.2304, allocations: 92.91 kB / 0.9066 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.333e-05/0.2305, allocations: 23.92 kB / 0.9066 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.2308, allocations: 15.98 kB / 0.9067 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.218e-05/0.2309, allocations: 19.97 kB / 0.9067 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.864e-05/0.231, allocations: 23.98 kB / 0.9067 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.646e-05/0.2311, allocations: 110.1 kB / 0.9068 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2311, allocations: 0 / 0.9068 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004189/0.2315, allocations: 55.94 kB / 0.9069 GB, free: 57.04 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.0001907/0.2317, allocations: 125.5 kB / 0.907 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0007366/0.2324, allocations: 259.8 kB / 0.9072 GB, free: 56.65 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2325, allocations: 8 kB / 0.9072 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003169/0.2328, allocations: 122.4 kB / 0.9074 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005128/0.2333, allocations: 31.97 kB / 0.9074 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008402/0.2342, allocations: 359.3 kB / 0.9077 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.2344, allocations: 0.7245 MB / 0.9084 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001069/0.2345, allocations: 21.95 kB / 0.9085 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.729e-05/0.2346, allocations: 19.44 kB / 0.9085 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of SimCode: time 7.11e-07/0.2346, allocations: 4 kB / 0.9085 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of Templates: time 0.007158/0.2418, allocations: 2.429 MB / 0.9108 GB, free: 52.91 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)