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: translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage") translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006888/0.006888, allocations: 100.9 kB / 15.87 MB, free: 5.867 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.00115/0.00115, allocations: 190 kB / 16.79 MB, free: 5.812 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.347/1.347, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9977/0.9977, allocations: 135.1 MB / 425.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 68.67 kB / 0.5053 GB, free: 5.73 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.147, allocations: 80.92 MB / 0.5843 GB, free: 4.977 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002608/0.1496, allocations: 1.629 MB / 0.5859 GB, free: 3.328 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008468/0.1505, allocations: 0.5299 MB / 0.5864 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.849e-05/0.1506, allocations: 0 / 0.5864 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.932e-05/0.1506, allocations: 0 / 0.5864 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.71e-05/0.1507, allocations: 19.86 kB / 0.5865 GB, free: 2.773 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.1509, allocations: 43.94 kB / 0.5865 GB, free: 2.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.1511, allocations: 95.7 kB / 0.5866 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.338e-05/0.1512, allocations: 16.16 kB / 0.5866 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.2e-05/0.1512, allocations: 31.92 kB / 0.5866 GB, free: 2.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.456e-05/0.1513, allocations: 43.75 kB / 0.5867 GB, free: 2.547 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.1513, allocations: 8 kB / 0.5867 GB, free: 2.539 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.004e-05/0.1514, allocations: 4 kB / 0.5867 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.202e-05/0.1514, allocations: 23.91 kB / 0.5867 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.677e-05/0.1515, allocations: 27.86 kB / 0.5867 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.011e-05/0.1516, allocations: 60.11 kB / 0.5868 GB, free: 2.426 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1516, allocations: 3.938 kB / 0.5868 GB, free: 2.422 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1516, allocations: 0 / 0.5868 GB, free: 2.422 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1516, allocations: 0 / 0.5868 GB, free: 2.422 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.0007359/0.1523, allocations: 462.6 kB / 0.5873 GB, free: 1.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.1524, allocations: 11.97 kB / 0.5873 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.499e-05/0.1524, allocations: 8.938 kB / 0.5873 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.1526, allocations: 188.2 kB / 0.5875 GB, free: 1.668 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.412e-05/0.1527, allocations: 42.25 kB / 0.5875 GB, free: 1.621 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.1527, allocations: 12.22 kB / 0.5875 GB, free: 1.609 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.153, allocations: 101.6 kB / 0.5876 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1531, allocations: 3.984 kB / 0.5876 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.1531, allocations: 4 kB / 0.5876 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.1531, allocations: 0 / 0.5876 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.1534, allocations: 71.92 kB / 0.5877 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005597/0.154, allocations: 340.7 kB / 0.588 GB, free: 1.043 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.1544, allocations: 98.56 kB / 0.5881 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.1546, allocations: 48.83 kB / 0.5881 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.1546, allocations: 0 / 0.5881 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003545/0.1549, allocations: 126.4 kB / 0.5883 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.155, allocations: 0 / 0.5883 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006117/0.1556, allocations: 173.4 kB / 0.5884 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.1556, allocations: 59.78 kB / 0.5885 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.349e-05/0.1557, allocations: 124.9 kB / 0.5886 GB, free: 388 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.1557, allocations: 25.7 kB / 0.5886 GB, free: 356 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.361e-05/0.1558, allocations: 99.98 kB / 0.5887 GB, free: 252 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.1558, allocations: 31.55 kB / 0.5888 GB, free: 220 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-05/0.1559, allocations: 29.72 kB / 0.5888 GB, free: 184 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.156, allocations: 326.8 kB / 0.5891 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.1562, allocations: 51.95 kB / 0.5891 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.1564, allocations: 65.67 kB / 0.5892 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003728/0.1568, allocations: 169 kB / 0.5894 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1568, allocations: 0 / 0.5894 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004776/0.1573, allocations: 228.3 kB / 0.5896 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/0.1574, allocations: 61.69 kB / 0.5896 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1574, allocations: 0 / 0.5896 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.1574, allocations: 8.031 kB / 0.5897 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.1575, allocations: 23.92 kB / 0.5897 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1575, allocations: 3.984 kB / 0.5897 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.1577, allocations: 23.92 kB / 0.5897 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.1577, allocations: 3.938 kB / 0.5897 GB, free: 15.18 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.309e-05/0.1578, allocations: 117.8 kB / 0.5898 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.997e-05/0.1578, allocations: 7.906 kB / 0.5898 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.1579, allocations: 20.36 kB / 0.5898 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1579, allocations: 7.938 kB / 0.5899 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1579, allocations: 0 / 0.5899 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1579, allocations: 0 / 0.5899 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.1581, allocations: 197.5 kB / 0.59 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1581, allocations: 3.984 kB / 0.59 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.1582, allocations: 15.98 kB / 0.5901 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1583, allocations: 0 / 0.5901 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.1583, allocations: 8 kB / 0.5901 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1583, allocations: 0 / 0.5901 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1583, allocations: 8 kB / 0.5901 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006151/0.1589, allocations: 220.8 kB / 0.5903 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.073e-05/0.159, allocations: 88.95 kB / 0.5904 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.159, allocations: 8 kB / 0.5904 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.1591, allocations: 12.03 kB / 0.5904 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/0.1592, allocations: 15.97 kB / 0.5904 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.1592, allocations: 4 kB / 0.5904 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.556e-05/0.1593, allocations: 103.3 kB / 0.5905 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1593, allocations: 3.938 kB / 0.5905 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002079/0.1595, allocations: 16 kB / 0.5905 GB, free: 14.23 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.000116/0.1596, allocations: 111.2 kB / 0.5906 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004682/0.1601, allocations: 230.7 kB / 0.5909 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1601, allocations: 0 / 0.5909 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.1603, allocations: 47.97 kB / 0.5909 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.1606, allocations: 27.53 kB / 0.5909 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006229/0.1612, allocations: 287.9 kB / 0.5912 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.1615, allocations: 0.6965 MB / 0.5919 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.28e-05/0.1615, allocations: 15.44 kB / 0.5919 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.1615, allocations: 0 / 0.5919 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of Templates: time 0.00276/0.1643, allocations: 1.414 MB / 0.5933 GB, free: 11.33 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.makefile (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 & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)