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.001088/0.001088, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001144/0.001144, allocations: 194.8 kB / 16.14 MB, free: 6.703 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.344/1.344, allocations: 205.1 MB / 222 MB, free: 4.801 MB / 174.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.671/1.671, allocations: 292.2 MB / 0.5484 GB, free: 13.66 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.00126/0.00126, allocations: 63.05 kB / 0.6708 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2294, allocations: 114.5 MB / 0.7827 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002478/0.2319, allocations: 1.455 MB / 0.7841 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005722/0.2325, allocations: 289 kB / 0.7844 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.719e-05/0.2326, allocations: 0 / 0.7844 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.833e-05/0.2327, allocations: 7.938 kB / 0.7844 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.2328, allocations: 11.91 kB / 0.7844 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001322/0.2329, allocations: 23.98 kB / 0.7844 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.753e-05/0.2331, allocations: 59.83 kB / 0.7845 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.227e-05/0.2332, allocations: 8 kB / 0.7845 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.331e-05/0.2332, allocations: 27.86 kB / 0.7845 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.2334, allocations: 35.83 kB / 0.7846 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.2334, allocations: 4 kB / 0.7846 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.333e-05/0.2334, allocations: 0 / 0.7846 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.047e-05/0.2334, allocations: 8 kB / 0.7846 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.97e-05/0.2335, allocations: 27.8 kB / 0.7846 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.2336, allocations: 60.12 kB / 0.7847 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2336, allocations: 0 / 0.7847 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2336, allocations: 4 kB / 0.7847 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.2336, allocations: 0 / 0.7847 GB, free: 11.92 MB / 0.6075 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.000495/0.2341, allocations: 404.9 kB / 0.785 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.2342, allocations: 11.97 kB / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.983e-05/0.2342, allocations: 8.844 kB / 0.7851 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001599/0.2344, allocations: 176.3 kB / 0.7852 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.2344, allocations: 4.375 kB / 0.7852 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.2344, allocations: 4.375 kB / 0.7852 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/0.2346, allocations: 70.23 kB / 0.7853 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.2346, allocations: 192 / 0.7853 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.2347, allocations: 3.938 kB / 0.7853 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2347, allocations: 0 / 0.7853 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.2348, allocations: 43.97 kB / 0.7854 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003993/0.2352, allocations: 284.8 kB / 0.7856 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.2353, allocations: 74.44 kB / 0.7857 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.511e-05/0.2354, allocations: 56.89 kB / 0.7857 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.2354, allocations: 0 / 0.7857 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002028/0.2356, allocations: 117.1 kB / 0.7859 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.2357, allocations: 0 / 0.7859 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003992/0.2361, allocations: 199.3 kB / 0.786 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/0.2361, allocations: 118.8 kB / 0.7862 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.689e-05/0.2362, allocations: 121.8 kB / 0.7863 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.2362, allocations: 25.7 kB / 0.7863 GB, free: 10 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.2363, allocations: 92.08 kB / 0.7864 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.2363, allocations: 23.7 kB / 0.7864 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-05/0.2364, allocations: 33.72 kB / 0.7864 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.785e-05/0.2365, allocations: 322.8 kB / 0.7868 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.712e-05/0.2366, allocations: 43.97 kB / 0.7868 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.2367, allocations: 96.56 kB / 0.7869 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.2369, allocations: 211.8 kB / 0.7871 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.2369, allocations: 11.94 kB / 0.7871 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003/0.2372, allocations: 195.1 kB / 0.7873 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.2373, allocations: 33.7 kB / 0.7873 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2373, allocations: 3.938 kB / 0.7873 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.2373, allocations: 4 kB / 0.7873 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.2374, allocations: 28.2 kB / 0.7874 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.2374, allocations: 11.98 kB / 0.7874 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.867e-05/0.2375, allocations: 11.84 kB / 0.7874 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.2375, allocations: 8 kB / 0.7874 GB, free: 8.781 MB / 0.6075 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.0001371/0.2377, allocations: 180.8 kB / 0.7876 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.2377, allocations: 4 kB / 0.7876 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.377e-05/0.2377, allocations: 8.359 kB / 0.7876 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.2377, allocations: 0 / 0.7876 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2378, allocations: 11.94 kB / 0.7876 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2378, allocations: 0 / 0.7876 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.2379, allocations: 189.5 kB / 0.7878 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2379, allocations: 0 / 0.7878 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.123e-05/0.238, allocations: 7.984 kB / 0.7878 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.238, allocations: 0 / 0.7878 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.238, allocations: 4 kB / 0.7878 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.238, allocations: 0 / 0.7878 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.238, allocations: 0 / 0.7878 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003168/0.2383, allocations: 238.5 kB / 0.788 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.642e-05/0.2384, allocations: 77.11 kB / 0.7881 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.2384, allocations: 11.98 kB / 0.7881 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.611e-05/0.2385, allocations: 0 / 0.7881 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.2385, allocations: 8 kB / 0.7881 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.2385, allocations: 7.984 kB / 0.7881 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.607e-05/0.2386, allocations: 83.28 kB / 0.7882 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2386, allocations: 0 / 0.7882 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002136/0.2388, allocations: 24 kB / 0.7882 GB, free: 7.836 MB / 0.6075 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.0001164/0.2389, allocations: 120.9 kB / 0.7883 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00027/0.2392, allocations: 163.2 kB / 0.7885 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.2392, allocations: 0 / 0.7885 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.2394, allocations: 187.9 kB / 0.7887 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.2396, allocations: 15.94 kB / 0.7887 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003526/0.2399, allocations: 199.3 kB / 0.7889 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.2402, allocations: 0.6926 MB / 0.7895 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.678e-05/0.2402, allocations: 8.672 kB / 0.7895 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.505e-05/0.2403, allocations: 11.44 kB / 0.7896 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of SimCode: time 3e-07/0.2403, allocations: 0 / 0.7896 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of Templates: time 0.002782/0.243, allocations: 0.9034 MB / 0.7904 GB, free: 5.473 MB / 0.6075 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)