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/Complex 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) 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-master/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001708/0.001708, 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-master/package.mo): time 0.7048/0.7048, allocations: 133.4 MB / 150.1 MB, free: 11.18 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.441/1.441, allocations: 222.9 MB / 404.7 MB, free: 6.086 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.0009994/0.0009995, allocations: 107.5 kB / 485.9 MB, free: 7.242 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001235, allocations: 59.91 kB / 0.5636 GB, free: 69.93 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1625, allocations: 80.43 MB / 0.6421 GB, free: 5.434 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00456/0.1672, allocations: 1.64 MB / 0.6437 GB, free: 3.773 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.1683, allocations: 0.5299 MB / 0.6443 GB, free: 3.238 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.193e-05/0.1685, allocations: 0 / 0.6443 GB, free: 3.238 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 4.544e-05/0.1685, allocations: 7.984 kB / 0.6443 GB, free: 3.23 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.1686, allocations: 11.88 kB / 0.6443 GB, free: 3.219 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.1689, allocations: 43.95 kB / 0.6443 GB, free: 3.176 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002057/0.1691, allocations: 95.69 kB / 0.6444 GB, free: 3.082 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1693, allocations: 12.17 kB / 0.6444 GB, free: 3.07 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.529e-05/0.1694, allocations: 39.84 kB / 0.6445 GB, free: 3.031 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.1695, allocations: 39.83 kB / 0.6445 GB, free: 2.992 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.998e-05/0.1695, allocations: 8 kB / 0.6445 GB, free: 2.984 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.09e-05/0.1696, allocations: 4 kB / 0.6445 GB, free: 2.98 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 4.338e-05/0.1696, allocations: 15.92 kB / 0.6445 GB, free: 2.965 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 6.502e-05/0.1697, allocations: 35.84 kB / 0.6446 GB, free: 2.93 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001475/0.1698, allocations: 79.97 kB / 0.6446 GB, free: 2.852 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1698, allocations: 0 / 0.6446 GB, free: 2.852 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1699, allocations: 3.938 kB / 0.6446 GB, free: 2.848 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1699, allocations: 0 / 0.6446 GB, free: 2.848 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.0008745/0.1707, allocations: 468.8 kB / 0.6451 GB, free: 2.332 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1708, allocations: 8.031 kB / 0.6451 GB, free: 2.324 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.227e-05/0.1709, allocations: 12.84 kB / 0.6451 GB, free: 2.312 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.1711, allocations: 188.2 kB / 0.6453 GB, free: 2.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.658e-05/0.1712, allocations: 38.2 kB / 0.6453 GB, free: 2.047 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.1712, allocations: 4.375 kB / 0.6453 GB, free: 2.043 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.1715, allocations: 101.6 kB / 0.6454 GB, free: 1.938 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.1715, allocations: 4 kB / 0.6454 GB, free: 1.934 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.1716, allocations: 3.984 kB / 0.6454 GB, free: 1.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1716, allocations: 0 / 0.6454 GB, free: 1.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003049/0.1719, allocations: 71.92 kB / 0.6455 GB, free: 1.859 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006219/0.1725, allocations: 344.6 kB / 0.6458 GB, free: 1.473 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004491/0.173, allocations: 90.58 kB / 0.6459 GB, free: 1.375 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002336/0.1732, allocations: 52.81 kB / 0.646 GB, free: 1.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.1733, allocations: 4 kB / 0.646 GB, free: 1.316 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004797/0.1737, allocations: 119.3 kB / 0.6461 GB, free: 1.188 MB / 442.7 MB Notification: Performance of pre-optimization done (n=9): time 3.707e-06/0.1738, allocations: 0 / 0.6461 GB, free: 1.188 MB / 442.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006685/0.1744, allocations: 185.3 kB / 0.6463 GB, free: 1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.1745, allocations: 55.41 kB / 0.6463 GB, free: 0.9336 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.1746, allocations: 123.2 kB / 0.6464 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.1746, allocations: 29.7 kB / 0.6465 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.096e-05/0.1747, allocations: 96.06 kB / 0.6465 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/0.1748, allocations: 27.61 kB / 0.6466 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.95e-05/0.1749, allocations: 33.66 kB / 0.6466 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.175, allocations: 326.8 kB / 0.6469 GB, free: 284 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.1752, allocations: 55.95 kB / 0.647 GB, free: 228 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.1754, allocations: 70.3 kB / 0.647 GB, free: 152 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.1758, allocations: 167 kB / 0.6472 GB, free: 15.97 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1758, allocations: 0 / 0.6472 GB, free: 15.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000485/0.1763, allocations: 220.9 kB / 0.6474 GB, free: 15.73 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.74e-05/0.1764, allocations: 63.39 kB / 0.6475 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1764, allocations: 0 / 0.6475 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.1764, allocations: 4 kB / 0.6475 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.1766, allocations: 24.02 kB / 0.6475 GB, free: 15.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.321e-06/0.1766, allocations: 0 / 0.6475 GB, free: 15.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.1767, allocations: 27.81 kB / 0.6475 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.1767, allocations: 11.94 kB / 0.6475 GB, free: 15.59 MB / 458.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 9.412e-05/0.1768, allocations: 119.1 kB / 0.6476 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.1769, allocations: 7.906 kB / 0.6477 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.484e-05/0.1769, allocations: 8.375 kB / 0.6477 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1769, allocations: 8 kB / 0.6477 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1769, allocations: 0 / 0.6477 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1769, allocations: 3.984 kB / 0.6477 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.1771, allocations: 197.5 kB / 0.6479 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1771, allocations: 0 / 0.6479 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.1773, allocations: 23.97 kB / 0.6479 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1773, allocations: 0 / 0.6479 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1773, allocations: 0 / 0.6479 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1773, allocations: 0 / 0.6479 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1773, allocations: 0 / 0.6479 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.1795, allocations: 1.409 MB / 0.6493 GB, free: 13.61 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.1796, allocations: 81.02 kB / 0.6493 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.1796, allocations: 8 kB / 0.6493 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.1797, allocations: 15.97 kB / 0.6494 GB, free: 13.49 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.074e-05/0.1798, allocations: 20.06 kB / 0.6494 GB, free: 13.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.1798, allocations: 4.094 kB / 0.6494 GB, free: 13.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.643e-05/0.1799, allocations: 99.95 kB / 0.6495 GB, free: 13.37 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1799, allocations: 0 / 0.6495 GB, free: 13.37 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002962/0.1802, allocations: 31.98 kB / 0.6495 GB, free: 13.34 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.0001256/0.1803, allocations: 104.4 kB / 0.6496 GB, free: 13.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004815/0.1808, allocations: 230.7 kB / 0.6498 GB, free: 12.97 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1808, allocations: 0 / 0.6498 GB, free: 12.97 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.181, allocations: 59.89 kB / 0.6499 GB, free: 12.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.1813, allocations: 21.75 kB / 0.6499 GB, free: 12.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007186/0.182, allocations: 381 kB / 0.6503 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.1823, allocations: 0.6965 MB / 0.6509 GB, free: 11.76 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 6.374e-05/0.1824, allocations: 12.44 kB / 0.651 GB, free: 11.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.572e-05/0.1825, allocations: 11.44 kB / 0.651 GB, free: 11.73 MB / 458.7 MB Notification: Performance of SimCode: time 3.41e-07/0.1825, allocations: 3.938 kB / 0.651 GB, free: 11.73 MB / 458.7 MB Notification: Performance of Templates: time 0.004061/0.1865, allocations: 1.501 MB / 0.6524 GB, free: 10.24 MB / 458.7 MB 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)