Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.496/2.496, allocations: 251.1 MB / 266.7 MB, free: 11.63 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.001313/0.001313, allocations: 183.3 kB / 326.3 MB, free: 2.852 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.489/2.489, allocations: 205.4 MB / 0.5772 GB, free: 20.81 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.001342/0.001341, allocations: 96.47 kB / 0.6817 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005141/0.0005143, allocations: 14.42 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2215, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001966/0.2235, allocations: 1.32 MB / 0.9008 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008844/0.2245, allocations: 363.9 kB / 0.9012 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.67e-05/0.2246, allocations: 3.938 kB / 0.9012 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.2247, allocations: 7.922 kB / 0.9012 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.2249, allocations: 35.78 kB / 0.9012 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.2252, allocations: 63.84 kB / 0.9013 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002007/0.2254, allocations: 167.5 kB / 0.9014 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.2255, allocations: 17.48 kB / 0.9014 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.2257, allocations: 75.75 kB / 0.9015 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.2259, allocations: 75.72 kB / 0.9016 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.226, allocations: 12 kB / 0.9016 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.427e-05/0.226, allocations: 4 kB / 0.9016 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.2261, allocations: 35.91 kB / 0.9016 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.044e-05/0.2262, allocations: 53.56 kB / 0.9017 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.2263, allocations: 120 kB / 0.9018 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2263, allocations: 0 / 0.9018 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.953e-06/0.2264, allocations: 0 / 0.9018 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.2264, allocations: 0 / 0.9018 GB, free: 63.18 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.001073/0.2275, allocations: 471.2 kB / 0.9022 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.2275, allocations: 12.03 kB / 0.9023 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.2276, allocations: 16.75 kB / 0.9023 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.2278, allocations: 212.1 kB / 0.9025 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/0.2279, allocations: 12.38 kB / 0.9025 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.589e-05/0.2279, allocations: 16.36 kB / 0.9025 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000527/0.2285, allocations: 191.2 kB / 0.9027 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2285, allocations: 192 / 0.9027 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.2286, allocations: 11.92 kB / 0.9027 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-06/0.2286, allocations: 7.938 kB / 0.9027 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.2289, allocations: 95.94 kB / 0.9028 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008068/0.2298, allocations: 424.3 kB / 0.9032 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003877/0.2302, allocations: 154.3 kB / 0.9033 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.2304, allocations: 100.8 kB / 0.9034 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.2305, allocations: 8 kB / 0.9035 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004791/0.231, allocations: 191.9 kB / 0.9036 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 3.446e-06/0.231, allocations: 0 / 0.9036 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.001207/0.2322, allocations: 445.5 kB / 0.9041 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.2323, allocations: 59.39 kB / 0.9041 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.2324, allocations: 142.1 kB / 0.9043 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/0.2325, allocations: 41.69 kB / 0.9043 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.232e-05/0.2326, allocations: 100.5 kB / 0.9044 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.939e-05/0.2327, allocations: 71.23 kB / 0.9045 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.2327, allocations: 4 kB / 0.9045 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.574e-05/0.2328, allocations: 334.8 kB / 0.9048 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.2331, allocations: 108.3 kB / 0.9049 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003452/0.2335, allocations: 175.2 kB / 0.905 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.2338, allocations: 129.1 kB / 0.9052 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.2338, allocations: 0 / 0.9052 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008305/0.2347, allocations: 347 kB / 0.9055 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.2347, allocations: 8.156 kB / 0.9055 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.2347, allocations: 4 kB / 0.9055 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.2348, allocations: 0 / 0.9055 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004519/0.2352, allocations: 63.91 kB / 0.9056 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.2353, allocations: 4 kB / 0.9056 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.2356, allocations: 39.72 kB / 0.9056 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.184e-05/0.2356, allocations: 16 kB / 0.9056 GB, free: 59.01 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.0002035/0.2358, allocations: 161.6 kB / 0.9058 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.2359, allocations: 19.8 kB / 0.9058 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.39e-05/0.2359, allocations: 17.88 kB / 0.9058 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.236, allocations: 0 / 0.9058 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.236, allocations: 0 / 0.9058 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.576e-05/0.236, allocations: 96.8 kB / 0.9059 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.465e-05/0.2361, allocations: 23.91 kB / 0.9059 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002756/0.2364, allocations: 24.08 kB / 0.906 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.934e-05/0.2365, allocations: 23.95 kB / 0.906 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009886/0.2375, allocations: 442.7 kB / 0.9064 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0008774/0.2384, allocations: 0.5031 MB / 0.9069 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003015/0.2387, allocations: 120.4 kB / 0.907 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.645e-05/0.2388, allocations: 108.8 kB / 0.9071 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of Backend: time 8.92e-07/0.2388, allocations: 0 / 0.9071 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0008871/0.2397, allocations: 265.9 kB / 0.9074 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0009384/0.2407, allocations: 0.7576 MB / 0.9081 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of Templates: time 0.007858/0.2485, allocations: 2.516 MB / 0.9106 GB, free: 53.87 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)