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.004855/0.004856, allocations: 99.55 kB / 15.73 MB, free: 6.008 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.001153/0.001154, allocations: 198.5 kB / 16.68 MB, free: 5.93 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.922/0.922, allocations: 135.1 MB / 425.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 67.89 kB / 0.5856 GB, free: 3.312 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4419/0.4433, allocations: 80.91 MB / 0.6646 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002682/0.446, allocations: 1.581 MB / 0.6662 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009144/0.447, allocations: 0.535 MB / 0.6667 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.64e-05/0.4471, allocations: 1.312 kB / 0.6667 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.249e-05/0.4472, allocations: 3.938 kB / 0.6667 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.4473, allocations: 17.31 kB / 0.6667 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.4476, allocations: 62.34 kB / 0.6668 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001836/0.4478, allocations: 101.4 kB / 0.6669 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.4479, allocations: 10.28 kB / 0.6669 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.896e-05/0.448, allocations: 43.12 kB / 0.6669 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.872e-05/0.4481, allocations: 41.59 kB / 0.667 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.332e-05/0.4481, allocations: 9.562 kB / 0.667 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.609e-05/0.4482, allocations: 8 kB / 0.667 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.557e-05/0.4482, allocations: 26.81 kB / 0.667 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.731e-05/0.4483, allocations: 36.77 kB / 0.6671 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001421/0.4484, allocations: 82.23 kB / 0.6671 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4484, allocations: 0 / 0.6671 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4485, allocations: 5.219 kB / 0.6671 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.4485, allocations: 0 / 0.6671 GB, free: 5.598 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.00067/0.4491, allocations: 459.8 kB / 0.6676 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.4492, allocations: 14.09 kB / 0.6676 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.158e-05/0.4492, allocations: 10.47 kB / 0.6676 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.4494, allocations: 184.4 kB / 0.6678 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.643e-05/0.4495, allocations: 36.25 kB / 0.6678 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.4496, allocations: 9.219 kB / 0.6678 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002706/0.4498, allocations: 97.84 kB / 0.6679 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.4499, allocations: 1.25 kB / 0.6679 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.4499, allocations: 4 kB / 0.6679 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.4499, allocations: 6.156 kB / 0.6679 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002941/0.4502, allocations: 72.08 kB / 0.668 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004691/0.4507, allocations: 347.9 kB / 0.6683 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.4511, allocations: 94.8 kB / 0.6684 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.4512, allocations: 43.23 kB / 0.6685 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.4512, allocations: 1.031 kB / 0.6685 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.4515, allocations: 123.1 kB / 0.6686 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.4515, allocations: 0 / 0.6686 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0005702/0.4521, allocations: 175.1 kB / 0.6687 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.269e-05/0.4521, allocations: 56.66 kB / 0.6688 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.064e-05/0.4522, allocations: 130.5 kB / 0.6689 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.4522, allocations: 32.77 kB / 0.669 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.4523, allocations: 86.36 kB / 0.669 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.4523, allocations: 31.39 kB / 0.6691 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.4524, allocations: 31.8 kB / 0.6691 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.049e-05/0.4524, allocations: 325.5 kB / 0.6694 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.4526, allocations: 53.22 kB / 0.6695 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.4528, allocations: 69.05 kB / 0.6695 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003275/0.4531, allocations: 159 kB / 0.6697 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4531, allocations: 4 kB / 0.6697 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004363/0.4535, allocations: 222.6 kB / 0.6699 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.4536, allocations: 62.16 kB / 0.6699 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.4536, allocations: 0 / 0.6699 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.4536, allocations: 1.625 kB / 0.6699 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.4537, allocations: 33.69 kB / 0.67 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.4538, allocations: 0 / 0.67 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.4539, allocations: 26.39 kB / 0.67 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.4539, allocations: 7.875 kB / 0.67 GB, free: 3.012 MB / 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 6.943e-05/0.454, allocations: 118.9 kB / 0.6701 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.913e-05/0.454, allocations: 12.17 kB / 0.6701 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.4541, allocations: 9.781 kB / 0.6701 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.4541, allocations: 5.234 kB / 0.6702 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.4541, allocations: 1.25 kB / 0.6702 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4541, allocations: 3.938 kB / 0.6702 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001194/0.4542, allocations: 208.9 kB / 0.6704 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4542, allocations: 1.25 kB / 0.6704 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.4544, allocations: 16.83 kB / 0.6704 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.4544, allocations: 1.25 kB / 0.6704 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.4544, allocations: 1.062 kB / 0.6704 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4544, allocations: 5.281 kB / 0.6704 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4544, allocations: 3.984 kB / 0.6704 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005715/0.455, allocations: 223.5 kB / 0.6706 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.481e-05/0.455, allocations: 82.33 kB / 0.6707 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.455, allocations: 2.719 kB / 0.6707 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.4552, allocations: 19.77 kB / 0.6707 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.4552, allocations: 15.8 kB / 0.6707 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.4553, allocations: 10.27 kB / 0.6707 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.155e-05/0.4553, allocations: 100.6 kB / 0.6708 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4553, allocations: 0 / 0.6708 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002085/0.4555, allocations: 22.22 kB / 0.6708 GB, free: 2.258 MB / 0.4981 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 0.0001008/0.4556, allocations: 101.3 kB / 0.6709 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004301/0.4561, allocations: 230.6 kB / 0.6712 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4561, allocations: 1.344 kB / 0.6712 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.4563, allocations: 57.14 kB / 0.6712 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.4565, allocations: 21.11 kB / 0.6712 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005678/0.4571, allocations: 254.7 kB / 0.6715 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.4572, allocations: 0.6953 MB / 0.6722 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.516e-05/0.4573, allocations: 9.766 kB / 0.6722 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.18e-05/0.4573, allocations: 21.11 kB / 0.6722 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of SimCode: time 2.01e-07/0.4573, allocations: 1.469 kB / 0.6722 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of Templates: time 0.003817/0.4611, allocations: 1.514 MB / 0.6737 GB, free: 272 kB / 0.4981 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)