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.001266/0.001266, allocations: 104.6 kB / 16.35 MB, free: 5.887 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.001395/0.001395, allocations: 192.3 kB / 17.29 MB, free: 5.527 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.293/1.293, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.78/0.78, allocations: 135.1 MB / 426.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 59.91 kB / 0.5067 GB, free: 7.707 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3664, allocations: 80.91 MB / 0.5858 GB, free: 25.53 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00276/0.3692, allocations: 1.576 MB / 0.5873 GB, free: 24.31 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008637/0.3701, allocations: 0.5301 MB / 0.5878 GB, free: 23.89 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.11e-05/0.3702, allocations: 2.25 kB / 0.5878 GB, free: 23.89 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.433e-05/0.3702, allocations: 7.922 kB / 0.5878 GB, free: 23.88 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.848e-05/0.3703, allocations: 15.56 kB / 0.5878 GB, free: 23.87 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.3706, allocations: 57.8 kB / 0.5879 GB, free: 23.82 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001905/0.3708, allocations: 103.6 kB / 0.588 GB, free: 23.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.949e-05/0.3709, allocations: 13.8 kB / 0.588 GB, free: 23.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.04e-05/0.371, allocations: 43.5 kB / 0.588 GB, free: 23.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.478e-05/0.3711, allocations: 43.11 kB / 0.5881 GB, free: 23.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.3712, allocations: 9 kB / 0.5881 GB, free: 23.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.907e-05/0.3712, allocations: 8.812 kB / 0.5881 GB, free: 23.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.068e-05/0.3712, allocations: 26.59 kB / 0.5881 GB, free: 23.68 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.896e-05/0.3713, allocations: 33.45 kB / 0.5882 GB, free: 23.65 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.3714, allocations: 84.58 kB / 0.5882 GB, free: 23.59 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3714, allocations: 1.469 kB / 0.5882 GB, free: 23.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3714, allocations: 0 / 0.5882 GB, free: 23.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.3714, allocations: 1.5 kB / 0.5882 GB, free: 23.59 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.0006618/0.3721, allocations: 462.2 kB / 0.5887 GB, free: 23.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3721, allocations: 14.84 kB / 0.5887 GB, free: 23.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.183e-05/0.3722, allocations: 11.06 kB / 0.5887 GB, free: 23.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.3724, allocations: 191.5 kB / 0.5889 GB, free: 22.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.529e-05/0.3725, allocations: 36.58 kB / 0.5889 GB, free: 22.87 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.3725, allocations: 5.375 kB / 0.5889 GB, free: 22.87 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.3728, allocations: 101.2 kB / 0.589 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.3728, allocations: 0 / 0.589 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.3728, allocations: 1.156 kB / 0.589 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.3729, allocations: 1.188 kB / 0.589 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.3731, allocations: 77.64 kB / 0.5891 GB, free: 22.77 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.3736, allocations: 337.8 kB / 0.5894 GB, free: 22.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003597/0.374, allocations: 104.7 kB / 0.5895 GB, free: 22.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.3741, allocations: 50.16 kB / 0.5896 GB, free: 22.33 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.3742, allocations: 1.062 kB / 0.5896 GB, free: 22.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002514/0.3744, allocations: 111 kB / 0.5897 GB, free: 22.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.673e-06/0.3744, allocations: 0.625 kB / 0.5897 GB, free: 22.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005272/0.375, allocations: 183 kB / 0.5899 GB, free: 22.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.375, allocations: 52.47 kB / 0.5899 GB, free: 22.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.699e-05/0.3751, allocations: 128.8 kB / 0.59 GB, free: 21.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.3751, allocations: 30.33 kB / 0.5901 GB, free: 21.92 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.566e-05/0.3751, allocations: 96.56 kB / 0.5901 GB, free: 21.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.3752, allocations: 33.97 kB / 0.5902 GB, free: 21.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/0.3752, allocations: 29.7 kB / 0.5902 GB, free: 21.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.28e-05/0.3753, allocations: 330.7 kB / 0.5905 GB, free: 21.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.3754, allocations: 47.95 kB / 0.5906 GB, free: 21.38 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.3756, allocations: 70.95 kB / 0.5906 GB, free: 21.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.3759, allocations: 160.8 kB / 0.5908 GB, free: 21.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3759, allocations: 0 / 0.5908 GB, free: 21.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003656/0.3762, allocations: 222 kB / 0.591 GB, free: 20.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.3763, allocations: 67.39 kB / 0.5911 GB, free: 20.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3763, allocations: 0 / 0.5911 GB, free: 20.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.3763, allocations: 0.8125 kB / 0.5911 GB, free: 20.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.3764, allocations: 20.55 kB / 0.5911 GB, free: 20.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.3764, allocations: 5.906 kB / 0.5911 GB, free: 20.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.3766, allocations: 15.92 kB / 0.5911 GB, free: 20.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.3766, allocations: 11.94 kB / 0.5911 GB, free: 20.77 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 6.522e-05/0.3767, allocations: 125.5 kB / 0.5912 GB, free: 20.64 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.683e-05/0.3767, allocations: 7.906 kB / 0.5912 GB, free: 20.63 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.3767, allocations: 16.38 kB / 0.5913 GB, free: 20.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3767, allocations: 0 / 0.5913 GB, free: 20.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3767, allocations: 0 / 0.5913 GB, free: 20.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3767, allocations: 0 / 0.5913 GB, free: 20.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.3768, allocations: 205.4 kB / 0.5915 GB, free: 20.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3769, allocations: 0.5 kB / 0.5915 GB, free: 20.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.377, allocations: 20.48 kB / 0.5915 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.377, allocations: 4.609 kB / 0.5915 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.377, allocations: 3.938 kB / 0.5915 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.377, allocations: 5.844 kB / 0.5915 GB, free: 20.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.377, allocations: 3.984 kB / 0.5915 GB, free: 20.33 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004918/0.3775, allocations: 223.6 kB / 0.5917 GB, free: 20.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.683e-05/0.3776, allocations: 89.05 kB / 0.5918 GB, free: 19.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.3776, allocations: 6.312 kB / 0.5918 GB, free: 19.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.3777, allocations: 11.98 kB / 0.5918 GB, free: 19.97 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.794e-05/0.3778, allocations: 23.91 kB / 0.5918 GB, free: 19.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.3778, allocations: 4 kB / 0.5918 GB, free: 19.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.893e-05/0.3778, allocations: 102.2 kB / 0.5919 GB, free: 19.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3778, allocations: 5.094 kB / 0.5919 GB, free: 19.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002006/0.3781, allocations: 16 kB / 0.592 GB, free: 19.83 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.0001013/0.3782, allocations: 105 kB / 0.5921 GB, free: 19.72 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003846/0.3786, allocations: 228.2 kB / 0.5923 GB, free: 19.47 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3786, allocations: 0 / 0.5923 GB, free: 19.47 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.3787, allocations: 61.08 kB / 0.5923 GB, free: 19.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.379, allocations: 18.55 kB / 0.5923 GB, free: 19.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005712/0.3796, allocations: 238.1 kB / 0.5926 GB, free: 19.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001114/0.3797, allocations: 0.6946 MB / 0.5933 GB, free: 18.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.873e-05/0.3797, allocations: 8.422 kB / 0.5933 GB, free: 18.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.086e-05/0.3798, allocations: 17.84 kB / 0.5933 GB, free: 18.4 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3798, allocations: 0 / 0.5933 GB, free: 18.4 MB / 446.1 MB Notification: Performance of Templates: time 0.003422/0.3832, allocations: 1.517 MB / 0.5948 GB, free: 16.94 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)