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.001115/0.001115, allocations: 104.7 kB / 15.99 MB, free: 6.348 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.001182/0.001182, allocations: 199 kB / 16.91 MB, free: 6.188 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.377/1.377, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8178/0.8178, allocations: 135.1 MB / 425.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001855, allocations: 63.91 kB / 0.5055 GB, free: 8.797 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3486, allocations: 80.91 MB / 0.5845 GB, free: 24.98 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002392/0.3511, allocations: 1.643 MB / 0.5861 GB, free: 23.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006909/0.3518, allocations: 0.5211 MB / 0.5866 GB, free: 23.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.946e-05/0.3519, allocations: 1.562 kB / 0.5866 GB, free: 23.29 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.136e-05/0.3519, allocations: 7.922 kB / 0.5866 GB, free: 23.29 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.832e-05/0.352, allocations: 9.469 kB / 0.5866 GB, free: 23.28 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.3522, allocations: 45.55 kB / 0.5867 GB, free: 23.24 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.3524, allocations: 108.2 kB / 0.5868 GB, free: 23.18 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.222e-05/0.3525, allocations: 15.55 kB / 0.5868 GB, free: 23.17 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.45e-05/0.3526, allocations: 34.25 kB / 0.5868 GB, free: 23.15 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.839e-05/0.3526, allocations: 45.11 kB / 0.5869 GB, free: 23.12 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.3527, allocations: 8.312 kB / 0.5869 GB, free: 23.12 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.966e-05/0.3527, allocations: 9.25 kB / 0.5869 GB, free: 23.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.3527, allocations: 18.55 kB / 0.5869 GB, free: 23.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.482e-05/0.3528, allocations: 44.98 kB / 0.587 GB, free: 23.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.752e-05/0.3529, allocations: 48.36 kB / 0.587 GB, free: 23.04 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.3529, allocations: 0.5625 kB / 0.587 GB, free: 23.04 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3529, allocations: 0.875 kB / 0.587 GB, free: 23.04 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.3529, allocations: 0.625 kB / 0.587 GB, free: 23.04 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.0006112/0.3535, allocations: 474.1 kB / 0.5875 GB, free: 22.56 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.3535, allocations: 10.33 kB / 0.5875 GB, free: 22.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.639e-05/0.3536, allocations: 13.88 kB / 0.5875 GB, free: 22.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.3537, allocations: 188.8 kB / 0.5877 GB, free: 22.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.66e-05/0.3538, allocations: 32.77 kB / 0.5877 GB, free: 22.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.3538, allocations: 13.53 kB / 0.5877 GB, free: 22.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.3541, allocations: 99.53 kB / 0.5878 GB, free: 22.23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3541, allocations: 1.688 kB / 0.5878 GB, free: 22.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.3541, allocations: 7.984 kB / 0.5878 GB, free: 22.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3541, allocations: 5.062 kB / 0.5878 GB, free: 22.22 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.3544, allocations: 70.62 kB / 0.5879 GB, free: 22.19 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004424/0.3549, allocations: 343.2 kB / 0.5882 GB, free: 21.85 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003465/0.3552, allocations: 87.95 kB / 0.5883 GB, free: 21.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.3554, allocations: 48.94 kB / 0.5883 GB, free: 21.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.3554, allocations: 1.5 kB / 0.5883 GB, free: 21.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003003/0.3557, allocations: 124.8 kB / 0.5885 GB, free: 21.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.3557, allocations: 0 / 0.5885 GB, free: 21.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005407/0.3563, allocations: 176.7 kB / 0.5886 GB, free: 21.58 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.079e-05/0.3563, allocations: 53.91 kB / 0.5887 GB, free: 21.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.508e-05/0.3564, allocations: 123.5 kB / 0.5888 GB, free: 21.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.3564, allocations: 31.95 kB / 0.5888 GB, free: 21.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.262e-05/0.3564, allocations: 94.81 kB / 0.5889 GB, free: 21.28 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.3565, allocations: 36.91 kB / 0.589 GB, free: 21.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.204e-05/0.3565, allocations: 28.34 kB / 0.589 GB, free: 21.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.066e-05/0.3566, allocations: 326 kB / 0.5893 GB, free: 20.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.3568, allocations: 52.92 kB / 0.5893 GB, free: 20.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.3569, allocations: 70.67 kB / 0.5894 GB, free: 20.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003009/0.3572, allocations: 169.5 kB / 0.5896 GB, free: 20.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3573, allocations: 1.062 kB / 0.5896 GB, free: 20.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004061/0.3577, allocations: 216.3 kB / 0.5898 GB, free: 20.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.3577, allocations: 62.52 kB / 0.5898 GB, free: 20.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3577, allocations: 0 / 0.5898 GB, free: 20.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.3577, allocations: 3.188 kB / 0.5898 GB, free: 20.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.3579, allocations: 28.7 kB / 0.5899 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3579, allocations: 1.688 kB / 0.5899 GB, free: 20.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.358, allocations: 21.66 kB / 0.5899 GB, free: 20.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.358, allocations: 12.58 kB / 0.5899 GB, free: 20.46 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.01e-05/0.3581, allocations: 121 kB / 0.59 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.84e-05/0.3581, allocations: 7.531 kB / 0.59 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.285e-05/0.3582, allocations: 11.78 kB / 0.59 GB, free: 20.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3582, allocations: 1.406 kB / 0.59 GB, free: 20.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3582, allocations: 0.5 kB / 0.59 GB, free: 20.33 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3582, allocations: 3.984 kB / 0.59 GB, free: 20.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.3583, allocations: 200 kB / 0.5902 GB, free: 20.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3583, allocations: 3.938 kB / 0.5902 GB, free: 20.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.3585, allocations: 25.81 kB / 0.5903 GB, free: 20.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.3585, allocations: 2.656 kB / 0.5903 GB, free: 20.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.3585, allocations: 1.375 kB / 0.5903 GB, free: 20.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3585, allocations: 0 / 0.5903 GB, free: 20.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3585, allocations: 0 / 0.5903 GB, free: 20.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005419/0.3591, allocations: 226.2 kB / 0.5905 GB, free: 19.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.265e-05/0.3591, allocations: 83.33 kB / 0.5906 GB, free: 19.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.3591, allocations: 9.25 kB / 0.5906 GB, free: 19.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.3593, allocations: 15.7 kB / 0.5906 GB, free: 19.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.3593, allocations: 18.16 kB / 0.5906 GB, free: 19.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.3593, allocations: 2.875 kB / 0.5906 GB, free: 19.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.739e-05/0.3594, allocations: 101.1 kB / 0.5907 GB, free: 19.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3594, allocations: 0.5 kB / 0.5907 GB, free: 19.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002063/0.3596, allocations: 22.12 kB / 0.5907 GB, free: 19.73 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 8.303e-05/0.3597, allocations: 99.75 kB / 0.5908 GB, free: 19.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004249/0.3601, allocations: 239.2 kB / 0.591 GB, free: 19.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3601, allocations: 0.5312 kB / 0.591 GB, free: 19.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.3603, allocations: 55.2 kB / 0.5911 GB, free: 19.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.3606, allocations: 16.92 kB / 0.5911 GB, free: 19.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005973/0.3612, allocations: 293.2 kB / 0.5914 GB, free: 19.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.3613, allocations: 0.6943 MB / 0.5921 GB, free: 18.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.019e-05/0.3613, allocations: 20.89 kB / 0.5921 GB, free: 18.46 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3614, allocations: 2.25 kB / 0.5921 GB, free: 18.46 MB / 446.1 MB Notification: Performance of Templates: time 0.002327/0.3637, allocations: 1.426 MB / 0.5935 GB, free: 17.19 MB / 446.1 MB 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)