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.0017/0.001701, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.39/1.39, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9273/0.9273, allocations: 135.1 MB / 425.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 68.31 kB / 0.5054 GB, free: 5.227 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1734, allocations: 80.94 MB / 0.5845 GB, free: 4.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002932/0.1764, allocations: 1.566 MB / 0.586 GB, free: 2.871 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009626/0.1774, allocations: 0.5198 MB / 0.5865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.532e-05/0.1775, allocations: 4 kB / 0.5865 GB, free: 2.344 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.505e-05/0.1775, allocations: 11.86 kB / 0.5865 GB, free: 2.332 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.692e-05/0.1776, allocations: 7.875 kB / 0.5865 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.1779, allocations: 59.86 kB / 0.5866 GB, free: 2.266 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.1782, allocations: 107.6 kB / 0.5867 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.1783, allocations: 20.16 kB / 0.5867 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.271e-05/0.1784, allocations: 31.91 kB / 0.5867 GB, free: 2.109 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.098e-05/0.1785, allocations: 43.83 kB / 0.5868 GB, free: 2.066 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.1785, allocations: 8 kB / 0.5868 GB, free: 2.059 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.189e-05/0.1785, allocations: 11.94 kB / 0.5868 GB, free: 2.047 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.779e-05/0.1786, allocations: 27.91 kB / 0.5868 GB, free: 2.02 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.077e-05/0.1786, allocations: 35.84 kB / 0.5869 GB, free: 1.984 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.1788, allocations: 87.97 kB / 0.587 GB, free: 1.898 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1788, allocations: 0 / 0.587 GB, free: 1.898 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1788, allocations: 0 / 0.587 GB, free: 1.898 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1788, allocations: 0 / 0.587 GB, free: 1.898 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.0008035/0.1796, allocations: 454.6 kB / 0.5874 GB, free: 1.395 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1797, allocations: 12.03 kB / 0.5874 GB, free: 1.383 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.769e-05/0.1797, allocations: 42.73 kB / 0.5874 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/0.1798, allocations: 8.844 kB / 0.5874 GB, free: 1.324 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.18, allocations: 188.2 kB / 0.5876 GB, free: 1.102 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.029e-05/0.1801, allocations: 42.2 kB / 0.5877 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.1802, allocations: 8.125 kB / 0.5877 GB, free: 1.047 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.1805, allocations: 93.62 kB / 0.5878 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1805, allocations: 0 / 0.5878 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.1805, allocations: 8 kB / 0.5878 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1805, allocations: 0 / 0.5878 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.1808, allocations: 71.92 kB / 0.5878 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005788/0.1814, allocations: 336.7 kB / 0.5882 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000399/0.1818, allocations: 94.58 kB / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.182, allocations: 48.81 kB / 0.5883 GB, free: 348 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.182, allocations: 3.938 kB / 0.5883 GB, free: 344 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003603/0.1824, allocations: 123.3 kB / 0.5884 GB, free: 208 kB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.754e-06/0.1824, allocations: 0 / 0.5884 GB, free: 208 kB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.000603/0.183, allocations: 177.4 kB / 0.5886 GB, free: 24 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.1831, allocations: 63.41 kB / 0.5886 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.1832, allocations: 125.1 kB / 0.5888 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.1832, allocations: 25.7 kB / 0.5888 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.887e-05/0.1833, allocations: 104 kB / 0.5889 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.1833, allocations: 23.62 kB / 0.5889 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.3e-05/0.1834, allocations: 33.7 kB / 0.5889 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1835, allocations: 322.8 kB / 0.5893 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.1837, allocations: 55.95 kB / 0.5893 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.1839, allocations: 69.61 kB / 0.5894 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.1843, allocations: 169 kB / 0.5895 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1843, allocations: 0 / 0.5895 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004727/0.1848, allocations: 220.9 kB / 0.5897 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.872e-05/0.1848, allocations: 59.41 kB / 0.5898 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1848, allocations: 3.984 kB / 0.5898 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1848, allocations: 0 / 0.5898 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.185, allocations: 23.98 kB / 0.5898 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.185, allocations: 4.031 kB / 0.5898 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.1851, allocations: 19.92 kB / 0.5898 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.1852, allocations: 4 kB / 0.5899 GB, free: 14.62 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 0.0001098/0.1853, allocations: 121.8 kB / 0.59 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.1853, allocations: 7.906 kB / 0.59 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.37e-05/0.1854, allocations: 20.3 kB / 0.59 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1854, allocations: 0 / 0.59 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.1854, allocations: 8 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1854, allocations: 3.938 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001829/0.1856, allocations: 197.5 kB / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1856, allocations: 0 / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.1857, allocations: 15.98 kB / 0.5902 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1858, allocations: 0 / 0.5902 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.1858, allocations: 15.98 kB / 0.5902 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.1858, allocations: 0 / 0.5902 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1858, allocations: 3.938 kB / 0.5902 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006075/0.1864, allocations: 221.1 kB / 0.5904 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.645e-05/0.1865, allocations: 88.95 kB / 0.5905 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.1865, allocations: 8.031 kB / 0.5905 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.1866, allocations: 15.98 kB / 0.5905 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.887e-05/0.1867, allocations: 19.98 kB / 0.5906 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.1867, allocations: 11.92 kB / 0.5906 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.564e-05/0.1868, allocations: 102.8 kB / 0.5907 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1868, allocations: 0 / 0.5907 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002094/0.187, allocations: 20 kB / 0.5907 GB, free: 13.66 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.0008787/0.1879, allocations: 0.7606 MB / 0.5914 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004771/0.1884, allocations: 230.7 kB / 0.5917 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1884, allocations: 4.062 kB / 0.5917 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.1886, allocations: 55.95 kB / 0.5917 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.1889, allocations: 23.92 kB / 0.5917 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.1915, allocations: 1.695 MB / 0.5934 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.1919, allocations: 0.6924 MB / 0.5941 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.518e-05/0.1919, allocations: 8.422 kB / 0.5941 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.652e-05/0.192, allocations: 31.42 kB / 0.5941 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of SimCode: time 4.81e-07/0.192, allocations: 0 / 0.5941 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.2142, allocations: 2.761 MB / 0.5968 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.471/7.685, allocations: 7.438 kB / 0.5968 GB, free: 7.301 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IDEAS_dev_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)