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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.008889/0.008889, allocations: 100.6 kB / 15.73 MB, free: 6.043 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.002239/0.002239, allocations: 190 kB / 16.67 MB, free: 5.977 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7933/0.7933, allocations: 132.2 MB / 422.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 70.97 kB / 0.5814 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1955, allocations: 80.2 MB / 0.6597 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.006488/0.202, allocations: 1.581 MB / 0.6612 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001992/0.204, allocations: 0.5375 MB / 0.6617 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2042, allocations: 0 / 0.6617 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.818e-05/0.2043, allocations: 11.92 kB / 0.6618 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002052/0.2046, allocations: 11.88 kB / 0.6618 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005486/0.2052, allocations: 55.81 kB / 0.6618 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000321/0.2055, allocations: 103.8 kB / 0.6619 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.2057, allocations: 24.14 kB / 0.6619 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.2058, allocations: 39.86 kB / 0.662 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.206, allocations: 39.83 kB / 0.662 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.2061, allocations: 8 kB / 0.662 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.841e-05/0.2061, allocations: 8 kB / 0.662 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.221e-05/0.2062, allocations: 23.91 kB / 0.6621 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.2063, allocations: 39.84 kB / 0.6621 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.2066, allocations: 83.69 kB / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.2066, allocations: 0 / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.324e-06/0.2066, allocations: 0 / 0.6622 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.146e-06/0.2066, allocations: 0 / 0.6622 GB, free: 10.91 MB / 0.4981 GB 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.001255/0.2079, allocations: 462.6 kB / 0.6626 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.2079, allocations: 8.031 kB / 0.6626 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.615e-05/0.208, allocations: 16.78 kB / 0.6626 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.2085, allocations: 188.2 kB / 0.6628 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.2086, allocations: 34.25 kB / 0.6629 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.65e-05/0.2087, allocations: 12.38 kB / 0.6629 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004894/0.2092, allocations: 105.5 kB / 0.663 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.2092, allocations: 0 / 0.663 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.2093, allocations: 0 / 0.663 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2093, allocations: 0 / 0.663 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005473/0.2099, allocations: 75.92 kB / 0.663 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009917/0.2109, allocations: 336.6 kB / 0.6634 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007253/0.2116, allocations: 90.61 kB / 0.6634 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.2119, allocations: 48.83 kB / 0.6635 GB, free: 9.387 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.471e-05/0.2119, allocations: 3.984 kB / 0.6635 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005043/0.2125, allocations: 123.2 kB / 0.6636 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 2.745e-06/0.2125, allocations: 0 / 0.6636 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.001115/0.2136, allocations: 181.4 kB / 0.6638 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.2137, allocations: 55.34 kB / 0.6638 GB, free: 9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.2139, allocations: 124.1 kB / 0.664 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.2139, allocations: 33.7 kB / 0.664 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.214, allocations: 99.97 kB / 0.6641 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.905e-05/0.2141, allocations: 19.72 kB / 0.6641 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.2142, allocations: 29.7 kB / 0.6641 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000182/0.2144, allocations: 330.8 kB / 0.6644 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003387/0.2148, allocations: 51.91 kB / 0.6645 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/0.2151, allocations: 73.66 kB / 0.6646 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006596/0.2158, allocations: 160.1 kB / 0.6647 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2158, allocations: 0 / 0.6647 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000893/0.2168, allocations: 224.9 kB / 0.6649 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.17e-05/0.2169, allocations: 55.41 kB / 0.665 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2169, allocations: 4 kB / 0.665 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.2169, allocations: 8.031 kB / 0.665 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002509/0.2172, allocations: 27.97 kB / 0.665 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.2172, allocations: 7.875 kB / 0.665 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.2175, allocations: 19.89 kB / 0.6651 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.2175, allocations: 7.938 kB / 0.6651 GB, free: 7.664 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.0001515/0.2177, allocations: 121.8 kB / 0.6652 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.2177, allocations: 7.906 kB / 0.6652 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.6e-05/0.2178, allocations: 16.38 kB / 0.6652 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2178, allocations: 0 / 0.6652 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2178, allocations: 0 / 0.6652 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2178, allocations: 0 / 0.6652 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.2181, allocations: 201.5 kB / 0.6654 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2182, allocations: 0 / 0.6654 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.2184, allocations: 20.36 kB / 0.6654 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.2185, allocations: 0 / 0.6654 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.2185, allocations: 3.984 kB / 0.6654 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.2185, allocations: 3.938 kB / 0.6654 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2185, allocations: 7.938 kB / 0.6654 GB, free: 7.227 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.2196, allocations: 220.8 kB / 0.6656 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.14e-05/0.2197, allocations: 88.95 kB / 0.6657 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.2197, allocations: 8.031 kB / 0.6657 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.22, allocations: 16.08 kB / 0.6657 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.2201, allocations: 19.97 kB / 0.6658 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.2201, allocations: 7.984 kB / 0.6658 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.595e-05/0.2202, allocations: 95.2 kB / 0.6659 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.91e-07/0.2203, allocations: 0 / 0.6659 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004061/0.2207, allocations: 24 kB / 0.6659 GB, free: 6.719 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.0001752/0.2209, allocations: 103.2 kB / 0.666 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008238/0.2217, allocations: 226.7 kB / 0.6662 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2217, allocations: 0 / 0.6662 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003579/0.2221, allocations: 55.89 kB / 0.6663 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004198/0.2225, allocations: 26.86 kB / 0.6663 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.2236, allocations: 232.4 kB / 0.6665 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.224, allocations: 0.6924 MB / 0.6672 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.123e-05/0.2241, allocations: 16.42 kB / 0.6672 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.872e-05/0.2242, allocations: 15.44 kB / 0.6672 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.2242, allocations: 4.219 kB / 0.6672 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of Templates: time 0.007099/0.2313, allocations: 1.524 MB / 0.6687 GB, free: 3.77 MB / 0.4981 GB 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)