Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001154/0.001154, allocations: 102.1 kB / 16.27 MB, free: 6.348 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.001145/0.001145, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.456/1.456, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.729/1.729, allocations: 292.3 MB / 0.5495 GB, free: 17.52 MB / 462.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.002015/0.002016, allocations: 68.31 kB / 0.6722 GB, free: 6.543 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2598, allocations: 114.6 MB / 0.7841 GB, free: 3.867 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.003316/0.2632, allocations: 1.384 MB / 0.7854 GB, free: 2.469 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007121/0.2639, allocations: 288 kB / 0.7857 GB, free: 2.184 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.133e-05/0.264, allocations: 0 / 0.7857 GB, free: 2.184 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.2642, allocations: 3.938 kB / 0.7857 GB, free: 2.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001498/0.2643, allocations: 15.88 kB / 0.7857 GB, free: 2.164 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.2645, allocations: 31.89 kB / 0.7857 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.2647, allocations: 63.86 kB / 0.7858 GB, free: 2.07 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.2648, allocations: 11.98 kB / 0.7858 GB, free: 2.059 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.2649, allocations: 35.84 kB / 0.7858 GB, free: 2.023 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.2651, allocations: 31.84 kB / 0.7859 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.2651, allocations: 4 kB / 0.7859 GB, free: 1.988 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.618e-05/0.2651, allocations: 4 kB / 0.7859 GB, free: 1.984 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.818e-05/0.2652, allocations: 8 kB / 0.7859 GB, free: 1.977 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.827e-05/0.2653, allocations: 27.86 kB / 0.7859 GB, free: 1.949 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.2654, allocations: 56.06 kB / 0.786 GB, free: 1.895 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2654, allocations: 4 kB / 0.786 GB, free: 1.891 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2654, allocations: 0 / 0.786 GB, free: 1.891 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.2654, allocations: 0 / 0.786 GB, free: 1.891 MB / 0.6544 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.000565/0.266, allocations: 404.9 kB / 0.7864 GB, free: 1.438 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.2661, allocations: 11.97 kB / 0.7864 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.634e-05/0.2661, allocations: 8.844 kB / 0.7864 GB, free: 1.418 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.2663, allocations: 168.4 kB / 0.7865 GB, free: 1.215 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.2663, allocations: 8.375 kB / 0.7865 GB, free: 1.207 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.2664, allocations: 4.375 kB / 0.7865 GB, free: 1.203 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.2666, allocations: 74.17 kB / 0.7866 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-06/0.2666, allocations: 192 / 0.7866 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.2666, allocations: 3.938 kB / 0.7866 GB, free: 1.121 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.2666, allocations: 3.938 kB / 0.7866 GB, free: 1.117 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.2667, allocations: 39.97 kB / 0.7867 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000451/0.2672, allocations: 288.8 kB / 0.7869 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001269/0.2673, allocations: 78.44 kB / 0.787 GB, free: 0.6602 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.036e-05/0.2674, allocations: 52.89 kB / 0.7871 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.2675, allocations: 3.984 kB / 0.7871 GB, free: 0.6016 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.2677, allocations: 117.1 kB / 0.7872 GB, free: 480 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.2677, allocations: 4 kB / 0.7872 GB, free: 476 kB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0004109/0.2681, allocations: 199.3 kB / 0.7874 GB, free: 264 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.488e-05/0.2682, allocations: 122.7 kB / 0.7875 GB, free: 116 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4418/0.71, allocations: 106.7 kB / 0.7876 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.55e-05/0.7101, allocations: 30.7 kB / 0.7876 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.51e-05/0.7102, allocations: 88.53 kB / 0.7877 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.508e-05/0.7102, allocations: 20.48 kB / 0.7877 GB, free: 48.7 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.661e-05/0.7103, allocations: 39.39 kB / 0.7878 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.071e-05/0.7104, allocations: 320.1 kB / 0.7881 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.7106, allocations: 38.03 kB / 0.7881 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.7107, allocations: 104.1 kB / 0.7882 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.7109, allocations: 211.2 kB / 0.7884 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.7109, allocations: 3.75 kB / 0.7884 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003136/0.7112, allocations: 211.4 kB / 0.7886 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.45e-05/0.7113, allocations: 28.67 kB / 0.7886 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.7113, allocations: 2.594 kB / 0.7886 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.7113, allocations: 9 kB / 0.7886 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.7114, allocations: 20.36 kB / 0.7887 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.709e-06/0.7115, allocations: 4.5 kB / 0.7887 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.113e-05/0.7116, allocations: 19.75 kB / 0.7887 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.7116, allocations: 6.25 kB / 0.7887 GB, free: 48.06 MB / 0.6544 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.0001376/0.7117, allocations: 175.2 kB / 0.7889 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.7117, allocations: 8.875 kB / 0.7889 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.7118, allocations: 10.47 kB / 0.7889 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.7118, allocations: 4.469 kB / 0.7889 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.7118, allocations: 2.312 kB / 0.7889 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.7118, allocations: 0 / 0.7889 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.7119, allocations: 186 kB / 0.7891 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.712, allocations: 3.234 kB / 0.7891 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.615e-05/0.712, allocations: 3 kB / 0.7891 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.712, allocations: 3.25 kB / 0.7891 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.712, allocations: 4.219 kB / 0.7891 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.712, allocations: 6.594 kB / 0.7891 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.712, allocations: 5.812 kB / 0.7891 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.7123, allocations: 221.5 kB / 0.7893 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.826e-05/0.7124, allocations: 94.09 kB / 0.7894 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.7124, allocations: 5.906 kB / 0.7894 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.595e-05/0.7125, allocations: 6.625 kB / 0.7894 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/0.7125, allocations: 9.953 kB / 0.7894 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.7125, allocations: 2.75 kB / 0.7894 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.741e-05/0.7126, allocations: 95.47 kB / 0.7895 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7126, allocations: 0.7188 kB / 0.7895 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002273/0.7128, allocations: 22.16 kB / 0.7895 GB, free: 47.45 MB / 0.6544 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.0001238/0.713, allocations: 114.3 kB / 0.7896 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002791/0.7132, allocations: 173.7 kB / 0.7898 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.7133, allocations: 0 / 0.7898 GB, free: 47.3 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.7134, allocations: 185.6 kB / 0.79 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.7136, allocations: 11.2 kB / 0.79 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.714, allocations: 202.6 kB / 0.7902 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.7142, allocations: 0.6887 MB / 0.7909 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.28e-05/0.7142, allocations: 16.3 kB / 0.7909 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of SimCode: time 4.2e-07/0.7142, allocations: 1.969 kB / 0.7909 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of Templates: time 0.002516/0.7167, allocations: 1.105 MB / 0.792 GB, free: 46.37 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)