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.001663/0.001663, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7127/0.7127, allocations: 130.5 MB / 143.8 MB, free: 13.57 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.524/1.524, allocations: 221.3 MB / 396.8 MB, free: 9.141 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.0008079/0.0008075, allocations: 91.84 kB / 479 MB, free: 10.32 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.265e-05/3.268e-05, allocations: 4.125 kB / 0.5551 GB, free: 86.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1507, allocations: 81.59 MB / 0.6348 GB, free: 12 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.606/0.7567, allocations: 112.3 MB / 0.7444 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.757, allocations: 72.55 kB / 0.7445 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.006397/0.7634, allocations: 2.347 MB / 0.7468 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7634, allocations: 0 / 0.7468 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.958e-06/0.7634, allocations: 3.938 kB / 0.7468 GB, free: 27.91 MB / 0.5105 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.0005647/0.764, allocations: 455.2 kB / 0.7472 GB, free: 27.48 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.764, allocations: 11.53 kB / 0.7472 GB, free: 27.48 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.7641, allocations: 7.75 kB / 0.7472 GB, free: 27.47 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.7643, allocations: 193.3 kB / 0.7474 GB, free: 27.27 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.307e-05/0.7644, allocations: 36.42 kB / 0.7474 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.492e-05/0.7644, allocations: 11.06 kB / 0.7474 GB, free: 27.23 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.7646, allocations: 76.56 kB / 0.7475 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.7646, allocations: 0 / 0.7475 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.7646, allocations: 3.844 kB / 0.7475 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.7646, allocations: 0 / 0.7475 GB, free: 27.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.347e-05/0.7647, allocations: 36.14 kB / 0.7475 GB, free: 27.19 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000517/0.7652, allocations: 352.3 kB / 0.7479 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.7654, allocations: 56.61 kB / 0.7479 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.292e-05/0.7655, allocations: 22.27 kB / 0.748 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.7655, allocations: 3.844 kB / 0.748 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.7657, allocations: 103.2 kB / 0.7481 GB, free: 26.83 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.7657, allocations: 0 / 0.7481 GB, free: 26.83 MB / 0.5105 GB Notification: Performance of matching and sorting (n=9): time 0.0002078/0.7659, allocations: 89.92 kB / 0.7481 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.766, allocations: 62.25 kB / 0.7482 GB, free: 26.72 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.304e-05/0.7661, allocations: 111 kB / 0.7483 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.7661, allocations: 29.08 kB / 0.7483 GB, free: 26.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.919e-05/0.7661, allocations: 94.56 kB / 0.7484 GB, free: 26.51 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.7662, allocations: 33.38 kB / 0.7485 GB, free: 26.49 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-06/0.7662, allocations: 0 / 0.7485 GB, free: 26.49 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.7663, allocations: 324.5 kB / 0.7488 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.715e-05/0.7664, allocations: 32.97 kB / 0.7488 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.362e-05/0.7664, allocations: 49.89 kB / 0.7489 GB, free: 26.16 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.7666, allocations: 88.17 kB / 0.7489 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7666, allocations: 0 / 0.7489 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002136/0.7668, allocations: 177.6 kB / 0.7491 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.557e-05/0.7669, allocations: 55.22 kB / 0.7492 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.7669, allocations: 6.906 kB / 0.7492 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.7669, allocations: 4.031 kB / 0.7492 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.767, allocations: 22.14 kB / 0.7492 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.7671, allocations: 10.89 kB / 0.7492 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.7672, allocations: 20.86 kB / 0.7492 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.7672, allocations: 3.875 kB / 0.7492 GB, free: 25.91 MB / 0.5105 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,$whenCondition1,$PRE.step.T_start,step.T_start,$PRE.step.count,step.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.288e-05/0.7673, allocations: 125.2 kB / 0.7493 GB, free: 25.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.7673, allocations: 7.781 kB / 0.7493 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.713e-05/0.7674, allocations: 11.94 kB / 0.7494 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.7674, allocations: 96 / 0.7494 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.7674, allocations: 7.922 kB / 0.7494 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.7674, allocations: 6.906 kB / 0.7494 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.7675, allocations: 199.9 kB / 0.7496 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7675, allocations: 0 / 0.7496 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.7677, allocations: 29.11 kB / 0.7496 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.7677, allocations: 0 / 0.7496 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.7677, allocations: 3.812 kB / 0.7496 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.7677, allocations: 0 / 0.7496 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.7677, allocations: 0 / 0.7496 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002376/0.768, allocations: 162 kB / 0.7498 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.768, allocations: 81.02 kB / 0.7498 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.7681, allocations: 10.72 kB / 0.7498 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.7682, allocations: 18.34 kB / 0.7499 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.356e-05/0.7682, allocations: 16.34 kB / 0.7499 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.7683, allocations: 7.75 kB / 0.7499 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.282e-05/0.7683, allocations: 95.3 kB / 0.75 GB, free: 25.33 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7683, allocations: 3.938 kB / 0.75 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001861/0.7685, allocations: 27.25 kB / 0.75 GB, free: 25.32 MB / 0.5105 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001395/0.7687, allocations: 108.8 kB / 0.7501 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002079/0.7689, allocations: 182.3 kB / 0.7503 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7689, allocations: 0 / 0.7503 GB, free: 25.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 6.499e-05/0.769, allocations: 37.31 kB / 0.7503 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.7692, allocations: 20.73 kB / 0.7503 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004193/0.7696, allocations: 174.5 kB / 0.7505 GB, free: 24.99 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.7699, allocations: 0.703 MB / 0.7512 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 5.223e-05/0.7699, allocations: 6.875 kB / 0.7512 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.77, allocations: 18.66 kB / 0.7512 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of SimCode: time 5.01e-07/0.77, allocations: 3.844 kB / 0.7512 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of Templates: time 0.003071/0.773, allocations: 1.262 MB / 0.7524 GB, free: 24.19 MB / 0.5105 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)