Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage",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.001109/0.001109, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001145/0.001145, allocations: 193.2 kB / 16.13 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8971/0.8971, allocations: 135.1 MB / 425.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.95 kB / 0.5048 GB, free: 5.637 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1763, allocations: 80.92 MB / 0.5838 GB, free: 4.875 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002629/0.1789, allocations: 1.636 MB / 0.5854 GB, free: 3.223 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008478/0.1798, allocations: 0.5183 MB / 0.5859 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.3e-05/0.1799, allocations: 0 / 0.5859 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.545e-05/0.1799, allocations: 7.922 kB / 0.5859 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.904e-05/0.18, allocations: 15.86 kB / 0.5859 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.1803, allocations: 43.95 kB / 0.586 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.1804, allocations: 99.69 kB / 0.5861 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.861e-05/0.1805, allocations: 12.17 kB / 0.5861 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.335e-05/0.1806, allocations: 35.91 kB / 0.5861 GB, free: 2.488 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.731e-05/0.1807, allocations: 39.81 kB / 0.5862 GB, free: 2.449 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.396e-05/0.1807, allocations: 4 kB / 0.5862 GB, free: 2.445 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.011e-05/0.1808, allocations: 12 kB / 0.5862 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.187e-05/0.1808, allocations: 11.92 kB / 0.5862 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.172e-05/0.1809, allocations: 35.84 kB / 0.5862 GB, free: 2.387 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.181, allocations: 79.98 kB / 0.5863 GB, free: 2.309 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.181, allocations: 0 / 0.5863 GB, free: 2.309 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.181, allocations: 3.938 kB / 0.5863 GB, free: 2.305 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.181, allocations: 0 / 0.5863 GB, free: 2.305 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008182/0.1819, allocations: 462.6 kB / 0.5867 GB, free: 1.793 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1819, allocations: 12.03 kB / 0.5867 GB, free: 1.781 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.787e-05/0.1819, allocations: 34.75 kB / 0.5868 GB, free: 1.738 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.614e-05/0.182, allocations: 12.84 kB / 0.5868 GB, free: 1.727 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.1822, allocations: 192.1 kB / 0.587 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.385e-05/0.1823, allocations: 34.25 kB / 0.587 GB, free: 1.461 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.1823, allocations: 12.12 kB / 0.587 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.1826, allocations: 97.56 kB / 0.5871 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1826, allocations: 4 kB / 0.5871 GB, free: 1.344 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.1827, allocations: 7.984 kB / 0.5871 GB, free: 1.336 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1827, allocations: 0 / 0.5871 GB, free: 1.336 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003247/0.183, allocations: 71.92 kB / 0.5872 GB, free: 1.266 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005616/0.1836, allocations: 344.7 kB / 0.5875 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.184, allocations: 86.58 kB / 0.5876 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.1842, allocations: 48.83 kB / 0.5877 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.939e-05/0.1842, allocations: 7.938 kB / 0.5877 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003306/0.1845, allocations: 127.3 kB / 0.5878 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.532e-06/0.1845, allocations: 0 / 0.5878 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006237/0.1852, allocations: 177.4 kB / 0.588 GB, free: 420 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.1852, allocations: 55.41 kB / 0.588 GB, free: 352 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.828e-05/0.1853, allocations: 122.1 kB / 0.5881 GB, free: 220 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.1853, allocations: 33.7 kB / 0.5882 GB, free: 180 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.378e-05/0.1854, allocations: 91.98 kB / 0.5882 GB, free: 84 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-05/0.1854, allocations: 27.61 kB / 0.5883 GB, free: 56 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.82e-05/0.1855, allocations: 33.7 kB / 0.5883 GB, free: 16 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1856, allocations: 331.1 kB / 0.5886 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.1858, allocations: 47.97 kB / 0.5887 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.1861, allocations: 78.19 kB / 0.5887 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.1864, allocations: 169 kB / 0.5889 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1864, allocations: 3.938 kB / 0.5889 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004678/0.1869, allocations: 220.9 kB / 0.5891 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.322e-05/0.187, allocations: 57.91 kB / 0.5892 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.187, allocations: 4 kB / 0.5892 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.187, allocations: 0 / 0.5892 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.1871, allocations: 35.94 kB / 0.5892 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1871, allocations: 0 / 0.5892 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.1873, allocations: 19.92 kB / 0.5892 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.1873, allocations: 4 kB / 0.5892 GB, free: 15.01 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,step.count,$PRE.step.count,step.T_start,$PRE.step.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 2 * 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 8.791e-05/0.1874, allocations: 117.8 kB / 0.5893 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.1874, allocations: 11.89 kB / 0.5893 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.1875, allocations: 8.375 kB / 0.5894 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1875, allocations: 8 kB / 0.5894 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1875, allocations: 0 / 0.5894 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1875, allocations: 3.938 kB / 0.5894 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.1877, allocations: 197.5 kB / 0.5896 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1877, allocations: 0 / 0.5896 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.1878, allocations: 23.92 kB / 0.5896 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1878, allocations: 0 / 0.5896 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.1878, allocations: 0 / 0.5896 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.1879, allocations: 3.984 kB / 0.5896 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1879, allocations: 3.938 kB / 0.5896 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000595/0.1885, allocations: 224.8 kB / 0.5898 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.1885, allocations: 84.95 kB / 0.5899 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/0.1885, allocations: 4 kB / 0.5899 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.1887, allocations: 24.02 kB / 0.5899 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.288e-05/0.1888, allocations: 15.97 kB / 0.5899 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.1888, allocations: 7.938 kB / 0.5899 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.435e-05/0.1888, allocations: 98.89 kB / 0.59 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1888, allocations: 0 / 0.59 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002084/0.1891, allocations: 24 kB / 0.59 GB, free: 14.06 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (movingAverage.iDelay,movingAverage.iStop,firstOrder.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,step.T_start,step.count) * Number of discrete states: 1 (step.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008581/0.1899, allocations: 0.7529 MB / 0.5908 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004598/0.1904, allocations: 230.7 kB / 0.591 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1904, allocations: 0 / 0.591 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.1906, allocations: 63.89 kB / 0.5911 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.1909, allocations: 19.92 kB / 0.5911 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.1931, allocations: 1.72 MB / 0.5928 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.1934, allocations: 0.6926 MB / 0.5934 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.989e-05/0.1934, allocations: 12.61 kB / 0.5935 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.87e-05/0.1935, allocations: 23.42 kB / 0.5935 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1935, allocations: 0 / 0.5935 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01243/0.206, allocations: 2.483 MB / 0.5959 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.2062, allocations: 191.6 kB / 0.5961 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/1.984, allocations: 4 kB / 0.5961 GB, free: 7.742 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)