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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 109.6 kB / 16.41 MB, free: 6.496 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.001144/0.001144, allocations: 187 kB / 17.34 MB, free: 5.758 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.2/1.2, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7322/0.7322, allocations: 135.1 MB / 426.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 66.02 kB / 0.5863 GB, free: 21.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.125, allocations: 80.92 MB / 0.6653 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002408/0.1275, allocations: 1.589 MB / 0.6669 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007541/0.1283, allocations: 0.5298 MB / 0.6674 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.799e-05/0.1283, allocations: 0 / 0.6674 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.438e-05/0.1284, allocations: 3.938 kB / 0.6674 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.622e-05/0.1284, allocations: 15.88 kB / 0.6674 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.1287, allocations: 59.8 kB / 0.6674 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.1288, allocations: 103.8 kB / 0.6675 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.899e-05/0.1289, allocations: 8.188 kB / 0.6676 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.739e-05/0.129, allocations: 47.83 kB / 0.6676 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.099e-05/0.1291, allocations: 35.83 kB / 0.6676 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.1291, allocations: 12 kB / 0.6676 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.633e-05/0.1291, allocations: 12 kB / 0.6677 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.654e-05/0.1291, allocations: 15.92 kB / 0.6677 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.047e-05/0.1292, allocations: 39.86 kB / 0.6677 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.1293, allocations: 79.69 kB / 0.6678 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1293, allocations: 0 / 0.6678 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.393e-06/0.1293, allocations: 0 / 0.6678 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.1293, allocations: 4 kB / 0.6678 GB, free: 3.25 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.0006344/0.13, allocations: 462.7 kB / 0.6682 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.13, allocations: 9.109 kB / 0.6682 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.305e-05/0.1301, allocations: 12.78 kB / 0.6682 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.1303, allocations: 196.1 kB / 0.6684 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.109e-05/0.1304, allocations: 34.27 kB / 0.6685 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.1304, allocations: 8.375 kB / 0.6685 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.1306, allocations: 93.56 kB / 0.6686 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1307, allocations: 8 kB / 0.6686 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.1307, allocations: 7.984 kB / 0.6686 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1307, allocations: 3.938 kB / 0.6686 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002659/0.131, allocations: 67.94 kB / 0.6686 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000486/0.1315, allocations: 340.6 kB / 0.669 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/0.1318, allocations: 94.59 kB / 0.6691 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.132, allocations: 48.81 kB / 0.6691 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.132, allocations: 0 / 0.6691 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/0.1323, allocations: 127.2 kB / 0.6692 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.1323, allocations: 0 / 0.6692 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005304/0.1328, allocations: 177.4 kB / 0.6694 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.1329, allocations: 55.41 kB / 0.6695 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.521e-05/0.1329, allocations: 120.8 kB / 0.6696 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.133, allocations: 29.7 kB / 0.6696 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.075e-05/0.133, allocations: 99.97 kB / 0.6697 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.529e-05/0.1331, allocations: 31.62 kB / 0.6697 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-05/0.1331, allocations: 29.72 kB / 0.6698 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.697e-05/0.1332, allocations: 322.8 kB / 0.6701 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.1334, allocations: 59.89 kB / 0.6701 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.1336, allocations: 69.67 kB / 0.6702 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/0.1339, allocations: 165 kB / 0.6703 GB, free: 384 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1339, allocations: 4 kB / 0.6703 GB, free: 380 kB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004089/0.1343, allocations: 220.2 kB / 0.6706 GB, free: 144 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.523e-05/0.1344, allocations: 63.39 kB / 0.6706 GB, free: 68 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.1344, allocations: 0 / 0.6706 GB, free: 68 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.1344, allocations: 0 / 0.6706 GB, free: 68 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.1345, allocations: 32.02 kB / 0.6706 GB, free: 36 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1345, allocations: 3.938 kB / 0.6706 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.1346, allocations: 19.88 kB / 0.6707 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.1347, allocations: 7.938 kB / 0.6707 GB, free: 4 kB / 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 9.065e-05/0.1348, allocations: 125.8 kB / 0.6708 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.758e-05/0.1348, allocations: 7.906 kB / 0.6708 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.1348, allocations: 8.375 kB / 0.6708 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1348, allocations: 0 / 0.6708 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1348, allocations: 8 kB / 0.6708 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1349, allocations: 4.359 kB / 0.6708 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001386/0.135, allocations: 193.6 kB / 0.671 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.135, allocations: 0 / 0.671 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.1351, allocations: 19.97 kB / 0.671 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1352, allocations: 3.938 kB / 0.671 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1352, allocations: 4 kB / 0.671 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1352, allocations: 0 / 0.671 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1352, allocations: 0 / 0.671 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005377/0.1357, allocations: 228.8 kB / 0.6713 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 3.973e-05/0.1358, allocations: 84.95 kB / 0.6713 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.1358, allocations: 0 / 0.6713 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1359, allocations: 19.97 kB / 0.6714 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/0.136, allocations: 23.97 kB / 0.6714 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.136, allocations: 4 kB / 0.6714 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.77e-05/0.1361, allocations: 99.2 kB / 0.6715 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1361, allocations: 0 / 0.6715 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0001992/0.1363, allocations: 20 kB / 0.6715 GB, free: 15.07 MB / 0.5137 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 9.379e-05/0.1364, allocations: 104.6 kB / 0.6716 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004303/0.1368, allocations: 230.7 kB / 0.6718 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1368, allocations: 0 / 0.6718 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.137, allocations: 55.89 kB / 0.6719 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.1372, allocations: 15.98 kB / 0.6719 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005457/0.1378, allocations: 270.1 kB / 0.6721 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.138, allocations: 0.6924 MB / 0.6728 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.138, allocations: 19.7 kB / 0.6728 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of SimCode: time 1.372e-06/0.138, allocations: 0 / 0.6728 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of Templates: time 0.00265/0.1407, allocations: 1.451 MB / 0.6743 GB, free: 12.16 MB / 0.5137 GB 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)