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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001175, allocations: 192 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.333/1.333, allocations: 251.7 MB / 0.5092 GB, free: 3.148 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 71.89 kB / 0.6223 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3344, allocations: 104.7 MB / 0.7245 GB, free: 12.93 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002268/0.3367, allocations: 1.398 MB / 0.7259 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0004654/0.3372, allocations: 288 kB / 0.7262 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.577e-05/0.3372, allocations: 0 / 0.7262 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 7.017e-05/0.3373, allocations: 3.938 kB / 0.7262 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.3374, allocations: 23.84 kB / 0.7262 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001156/0.3375, allocations: 27.92 kB / 0.7262 GB, free: 11.18 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.3376, allocations: 67.77 kB / 0.7263 GB, free: 11.11 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 7.141e-05/0.3377, allocations: 12 kB / 0.7263 GB, free: 11.1 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.857e-05/0.3378, allocations: 27.86 kB / 0.7263 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.632e-05/0.3379, allocations: 35.89 kB / 0.7264 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.3379, allocations: 4 kB / 0.7264 GB, free: 11.03 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.49e-05/0.3379, allocations: 4 kB / 0.7264 GB, free: 11.03 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.383e-05/0.338, allocations: 15.92 kB / 0.7264 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.076e-05/0.338, allocations: 19.88 kB / 0.7264 GB, free: 10.99 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.547e-05/0.3381, allocations: 69.73 kB / 0.7265 GB, free: 10.93 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3381, allocations: 4 kB / 0.7265 GB, free: 10.92 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3381, allocations: 0 / 0.7265 GB, free: 10.92 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.577e-06/0.3381, allocations: 0 / 0.7265 GB, free: 10.92 MB / 0.545 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.0004386/0.3386, allocations: 385 kB / 0.7268 GB, free: 10.49 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.935e-05/0.3386, allocations: 12.03 kB / 0.7269 GB, free: 10.48 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.3387, allocations: 8.844 kB / 0.7269 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.3388, allocations: 180.2 kB / 0.727 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.3388, allocations: 4.375 kB / 0.727 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.3388, allocations: 384 / 0.727 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/0.339, allocations: 82.16 kB / 0.7271 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.339, allocations: 192 / 0.7271 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.339, allocations: 3.938 kB / 0.7271 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.339, allocations: 0 / 0.7271 GB, free: 10.16 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000106/0.3392, allocations: 47.91 kB / 0.7272 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003868/0.3396, allocations: 280.8 kB / 0.7274 GB, free: 9.789 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.3397, allocations: 78.42 kB / 0.7275 GB, free: 9.703 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.879e-05/0.3398, allocations: 60.89 kB / 0.7276 GB, free: 9.641 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.3398, allocations: 0 / 0.7276 GB, free: 9.641 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001698/0.34, allocations: 113 kB / 0.7277 GB, free: 9.512 MB / 0.545 GB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.34, allocations: 0 / 0.7277 GB, free: 9.512 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.0003591/0.3403, allocations: 195.3 kB / 0.7279 GB, free: 9.309 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.3404, allocations: 122.8 kB / 0.728 GB, free: 9.164 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.957e-05/0.3405, allocations: 105.8 kB / 0.7281 GB, free: 9.051 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.3405, allocations: 33.7 kB / 0.7281 GB, free: 9.012 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.438e-05/0.3406, allocations: 88.12 kB / 0.7282 GB, free: 8.922 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.3406, allocations: 35.69 kB / 0.7282 GB, free: 8.887 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.3406, allocations: 33.7 kB / 0.7283 GB, free: 8.848 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3408, allocations: 322.8 kB / 0.7286 GB, free: 8.523 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.832e-05/0.3408, allocations: 43.97 kB / 0.7286 GB, free: 8.48 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.341, allocations: 103.8 kB / 0.7287 GB, free: 8.352 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.3412, allocations: 199.8 kB / 0.7289 GB, free: 8.113 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3412, allocations: 11.94 kB / 0.7289 GB, free: 8.102 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002744/0.3415, allocations: 211 kB / 0.7291 GB, free: 7.883 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.3415, allocations: 29.7 kB / 0.7291 GB, free: 7.848 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3415, allocations: 4 kB / 0.7292 GB, free: 7.844 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.3415, allocations: 4 kB / 0.7292 GB, free: 7.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.3416, allocations: 24.2 kB / 0.7292 GB, free: 7.816 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.3417, allocations: 8 kB / 0.7292 GB, free: 7.809 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.59e-05/0.3417, allocations: 11.91 kB / 0.7292 GB, free: 7.797 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.3418, allocations: 11.98 kB / 0.7292 GB, free: 7.785 MB / 0.545 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.0001182/0.3419, allocations: 179.4 kB / 0.7294 GB, free: 7.594 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.3419, allocations: 7.906 kB / 0.7294 GB, free: 7.586 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.3419, allocations: 8.375 kB / 0.7294 GB, free: 7.578 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.3419, allocations: 0 / 0.7294 GB, free: 7.578 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3419, allocations: 4 kB / 0.7294 GB, free: 7.574 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.342, allocations: 4 kB / 0.7294 GB, free: 7.57 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.3421, allocations: 185.5 kB / 0.7296 GB, free: 7.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3421, allocations: 0 / 0.7296 GB, free: 7.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.577e-05/0.3421, allocations: 7.938 kB / 0.7296 GB, free: 7.332 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3421, allocations: 0 / 0.7296 GB, free: 7.332 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.3421, allocations: 11.98 kB / 0.7296 GB, free: 7.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3422, allocations: 0 / 0.7296 GB, free: 7.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3422, allocations: 0 / 0.7296 GB, free: 7.32 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.3425, allocations: 234.5 kB / 0.7298 GB, free: 7.066 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.948e-05/0.3425, allocations: 81.02 kB / 0.7299 GB, free: 6.969 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.748e-05/0.3425, allocations: 8 kB / 0.7299 GB, free: 6.961 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.718e-05/0.3426, allocations: 7.984 kB / 0.7299 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.152e-05/0.3426, allocations: 4 kB / 0.7299 GB, free: 6.949 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/0.3426, allocations: 4 kB / 0.7299 GB, free: 6.945 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.088e-05/0.3427, allocations: 87.27 kB / 0.73 GB, free: 6.859 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3427, allocations: 0 / 0.73 GB, free: 6.859 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00021/0.3429, allocations: 28 kB / 0.73 GB, free: 6.832 MB / 0.545 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 9.076e-05/0.343, allocations: 113.4 kB / 0.7301 GB, free: 6.715 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002552/0.3433, allocations: 175.2 kB / 0.7303 GB, free: 6.531 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3433, allocations: 4.562 kB / 0.7303 GB, free: 6.527 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.3434, allocations: 183.4 kB / 0.7305 GB, free: 6.336 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001722/0.3436, allocations: 15.94 kB / 0.7305 GB, free: 6.32 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003275/0.344, allocations: 183.1 kB / 0.7307 GB, free: 6.113 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.3442, allocations: 0.6846 MB / 0.7313 GB, free: 5.402 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.511e-05/0.3442, allocations: 16.66 kB / 0.7314 GB, free: 5.383 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.539e-05/0.3442, allocations: 15.38 kB / 0.7314 GB, free: 5.367 MB / 0.545 GB Notification: Performance of SimCode: time 2e-07/0.3443, allocations: 0 / 0.7314 GB, free: 5.367 MB / 0.545 GB Notification: Performance of Templates: time 0.002699/0.347, allocations: 0.9648 MB / 0.7323 GB, free: 4.414 MB / 0.545 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)