Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001028, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008624/0.008624, allocations: 170.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.791/2.791, allocations: 473.4 MB / 0.7469 GB, free: 6.027 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003631, allocations: 9.156 kB / 0.9158 GB, free: 33.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3722, allocations: 162.2 MB / 1.074 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001795/0.3741, allocations: 1.13 MB / 1.075 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007654/0.3748, allocations: 271.3 kB / 1.076 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.644e-05/0.3749, allocations: 0 / 1.076 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.3751, allocations: 3.938 kB / 1.076 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.3754, allocations: 11.92 kB / 1.076 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.3756, allocations: 31.97 kB / 1.076 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.3758, allocations: 55.78 kB / 1.076 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.3759, allocations: 15.94 kB / 1.076 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.3761, allocations: 19.91 kB / 1.076 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.3763, allocations: 31.91 kB / 1.076 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.3763, allocations: 4 kB / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.649e-05/0.3764, allocations: 0 / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.206e-05/0.3764, allocations: 7.938 kB / 1.076 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.3766, allocations: 57.55 kB / 1.076 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.3767, allocations: 55.78 kB / 1.076 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3767, allocations: 0 / 1.076 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.387e-06/0.3767, allocations: 4 kB / 1.076 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.3768, allocations: 0 / 1.076 GB, free: 5.82 MB / 0.8262 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.0007055/0.3775, allocations: 381.4 kB / 1.076 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.3775, allocations: 8.031 kB / 1.076 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.054e-05/0.3776, allocations: 8.844 kB / 1.076 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.3779, allocations: 188.2 kB / 1.076 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.3779, allocations: 384 / 1.076 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.3779, allocations: 4.375 kB / 1.076 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.3782, allocations: 78.22 kB / 1.076 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.3782, allocations: 192 / 1.076 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.3782, allocations: 3.938 kB / 1.076 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3783, allocations: 3.938 kB / 1.076 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.3784, allocations: 43.98 kB / 1.076 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005783/0.379, allocations: 288.9 kB / 1.077 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.3791, allocations: 74.44 kB / 1.077 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.3793, allocations: 68.88 kB / 1.077 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.3793, allocations: 0 / 1.077 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.3796, allocations: 113.1 kB / 1.077 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.3796, allocations: 0 / 1.077 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004477/0.38, allocations: 207.3 kB / 1.077 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/0.3801, allocations: 118.7 kB / 1.077 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.3802, allocations: 110 kB / 1.077 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.3803, allocations: 41.64 kB / 1.077 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.06e-05/0.3804, allocations: 84.05 kB / 1.078 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.606e-05/0.3804, allocations: 27.73 kB / 1.078 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.3804, allocations: 25.7 kB / 1.078 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3806, allocations: 314.8 kB / 1.078 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.3807, allocations: 43.97 kB / 1.078 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.3808, allocations: 100.6 kB / 1.078 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.3812, allocations: 219.8 kB / 1.078 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3812, allocations: 3.938 kB / 1.078 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003532/0.3815, allocations: 203.1 kB / 1.078 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.3816, allocations: 35.42 kB / 1.078 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.3816, allocations: 7.984 kB / 1.078 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.3816, allocations: 0 / 1.078 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.3818, allocations: 32.22 kB / 1.079 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.3818, allocations: 7.984 kB / 1.079 GB, free: 2.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.71e-05/0.3819, allocations: 7.906 kB / 1.079 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.3819, allocations: 12 kB / 1.079 GB, free: 2.672 MB / 0.8262 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 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002143/0.3821, allocations: 179.3 kB / 1.079 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.3821, allocations: 11.89 kB / 1.079 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.3822, allocations: 4.375 kB / 1.079 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3822, allocations: 4 kB / 1.079 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3822, allocations: 0 / 1.079 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3822, allocations: 4 kB / 1.079 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.3824, allocations: 189.5 kB / 1.079 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.3824, allocations: 4 kB / 1.079 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.259e-05/0.3824, allocations: 7.984 kB / 1.079 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3824, allocations: 0 / 1.079 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.3825, allocations: 4 kB / 1.079 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3825, allocations: 0 / 1.079 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3825, allocations: 0 / 1.079 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003599/0.3828, allocations: 246.8 kB / 1.079 GB, free: 1.941 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.547e-05/0.3829, allocations: 81.02 kB / 1.079 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.3829, allocations: 11.98 kB / 1.079 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.508e-05/0.383, allocations: 4 kB / 1.079 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.3831, allocations: 7.984 kB / 1.079 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.3831, allocations: 4 kB / 1.079 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.436e-05/0.3832, allocations: 95.58 kB / 1.079 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3832, allocations: 0 / 1.079 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002433/0.3834, allocations: 20 kB / 1.079 GB, free: 1.703 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001658/0.3836, allocations: 116.5 kB / 1.079 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003496/0.3839, allocations: 179.3 kB / 1.08 GB, free: 1.395 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.384, allocations: 8 kB / 1.08 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.3842, allocations: 183.4 kB / 1.08 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.3844, allocations: 13.48 kB / 1.08 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000464/0.3849, allocations: 201.2 kB / 1.08 GB, free: 0.9609 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.3852, allocations: 0.6926 MB / 1.081 GB, free: 248 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.503e-05/0.3853, allocations: 8.656 kB / 1.081 GB, free: 236 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.3853, allocations: 15.44 kB / 1.081 GB, free: 220 kB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3853, allocations: 0 / 1.081 GB, free: 220 kB / 0.8262 GB Notification: Performance of Templates: time 0.003669/0.389, allocations: 0.8797 MB / 1.082 GB, free: 15.34 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)