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.001161/0.001161, allocations: 104.3 kB / 16.29 MB, free: 6.438 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.001267/0.001267, allocations: 185 kB / 17.22 MB, free: 5.926 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.378/1.378, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.815/1.815, allocations: 292.3 MB / 0.5495 GB, free: 17.54 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.001834/0.001834, allocations: 71.89 kB / 0.6722 GB, free: 6.547 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2519, allocations: 114.6 MB / 0.7841 GB, free: 3.875 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.003021/0.255, allocations: 1.38 MB / 0.7854 GB, free: 2.48 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0006544/0.2557, allocations: 291.9 kB / 0.7857 GB, free: 2.191 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.583e-05/0.2558, allocations: 0 / 0.7857 GB, free: 2.191 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001026/0.2559, allocations: 3.938 kB / 0.7857 GB, free: 2.188 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.2561, allocations: 11.94 kB / 0.7857 GB, free: 2.176 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001764/0.2563, allocations: 35.83 kB / 0.7858 GB, free: 2.141 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.2564, allocations: 67.84 kB / 0.7858 GB, free: 2.074 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.2565, allocations: 8 kB / 0.7858 GB, free: 2.066 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.2566, allocations: 31.91 kB / 0.7859 GB, free: 2.035 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.2568, allocations: 27.84 kB / 0.7859 GB, free: 2.008 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.2568, allocations: 8 kB / 0.7859 GB, free: 2 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.629e-05/0.2568, allocations: 4 kB / 0.7859 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.591e-05/0.2569, allocations: 11.98 kB / 0.7859 GB, free: 1.984 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.991e-05/0.2569, allocations: 23.88 kB / 0.786 GB, free: 1.961 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.2571, allocations: 63.98 kB / 0.786 GB, free: 1.898 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2571, allocations: 4 kB / 0.786 GB, free: 1.895 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.173e-06/0.2571, allocations: 0 / 0.786 GB, free: 1.895 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.886e-06/0.2571, allocations: 3.938 kB / 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.0005439/0.2576, allocations: 400.9 kB / 0.7864 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2577, allocations: 12.03 kB / 0.7864 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.511e-05/0.2577, allocations: 8.844 kB / 0.7864 GB, free: 1.422 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.2579, allocations: 168.4 kB / 0.7866 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.2579, allocations: 8.375 kB / 0.7866 GB, free: 1.211 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.258, allocations: 384 / 0.7866 GB, free: 1.211 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.2581, allocations: 82.22 kB / 0.7867 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.2582, allocations: 192 / 0.7867 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.2582, allocations: 7.875 kB / 0.7867 GB, free: 1.117 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2582, allocations: 0 / 0.7867 GB, free: 1.117 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.2583, allocations: 39.97 kB / 0.7867 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004164/0.2587, allocations: 288.8 kB / 0.787 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.2589, allocations: 70.5 kB / 0.7871 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.32e-05/0.259, allocations: 60.88 kB / 0.7871 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.259, allocations: 0 / 0.7871 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.2592, allocations: 117.2 kB / 0.7872 GB, free: 484 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.2592, allocations: 3.938 kB / 0.7872 GB, free: 480 kB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.0003926/0.2596, allocations: 191.2 kB / 0.7874 GB, free: 276 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.225e-05/0.2597, allocations: 122.8 kB / 0.7875 GB, free: 128 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.436e-05/0.2598, allocations: 105.8 kB / 0.7876 GB, free: 12 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.4466/0.7064, allocations: 31.39 kB / 0.7877 GB, free: 48.93 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.256e-05/0.7065, allocations: 88.12 kB / 0.7877 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 5.769e-05/0.7066, allocations: 23.58 kB / 0.7878 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-05/0.7067, allocations: 39.83 kB / 0.7878 GB, free: 48.84 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.7068, allocations: 320 kB / 0.7881 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.7069, allocations: 37.59 kB / 0.7881 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.707, allocations: 104.9 kB / 0.7882 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.7073, allocations: 213.1 kB / 0.7885 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.7073, allocations: 3.75 kB / 0.7885 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003114/0.7076, allocations: 207.9 kB / 0.7887 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.548e-05/0.7076, allocations: 30.95 kB / 0.7887 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.7077, allocations: 2.625 kB / 0.7887 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.77e-05/0.7077, allocations: 5.844 kB / 0.7887 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.7078, allocations: 24.34 kB / 0.7887 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.7079, allocations: 2.625 kB / 0.7887 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.21e-05/0.7079, allocations: 18.05 kB / 0.7887 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.708, allocations: 11.97 kB / 0.7887 GB, free: 48.21 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.0001511/0.7081, allocations: 172.5 kB / 0.7889 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/0.7082, allocations: 9.156 kB / 0.7889 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.252e-05/0.7082, allocations: 7.281 kB / 0.7889 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.7082, allocations: 3.938 kB / 0.7889 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.7082, allocations: 6.125 kB / 0.7889 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.7082, allocations: 0.5938 kB / 0.7889 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.7083, allocations: 187.3 kB / 0.7891 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.7084, allocations: 5.094 kB / 0.7891 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.7084, allocations: 5.719 kB / 0.7891 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.7084, allocations: 4.922 kB / 0.7891 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.7084, allocations: 2.625 kB / 0.7891 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.7084, allocations: 7.125 kB / 0.7891 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.7084, allocations: 0 / 0.7891 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.7087, allocations: 230.2 kB / 0.7894 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.847e-05/0.7088, allocations: 81.02 kB / 0.7894 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.171e-05/0.7088, allocations: 8.094 kB / 0.7894 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.119e-05/0.7089, allocations: 20.06 kB / 0.7895 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.7089, allocations: 3.25 kB / 0.7895 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.709, allocations: 5.156 kB / 0.7895 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.703e-05/0.709, allocations: 86.69 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.709, allocations: 2.625 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002305/0.7092, allocations: 21.62 kB / 0.7896 GB, free: 47.59 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.0001136/0.7094, allocations: 114.2 kB / 0.7897 GB, free: 47.51 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002729/0.7096, allocations: 167.9 kB / 0.7898 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.7096, allocations: 0.7188 kB / 0.7898 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001561/0.7098, allocations: 184.5 kB / 0.79 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.71, allocations: 14.69 kB / 0.79 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000426/0.7105, allocations: 176.8 kB / 0.7902 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.7106, allocations: 0.693 MB / 0.7909 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.7e-05/0.7107, allocations: 11.11 kB / 0.7909 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/0.7107, allocations: 11.84 kB / 0.7909 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of SimCode: time 7.02e-07/0.7107, allocations: 0 / 0.7909 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of Templates: time 0.00337/0.7141, allocations: 0.9625 MB / 0.7918 GB, free: 46.56 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)