Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 1.601/1.601, allocations: 171.2 MB / 183.8 MB, free: 11.93 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.413e-05/3.424e-05, allocations: 4 kB / 225 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2296, allocations: 38.77 MB / 263.8 MB, free: 9.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1846/0.4143, allocations: 91.01 MB / 354.8 MB, free: 14.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.4147, allocations: 87.94 kB / 354.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7128/1.127, allocations: 135.6 MB / 490.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.908e-06/1.127, allocations: 0 / 490.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004723/1.128, allocations: 136 kB / 490.6 MB, free: 14.98 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02572/1.154, allocations: 7.039 MB / 497.6 MB, free: 7.867 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/1.154, allocations: 8.031 kB / 497.6 MB, free: 7.859 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0433/1.197, allocations: 7.565 MB / 0.4934 GB, free: 280 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2398/1.437, allocations: 9.678 MB / 0.5028 GB, free: 45.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005245/1.437, allocations: 486.8 kB / 0.5033 GB, free: 45.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002552/1.44, allocations: 0.6493 MB / 0.5039 GB, free: 45.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03973/1.48, allocations: 16.48 MB / 0.52 GB, free: 41.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003456/1.48, allocations: 98.36 kB / 0.5201 GB, free: 41.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001647/1.482, allocations: 314.3 kB / 0.5204 GB, free: 41.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002888/1.485, allocations: 1.585 MB / 0.522 GB, free: 41.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03579/1.521, allocations: 13.24 MB / 0.5349 GB, free: 41.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09998/1.621, allocations: 74.31 MB / 0.6075 GB, free: 1.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05385/1.674, allocations: 8.986 MB / 0.6162 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007856/1.682, allocations: 3.982 MB / 0.6201 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2598/1.942, allocations: 18.74 MB / 0.6384 GB, free: 72.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.37e-05/1.942, allocations: 68.34 kB / 0.6385 GB, free: 72.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=286): time 8.026e-06/1.942, allocations: 0 / 0.6385 GB, free: 72.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=367): time 0.1792/2.122, allocations: 40.3 MB / 0.6778 GB, free: 68.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.439e-05/2.122, allocations: 278.8 kB / 0.6781 GB, free: 68.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01243/2.134, allocations: 5.295 MB / 0.6833 GB, free: 67.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00078/2.135, allocations: 82.61 kB / 0.6833 GB, free: 67.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003541/2.139, allocations: 4.548 MB / 0.6878 GB, free: 65.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001859/2.14, allocations: 1.345 MB / 0.6891 GB, free: 64.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/2.141, allocations: 184 kB / 0.6893 GB, free: 64.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006881/2.142, allocations: 0.7006 MB / 0.69 GB, free: 64.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008125/2.15, allocations: 3.685 MB / 0.6936 GB, free: 63.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01096/2.161, allocations: 8.821 MB / 0.7022 GB, free: 55.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/2.173, allocations: 5.6 MB / 0.7076 GB, free: 53.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000169/2.173, allocations: 51.28 kB / 0.7077 GB, free: 53.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04259/2.215, allocations: 15.68 MB / 0.723 GB, free: 41.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/2.216, allocations: 86.19 kB / 0.7231 GB, free: 41.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002203/2.216, allocations: 180 kB / 0.7233 GB, free: 41.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01605/2.232, allocations: 4.079 MB / 0.7272 GB, free: 38.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009571/2.242, allocations: 2.043 MB / 0.7292 GB, free: 37.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0416/2.283, allocations: 21.73 MB / 0.7505 GB, free: 18.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01026/2.293, allocations: 0.5501 MB / 0.751 GB, free: 17.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002049/2.296, allocations: 0.5319 MB / 0.7515 GB, free: 17.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1083): * Single equations (assignments): 1078 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002952/2.299, allocations: 0.7998 MB / 0.7523 GB, free: 16.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001442/2.3, allocations: 0.5707 MB / 0.7529 GB, free: 16.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02781/2.328, allocations: 9.685 MB / 0.7623 GB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.697e-05/2.328, allocations: 40 kB / 0.7623 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-05/2.328, allocations: 16 kB / 0.7624 GB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.228e-05/2.328, allocations: 15.94 kB / 0.7624 GB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2861/2.614, allocations: 19.09 MB / 0.781 GB, free: 60.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.742e-05/2.614, allocations: 7.781 kB / 0.781 GB, free: 60.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003774/2.618, allocations: 0.5077 MB / 0.7815 GB, free: 60.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01476/2.633, allocations: 3.556 MB / 0.785 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008325/2.634, allocations: 63.72 kB / 0.7851 GB, free: 60.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03709/2.671, allocations: 18.73 MB / 0.8033 GB, free: 58.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/2.671, allocations: 6.875 kB / 0.8033 GB, free: 58.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0341/2.705, allocations: 14.12 MB / 0.8171 GB, free: 55.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003882/2.709, allocations: 1.119 MB / 0.8182 GB, free: 55.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001887/2.711, allocations: 62.2 kB / 0.8183 GB, free: 55.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005059/2.716, allocations: 227.9 kB / 0.8185 GB, free: 55.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001296/2.717, allocations: 224.6 kB / 0.8187 GB, free: 55.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005092/2.718, allocations: 87.36 kB / 0.8188 GB, free: 55.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.009159/2.727, allocations: 3.701 MB / 0.8224 GB, free: 54.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.241e-06/2.727, allocations: 2.734 kB / 0.8224 GB, free: 54.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01135/2.738, allocations: 1.856 MB / 0.8242 GB, free: 53.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00112/2.74, allocations: 229.1 kB / 0.8245 GB, free: 53.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01893/2.758, allocations: 9.226 MB / 0.8335 GB, free: 50.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.976e-06/2.759, allocations: 2.781 kB / 0.8335 GB, free: 50.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007947/2.766, allocations: 3.663 MB / 0.837 GB, free: 49.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005147/2.772, allocations: 0.715 MB / 0.8377 GB, free: 49.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03454/2.806, allocations: 13.83 MB / 0.8512 GB, free: 38.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01065/2.817, allocations: 5.015 MB / 0.8561 GB, free: 35.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002321/2.819, allocations: 447.5 kB / 0.8566 GB, free: 34.67 MB / 378.7 MB Notification: Performance of SimCode: time 2.388e-06/2.819, allocations: 0 / 0.8566 GB, free: 34.67 MB / 378.7 MB Notification: Performance of Templates: time 0.4444/3.264, allocations: 144.7 MB / 0.9979 GB, free: 37.36 MB / 394.7 MB