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: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_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_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007262/0.0007262, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.004571/0.004571, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.174/1.174, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.522/1.522, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0004541/0.0004541, allocations: 17 kB / 0.6744 GB, free: 25.62 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.1801, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001246/0.1814, allocations: 1.118 MB / 0.7891 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004871/0.1819, allocations: 281.1 kB / 0.7894 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.118e-05/0.182, allocations: 0 / 0.7894 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.435e-05/0.1821, allocations: 7.984 kB / 0.7894 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.1822, allocations: 3.938 kB / 0.7894 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000123/0.1823, allocations: 35.91 kB / 0.7894 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.62e-05/0.1824, allocations: 51.84 kB / 0.7895 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.485e-05/0.1825, allocations: 8 kB / 0.7895 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.009e-05/0.1825, allocations: 31.84 kB / 0.7895 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.162e-05/0.1826, allocations: 35.84 kB / 0.7895 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.1827, allocations: 0 / 0.7895 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.27e-05/0.1827, allocations: 4 kB / 0.7895 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.984e-05/0.1827, allocations: 4 kB / 0.7896 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.19e-05/0.1828, allocations: 49.56 kB / 0.7896 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.554e-05/0.1829, allocations: 63.98 kB / 0.7897 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1829, allocations: 0 / 0.7897 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.332e-06/0.1829, allocations: 0 / 0.7897 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.166e-06/0.1829, allocations: 0 / 0.7897 GB, free: 9.77 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.0003814/0.1833, allocations: 385 kB / 0.79 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.1833, allocations: 12.03 kB / 0.79 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.844e-05/0.1833, allocations: 34.75 kB / 0.7901 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.857e-05/0.1834, allocations: 12.83 kB / 0.7901 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.1835, allocations: 180.3 kB / 0.7903 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.1835, allocations: 4.312 kB / 0.7903 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.1836, allocations: 8.312 kB / 0.7903 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.1837, allocations: 74.23 kB / 0.7903 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.1837, allocations: 3.938 kB / 0.7903 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.1837, allocations: 0 / 0.7903 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1837, allocations: 0 / 0.7903 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.1839, allocations: 47.97 kB / 0.7904 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000347/0.1842, allocations: 292.7 kB / 0.7907 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001094/0.1843, allocations: 78.44 kB / 0.7907 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.642e-05/0.1844, allocations: 56.89 kB / 0.7908 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.1845, allocations: 0 / 0.7908 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001623/0.1846, allocations: 117.1 kB / 0.7909 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.1846, allocations: 0 / 0.7909 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003555/0.185, allocations: 207.3 kB / 0.7911 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.1851, allocations: 114.8 kB / 0.7912 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.857e-05/0.1851, allocations: 121.7 kB / 0.7913 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.1852, allocations: 33.69 kB / 0.7914 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.34e-05/0.1852, allocations: 88.14 kB / 0.7914 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/0.1852, allocations: 19.72 kB / 0.7915 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.1853, allocations: 29.7 kB / 0.7915 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.486e-05/0.1854, allocations: 318.8 kB / 0.7918 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.387e-05/0.1855, allocations: 35.98 kB / 0.7918 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.1856, allocations: 108.5 kB / 0.7919 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.1858, allocations: 215.8 kB / 0.7921 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1858, allocations: 3.938 kB / 0.7921 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002925/0.1861, allocations: 207 kB / 0.7923 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.1861, allocations: 33.7 kB / 0.7924 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1862, allocations: 4 kB / 0.7924 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.616e-06/0.1862, allocations: 0 / 0.7924 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.1863, allocations: 31.92 kB / 0.7924 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.1863, allocations: 4.281 kB / 0.7924 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.76e-05/0.1864, allocations: 23.78 kB / 0.7924 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1864, allocations: 8.094 kB / 0.7924 GB, free: 6.562 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.0001196/0.1865, allocations: 180.1 kB / 0.7926 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.1865, allocations: 4 kB / 0.7926 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.74e-05/0.1865, allocations: 8.375 kB / 0.7926 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.1866, allocations: 0 / 0.7926 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1866, allocations: 0 / 0.7926 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1866, allocations: 8 kB / 0.7926 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.1867, allocations: 193.5 kB / 0.7928 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1867, allocations: 3.938 kB / 0.7928 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.598e-05/0.1867, allocations: 4 kB / 0.7928 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1868, allocations: 0 / 0.7928 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1868, allocations: 7.984 kB / 0.7928 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1868, allocations: 0 / 0.7928 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1868, allocations: 0 / 0.7928 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002995/0.1871, allocations: 230.6 kB / 0.7931 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.263e-05/0.1871, allocations: 88.89 kB / 0.7931 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.806e-05/0.1872, allocations: 12 kB / 0.7932 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.737e-05/0.1872, allocations: 7.984 kB / 0.7932 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.657e-05/0.1873, allocations: 0 / 0.7932 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.1873, allocations: 4 kB / 0.7932 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.188e-05/0.1873, allocations: 95.25 kB / 0.7933 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1873, allocations: 4 kB / 0.7933 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002101/0.1875, allocations: 24 kB / 0.7933 GB, free: 5.598 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.0005204/0.1881, allocations: 0.779 MB / 0.794 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000247/0.1883, allocations: 171.2 kB / 0.7942 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1883, allocations: 0 / 0.7942 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001653/0.1885, allocations: 187.4 kB / 0.7944 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001745/0.1887, allocations: 8.5 kB / 0.7944 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.1901, allocations: 1.654 MB / 0.796 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001838/0.1903, allocations: 0.6888 MB / 0.7967 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.734e-05/0.1903, allocations: 8.938 kB / 0.7967 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.1904, allocations: 19.44 kB / 0.7967 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.1904, allocations: 0 / 0.7967 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01577/0.2061, allocations: 1.782 MB / 0.7984 GB, free: 240 kB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002224/0.2064, allocations: 221.4 kB / 0.7987 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.438/1.645, allocations: 3.656 kB / 0.7987 GB, free: 15.97 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)