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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8012/0.8012, allocations: 132.2 MB / 148.9 MB, free: 12.16 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 403.3 MB, free: 7.059 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 101.9 kB / 484.3 MB, free: 8.672 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009968/0.0009969, allocations: 59.91 kB / 0.5618 GB, free: 71.02 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.162, allocations: 80.21 MB / 0.6402 GB, free: 6.738 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.003014/0.1651, allocations: 1.627 MB / 0.6418 GB, free: 5.09 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.1661, allocations: 0.5348 MB / 0.6423 GB, free: 4.551 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.452e-05/0.1662, allocations: 0 / 0.6423 GB, free: 4.551 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 3.661e-05/0.1663, allocations: 7.875 kB / 0.6423 GB, free: 4.543 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 9.881e-05/0.1664, allocations: 15.92 kB / 0.6423 GB, free: 4.527 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.1667, allocations: 43.89 kB / 0.6424 GB, free: 4.484 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001655/0.1668, allocations: 99.69 kB / 0.6424 GB, free: 4.387 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.167, allocations: 20.17 kB / 0.6425 GB, free: 4.367 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.881e-05/0.167, allocations: 27.91 kB / 0.6425 GB, free: 4.34 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.497e-05/0.1671, allocations: 43.83 kB / 0.6425 GB, free: 4.297 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/0.1672, allocations: 4 kB / 0.6425 GB, free: 4.293 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.716e-05/0.1672, allocations: 4 kB / 0.6425 GB, free: 4.289 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 3.651e-05/0.1672, allocations: 19.91 kB / 0.6426 GB, free: 4.27 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 5.389e-05/0.1673, allocations: 27.86 kB / 0.6426 GB, free: 4.242 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.1674, allocations: 79.97 kB / 0.6427 GB, free: 4.164 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1674, allocations: 0 / 0.6427 GB, free: 4.164 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1674, allocations: 4 kB / 0.6427 GB, free: 4.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.1675, allocations: 0 / 0.6427 GB, free: 4.16 MB / 442.7 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.0008055/0.1683, allocations: 470.6 kB / 0.6431 GB, free: 3.641 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1683, allocations: 8.031 kB / 0.6431 GB, free: 3.633 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.319e-05/0.1684, allocations: 20.78 kB / 0.6431 GB, free: 3.613 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.1686, allocations: 188.2 kB / 0.6433 GB, free: 3.391 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.981e-05/0.1687, allocations: 30.27 kB / 0.6434 GB, free: 3.355 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.1688, allocations: 16.38 kB / 0.6434 GB, free: 3.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.1691, allocations: 93.56 kB / 0.6435 GB, free: 3.242 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1691, allocations: 0 / 0.6435 GB, free: 3.242 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.1691, allocations: 7.938 kB / 0.6435 GB, free: 3.234 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.1691, allocations: 0 / 0.6435 GB, free: 3.234 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003172/0.1694, allocations: 79.92 kB / 0.6435 GB, free: 3.156 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.17, allocations: 332.6 kB / 0.6439 GB, free: 2.781 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.1704, allocations: 94.61 kB / 0.644 GB, free: 2.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.1706, allocations: 52.8 kB / 0.644 GB, free: 2.625 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.1706, allocations: 0 / 0.644 GB, free: 2.625 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.171, allocations: 123.2 kB / 0.6441 GB, free: 2.492 MB / 442.7 MB Notification: Performance of pre-optimization done (n=9): time 2.054e-06/0.171, allocations: 0 / 0.6441 GB, free: 2.492 MB / 442.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006165/0.1716, allocations: 181.4 kB / 0.6443 GB, free: 2.309 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.1717, allocations: 51.41 kB / 0.6443 GB, free: 2.246 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.1718, allocations: 122.1 kB / 0.6445 GB, free: 2.117 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.1718, allocations: 33.7 kB / 0.6445 GB, free: 2.078 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.407e-05/0.1719, allocations: 104 kB / 0.6446 GB, free: 1.973 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.172, allocations: 23.62 kB / 0.6446 GB, free: 1.949 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-05/0.172, allocations: 29.7 kB / 0.6446 GB, free: 1.914 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1722, allocations: 326.8 kB / 0.645 GB, free: 1.586 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.1724, allocations: 51.95 kB / 0.645 GB, free: 1.535 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.1726, allocations: 70.94 kB / 0.6451 GB, free: 1.461 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003576/0.1729, allocations: 158.1 kB / 0.6452 GB, free: 1.289 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1729, allocations: 0 / 0.6452 GB, free: 1.289 MB / 442.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005163/0.1735, allocations: 230 kB / 0.6454 GB, free: 1.047 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.989e-05/0.1735, allocations: 59.39 kB / 0.6455 GB, free: 0.9766 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1735, allocations: 4 kB / 0.6455 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1736, allocations: 0 / 0.6455 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1737, allocations: 23.98 kB / 0.6455 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.1737, allocations: 0 / 0.6455 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.1738, allocations: 23.83 kB / 0.6455 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.1739, allocations: 11.88 kB / 0.6456 GB, free: 0.9141 MB / 442.7 MB 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.0001059/0.174, allocations: 127.1 kB / 0.6457 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.134e-05/0.174, allocations: 7.906 kB / 0.6457 GB, free: 0.7734 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.066e-05/0.1741, allocations: 12.38 kB / 0.6457 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1741, allocations: 0 / 0.6457 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1741, allocations: 0 / 0.6457 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1741, allocations: 0 / 0.6457 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000176/0.1743, allocations: 201.5 kB / 0.6459 GB, free: 0.5117 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1743, allocations: 0 / 0.6459 GB, free: 0.5117 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.1744, allocations: 19.98 kB / 0.6459 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1744, allocations: 4 kB / 0.6459 GB, free: 500 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.1744, allocations: 7.969 kB / 0.6459 GB, free: 492 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1745, allocations: 384 / 0.6459 GB, free: 492 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.1745, allocations: 4 kB / 0.6459 GB, free: 488 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/0.1765, allocations: 1.401 MB / 0.6473 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.147e-05/0.1766, allocations: 85.05 kB / 0.6474 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.1766, allocations: 4 kB / 0.6474 GB, free: 14.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.1767, allocations: 15.92 kB / 0.6474 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.974e-05/0.1768, allocations: 19.97 kB / 0.6474 GB, free: 14.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.1768, allocations: 0 / 0.6474 GB, free: 14.78 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.04e-05/0.1769, allocations: 101.8 kB / 0.6475 GB, free: 14.68 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1769, allocations: 0 / 0.6475 GB, free: 14.68 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003057/0.1772, allocations: 28 kB / 0.6475 GB, free: 14.65 MB / 458.7 MB 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.0001411/0.1773, allocations: 107.2 kB / 0.6476 GB, free: 14.54 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004644/0.1778, allocations: 226.7 kB / 0.6479 GB, free: 14.29 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1778, allocations: 0 / 0.6479 GB, free: 14.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.178, allocations: 55.97 kB / 0.6479 GB, free: 14.23 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.1783, allocations: 30.95 kB / 0.6479 GB, free: 14.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007228/0.179, allocations: 384.8 kB / 0.6483 GB, free: 13.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.1793, allocations: 0.6926 MB / 0.649 GB, free: 13.07 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 6.644e-05/0.1794, allocations: 16.36 kB / 0.649 GB, free: 13.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.297e-05/0.1794, allocations: 11.44 kB / 0.649 GB, free: 13.04 MB / 458.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1794, allocations: 0 / 0.649 GB, free: 13.04 MB / 458.7 MB Notification: Performance of Templates: time 0.003881/0.1833, allocations: 1.516 MB / 0.6505 GB, free: 11.54 MB / 458.7 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.makefile (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)