Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS.Utilities.Math.Examples.MovingAverage") translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001145/0.001145, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001272/0.001272, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8526/0.8526, allocations: 135.2 MB / 426.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002747, allocations: 12 kB / 0.5068 GB, free: 5.254 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1465, allocations: 82.31 MB / 0.5872 GB, free: 3.117 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.001722/0.1483, allocations: 1.273 MB / 0.5884 GB, free: 1.832 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007581/0.149, allocations: 499.1 kB / 0.5889 GB, free: 1.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.269e-05/0.1491, allocations: 0 / 0.5889 GB, free: 1.34 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.001e-05/0.1491, allocations: 3.938 kB / 0.5889 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.547e-05/0.1492, allocations: 11.98 kB / 0.5889 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000198/0.1494, allocations: 51.81 kB / 0.589 GB, free: 1.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.1496, allocations: 59.86 kB / 0.589 GB, free: 1.215 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.1497, allocations: 12.16 kB / 0.5891 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.101e-05/0.1498, allocations: 31.91 kB / 0.5891 GB, free: 1.172 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.758e-05/0.1499, allocations: 43.81 kB / 0.5891 GB, free: 1.129 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.1499, allocations: 4 kB / 0.5891 GB, free: 1.125 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.033e-05/0.1499, allocations: 4 kB / 0.5891 GB, free: 1.121 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.222e-05/0.1499, allocations: 19.92 kB / 0.5892 GB, free: 1.102 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.826e-05/0.15, allocations: 37.64 kB / 0.5892 GB, free: 1.059 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.391e-05/0.1501, allocations: 64.09 kB / 0.5892 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1501, allocations: 0 / 0.5892 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1501, allocations: 0 / 0.5892 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.1501, allocations: 0 / 0.5892 GB, free: 0.9961 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.000686/0.1508, allocations: 442.5 kB / 0.5897 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1508, allocations: 12.03 kB / 0.5897 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.348e-05/0.1509, allocations: 7.906 kB / 0.5897 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.1511, allocations: 190.8 kB / 0.5899 GB, free: 264 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.922e-05/0.1512, allocations: 41.69 kB / 0.5899 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.928e-05/0.1512, allocations: 4 kB / 0.5899 GB, free: 212 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.1515, allocations: 109.6 kB / 0.59 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1515, allocations: 0 / 0.59 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.1516, allocations: 0 / 0.59 GB, free: 96 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.1516, allocations: 4 kB / 0.59 GB, free: 92 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.1519, allocations: 91.92 kB / 0.5901 GB, free: 0 / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005284/0.1524, allocations: 340.7 kB / 0.5904 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/0.1528, allocations: 110.6 kB / 0.5905 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.1528, allocations: 4 kB / 0.5905 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000306/0.1532, allocations: 131.2 kB / 0.5907 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 3.696e-06/0.1532, allocations: 4 kB / 0.5907 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006006/0.1538, allocations: 201.5 kB / 0.5909 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.1538, allocations: 55.41 kB / 0.5909 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.127e-05/0.1539, allocations: 125.9 kB / 0.591 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.1539, allocations: 29.7 kB / 0.5911 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/0.154, allocations: 100.2 kB / 0.5912 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.154, allocations: 31.59 kB / 0.5912 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.716e-06/0.154, allocations: 4 kB / 0.5912 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.769e-05/0.1541, allocations: 318.8 kB / 0.5915 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.1543, allocations: 59.95 kB / 0.5916 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.1545, allocations: 83.92 kB / 0.5916 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.1547, allocations: 107.4 kB / 0.5917 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1547, allocations: 0 / 0.5917 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004544/0.1552, allocations: 247.9 kB / 0.592 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.041e-05/0.1552, allocations: 63.39 kB / 0.592 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1553, allocations: 4.031 kB / 0.592 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.1553, allocations: 0 / 0.592 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.1554, allocations: 27.98 kB / 0.5921 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.1554, allocations: 3.938 kB / 0.5921 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.1556, allocations: 31.86 kB / 0.5921 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.1556, allocations: 4 kB / 0.5921 GB, free: 13.79 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,$whenCondition1,$PRE.step.T_start,step.T_start,$PRE.step.count,step.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.1557, allocations: 124.2 kB / 0.5922 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.6e-05/0.1557, allocations: 7.906 kB / 0.5922 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.467e-05/0.1558, allocations: 12.38 kB / 0.5922 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1558, allocations: 0 / 0.5922 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-06/0.1558, allocations: 0 / 0.5922 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.1558, allocations: 11.98 kB / 0.5923 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.1559, allocations: 193.5 kB / 0.5924 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.156, allocations: 0 / 0.5924 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001319/0.1561, allocations: 27.97 kB / 0.5925 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1561, allocations: 0 / 0.5925 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.1561, allocations: 8 kB / 0.5925 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1561, allocations: 0 / 0.5925 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1561, allocations: 3.938 kB / 0.5925 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005586/0.1567, allocations: 249.2 kB / 0.5927 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.1568, allocations: 93.05 kB / 0.5928 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.1568, allocations: 7.938 kB / 0.5928 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.1569, allocations: 15.98 kB / 0.5928 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.157, allocations: 19.97 kB / 0.5928 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.157, allocations: 7.938 kB / 0.5929 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.001e-05/0.157, allocations: 95.27 kB / 0.5929 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1571, allocations: 0 / 0.5929 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001958/0.1573, allocations: 27.98 kB / 0.593 GB, free: 12.8 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 (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.0001112/0.1574, allocations: 99.25 kB / 0.5931 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004395/0.1578, allocations: 246.7 kB / 0.5933 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1578, allocations: 0 / 0.5933 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001784/0.158, allocations: 59.91 kB / 0.5934 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.1582, allocations: 27.98 kB / 0.5934 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005323/0.1587, allocations: 265.3 kB / 0.5936 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.159, allocations: 0.7043 MB / 0.5943 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.49e-05/0.159, allocations: 4.438 kB / 0.5943 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.183e-05/0.1591, allocations: 15.42 kB / 0.5943 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1591, allocations: 4 kB / 0.5943 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of Templates: time 0.003203/0.1623, allocations: 1.25 MB / 0.5956 GB, free: 10.07 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.makefile Environment - environmentSimulation: (rm -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1) Environment - environmentSimulation: