Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.636/1.636, allocations: 288.4 MB / 303.3 MB, free: 8.164 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009422/0.0009422, allocations: 186.2 kB / 372 MB, free: 10.24 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.4 MB / 0.6307 GB, free: 9.984 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007721/0.0007721, allocations: 89.36 kB / 0.7441 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.0003779, allocations: 15.03 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1855, allocations: 115.3 MB / 0.9797 GB, free: 27.54 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.00135/0.1869, allocations: 1.088 MB / 0.9807 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005021/0.1875, allocations: 273 kB / 0.981 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.469e-05/0.1875, allocations: 4 kB / 0.981 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.264e-05/0.1876, allocations: 0 / 0.981 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.1878, allocations: 11.91 kB / 0.981 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.188, allocations: 27.92 kB / 0.981 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.63e-05/0.188, allocations: 55.77 kB / 0.9811 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.69e-05/0.1881, allocations: 8 kB / 0.9811 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.75e-05/0.1882, allocations: 23.92 kB / 0.9811 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.444e-05/0.1883, allocations: 27.91 kB / 0.9811 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.045e-05/0.1884, allocations: 4 kB / 0.9811 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.475e-05/0.1884, allocations: 0 / 0.9811 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.149e-05/0.1884, allocations: 11.98 kB / 0.9812 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.227e-05/0.1885, allocations: 41.62 kB / 0.9812 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.346e-05/0.1885, allocations: 40.14 kB / 0.9812 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1886, allocations: 8 kB / 0.9812 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.523e-06/0.1886, allocations: 0 / 0.9812 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.1886, allocations: 0 / 0.9812 GB, free: 25.9 MB / 0.6198 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.0004195/0.189, allocations: 384.9 kB / 0.9816 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.189, allocations: 12.02 kB / 0.9816 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.561e-05/0.1891, allocations: 38.55 kB / 0.9817 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.99e-05/0.1891, allocations: 11.94 kB / 0.9817 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.1893, allocations: 178.9 kB / 0.9818 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.1893, allocations: 8 kB / 0.9818 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.323e-05/0.1893, allocations: 4 kB / 0.9818 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.1895, allocations: 69.67 kB / 0.9819 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.1895, allocations: 4 kB / 0.9819 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.1895, allocations: 4 kB / 0.9819 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.1895, allocations: 3.938 kB / 0.9819 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.1897, allocations: 39.97 kB / 0.982 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003637/0.19, allocations: 300.8 kB / 0.9823 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.1902, allocations: 74.5 kB / 0.9823 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.28e-05/0.1902, allocations: 56.89 kB / 0.9824 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.1903, allocations: 11.97 kB / 0.9824 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.1905, allocations: 117.1 kB / 0.9825 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.1905, allocations: 0 / 0.9825 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0003688/0.1909, allocations: 207.7 kB / 0.9827 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/0.1909, allocations: 122.8 kB / 0.9828 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.37e-05/0.191, allocations: 105.8 kB / 0.9829 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.191, allocations: 33.7 kB / 0.9829 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.028e-05/0.1911, allocations: 88.12 kB / 0.983 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.1911, allocations: 23.72 kB / 0.9831 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.1911, allocations: 4 kB / 0.9831 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.72e-05/0.1911, allocations: 322.8 kB / 0.9834 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.884e-05/0.1912, allocations: 39.97 kB / 0.9834 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.843e-05/0.1913, allocations: 104.6 kB / 0.9835 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.1915, allocations: 85.62 kB / 0.9836 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1915, allocations: 0 / 0.9836 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002762/0.1917, allocations: 207.2 kB / 0.9838 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.1918, allocations: 33.7 kB / 0.9838 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1918, allocations: 4.094 kB / 0.9838 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1918, allocations: 7.984 kB / 0.9838 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.1919, allocations: 35.88 kB / 0.9839 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.1919, allocations: 0 / 0.9839 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.274e-05/0.192, allocations: 19.78 kB / 0.9839 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.192, allocations: 12 kB / 0.9839 GB, free: 22.87 MB / 0.6198 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.0001042/0.1922, allocations: 173.1 kB / 0.9841 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.1922, allocations: 11.91 kB / 0.9841 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.017e-05/0.1922, allocations: 4.375 kB / 0.9841 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.1922, allocations: 0 / 0.9841 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1922, allocations: 3.953 kB / 0.9841 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1922, allocations: 0 / 0.9841 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.01e-05/0.1923, allocations: 193.6 kB / 0.9843 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1923, allocations: 0 / 0.9843 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.056e-05/0.1924, allocations: 8 kB / 0.9843 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1924, allocations: 0 / 0.9843 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.1924, allocations: 7.984 kB / 0.9843 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1924, allocations: 3.938 kB / 0.9843 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1924, allocations: 3.938 kB / 0.9843 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.1927, allocations: 242.5 kB / 0.9845 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.971e-05/0.1927, allocations: 84.95 kB / 0.9846 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.1928, allocations: 15.98 kB / 0.9846 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.121e-05/0.1928, allocations: 4 kB / 0.9846 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/0.1929, allocations: 0 / 0.9846 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.1929, allocations: 7.984 kB / 0.9846 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.659e-05/0.1929, allocations: 87.59 kB / 0.9847 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.21e-07/0.1929, allocations: 0 / 0.9847 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002032/0.1931, allocations: 27.95 kB / 0.9847 GB, free: 21.91 MB / 0.6198 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.0004306/0.1936, allocations: 0.7767 MB / 0.9855 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002985/0.1939, allocations: 179.2 kB / 0.9857 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1939, allocations: 0 / 0.9857 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.194, allocations: 191.3 kB / 0.9858 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001806/0.1942, allocations: 12.67 kB / 0.9859 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007864/0.195, allocations: 0.6575 MB / 0.9865 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.148e-05/0.1951, allocations: 0.6848 MB / 0.9872 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.658e-05/0.1952, allocations: 16.94 kB / 0.9872 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.945e-05/0.1952, allocations: 19.44 kB / 0.9872 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of SimCode: time 2.4e-07/0.1952, allocations: 0 / 0.9872 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01085/0.2061, allocations: 1.835 MB / 0.989 GB, free: 17.55 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001302/0.2062, allocations: 224.2 kB / 0.9892 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.546/1.753, allocations: 0 / 0.9892 GB, free: 17.3 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_maint.8.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)