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.001178/0.001178, allocations: 113.4 kB / 16.37 MB, free: 5.953 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.001133/0.001133, allocations: 190.2 kB / 17.3 MB, free: 5.578 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8141/0.8141, allocations: 132.2 MB / 423.3 MB, free: 6.582 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 64.14 kB / 0.5032 GB, free: 10.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3459, allocations: 80.18 MB / 0.5815 GB, free: 27.54 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002514/0.3484, allocations: 1.578 MB / 0.583 GB, free: 26.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007298/0.3492, allocations: 0.536 MB / 0.5836 GB, free: 25.9 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.031e-05/0.3493, allocations: 1.344 kB / 0.5836 GB, free: 25.9 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.898e-05/0.3493, allocations: 13.14 kB / 0.5836 GB, free: 25.89 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.585e-05/0.3494, allocations: 9.25 kB / 0.5836 GB, free: 25.88 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.3496, allocations: 50.91 kB / 0.5836 GB, free: 25.84 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.3498, allocations: 111.7 kB / 0.5837 GB, free: 25.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.605e-05/0.3499, allocations: 17.7 kB / 0.5837 GB, free: 25.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.324e-05/0.35, allocations: 35.64 kB / 0.5838 GB, free: 25.74 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.658e-05/0.35, allocations: 46.39 kB / 0.5838 GB, free: 25.71 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.3501, allocations: 9.625 kB / 0.5838 GB, free: 25.71 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.812e-05/0.3501, allocations: 8.531 kB / 0.5838 GB, free: 25.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.028e-05/0.3501, allocations: 26.98 kB / 0.5839 GB, free: 25.68 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.761e-05/0.3502, allocations: 33.52 kB / 0.5839 GB, free: 25.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001086/0.3503, allocations: 84.02 kB / 0.584 GB, free: 25.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3503, allocations: 0.7812 kB / 0.584 GB, free: 25.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3503, allocations: 1.375 kB / 0.584 GB, free: 25.6 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.3503, allocations: 2.219 kB / 0.584 GB, free: 25.6 MB / 446.1 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.0006389/0.351, allocations: 458.2 kB / 0.5844 GB, free: 25.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.351, allocations: 15.59 kB / 0.5844 GB, free: 25.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.673e-05/0.3511, allocations: 13.2 kB / 0.5844 GB, free: 25.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.3512, allocations: 193.8 kB / 0.5846 GB, free: 24.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.115e-05/0.3513, allocations: 38.36 kB / 0.5847 GB, free: 24.87 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.471e-05/0.3513, allocations: 3.906 kB / 0.5847 GB, free: 24.87 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.3516, allocations: 100.8 kB / 0.5848 GB, free: 24.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3516, allocations: 0 / 0.5848 GB, free: 24.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.3516, allocations: 0 / 0.5848 GB, free: 24.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.3517, allocations: 4.406 kB / 0.5848 GB, free: 24.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002819/0.3519, allocations: 71.55 kB / 0.5848 GB, free: 24.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.3524, allocations: 341.5 kB / 0.5852 GB, free: 24.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/0.3528, allocations: 93.45 kB / 0.5853 GB, free: 24.37 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.3529, allocations: 47.53 kB / 0.5853 GB, free: 24.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.353, allocations: 3.094 kB / 0.5853 GB, free: 24.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002523/0.3532, allocations: 123.9 kB / 0.5854 GB, free: 24.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.3532, allocations: 1.656 kB / 0.5854 GB, free: 24.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005382/0.3538, allocations: 177.1 kB / 0.5856 GB, free: 24.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.469e-05/0.3538, allocations: 56.56 kB / 0.5856 GB, free: 24.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.16e-05/0.3539, allocations: 123 kB / 0.5858 GB, free: 23.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.3539, allocations: 27.27 kB / 0.5858 GB, free: 23.95 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.631e-05/0.354, allocations: 95.72 kB / 0.5859 GB, free: 23.85 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.354, allocations: 28.91 kB / 0.5859 GB, free: 23.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.079e-05/0.354, allocations: 33.17 kB / 0.5859 GB, free: 23.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.548e-05/0.3541, allocations: 325.1 kB / 0.5863 GB, free: 23.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.3543, allocations: 49.09 kB / 0.5863 GB, free: 23.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.3544, allocations: 75.06 kB / 0.5864 GB, free: 23.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.3547, allocations: 166.5 kB / 0.5865 GB, free: 23.29 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3548, allocations: 0 / 0.5865 GB, free: 23.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004081/0.3552, allocations: 227.2 kB / 0.5867 GB, free: 23.13 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.3552, allocations: 58.38 kB / 0.5868 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.3552, allocations: 2.281 kB / 0.5868 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.3552, allocations: 5.422 kB / 0.5868 GB, free: 23.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.3554, allocations: 21.08 kB / 0.5868 GB, free: 23.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3554, allocations: 0.8125 kB / 0.5868 GB, free: 23.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.3555, allocations: 30.48 kB / 0.5869 GB, free: 23.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.3556, allocations: 7.375 kB / 0.5869 GB, free: 23.04 MB / 446.1 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 7.671e-05/0.3556, allocations: 124.3 kB / 0.587 GB, free: 22.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.843e-05/0.3557, allocations: 7.688 kB / 0.587 GB, free: 22.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.3557, allocations: 15.81 kB / 0.587 GB, free: 22.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.3557, allocations: 1.125 kB / 0.587 GB, free: 22.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3557, allocations: 0 / 0.587 GB, free: 22.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3557, allocations: 1.75 kB / 0.587 GB, free: 22.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.3559, allocations: 198.9 kB / 0.5872 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3559, allocations: 0 / 0.5872 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/0.356, allocations: 22.2 kB / 0.5872 GB, free: 22.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.356, allocations: 1.188 kB / 0.5872 GB, free: 22.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.356, allocations: 10.67 kB / 0.5872 GB, free: 22.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.356, allocations: 0 / 0.5872 GB, free: 22.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.356, allocations: 1.094 kB / 0.5872 GB, free: 22.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005317/0.3566, allocations: 218.8 kB / 0.5874 GB, free: 22.51 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/0.3566, allocations: 83.55 kB / 0.5875 GB, free: 22.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.3566, allocations: 9.594 kB / 0.5875 GB, free: 22.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3568, allocations: 12.52 kB / 0.5875 GB, free: 22.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.209e-05/0.3568, allocations: 16.02 kB / 0.5876 GB, free: 22.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.3569, allocations: 12.88 kB / 0.5876 GB, free: 22.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.796e-05/0.3569, allocations: 101.3 kB / 0.5877 GB, free: 22.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3569, allocations: 0 / 0.5877 GB, free: 22.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002093/0.3571, allocations: 23.19 kB / 0.5877 GB, free: 22.29 MB / 446.1 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.0001026/0.3572, allocations: 100.2 kB / 0.5878 GB, free: 22.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004088/0.3576, allocations: 234.4 kB / 0.588 GB, free: 22.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3577, allocations: 2.938 kB / 0.588 GB, free: 22.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.3578, allocations: 55.92 kB / 0.5881 GB, free: 22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.3581, allocations: 22.55 kB / 0.5881 GB, free: 21.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005698/0.3587, allocations: 247.7 kB / 0.5883 GB, free: 21.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.3588, allocations: 0.6927 MB / 0.589 GB, free: 21.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.773e-05/0.3588, allocations: 9.453 kB / 0.589 GB, free: 21.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.3589, allocations: 14.78 kB / 0.589 GB, free: 21.08 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3589, allocations: 0.5625 kB / 0.589 GB, free: 21.08 MB / 446.1 MB Notification: Performance of Templates: time 0.003725/0.3626, allocations: 1.513 MB / 0.5905 GB, free: 20.37 MB / 446.1 MB 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 -s gbode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)