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.386/1.386, allocations: 252 MB / 267.6 MB, free: 10.95 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.001087/0.001087, allocations: 183.7 kB / 327.3 MB, free: 2.219 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.971/1.971, allocations: 205.4 MB / 0.5783 GB, free: 20.53 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.0008577/0.0008575, allocations: 89.78 kB / 0.6829 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003932/0.0003934, allocations: 12.59 kB / 0.797 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2924, allocations: 106.3 MB / 0.9008 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001628/0.2941, allocations: 1.121 MB / 0.9019 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005032/0.2947, allocations: 264.1 kB / 0.9022 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.298e-05/0.2947, allocations: 4 kB / 0.9022 GB, free: 62.9 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.2948, allocations: 3.984 kB / 0.9022 GB, free: 62.9 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.295, allocations: 7.922 kB / 0.9022 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.2952, allocations: 31.91 kB / 0.9022 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.2953, allocations: 51.84 kB / 0.9023 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.2954, allocations: 11.98 kB / 0.9023 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.967e-05/0.2955, allocations: 31.8 kB / 0.9023 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.2957, allocations: 23.92 kB / 0.9024 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.2957, allocations: 4 kB / 0.9024 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.436e-05/0.2957, allocations: 0 / 0.9024 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.246e-05/0.2958, allocations: 11.97 kB / 0.9024 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.865e-05/0.2958, allocations: 37.64 kB / 0.9024 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.284e-05/0.2959, allocations: 43.91 kB / 0.9024 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2959, allocations: 0 / 0.9024 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.395e-06/0.2959, allocations: 4 kB / 0.9025 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.2959, allocations: 0 / 0.9025 GB, free: 62.64 MB / 0.6042 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.2965, allocations: 385.1 kB / 0.9028 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.2966, allocations: 8.031 kB / 0.9028 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.237e-05/0.2966, allocations: 11.84 kB / 0.9028 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.2968, allocations: 183 kB / 0.903 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.2968, allocations: 0 / 0.903 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.2969, allocations: 4 kB / 0.903 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.297, allocations: 85.53 kB / 0.9031 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.2971, allocations: 0 / 0.9031 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.2971, allocations: 0 / 0.9031 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2971, allocations: 0 / 0.9031 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.2972, allocations: 43.98 kB / 0.9031 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004291/0.2977, allocations: 300.7 kB / 0.9034 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.2978, allocations: 78.5 kB / 0.9035 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.47e-05/0.2979, allocations: 60.88 kB / 0.9036 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.2979, allocations: 4 kB / 0.9036 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002013/0.2981, allocations: 121.1 kB / 0.9037 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.2981, allocations: 0 / 0.9037 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0003878/0.2985, allocations: 195.4 kB / 0.9039 GB, free: 61 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.2986, allocations: 122.8 kB / 0.904 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.616e-05/0.2986, allocations: 117.7 kB / 0.9041 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.2987, allocations: 37.69 kB / 0.9041 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.749e-05/0.2987, allocations: 92.14 kB / 0.9042 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.2987, allocations: 27.64 kB / 0.9042 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/0.2988, allocations: 4 kB / 0.9042 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.594e-05/0.2988, allocations: 318.8 kB / 0.9046 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.744e-05/0.2989, allocations: 35.97 kB / 0.9046 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.766e-05/0.299, allocations: 108.6 kB / 0.9047 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.2991, allocations: 85.61 kB / 0.9048 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2991, allocations: 0 / 0.9048 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002957/0.2994, allocations: 199.1 kB / 0.905 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.2995, allocations: 37.98 kB / 0.905 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-06/0.2995, allocations: 4 kB / 0.905 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.2995, allocations: 8.047 kB / 0.905 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.2997, allocations: 27.92 kB / 0.905 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2997, allocations: 4 kB / 0.905 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.537e-05/0.2997, allocations: 11.97 kB / 0.9051 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.2998, allocations: 12 kB / 0.9051 GB, free: 59.66 MB / 0.6042 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.0001232/0.2999, allocations: 175.2 kB / 0.9052 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.537e-05/0.2999, allocations: 7.906 kB / 0.9052 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.2999, allocations: 8.359 kB / 0.9052 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3, allocations: 0 / 0.9052 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3, allocations: 11.89 kB / 0.9053 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3, allocations: 3.938 kB / 0.9053 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.3001, allocations: 193.5 kB / 0.9054 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3001, allocations: 0 / 0.9054 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.876e-05/0.3002, allocations: 4 kB / 0.9054 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3002, allocations: 3.984 kB / 0.9055 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3002, allocations: 8 kB / 0.9055 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3002, allocations: 0 / 0.9055 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3002, allocations: 0 / 0.9055 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.3005, allocations: 230.7 kB / 0.9057 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.194e-05/0.3005, allocations: 85.02 kB / 0.9058 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.3006, allocations: 15.98 kB / 0.9058 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.786e-05/0.3006, allocations: 8 kB / 0.9058 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.3007, allocations: 4 kB / 0.9058 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.3007, allocations: 7.984 kB / 0.9058 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.422e-05/0.3008, allocations: 87.23 kB / 0.9059 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3008, allocations: 3.938 kB / 0.9059 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002003/0.301, allocations: 24 kB / 0.9059 GB, free: 58.69 MB / 0.6042 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.0001177/0.3011, allocations: 114.2 kB / 0.906 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002784/0.3014, allocations: 175.2 kB / 0.9062 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3014, allocations: 0 / 0.9062 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.3015, allocations: 187.4 kB / 0.9064 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002068/0.3018, allocations: 8.562 kB / 0.9064 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003971/0.3022, allocations: 230.8 kB / 0.9066 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001615/0.3023, allocations: 0.6926 MB / 0.9073 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.291e-05/0.3024, allocations: 15.42 kB / 0.9073 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of SimCode: time 2.5e-07/0.3024, allocations: 4 kB / 0.9073 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of Templates: time 0.002559/0.3049, allocations: 1.089 MB / 0.9083 GB, free: 56.11 MB / 0.6042 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)