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.368/1.368, allocations: 251.5 MB / 267.4 MB, free: 11.09 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.001033/0.001033, allocations: 176.5 kB / 326.5 MB, free: 2.715 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.75/1.75, allocations: 205 MB / 0.5767 GB, free: 20.97 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.0007409/0.000741, allocations: 90.36 kB / 0.6804 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003373, allocations: 11.66 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2543, allocations: 105.4 MB / 0.8968 GB, free: 68.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001852/0.2562, allocations: 1.358 MB / 0.8981 GB, free: 66.81 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006813/0.2569, allocations: 381.2 kB / 0.8985 GB, free: 66.44 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.825e-05/0.257, allocations: 0 / 0.8985 GB, free: 66.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.2571, allocations: 11.88 kB / 0.8985 GB, free: 66.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.2573, allocations: 31.83 kB / 0.8985 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.2575, allocations: 63.86 kB / 0.8986 GB, free: 66.33 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.2577, allocations: 171.5 kB / 0.8987 GB, free: 66.16 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2578, allocations: 37.61 kB / 0.8988 GB, free: 66.12 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.2579, allocations: 79.69 kB / 0.8988 GB, free: 66.04 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.2581, allocations: 79.66 kB / 0.8989 GB, free: 65.96 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.2582, allocations: 8 kB / 0.8989 GB, free: 65.96 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.376e-05/0.2582, allocations: 4 kB / 0.8989 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.057e-05/0.2583, allocations: 39.88 kB / 0.899 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.748e-05/0.2584, allocations: 71.55 kB / 0.899 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001674/0.2585, allocations: 159.5 kB / 0.8992 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2586, allocations: 0 / 0.8992 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.404e-06/0.2586, allocations: 0 / 0.8992 GB, free: 65.69 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.2586, allocations: 0 / 0.8992 GB, free: 65.69 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.0008487/0.2594, allocations: 468.6 kB / 0.8996 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2595, allocations: 8.031 kB / 0.8996 GB, free: 65.17 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.893e-05/0.2595, allocations: 20.75 kB / 0.8997 GB, free: 65.15 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.2597, allocations: 212.1 kB / 0.8999 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.2598, allocations: 12.36 kB / 0.8999 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.2598, allocations: 16.38 kB / 0.8999 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003153/0.2601, allocations: 190.1 kB / 0.9001 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.2601, allocations: 4.188 kB / 0.9001 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.295e-05/0.2602, allocations: 7.922 kB / 0.9001 GB, free: 64.68 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.2602, allocations: 7.984 kB / 0.9001 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.2604, allocations: 99.88 kB / 0.9002 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/0.2609, allocations: 420.3 kB / 0.9006 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.2612, allocations: 158.3 kB / 0.9007 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.2613, allocations: 96.81 kB / 0.9008 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.2613, allocations: 4.156 kB / 0.9008 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.2616, allocations: 203.8 kB / 0.901 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.2616, allocations: 0 / 0.901 GB, free: 63.63 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.000698/0.2623, allocations: 446.7 kB / 0.9014 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.2624, allocations: 55.41 kB / 0.9015 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.2625, allocations: 148.2 kB / 0.9016 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.2625, allocations: 33.7 kB / 0.9017 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/0.2626, allocations: 112.5 kB / 0.9018 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.594e-05/0.2626, allocations: 67.19 kB / 0.9018 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.2627, allocations: 41.7 kB / 0.9019 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.453e-05/0.2628, allocations: 334.8 kB / 0.9022 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.2629, allocations: 100.3 kB / 0.9023 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001824/0.2631, allocations: 179.5 kB / 0.9025 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003292/0.2635, allocations: 275.8 kB / 0.9027 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2635, allocations: 0 / 0.9027 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004315/0.2639, allocations: 347.1 kB / 0.9031 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2639, allocations: 8 kB / 0.9031 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.264, allocations: 0 / 0.9031 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.264, allocations: 4 kB / 0.9031 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.2642, allocations: 63.89 kB / 0.9031 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.2642, allocations: 7.938 kB / 0.9031 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.2644, allocations: 39.73 kB / 0.9032 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.2644, allocations: 16.03 kB / 0.9032 GB, free: 61.3 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,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition2,booPul1.pulseStart,$PRE.booPul1.pulseStart,booPul1.y,$whenCondition3,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.2645, allocations: 169.7 kB / 0.9034 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.2646, allocations: 15.91 kB / 0.9034 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.357e-05/0.2646, allocations: 13.88 kB / 0.9034 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2646, allocations: 3.984 kB / 0.9034 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2646, allocations: 0 / 0.9034 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.335e-05/0.2647, allocations: 92.86 kB / 0.9035 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.133e-05/0.2647, allocations: 23.92 kB / 0.9035 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.2649, allocations: 27.97 kB / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.2649, allocations: 15.98 kB / 0.9035 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005282/0.2655, allocations: 443.9 kB / 0.904 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004748/0.266, allocations: 0.5186 MB / 0.9045 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001569/0.2661, allocations: 115.9 kB / 0.9046 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.696e-05/0.2662, allocations: 113.9 kB / 0.9047 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of Backend: time 3.4e-07/0.2662, allocations: 0 / 0.9047 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005424/0.2667, allocations: 251.9 kB / 0.9049 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0006546/0.2674, allocations: 0.7638 MB / 0.9057 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of Templates: time 0.004755/0.2722, allocations: 2.611 MB / 0.9082 GB, free: 56.06 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)