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.955/1.955, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.828e-05/2.841e-05, allocations: 4 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07876/0.0788, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4161/0.495, allocations: 96.75 MB / 396.6 MB, free: 18.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.4953, allocations: 90.05 kB / 396.7 MB, free: 18.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7631/1.258, allocations: 135.7 MB / 0.5199 GB, free: 55.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.251e-06/1.258, allocations: 0 / 0.5199 GB, free: 55.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004794/1.259, allocations: 132.7 kB / 0.52 GB, free: 55.86 MB / 394.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.02368/1.283, allocations: 7.044 MB / 0.5269 GB, free: 53.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/1.283, allocations: 7.656 kB / 0.5269 GB, free: 53.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04095/1.324, allocations: 7.559 MB / 0.5343 GB, free: 52.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02756/1.351, allocations: 9.69 MB / 0.5438 GB, free: 51.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000631/1.352, allocations: 491.5 kB / 0.5442 GB, free: 51.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003001/1.355, allocations: 0.6559 MB / 0.5449 GB, free: 51.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04228/1.397, allocations: 16.57 MB / 0.561 GB, free: 48.03 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004497/1.398, allocations: 95 kB / 0.5611 GB, free: 48.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002574/1.4, allocations: 314.5 kB / 0.5614 GB, free: 48.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002848/1.403, allocations: 1.581 MB / 0.563 GB, free: 48.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03517/1.438, allocations: 13.51 MB / 0.5762 GB, free: 47.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1009/1.539, allocations: 74.33 MB / 0.6488 GB, free: 17.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02904/1.568, allocations: 7.69 MB / 0.6563 GB, free: 10.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008018/1.576, allocations: 3.972 MB / 0.6602 GB, free: 7.223 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.286/1.862, allocations: 18.72 MB / 0.6784 GB, free: 81.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.317e-05/1.863, allocations: 62.91 kB / 0.6785 GB, free: 81.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.774e-06/1.863, allocations: 2.5 kB / 0.6785 GB, free: 81.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.1683/2.031, allocations: 40.31 MB / 0.7179 GB, free: 77.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.837e-05/2.031, allocations: 267.7 kB / 0.7181 GB, free: 77.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01065/2.042, allocations: 5.298 MB / 0.7233 GB, free: 76.51 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007686/2.043, allocations: 80.45 kB / 0.7234 GB, free: 76.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003311/2.046, allocations: 4.546 MB / 0.7278 GB, free: 74.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001686/2.048, allocations: 1.355 MB / 0.7291 GB, free: 73.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009419/2.049, allocations: 187.6 kB / 0.7293 GB, free: 73.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005961/2.049, allocations: 0.703 MB / 0.73 GB, free: 73.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007665/2.057, allocations: 3.684 MB / 0.7336 GB, free: 72.01 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01073/2.068, allocations: 8.873 MB / 0.7423 GB, free: 63.81 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/2.078, allocations: 5.601 MB / 0.7477 GB, free: 62.13 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001411/2.079, allocations: 57.69 kB / 0.7478 GB, free: 62.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.1025/2.181, allocations: 16.17 MB / 0.7636 GB, free: 54.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002871/2.182, allocations: 83.95 kB / 0.7637 GB, free: 54.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004585/2.182, allocations: 184 kB / 0.7638 GB, free: 53.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02693/2.209, allocations: 4.074 MB / 0.7678 GB, free: 51.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008927/2.218, allocations: 2.044 MB / 0.7698 GB, free: 49.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04017/2.258, allocations: 21.73 MB / 0.791 GB, free: 30.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009859/2.268, allocations: 0.5515 MB / 0.7916 GB, free: 30.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001861/2.27, allocations: 0.5344 MB / 0.7921 GB, free: 29.62 MB / 426.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.002039/2.272, allocations: 0.8071 MB / 0.7929 GB, free: 28.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001286/2.273, allocations: 0.5669 MB / 0.7934 GB, free: 28.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02678/2.3, allocations: 9.68 MB / 0.8029 GB, free: 20.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.36e-05/2.3, allocations: 40 kB / 0.8029 GB, free: 20.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-05/2.3, allocations: 16 kB / 0.8029 GB, free: 20.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.797e-05/2.3, allocations: 17.77 kB / 0.803 GB, free: 20.74 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3036/2.604, allocations: 19.09 MB / 0.8216 GB, free: 67.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.346e-05/2.604, allocations: 1.188 kB / 0.8216 GB, free: 67.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003648/2.608, allocations: 0.5123 MB / 0.8221 GB, free: 67.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01564/2.623, allocations: 3.55 MB / 0.8256 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007729/2.624, allocations: 63.64 kB / 0.8256 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03729/2.662, allocations: 18.71 MB / 0.8439 GB, free: 65.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.512e-06/2.662, allocations: 2.25 kB / 0.8439 GB, free: 65.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03425/2.696, allocations: 14.13 MB / 0.8577 GB, free: 64.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003865/2.7, allocations: 1.116 MB / 0.8588 GB, free: 64.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001929/2.702, allocations: 63.45 kB / 0.8589 GB, free: 64.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005001/2.707, allocations: 226.6 kB / 0.8591 GB, free: 64.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001246/2.708, allocations: 228.1 kB / 0.8593 GB, free: 64.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004022/2.709, allocations: 92.61 kB / 0.8594 GB, free: 64.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008542/2.717, allocations: 3.7 MB / 0.863 GB, free: 64.05 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.003e-06/2.717, allocations: 0 / 0.863 GB, free: 64.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.011/2.728, allocations: 1.848 MB / 0.8648 GB, free: 64.05 MB / 426.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.001099/2.729, allocations: 236.5 kB / 0.865 GB, free: 63.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01892/2.748, allocations: 9.526 MB / 0.8743 GB, free: 62.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.031e-06/2.748, allocations: 3.094 kB / 0.8743 GB, free: 62.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007553/2.756, allocations: 3.706 MB / 0.878 GB, free: 60.65 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004923/2.761, allocations: 0.7245 MB / 0.8787 GB, free: 60.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03198/2.793, allocations: 13.84 MB / 0.8922 GB, free: 55.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01041/2.803, allocations: 5.019 MB / 0.8971 GB, free: 53.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002248/2.806, allocations: 443.6 kB / 0.8975 GB, free: 53.77 MB / 426.7 MB Notification: Performance of SimCode: time 2.08e-06/2.806, allocations: 0 / 0.8975 GB, free: 53.77 MB / 426.7 MB Notification: Performance of Templates: time 0.4826/3.288, allocations: 146.1 MB / 1.04 GB, free: 57.72 MB / 442.7 MB