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.419/1.419, allocations: 252 MB / 268 MB, free: 10.86 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.00153/0.00153, allocations: 182.9 kB / 327.6 MB, free: 2.086 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.2/2.2, allocations: 205.4 MB / 0.5786 GB, free: 20.45 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.0009395/0.0009396, allocations: 89.89 kB / 0.6832 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003542, allocations: 9.688 kB / 0.7976 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2365, allocations: 106.3 MB / 0.9015 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001495/0.2381, allocations: 1.128 MB / 0.9026 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005137/0.2386, allocations: 284 kB / 0.9028 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.671e-05/0.2386, allocations: 0 / 0.9028 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.33e-05/0.2387, allocations: 3.938 kB / 0.9029 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.2389, allocations: 11.92 kB / 0.9029 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001177/0.239, allocations: 27.97 kB / 0.9029 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.137e-05/0.2391, allocations: 59.78 kB / 0.9029 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.641e-05/0.2392, allocations: 4 kB / 0.9029 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.904e-05/0.2393, allocations: 27.86 kB / 0.903 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.2394, allocations: 31.89 kB / 0.903 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.2394, allocations: 4 kB / 0.903 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.453e-05/0.2394, allocations: 0 / 0.903 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.786e-05/0.2395, allocations: 11.92 kB / 0.903 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.963e-05/0.2395, allocations: 53.58 kB / 0.9031 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.2396, allocations: 43.89 kB / 0.9031 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2397, allocations: 0 / 0.9031 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2397, allocations: 0 / 0.9031 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.2397, allocations: 0 / 0.9031 GB, free: 62.11 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.0003951/0.2401, allocations: 385.3 kB / 0.9035 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.2401, allocations: 11.97 kB / 0.9035 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.2402, allocations: 12.78 kB / 0.9035 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.2403, allocations: 188.3 kB / 0.9037 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.2403, allocations: 384 / 0.9037 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.2403, allocations: 8.312 kB / 0.9037 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.2405, allocations: 74.22 kB / 0.9038 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2405, allocations: 192 / 0.9038 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.2405, allocations: 3.938 kB / 0.9038 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2405, allocations: 0 / 0.9038 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.2406, allocations: 43.98 kB / 0.9038 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003488/0.241, allocations: 288.8 kB / 0.9041 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.2411, allocations: 74.44 kB / 0.9042 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.831e-05/0.2412, allocations: 64.88 kB / 0.9042 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.2412, allocations: 8 kB / 0.9042 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.2414, allocations: 109.1 kB / 0.9043 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.2414, allocations: 0 / 0.9043 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0003438/0.2418, allocations: 211.3 kB / 0.9045 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.2418, allocations: 110.8 kB / 0.9046 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.869e-05/0.2419, allocations: 113.8 kB / 0.9047 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.2419, allocations: 33.7 kB / 0.9048 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.659e-05/0.2419, allocations: 84.12 kB / 0.9049 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.242, allocations: 31.64 kB / 0.9049 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-06/0.242, allocations: 4 kB / 0.9049 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.496e-05/0.242, allocations: 318.8 kB / 0.9052 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.466e-05/0.2421, allocations: 43.98 kB / 0.9052 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.309e-05/0.2422, allocations: 101.8 kB / 0.9053 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.2424, allocations: 219.8 kB / 0.9055 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2424, allocations: 3.938 kB / 0.9055 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002506/0.2427, allocations: 207.1 kB / 0.9057 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.2427, allocations: 37.98 kB / 0.9058 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2427, allocations: 4 kB / 0.9058 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.2427, allocations: 4 kB / 0.9058 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.2429, allocations: 31.92 kB / 0.9058 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.2429, allocations: 0 / 0.9058 GB, free: 59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.392e-05/0.2429, allocations: 15.84 kB / 0.9058 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.243, allocations: 12 kB / 0.9058 GB, free: 58.97 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.2431, allocations: 180 kB / 0.906 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.2431, allocations: 11.91 kB / 0.906 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.196e-05/0.2431, allocations: 4.375 kB / 0.906 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.2431, allocations: 0 / 0.906 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2431, allocations: 3.938 kB / 0.906 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-06/0.2431, allocations: 0 / 0.906 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.514e-05/0.2432, allocations: 193.5 kB / 0.9062 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.2433, allocations: 0 / 0.9062 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.803e-05/0.2433, allocations: 4 kB / 0.9062 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.2433, allocations: 0 / 0.9062 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.2433, allocations: 11.98 kB / 0.9062 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2433, allocations: 0 / 0.9062 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2433, allocations: 0 / 0.9062 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.2436, allocations: 234.5 kB / 0.9065 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.433e-05/0.2437, allocations: 85.02 kB / 0.9065 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.2437, allocations: 4 kB / 0.9065 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.069e-05/0.2438, allocations: 15.98 kB / 0.9066 GB, free: 58.13 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.79e-05/0.2438, allocations: 4 kB / 0.9066 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.2438, allocations: 4 kB / 0.9066 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.802e-05/0.2439, allocations: 87.27 kB / 0.9067 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2439, allocations: 4 kB / 0.9067 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001996/0.2441, allocations: 16 kB / 0.9067 GB, free: 58.02 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 (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.79e-05/0.2442, allocations: 121.7 kB / 0.9068 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002413/0.2444, allocations: 171.2 kB / 0.907 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2444, allocations: 0 / 0.907 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.2446, allocations: 179.4 kB / 0.9071 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001928/0.2448, allocations: 19.67 kB / 0.9071 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003622/0.2451, allocations: 234.8 kB / 0.9074 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.2453, allocations: 0.6926 MB / 0.908 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.856e-05/0.2453, allocations: 7.438 kB / 0.908 GB, free: 56.52 MB / 0.6042 GB Notification: Performance of SimCode: time 1.092e-06/0.2453, allocations: 4 kB / 0.9081 GB, free: 56.51 MB / 0.6042 GB Notification: Performance of Templates: time 0.002204/0.2475, allocations: 1.099 MB / 0.9091 GB, free: 55.42 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)