Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.319/1.319, allocations: 252 MB / 267.9 MB, free: 10.94 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.000966/0.000966, allocations: 174 kB / 327.5 MB, free: 2.184 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.481/1.481, allocations: 205.4 MB / 0.5785 GB, free: 20.17 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.0008285/0.0008284, allocations: 94.34 kB / 0.6831 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003999/0.0003998, allocations: 11.25 kB / 0.7974 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2212, allocations: 106.3 MB / 0.9012 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1623/0.3835, allocations: 132.1 MB / 1.03 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.3838, allocations: 75.95 kB / 1.03 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004276/0.3881, allocations: 1.662 MB / 1.032 GB, free: 9.637 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3881, allocations: 0 / 1.032 GB, free: 9.637 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.3882, allocations: 0 / 1.032 GB, free: 9.637 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003925/0.3886, allocations: 401 kB / 1.032 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.3886, allocations: 8.031 kB / 1.032 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.3886, allocations: 8.844 kB / 1.032 GB, free: 9.172 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000177/0.3888, allocations: 184.5 kB / 1.033 GB, free: 8.953 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3889, allocations: 8.312 kB / 1.033 GB, free: 8.945 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.3889, allocations: 4.375 kB / 1.033 GB, free: 8.941 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000163/0.389, allocations: 70.23 kB / 1.033 GB, free: 8.867 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3891, allocations: 192 / 1.033 GB, free: 8.867 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.3891, allocations: 7.938 kB / 1.033 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3891, allocations: 0 / 1.033 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.3892, allocations: 43.91 kB / 1.033 GB, free: 8.816 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003918/0.3896, allocations: 296.7 kB / 1.033 GB, free: 8.477 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.3897, allocations: 74.5 kB / 1.033 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.951e-05/0.3898, allocations: 56.89 kB / 1.033 GB, free: 8.336 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.3899, allocations: 7.922 kB / 1.033 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001506/0.39, allocations: 121.1 kB / 1.033 GB, free: 8.191 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.39, allocations: 0 / 1.033 GB, free: 8.191 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0003972/0.3904, allocations: 207.2 kB / 1.033 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.3905, allocations: 114.8 kB / 1.034 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.687e-05/0.3906, allocations: 105.8 kB / 1.034 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.3906, allocations: 37.69 kB / 1.034 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.3907, allocations: 84.14 kB / 1.034 GB, free: 7.598 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.3907, allocations: 31.69 kB / 1.034 GB, free: 7.566 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.572e-06/0.3907, allocations: 8 kB / 1.034 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.3908, allocations: 318.8 kB / 1.034 GB, free: 7.238 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.085e-05/0.3909, allocations: 35.97 kB / 1.034 GB, free: 7.203 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.391, allocations: 110.7 kB / 1.034 GB, free: 7.066 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.3913, allocations: 215.8 kB / 1.034 GB, free: 6.812 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3913, allocations: 3.938 kB / 1.034 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000302/0.3916, allocations: 203.1 kB / 1.035 GB, free: 6.598 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.3916, allocations: 33.69 kB / 1.035 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.3917, allocations: 4 kB / 1.035 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.3917, allocations: 4 kB / 1.035 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3918, allocations: 23.92 kB / 1.035 GB, free: 6.527 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3918, allocations: 4 kB / 1.035 GB, free: 6.523 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.737e-05/0.3919, allocations: 20.12 kB / 1.035 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.3919, allocations: 11.94 kB / 1.035 GB, free: 6.492 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001344/0.392, allocations: 172.1 kB / 1.035 GB, free: 6.309 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.3921, allocations: 7.984 kB / 1.035 GB, free: 6.301 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.3921, allocations: 12.38 kB / 1.035 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3921, allocations: 0 / 1.035 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3921, allocations: 4 kB / 1.035 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.3921, allocations: 0 / 1.035 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.3923, allocations: 193.5 kB / 1.035 GB, free: 6.043 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3923, allocations: 0 / 1.035 GB, free: 6.043 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.3923, allocations: 7.984 kB / 1.035 GB, free: 6.035 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3923, allocations: 0 / 1.035 GB, free: 6.035 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.3923, allocations: 4 kB / 1.035 GB, free: 6.031 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3924, allocations: 0 / 1.035 GB, free: 6.031 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3924, allocations: 3.938 kB / 1.035 GB, free: 6.027 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003042/0.3927, allocations: 226.7 kB / 1.035 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.986e-05/0.3927, allocations: 81.02 kB / 1.035 GB, free: 5.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.111e-05/0.3928, allocations: 19.92 kB / 1.035 GB, free: 5.664 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.445e-05/0.3928, allocations: 4 kB / 1.035 GB, free: 5.66 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.3929, allocations: 7.984 kB / 1.035 GB, free: 5.652 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.3929, allocations: 7.938 kB / 1.035 GB, free: 5.645 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.132e-05/0.3929, allocations: 87.58 kB / 1.036 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3929, allocations: 0 / 1.036 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002067/0.3932, allocations: 28 kB / 1.036 GB, free: 5.531 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: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001121/0.3933, allocations: 119.1 kB / 1.036 GB, free: 5.406 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002681/0.3936, allocations: 171.2 kB / 1.036 GB, free: 5.227 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3936, allocations: 0.5625 kB / 1.036 GB, free: 5.227 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.3937, allocations: 191.4 kB / 1.036 GB, free: 5.027 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.3939, allocations: 17.19 kB / 1.036 GB, free: 5.012 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003742/0.3943, allocations: 197 kB / 1.036 GB, free: 4.789 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.3946, allocations: 0.6965 MB / 1.037 GB, free: 4.066 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.328e-05/0.3946, allocations: 8.656 kB / 1.037 GB, free: 4.051 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.425e-05/0.3946, allocations: 11.44 kB / 1.037 GB, free: 4.043 MB / 0.6823 GB Notification: Performance of SimCode: time 2.1e-07/0.3946, allocations: 0 / 1.037 GB, free: 4.043 MB / 0.6823 GB Notification: Performance of Templates: time 0.002722/0.3974, allocations: 0.8626 MB / 1.038 GB, free: 3.191 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)