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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.326e-05/2.335e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2462, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1472/0.3935, allocations: 96.1 MB / 390.2 MB, free: 1.828 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.3938, allocations: 87.89 kB / 390.3 MB, free: 1.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7015/1.095, allocations: 133 MB / 0.511 GB, free: 26.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.647e-06/1.095, allocations: 0 / 0.511 GB, free: 26.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003947/1.096, allocations: 132 kB / 0.5112 GB, free: 26.38 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.0221/1.118, allocations: 7.036 MB / 0.518 GB, free: 19.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/1.118, allocations: 12.03 kB / 0.518 GB, free: 19.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0383/1.156, allocations: 7.565 MB / 0.5254 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02597/1.182, allocations: 9.686 MB / 0.5349 GB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003606/1.183, allocations: 208 kB / 0.5351 GB, free: 1.699 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002514/1.185, allocations: 399.7 kB / 0.5355 GB, free: 1.309 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02346/1.209, allocations: 9.687 MB / 0.5449 GB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2685/1.477, allocations: 14.23 MB / 0.5588 GB, free: 48.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004604/1.478, allocations: 96.91 kB / 0.5589 GB, free: 48.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002154/1.48, allocations: 43.19 kB / 0.559 GB, free: 48.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003106/1.483, allocations: 1.585 MB / 0.5605 GB, free: 48.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09578/1.579, allocations: 73.69 MB / 0.6325 GB, free: 20.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0088/1.588, allocations: 5.231 MB / 0.6376 GB, free: 17.79 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005894/1.594, allocations: 3.768 MB / 0.6413 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002583/1.596, allocations: 2.262 MB / 0.6435 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.319e-05/1.596, allocations: 71.58 kB / 0.6435 GB, free: 14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=301): time 8.322e-06/1.597, allocations: 6.484 kB / 0.6435 GB, free: 14 MB / 394.7 MB Notification: Performance of matching and sorting (n=381): time 0.1349/1.731, allocations: 40.7 MB / 0.6833 GB, free: 11.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000204/1.732, allocations: 273.8 kB / 0.6835 GB, free: 11.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01113/1.743, allocations: 4.64 MB / 0.6881 GB, free: 7.258 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007974/1.744, allocations: 25.7 kB / 0.6881 GB, free: 7.227 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004959/1.749, allocations: 4.623 MB / 0.6926 GB, free: 2.984 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00232/1.751, allocations: 1.354 MB / 0.6939 GB, free: 1.762 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009934/1.752, allocations: 0 / 0.6939 GB, free: 1.762 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0009176/1.753, allocations: 0.7119 MB / 0.6946 GB, free: 1.152 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02336/1.776, allocations: 4.488 MB / 0.699 GB, free: 0 / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01461/1.791, allocations: 8.923 MB / 0.7077 GB, free: 5.004 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/1.803, allocations: 5.587 MB / 0.7132 GB, free: 240 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/1.804, allocations: 56 kB / 0.7132 GB, free: 184 kB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.2914/2.095, allocations: 15.35 MB / 0.7282 GB, free: 93.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/2.095, allocations: 85.25 kB / 0.7283 GB, free: 93.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002284/2.095, allocations: 187.1 kB / 0.7285 GB, free: 93.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01668/2.112, allocations: 4.091 MB / 0.7325 GB, free: 93.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009299/2.121, allocations: 2.105 MB / 0.7345 GB, free: 92.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04175/2.163, allocations: 21 MB / 0.7551 GB, free: 90.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00971/2.173, allocations: 383.5 kB / 0.7554 GB, free: 90.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002057/2.175, allocations: 0.5479 MB / 0.756 GB, free: 90.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * 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 (1121): * Single equations (assignments): 1116 * 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.00271/2.178, allocations: 0.5854 MB / 0.7565 GB, free: 89.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/2.179, allocations: 0.5373 MB / 0.7571 GB, free: 89.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02801/2.207, allocations: 9.568 MB / 0.7664 GB, free: 87.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-05/2.207, allocations: 44.86 kB / 0.7664 GB, free: 87.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.876e-05/2.207, allocations: 16.91 kB / 0.7665 GB, free: 87.22 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.857e-05/2.207, allocations: 22.08 kB / 0.7665 GB, free: 87.22 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04968/2.257, allocations: 18.14 MB / 0.7842 GB, free: 80.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.37e-05/2.257, allocations: 7.938 kB / 0.7842 GB, free: 80.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003371/2.261, allocations: 0.5325 MB / 0.7847 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01463/2.275, allocations: 3.514 MB / 0.7881 GB, free: 77.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008058/2.276, allocations: 10.39 kB / 0.7882 GB, free: 77.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03256/2.309, allocations: 17.67 MB / 0.8054 GB, free: 62.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.335e-05/2.309, allocations: 7.938 kB / 0.8054 GB, free: 62.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03203/2.341, allocations: 14.3 MB / 0.8194 GB, free: 50.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003399/2.344, allocations: 1.091 MB / 0.8204 GB, free: 49.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001602/2.346, allocations: 10.19 kB / 0.8205 GB, free: 49.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004614/2.351, allocations: 172.1 kB / 0.8206 GB, free: 49.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001279/2.352, allocations: 238.8 kB / 0.8208 GB, free: 49.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006609/2.353, allocations: 99.36 kB / 0.8209 GB, free: 49.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007257/2.36, allocations: 3.116 MB / 0.824 GB, free: 46.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.523e-06/2.36, allocations: 0 / 0.824 GB, free: 46.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01147/2.371, allocations: 1.613 MB / 0.8256 GB, free: 44.92 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (284): * Single equations (assignments): 279 * 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.001164/2.373, allocations: 181.4 kB / 0.8257 GB, free: 44.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01732/2.39, allocations: 9.224 MB / 0.8347 GB, free: 35.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.761e-06/2.39, allocations: 0 / 0.8347 GB, free: 35.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007081/2.397, allocations: 3.671 MB / 0.8383 GB, free: 31.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004292/2.401, allocations: 0.5859 MB / 0.8389 GB, free: 31.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03374/2.435, allocations: 13.78 MB / 0.8524 GB, free: 17.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01096/2.446, allocations: 5.013 MB / 0.8573 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002124/2.448, allocations: 439.4 kB / 0.8577 GB, free: 12.07 MB / 426.7 MB Notification: Performance of SimCode: time 3.174e-06/2.448, allocations: 0 / 0.8577 GB, free: 12.07 MB / 426.7 MB Notification: Performance of Templates: time 0.7113/3.16, allocations: 143.2 MB / 0.9975 GB, free: 9.152 MB / 426.8 MB