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.298/1.298, allocations: 252 MB / 267.9 MB, free: 10.95 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.0009205/0.0009205, allocations: 181.5 kB / 327.6 MB, free: 2.18 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.418/1.418, allocations: 205.4 MB / 0.5785 GB, free: 20.2 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.0007433/0.0007433, allocations: 83.75 kB / 0.6831 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.0004091, allocations: 13 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2209, allocations: 106.3 MB / 0.9012 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.3857, allocations: 132.3 MB / 1.03 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.386, allocations: 67.97 kB / 1.03 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01023/0.3963, allocations: 3.688 MB / 1.034 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.214e-06/0.3963, allocations: 0 / 1.034 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.655e-05/0.3963, allocations: 4 kB / 1.034 GB, free: 7.504 MB / 0.6823 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.0007845/0.3971, allocations: 472.2 kB / 1.035 GB, free: 6.988 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.3972, allocations: 8.031 kB / 1.035 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.771e-05/0.3973, allocations: 24.73 kB / 1.035 GB, free: 6.957 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.3976, allocations: 229.1 kB / 1.035 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.3976, allocations: 16.38 kB / 1.035 GB, free: 6.68 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.3977, allocations: 20.36 kB / 1.035 GB, free: 6.66 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.398, allocations: 194.1 kB / 1.035 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3981, allocations: 192 / 1.035 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.3981, allocations: 11.92 kB / 1.035 GB, free: 6.453 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3981, allocations: 0 / 1.035 GB, free: 6.453 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002443/0.3984, allocations: 107.9 kB / 1.035 GB, free: 6.348 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006657/0.3991, allocations: 436.4 kB / 1.036 GB, free: 5.871 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.3994, allocations: 149.5 kB / 1.036 GB, free: 5.719 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.3995, allocations: 104.8 kB / 1.036 GB, free: 5.613 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.3996, allocations: 0 / 1.036 GB, free: 5.613 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003678/0.3999, allocations: 205.1 kB / 1.036 GB, free: 5.398 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=28): time 2.194e-06/0.4, allocations: 3.938 kB / 1.036 GB, free: 5.395 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.000821/0.4008, allocations: 454.2 kB / 1.036 GB, free: 4.949 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.4009, allocations: 59.34 kB / 1.036 GB, free: 4.879 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.401, allocations: 152.3 kB / 1.037 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.401, allocations: 41.7 kB / 1.037 GB, free: 4.672 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.489e-05/0.4011, allocations: 100.6 kB / 1.037 GB, free: 4.57 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.512e-05/0.4012, allocations: 67.23 kB / 1.037 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.602e-05/0.4012, allocations: 8 kB / 1.037 GB, free: 4.496 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.4013, allocations: 338.8 kB / 1.037 GB, free: 4.156 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.4015, allocations: 100.7 kB / 1.037 GB, free: 4.055 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.4018, allocations: 164.3 kB / 1.037 GB, free: 3.867 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004184/0.4022, allocations: 276.3 kB / 1.038 GB, free: 3.574 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.4022, allocations: 0 / 1.038 GB, free: 3.574 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005484/0.4028, allocations: 339.1 kB / 1.038 GB, free: 3.238 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.4028, allocations: 4 kB / 1.038 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4028, allocations: 4 kB / 1.038 GB, free: 3.23 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.4028, allocations: 4 kB / 1.038 GB, free: 3.227 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.4031, allocations: 67.91 kB / 1.038 GB, free: 3.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.4031, allocations: 11.88 kB / 1.038 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.4033, allocations: 47.88 kB / 1.038 GB, free: 3.102 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.4033, allocations: 12 kB / 1.038 GB, free: 3.09 MB / 0.6823 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 (46): * Single equations (assignments): 46 * Array equations: 0 * 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.0001495/0.4035, allocations: 165.7 kB / 1.038 GB, free: 2.918 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.993e-05/0.4035, allocations: 15.81 kB / 1.038 GB, free: 2.902 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.573e-05/0.4035, allocations: 17.81 kB / 1.038 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.4036, allocations: 8 kB / 1.038 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4036, allocations: 0 / 1.038 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.4036, allocations: 3.984 kB / 1.038 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009558/0.4045, allocations: 0.7334 MB / 1.039 GB, free: 2.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.4046, allocations: 0 / 1.039 GB, free: 2.082 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.374e-05/0.4046, allocations: 11.94 kB / 1.039 GB, free: 2.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.4046, allocations: 3.938 kB / 1.039 GB, free: 2.066 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.4046, allocations: 8.078 kB / 1.039 GB, free: 2.059 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.4047, allocations: 7.922 kB / 1.039 GB, free: 2.051 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4047, allocations: 4 kB / 1.039 GB, free: 2.047 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005607/0.4052, allocations: 467.4 kB / 1.04 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.4053, allocations: 92.86 kB / 1.04 GB, free: 1.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.148e-05/0.4053, allocations: 15.98 kB / 1.04 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.4055, allocations: 31.91 kB / 1.04 GB, free: 1.418 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.206e-05/0.4056, allocations: 19.97 kB / 1.04 GB, free: 1.398 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.4056, allocations: 15.98 kB / 1.04 GB, free: 1.383 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.097e-05/0.4057, allocations: 113.1 kB / 1.04 GB, free: 1.273 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4057, allocations: 0 / 1.04 GB, free: 1.273 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000284/0.406, allocations: 52 kB / 1.04 GB, free: 1.223 MB / 0.6823 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 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.0001679/0.4062, allocations: 133.4 kB / 1.04 GB, free: 1.082 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004459/0.4066, allocations: 268 kB / 1.04 GB, free: 0.8203 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4066, allocations: 0 / 1.04 GB, free: 0.8203 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.4068, allocations: 123.9 kB / 1.04 GB, free: 0.6992 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.4072, allocations: 35.27 kB / 1.04 GB, free: 0.668 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005844/0.4078, allocations: 355.4 kB / 1.041 GB, free: 296 kB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.408, allocations: 0.7249 MB / 1.041 GB, free: 15.54 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.593e-05/0.4081, allocations: 17.95 kB / 1.041 GB, free: 15.52 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.4082, allocations: 23.44 kB / 1.041 GB, free: 15.5 MB / 0.698 GB Notification: Performance of SimCode: time 2.41e-07/0.4082, allocations: 0 / 1.041 GB, free: 15.5 MB / 0.698 GB Notification: Performance of Templates: time 0.005313/0.4135, allocations: 2.505 MB / 1.044 GB, free: 13 MB / 0.698 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)