Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.644/2.644, allocations: 287.5 MB / 303.2 MB, free: 8.172 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001311/0.001311, allocations: 180.1 kB / 371.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.4 MB / 0.6305 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009016/0.0009015, allocations: 96.16 kB / 0.7438 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004859/0.0004861, allocations: 12.45 kB / 0.8667 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.222, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9771/1.199, allocations: 138.5 MB / 1.115 GB, free: 15.92 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/1.199, allocations: 76.52 kB / 1.115 GB, free: 15.92 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02541/1.225, allocations: 5.559 MB / 1.12 GB, free: 31.32 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.284e-06/1.225, allocations: 4 kB / 1.12 GB, free: 31.31 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.475e-05/1.225, allocations: 3.844 kB / 1.12 GB, free: 31.31 MB / 0.698 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.0009009/1.226, allocations: 0.4906 MB / 1.121 GB, free: 30.85 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/1.226, allocations: 11.47 kB / 1.121 GB, free: 30.85 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.823e-05/1.226, allocations: 20.38 kB / 1.121 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/1.226, allocations: 243.2 kB / 1.121 GB, free: 30.63 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.566e-05/1.226, allocations: 18.66 kB / 1.121 GB, free: 30.63 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.633e-05/1.227, allocations: 27.16 kB / 1.121 GB, free: 30.62 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005345/1.227, allocations: 192.3 kB / 1.121 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/1.227, allocations: 4.125 kB / 1.121 GB, free: 30.59 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/1.227, allocations: 10.61 kB / 1.121 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/1.227, allocations: 2.625 kB / 1.121 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003424/1.228, allocations: 94.25 kB / 1.121 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008432/1.228, allocations: 496.2 kB / 1.122 GB, free: 30.29 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003736/1.229, allocations: 144 kB / 1.122 GB, free: 30.27 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/1.229, allocations: 96.67 kB / 1.122 GB, free: 30.26 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/1.229, allocations: 3.938 kB / 1.122 GB, free: 30.25 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004946/1.23, allocations: 217.6 kB / 1.122 GB, free: 30.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=28): time 3.446e-06/1.23, allocations: 0 / 1.122 GB, free: 30.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=28): time 0.001337/1.231, allocations: 467.1 kB / 1.123 GB, free: 30.15 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/1.231, allocations: 63.19 kB / 1.123 GB, free: 30.08 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/1.231, allocations: 144.9 kB / 1.123 GB, free: 29.98 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.302e-05/1.231, allocations: 40.27 kB / 1.123 GB, free: 29.95 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/1.231, allocations: 102 kB / 1.123 GB, free: 29.86 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.651e-05/1.231, allocations: 64.12 kB / 1.123 GB, free: 29.84 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.653e-05/1.232, allocations: 11.5 kB / 1.123 GB, free: 29.84 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001336/1.232, allocations: 333.3 kB / 1.123 GB, free: 29.52 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004533/1.232, allocations: 143.5 kB / 1.123 GB, free: 29.52 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004777/1.233, allocations: 198.2 kB / 1.124 GB, free: 29.46 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007623/1.233, allocations: 361.4 kB / 1.124 GB, free: 29.33 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/1.233, allocations: 0 / 1.124 GB, free: 29.33 MB / 0.698 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001266/1.235, allocations: 0.4946 MB / 1.124 GB, free: 29.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.257e-05/1.235, allocations: 69.55 kB / 1.124 GB, free: 29.14 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/1.235, allocations: 0 / 1.124 GB, free: 29.14 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/1.235, allocations: 11.75 kB / 1.124 GB, free: 29.13 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004522/1.235, allocations: 63.59 kB / 1.125 GB, free: 29.12 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/1.235, allocations: 8.438 kB / 1.125 GB, free: 29.12 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/1.236, allocations: 95.19 kB / 1.125 GB, free: 29.11 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/1.236, allocations: 22.66 kB / 1.125 GB, free: 29.11 MB / 0.698 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,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * 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.0002663/1.236, allocations: 164.9 kB / 1.125 GB, free: 28.98 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.06e-05/1.236, allocations: 18.83 kB / 1.125 GB, free: 28.98 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.165e-05/1.236, allocations: 12.19 kB / 1.125 GB, free: 28.98 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/1.237, allocations: 7.875 kB / 1.125 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/1.237, allocations: 0 / 1.125 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/1.237, allocations: 0 / 1.125 GB, free: 28.97 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/1.238, allocations: 0.6876 MB / 1.126 GB, free: 28.65 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/1.238, allocations: 6.938 kB / 1.126 GB, free: 28.65 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.85e-05/1.238, allocations: 11.56 kB / 1.126 GB, free: 28.64 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/1.238, allocations: 96 / 1.126 GB, free: 28.64 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/1.238, allocations: 12.77 kB / 1.126 GB, free: 28.64 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/1.238, allocations: 3.812 kB / 1.126 GB, free: 28.64 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/1.238, allocations: 3.984 kB / 1.126 GB, free: 28.64 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009122/1.239, allocations: 470.8 kB / 1.126 GB, free: 28.49 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.346e-05/1.239, allocations: 102 kB / 1.126 GB, free: 28.38 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.523e-05/1.239, allocations: 14.47 kB / 1.126 GB, free: 28.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/1.239, allocations: 16.48 kB / 1.126 GB, free: 28.38 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/1.239, allocations: 17.45 kB / 1.126 GB, free: 28.38 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.413e-05/1.239, allocations: 13.41 kB / 1.126 GB, free: 28.38 MB / 0.698 GB Notification: Performance of sorting global known variables: time 8.792e-05/1.239, allocations: 103.3 kB / 1.126 GB, free: 28.31 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.81e-07/1.239, allocations: 4 kB / 1.126 GB, free: 28.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005559/1.24, allocations: 74.94 kB / 1.126 GB, free: 28.3 MB / 0.698 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 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[3],triMovMea.ySample[2],triMovMea.ySample[1],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.0002488/1.24, allocations: 136.9 kB / 1.126 GB, free: 28.21 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001061/1.241, allocations: 446.9 kB / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/1.241, allocations: 8.125 kB / 1.127 GB, free: 28.07 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003385/1.242, allocations: 126.7 kB / 1.127 GB, free: 28.06 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005533/1.242, allocations: 43.66 kB / 1.127 GB, free: 28.05 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008738/1.243, allocations: 339.5 kB / 1.127 GB, free: 27.86 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/1.244, allocations: 0.7189 MB / 1.128 GB, free: 27.16 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001287/1.244, allocations: 23.06 kB / 1.128 GB, free: 27.15 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/1.244, allocations: 15.09 kB / 1.128 GB, free: 27.14 MB / 0.698 GB Notification: Performance of SimCode: time 1.132e-06/1.244, allocations: 0 / 1.128 GB, free: 27.14 MB / 0.698 GB Notification: Performance of Templates: time 0.009493/1.253, allocations: 3.353 MB / 1.131 GB, free: 26.89 MB / 0.698 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)