Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 108 kB / 16.38 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 190.7 kB / 17.32 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.684/1.684, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.032/2.032, allocations: 292.3 MB / 0.5496 GB, free: 17.51 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 71.39 kB / 0.6729 GB, free: 5.859 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3183, allocations: 114.6 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002722/0.3211, allocations: 0.8791 MB / 0.7857 GB, free: 2.301 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002612/0.3238, allocations: 1.308 MB / 0.787 GB, free: 0.9766 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.3239, allocations: 4 kB / 0.787 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.3241, allocations: 11.81 kB / 0.787 GB, free: 0.9609 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.3243, allocations: 31.77 kB / 0.787 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009272/0.3253, allocations: 272.3 kB / 0.7873 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000489/0.3258, allocations: 291.4 kB / 0.7875 GB, free: 392 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.3259, allocations: 37.11 kB / 0.7876 GB, free: 356 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003096/0.3263, allocations: 131.7 kB / 0.7877 GB, free: 224 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.3266, allocations: 127.6 kB / 0.7878 GB, free: 96 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.917e-05/0.3267, allocations: 20 kB / 0.7878 GB, free: 76 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.3268, allocations: 39.98 kB / 0.7879 GB, free: 36 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.5477/0.8744, allocations: 35.98 kB / 0.7879 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0004597/0.875, allocations: 103.6 kB / 0.788 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004909/0.8755, allocations: 261.5 kB / 0.7883 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.8755, allocations: 0.8438 kB / 0.7883 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.026e-06/0.8755, allocations: 0 / 0.7883 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.8755, allocations: 0 / 0.7883 GB, free: 47.36 MB / 0.6544 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.00143/0.877, allocations: 0.5408 MB / 0.7888 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 8.719e-05/0.8771, allocations: 14.7 kB / 0.7888 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.8772, allocations: 23.19 kB / 0.7888 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.8776, allocations: 227.8 kB / 0.789 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.988e-05/0.8776, allocations: 14.5 kB / 0.7891 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.8777, allocations: 16.12 kB / 0.7891 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.8781, allocations: 185.1 kB / 0.7892 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.8781, allocations: 1.906 kB / 0.7892 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.8781, allocations: 12.06 kB / 0.7893 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.8781, allocations: 2.188 kB / 0.7893 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002156/0.8783, allocations: 92.44 kB / 0.7893 GB, free: 46.67 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006647/0.879, allocations: 472.6 kB / 0.7898 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.8793, allocations: 140.3 kB / 0.7899 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.8794, allocations: 89.5 kB / 0.79 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.8795, allocations: 3.219 kB / 0.79 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003297/0.8798, allocations: 210.5 kB / 0.7902 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=28): time 1.883e-06/0.8798, allocations: 5.281 kB / 0.7902 GB, free: 46.31 MB / 0.6544 GB Notification: Performance of matching and sorting (n=28): time 0.0008582/0.8807, allocations: 454.5 kB / 0.7907 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.8807, allocations: 60.17 kB / 0.7907 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.8808, allocations: 145.8 kB / 0.7909 GB, free: 46.11 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.8809, allocations: 37.23 kB / 0.7909 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.063e-05/0.881, allocations: 104.6 kB / 0.791 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.035e-05/0.881, allocations: 66.33 kB / 0.7911 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.8812, allocations: 95.78 kB / 0.7911 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.292e-05/0.8813, allocations: 334.7 kB / 0.7915 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.8816, allocations: 143.3 kB / 0.7916 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.8819, allocations: 207.6 kB / 0.7918 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004747/0.8824, allocations: 355.9 kB / 0.7921 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.8824, allocations: 1.281 kB / 0.7921 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008709/0.8833, allocations: 0.4914 MB / 0.7926 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.169e-05/0.8833, allocations: 68.7 kB / 0.7927 GB, free: 45.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.8834, allocations: 8.359 kB / 0.7927 GB, free: 45.28 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.8834, allocations: 0 / 0.7927 GB, free: 45.28 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/0.8837, allocations: 54.23 kB / 0.7927 GB, free: 45.28 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/0.8837, allocations: 3.438 kB / 0.7927 GB, free: 45.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/0.8841, allocations: 78.86 kB / 0.7928 GB, free: 45.26 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.825e-05/0.8842, allocations: 29.27 kB / 0.7929 GB, free: 45.26 MB / 0.6544 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,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,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 (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0001973/0.8844, allocations: 169 kB / 0.793 GB, free: 45.14 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.924e-05/0.8844, allocations: 17.75 kB / 0.793 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.729e-05/0.8845, allocations: 13.92 kB / 0.793 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.8845, allocations: 3.375 kB / 0.793 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.8845, allocations: 1.125 kB / 0.793 GB, free: 45.13 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.8845, allocations: 89.05 kB / 0.7931 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.33e-05/0.8846, allocations: 23.66 kB / 0.7932 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.494e-05/0.8847, allocations: 4.875 kB / 0.7932 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.8848, allocations: 19 kB / 0.7932 GB, free: 45.03 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006711/0.8855, allocations: 432.7 kB / 0.7936 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006266/0.8861, allocations: 0.5261 MB / 0.7941 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002072/0.8863, allocations: 114.9 kB / 0.7942 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 7.742e-05/0.8864, allocations: 99.14 kB / 0.7943 GB, free: 44.62 MB / 0.6544 GB Notification: Performance of Backend: time 1.402e-06/0.8864, allocations: 0 / 0.7943 GB, free: 44.62 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001072/0.8875, allocations: 454.9 kB / 0.7947 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of SimCode: time 0.001005/0.8885, allocations: 0.7253 MB / 0.7955 GB, free: 43.8 MB / 0.6544 GB Notification: Performance of Templates: time 0.009375/0.8979, allocations: 3.688 MB / 0.7991 GB, free: 43.67 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)