Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.986/2.986, allocations: 285 MB / 292.5 MB, free: 10.47 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001465/0.001465, allocations: 172.2 kB / 360.7 MB, free: 7.246 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.3 MB / 0.6192 GB, free: 12.11 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 89.28 kB / 0.7322 GB, free: 44.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.878e-05/4.888e-05, allocations: 4 kB / 0.8509 GB, free: 3.332 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9011/0.9012, allocations: 115.3 MB / 0.9634 GB, free: 78.52 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2418/1.143, allocations: 137.8 MB / 1.098 GB, free: 2.688 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/1.143, allocations: 71.23 kB / 1.098 GB, free: 2.621 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0289/1.172, allocations: 5.488 MB / 1.103 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.595e-06/1.172, allocations: 0 / 1.103 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.223e-05/1.172, allocations: 4 kB / 1.103 GB, free: 13.19 MB / 0.7136 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.001294/1.174, allocations: 496.1 kB / 1.104 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.358e-05/1.174, allocations: 12.03 kB / 1.104 GB, free: 12.64 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/1.174, allocations: 21 kB / 1.104 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006264/1.175, allocations: 239 kB / 1.104 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.487e-05/1.175, allocations: 8 kB / 1.104 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/1.175, allocations: 23.98 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003512/1.175, allocations: 68.45 kB / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/1.176, allocations: 175.2 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/1.176, allocations: 0 / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.944e-05/1.176, allocations: 7.984 kB / 1.104 GB, free: 12.06 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/1.176, allocations: 4 kB / 1.104 GB, free: 12.06 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/1.177, allocations: 449.7 kB / 1.105 GB, free: 11.58 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/1.178, allocations: 122.9 kB / 1.105 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/1.178, allocations: 84.59 kB / 1.105 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/1.178, allocations: 8.188 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006519/1.179, allocations: 209.3 kB / 1.105 GB, free: 11.15 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=28): time 5.3e-06/1.179, allocations: 0 / 1.105 GB, free: 11.15 MB / 0.7136 GB Notification: Performance of matching and sorting (n=28): time 0.001371/1.18, allocations: 341.4 kB / 1.106 GB, free: 10.81 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.508e-05/1.18, allocations: 59.39 kB / 1.106 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/1.181, allocations: 135.5 kB / 1.106 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001376/1.181, allocations: 37.7 kB / 1.106 GB, free: 10.56 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/1.181, allocations: 102.1 kB / 1.106 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/1.181, allocations: 63.25 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.79e-05/1.181, allocations: 4 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001967/1.181, allocations: 334.8 kB / 1.106 GB, free: 10.05 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005485/1.182, allocations: 120.4 kB / 1.106 GB, free: 9.938 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006319/1.183, allocations: 184.8 kB / 1.107 GB, free: 9.734 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/1.184, allocations: 149.3 kB / 1.107 GB, free: 9.59 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/1.184, allocations: 0 / 1.107 GB, free: 9.59 MB / 0.7136 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002063/1.186, allocations: 415.3 kB / 1.107 GB, free: 9.18 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/1.186, allocations: 69.42 kB / 1.107 GB, free: 9.102 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/1.186, allocations: 0 / 1.107 GB, free: 9.102 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.234e-05/1.186, allocations: 4 kB / 1.107 GB, free: 9.098 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007209/1.187, allocations: 59.91 kB / 1.107 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/1.187, allocations: 7.953 kB / 1.107 GB, free: 9.031 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/1.188, allocations: 79.88 kB / 1.107 GB, free: 8.953 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/1.188, allocations: 25.55 kB / 1.107 GB, free: 8.93 MB / 0.7136 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 () * 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.0003699/1.188, allocations: 165.8 kB / 1.108 GB, free: 8.762 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/1.188, allocations: 19.81 kB / 1.108 GB, free: 8.742 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.432e-05/1.189, allocations: 9.969 kB / 1.108 GB, free: 8.734 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/1.189, allocations: 7.938 kB / 1.108 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/1.189, allocations: 3.984 kB / 1.108 GB, free: 8.723 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/1.189, allocations: 3.953 kB / 1.108 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/1.19, allocations: 0.6116 MB / 1.108 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/1.19, allocations: 0 / 1.108 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/1.191, allocations: 7.984 kB / 1.108 GB, free: 8.059 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.692e-05/1.191, allocations: 4 kB / 1.108 GB, free: 8.055 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6e-05/1.191, allocations: 7.984 kB / 1.108 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/1.191, allocations: 0 / 1.108 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/1.191, allocations: 0 / 1.108 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/1.192, allocations: 443.1 kB / 1.109 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/1.192, allocations: 100.8 kB / 1.109 GB, free: 7.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/1.192, allocations: 15.98 kB / 1.109 GB, free: 7.465 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003521/1.193, allocations: 7.984 kB / 1.109 GB, free: 7.457 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.936e-05/1.193, allocations: 15.98 kB / 1.109 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.699e-05/1.193, allocations: 19.97 kB / 1.109 GB, free: 7.422 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001297/1.193, allocations: 95.23 kB / 1.109 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.01e-07/1.193, allocations: 0 / 1.109 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0009746/1.194, allocations: 71.98 kB / 1.109 GB, free: 7.258 MB / 0.7136 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]) * 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.0004409/1.195, allocations: 145.3 kB / 1.109 GB, free: 7.105 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001413/1.196, allocations: 410.6 kB / 1.109 GB, free: 6.68 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/1.196, allocations: 0 / 1.109 GB, free: 6.68 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0004252/1.196, allocations: 112.4 kB / 1.11 GB, free: 6.57 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007007/1.197, allocations: 24.22 kB / 1.11 GB, free: 6.547 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009716/1.198, allocations: 203.8 kB / 1.11 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/1.199, allocations: 0.7246 MB / 1.11 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0002093/1.199, allocations: 23.02 kB / 1.11 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/1.199, allocations: 23.42 kB / 1.111 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of SimCode: time 1.593e-06/1.199, allocations: 0 / 1.111 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of Templates: time 0.01521/1.214, allocations: 3.165 MB / 1.114 GB, free: 2.457 MB / 0.7136 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)