Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadModel(Modelica): time 1.814/1.814, allocations: 171.2 MB / 186.7 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003472/0.0003473, allocations: 8 kB / 233.9 MB, free: 2.375 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08728/0.08765, allocations: 38.77 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3608/0.4485, allocations: 75.78 MB / 348.4 MB, free: 13.65 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003228/0.4489, allocations: 93.56 kB / 348.5 MB, free: 13.6 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2828/0.7316, allocations: 59.85 MB / 408.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.061e-06/0.7317, allocations: 3.984 kB / 408.4 MB, free: 7.398 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002585/0.732, allocations: 55.92 kB / 408.4 MB, free: 7.344 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.04256/0.7746, allocations: 3.596 MB / 412 MB, free: 3.684 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.011e-05/0.7747, allocations: 8.031 kB / 412 MB, free: 3.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03278/0.8075, allocations: 2.313 MB / 414.3 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02747/0.835, allocations: 4.859 MB / 419.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003324/0.8354, allocations: 172.4 kB / 419.4 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001768/0.8372, allocations: 227.8 kB / 419.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03235/0.8696, allocations: 8.579 MB / 428.2 MB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001903/0.8698, allocations: 55.45 kB / 428.2 MB, free: 2.559 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001044/0.8709, allocations: 123.9 kB / 428.3 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002092/0.873, allocations: 0.7182 MB / 429.1 MB, free: 1.719 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2871/1.16, allocations: 9.66 MB / 438.7 MB, free: 82.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06555/1.226, allocations: 37.72 MB / 476.4 MB, free: 58.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0266/1.252, allocations: 4.043 MB / 480.5 MB, free: 56.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000186/1.253, allocations: 16.41 kB / 480.5 MB, free: 56.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/1.253, allocations: 48.25 kB / 480.5 MB, free: 56.64 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 5.03e-06/1.253, allocations: 3.938 kB / 480.5 MB, free: 56.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=136): time 0.07957/1.332, allocations: 17.73 MB / 498.3 MB, free: 50.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002407/1.335, allocations: 3.077 MB / 0.4896 GB, free: 47.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006829/1.342, allocations: 3.015 MB / 0.4925 GB, free: 46.6 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005883/1.342, allocations: 42.38 kB / 0.4926 GB, free: 46.56 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/1.344, allocations: 2.082 MB / 0.4946 GB, free: 45.06 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.345, allocations: 0.5582 MB / 0.4952 GB, free: 44.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005212/1.345, allocations: 92.08 kB / 0.4953 GB, free: 44.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002939/1.346, allocations: 0.5153 MB / 0.4958 GB, free: 44.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006063/1.352, allocations: 2.381 MB / 0.4981 GB, free: 42.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007601/1.36, allocations: 5.259 MB / 0.5032 GB, free: 36.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008006/1.368, allocations: 3.434 MB / 0.5066 GB, free: 33.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.109e-05/1.368, allocations: 32 kB / 0.5066 GB, free: 33.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.03177/1.399, allocations: 9.231 MB / 0.5156 GB, free: 25.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.354e-05/1.4, allocations: 48 kB / 0.5157 GB, free: 25.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01875/1.418, allocations: 4.514 MB / 0.5201 GB, free: 21.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01426/1.433, allocations: 2.179 MB / 0.5222 GB, free: 18.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007761/1.44, allocations: 1.197 MB / 0.5234 GB, free: 17.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00873/1.449, allocations: 7.435 MB / 0.5306 GB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008231/1.458, allocations: 0.5577 MB / 0.5312 GB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/1.459, allocations: 305.2 kB / 0.5315 GB, free: 8.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 15 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (581): * Single equations (assignments): 566 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004288/1.463, allocations: 1.408 MB / 0.5328 GB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008164/1.464, allocations: 252.7 kB / 0.5331 GB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/1.466, allocations: 411.2 kB / 0.5335 GB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01958/1.486, allocations: 4.592 MB / 0.538 GB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.291e-05/1.486, allocations: 4 kB / 0.538 GB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.612e-05/1.486, allocations: 11.97 kB / 0.538 GB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0153/1.501, allocations: 5.338 MB / 0.5432 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.516e-05/1.501, allocations: 4.266 kB / 0.5432 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003191/1.504, allocations: 275.6 kB / 0.5435 GB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01656/1.521, allocations: 2.37 MB / 0.5458 GB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006864/1.522, allocations: 56.75 kB / 0.5458 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01995/1.542, allocations: 8.998 MB / 0.5546 GB, free: 0.6289 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2635/1.805, allocations: 2.9 MB / 0.5574 GB, free: 87.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03769/1.843, allocations: 8.058 MB / 0.5653 GB, free: 87.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/1.844, allocations: 334.9 kB / 0.5656 GB, free: 86.94 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001618/1.846, allocations: 32.2 kB / 0.5657 GB, free: 86.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006294/1.852, allocations: 271.3 kB / 0.5659 GB, free: 86.94 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001257/1.854, allocations: 101.1 kB / 0.566 GB, free: 86.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004269/1.854, allocations: 48.05 kB / 0.5661 GB, free: 86.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007693/1.862, allocations: 1.905 MB / 0.5679 GB, free: 86.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.583e-06/1.862, allocations: 0 / 0.5679 GB, free: 86.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01025/1.872, allocations: 0.9227 MB / 0.5688 GB, free: 86.8 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00105/1.873, allocations: 180.9 kB / 0.569 GB, free: 86.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.02437/1.898, allocations: 6.513 MB / 0.5754 GB, free: 86.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.898, allocations: 5.438 kB / 0.5754 GB, free: 86.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01411/1.912, allocations: 3.414 MB / 0.5787 GB, free: 85.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003391/1.915, allocations: 269.7 kB / 0.579 GB, free: 85.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02692/1.942, allocations: 9.52 MB / 0.5882 GB, free: 81.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004581/1.947, allocations: 2.344 MB / 0.5905 GB, free: 81.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.007603/1.954, allocations: 1.625 MB / 0.5921 GB, free: 81.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/1.956, allocations: 190.9 kB / 0.5923 GB, free: 81.01 MB / 362.7 MB Notification: Performance of SimCode: time 1.753e-06/1.956, allocations: 0 / 0.5923 GB, free: 81.01 MB / 362.7 MB Notification: Performance of Templates: time 0.08769/2.044, allocations: 34.8 MB / 0.6263 GB, free: 62.93 MB / 362.7 MB