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/Buildings 8.1.1-maint.8.1.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 8.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/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/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.86/1.86, allocations: 293 MB / 309 MB, free: 4.797 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.001333/0.001332, allocations: 184.6 kB / 378.7 MB, free: 1.016 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.4 MB / 0.6383 GB, free: 9.16 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007625/0.0007625, allocations: 88.88 kB / 0.7527 GB, free: 62.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000623/0.0006232, allocations: 12 kB / 0.8768 GB, free: 10.54 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.269, allocations: 116.4 MB / 0.9905 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.775/1.044, allocations: 139.7 MB / 1.127 GB, free: 34.4 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/1.044, allocations: 80.17 kB / 1.127 GB, free: 34.34 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01406/1.058, allocations: 5.558 MB / 1.132 GB, free: 30.38 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.663e-06/1.058, allocations: 0 / 1.132 GB, free: 30.38 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.064e-05/1.059, allocations: 0 / 1.132 GB, free: 30.38 MB / 0.7292 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.0006237/1.059, allocations: 0.4966 MB / 1.133 GB, free: 29.84 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/1.059, allocations: 8.031 kB / 1.133 GB, free: 29.83 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.713e-05/1.059, allocations: 26.83 kB / 1.133 GB, free: 29.81 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/1.06, allocations: 239.2 kB / 1.133 GB, free: 29.56 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/1.06, allocations: 14.95 kB / 1.133 GB, free: 29.55 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/1.06, allocations: 25.02 kB / 1.133 GB, free: 29.53 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/1.06, allocations: 195.8 kB / 1.133 GB, free: 29.39 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/1.06, allocations: 192 / 1.133 GB, free: 29.39 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/1.06, allocations: 3.938 kB / 1.133 GB, free: 29.38 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/1.06, allocations: 4 kB / 1.133 GB, free: 29.38 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/1.06, allocations: 99.31 kB / 1.133 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005608/1.061, allocations: 493.7 kB / 1.134 GB, free: 28.87 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/1.061, allocations: 137.8 kB / 1.134 GB, free: 28.75 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/1.061, allocations: 102.9 kB / 1.134 GB, free: 28.66 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/1.061, allocations: 7.938 kB / 1.134 GB, free: 28.65 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003707/1.062, allocations: 212.9 kB / 1.134 GB, free: 28.48 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/1.062, allocations: 0 / 1.134 GB, free: 28.48 MB / 0.7292 GB Notification: Performance of matching and sorting (n=28): time 0.0008254/1.062, allocations: 465.8 kB / 1.135 GB, free: 28.09 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/1.063, allocations: 64.92 kB / 1.135 GB, free: 28.01 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.554e-05/1.063, allocations: 142.9 kB / 1.135 GB, free: 27.88 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.95e-05/1.063, allocations: 44.52 kB / 1.135 GB, free: 27.83 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/1.063, allocations: 103.2 kB / 1.135 GB, free: 27.73 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.334e-05/1.063, allocations: 62.48 kB / 1.135 GB, free: 27.67 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.393e-05/1.063, allocations: 8 kB / 1.135 GB, free: 27.66 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.48e-05/1.063, allocations: 337.3 kB / 1.136 GB, free: 27.33 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/1.063, allocations: 142.1 kB / 1.136 GB, free: 27.21 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002827/1.063, allocations: 199.5 kB / 1.136 GB, free: 27.02 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004429/1.064, allocations: 364.3 kB / 1.136 GB, free: 26.66 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/1.064, allocations: 0 / 1.136 GB, free: 26.66 MB / 0.7292 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007669/1.065, allocations: 0.4964 MB / 1.137 GB, free: 26.2 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.182e-05/1.065, allocations: 70.69 kB / 1.137 GB, free: 26.12 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/1.065, allocations: 1.641 kB / 1.137 GB, free: 26.12 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/1.065, allocations: 7.938 kB / 1.137 GB, free: 26.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/1.065, allocations: 60.91 kB / 1.137 GB, free: 26.06 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/1.065, allocations: 0.6562 kB / 1.137 GB, free: 26.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/1.065, allocations: 101.4 kB / 1.137 GB, free: 25.98 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.573e-05/1.066, allocations: 20.64 kB / 1.137 GB, free: 25.96 MB / 0.7292 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.0001668/1.066, allocations: 169.8 kB / 1.137 GB, free: 25.79 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.813e-05/1.066, allocations: 13.12 kB / 1.137 GB, free: 25.78 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.189e-05/1.066, allocations: 20.5 kB / 1.137 GB, free: 25.77 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/1.066, allocations: 7.938 kB / 1.137 GB, free: 25.76 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/1.066, allocations: 0.75 kB / 1.137 GB, free: 25.76 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/1.066, allocations: 1.453 kB / 1.137 GB, free: 25.76 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007107/1.067, allocations: 0.688 MB / 1.138 GB, free: 25.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/1.067, allocations: 0.5625 kB / 1.138 GB, free: 25.1 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.083e-05/1.067, allocations: 13.66 kB / 1.138 GB, free: 25.09 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/1.067, allocations: 4 kB / 1.138 GB, free: 25.09 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/1.067, allocations: 14.14 kB / 1.138 GB, free: 25.08 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/1.067, allocations: 0 / 1.138 GB, free: 25.08 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/1.067, allocations: 2.406 kB / 1.138 GB, free: 25.08 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005377/1.067, allocations: 469.9 kB / 1.138 GB, free: 24.65 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.075e-05/1.067, allocations: 93.52 kB / 1.138 GB, free: 24.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.231e-05/1.067, allocations: 16.69 kB / 1.138 GB, free: 24.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/1.067, allocations: 10.86 kB / 1.138 GB, free: 24.52 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/1.067, allocations: 15.83 kB / 1.138 GB, free: 24.51 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/1.068, allocations: 26.83 kB / 1.138 GB, free: 24.49 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.124e-05/1.068, allocations: 100.2 kB / 1.139 GB, free: 24.4 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/1.068, allocations: 0 / 1.139 GB, free: 24.4 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003395/1.068, allocations: 75.33 kB / 1.139 GB, free: 24.33 MB / 0.7292 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.0002153/1.068, allocations: 146.1 kB / 1.139 GB, free: 24.18 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006348/1.069, allocations: 457.1 kB / 1.139 GB, free: 23.75 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/1.069, allocations: 0 / 1.139 GB, free: 23.75 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001901/1.069, allocations: 127.1 kB / 1.139 GB, free: 23.64 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/1.069, allocations: 40.83 kB / 1.139 GB, free: 23.62 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006052/1.07, allocations: 337.2 kB / 1.14 GB, free: 23.3 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002007/1.07, allocations: 0.7246 MB / 1.14 GB, free: 22.57 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 8.113e-05/1.07, allocations: 24.06 kB / 1.14 GB, free: 22.55 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.557e-05/1.07, allocations: 20.75 kB / 1.14 GB, free: 22.54 MB / 0.7292 GB Notification: Performance of SimCode: time 7.62e-07/1.07, allocations: 0 / 1.14 GB, free: 22.54 MB / 0.7292 GB Notification: Performance of Templates: time 0.007684/1.078, allocations: 3.363 MB / 1.144 GB, free: 20.68 MB / 0.7292 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)