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.006569/0.006569, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001286/0.001286, allocations: 197.2 kB / 16.68 MB, free: 5.93 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8347/0.8347, allocations: 132.2 MB / 422.7 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 63.53 kB / 0.5813 GB, free: 23.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1887, allocations: 80.21 MB / 0.6597 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.003309/0.1921, allocations: 1.577 MB / 0.6612 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.1932, allocations: 0.5298 MB / 0.6617 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.365e-05/0.1933, allocations: 3.938 kB / 0.6617 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.112e-05/0.1933, allocations: 7.922 kB / 0.6617 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.1935, allocations: 19.86 kB / 0.6618 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.1938, allocations: 51.83 kB / 0.6618 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002652/0.1941, allocations: 107.7 kB / 0.6619 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1942, allocations: 12.17 kB / 0.6619 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.67e-05/0.1943, allocations: 35.86 kB / 0.662 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.1944, allocations: 43.83 kB / 0.662 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.1944, allocations: 8 kB / 0.662 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.825e-05/0.1945, allocations: 12 kB / 0.662 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.759e-05/0.1945, allocations: 27.89 kB / 0.6621 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.768e-05/0.1946, allocations: 31.86 kB / 0.6621 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.1947, allocations: 83.69 kB / 0.6622 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.1947, allocations: 4 kB / 0.6622 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1947, allocations: 0 / 0.6622 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.1948, allocations: 0 / 0.6622 GB, free: 7.723 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.0008521/0.1956, allocations: 454.7 kB / 0.6626 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.1957, allocations: 8.031 kB / 0.6626 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.622e-05/0.1957, allocations: 12.78 kB / 0.6626 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.196, allocations: 200.1 kB / 0.6628 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.723e-05/0.1961, allocations: 42.23 kB / 0.6628 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.422e-05/0.1962, allocations: 8.375 kB / 0.6629 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.1966, allocations: 93.56 kB / 0.6629 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1966, allocations: 8 kB / 0.663 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.1966, allocations: 4 kB / 0.663 GB, free: 6.801 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.1966, allocations: 0 / 0.663 GB, free: 6.801 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003398/0.197, allocations: 71.86 kB / 0.663 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00066/0.1976, allocations: 344.6 kB / 0.6634 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004457/0.1981, allocations: 90.58 kB / 0.6634 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.1983, allocations: 44.83 kB / 0.6635 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.1983, allocations: 4.078 kB / 0.6635 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/0.1987, allocations: 123.3 kB / 0.6636 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.753e-06/0.1987, allocations: 0 / 0.6636 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0007018/0.1994, allocations: 173.4 kB / 0.6638 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.1994, allocations: 59.41 kB / 0.6638 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.1997, allocations: 125.1 kB / 0.6639 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.1997, allocations: 29.7 kB / 0.664 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.987e-05/0.1998, allocations: 95.98 kB / 0.6641 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.488e-05/0.1998, allocations: 23.7 kB / 0.6641 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.374e-05/0.1999, allocations: 34.08 kB / 0.6641 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002672/0.2002, allocations: 322.8 kB / 0.6644 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.2004, allocations: 59.91 kB / 0.6645 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.2006, allocations: 77.59 kB / 0.6646 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004374/0.201, allocations: 157 kB / 0.6647 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.201, allocations: 0 / 0.6647 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004938/0.2015, allocations: 228.9 kB / 0.6649 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.2016, allocations: 55.41 kB / 0.665 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2016, allocations: 0 / 0.665 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.2016, allocations: 4 kB / 0.665 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.2018, allocations: 27.97 kB / 0.665 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.2018, allocations: 4.031 kB / 0.665 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.202, allocations: 27.83 kB / 0.665 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.202, allocations: 7.938 kB / 0.6651 GB, free: 4.477 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.0001026/0.2021, allocations: 117.8 kB / 0.6652 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.2021, allocations: 15.89 kB / 0.6652 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.717e-05/0.2022, allocations: 8.375 kB / 0.6652 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2022, allocations: 4 kB / 0.6652 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2022, allocations: 4 kB / 0.6652 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2022, allocations: 0 / 0.6652 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.2024, allocations: 197.5 kB / 0.6654 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2024, allocations: 0 / 0.6654 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.2025, allocations: 19.98 kB / 0.6654 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.2026, allocations: 4 kB / 0.6654 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.2026, allocations: 0 / 0.6654 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2026, allocations: 3.984 kB / 0.6654 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2026, allocations: 0 / 0.6654 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006169/0.2032, allocations: 224.8 kB / 0.6656 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.2033, allocations: 84.95 kB / 0.6657 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.2033, allocations: 4 kB / 0.6657 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.2034, allocations: 20.02 kB / 0.6657 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.252e-05/0.2035, allocations: 19.98 kB / 0.6657 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.2035, allocations: 3.984 kB / 0.6657 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001637/0.2037, allocations: 102.6 kB / 0.6658 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.994e-06/0.2037, allocations: 0 / 0.6658 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002228/0.2039, allocations: 27.94 kB / 0.6659 GB, free: 3.535 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.0001473/0.2041, allocations: 102.2 kB / 0.666 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006818/0.2048, allocations: 238.7 kB / 0.6662 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2048, allocations: 0 / 0.6662 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003544/0.2052, allocations: 51.95 kB / 0.6662 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.2055, allocations: 18.48 kB / 0.6663 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008013/0.2063, allocations: 248.4 kB / 0.6665 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.2067, allocations: 0.6924 MB / 0.6672 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.159e-05/0.2067, allocations: 8.422 kB / 0.6672 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.16e-05/0.2068, allocations: 15.44 kB / 0.6672 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of SimCode: time 2.494e-06/0.2068, allocations: 0 / 0.6672 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of Templates: time 0.004885/0.2117, allocations: 1.533 MB / 0.6687 GB, free: 0.5703 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)