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.85/1.85, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.012e-05/3.003e-05, allocations: 4 kB / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08253/0.08259, allocations: 38.76 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.3089/0.3916, allocations: 57.75 MB / 324.6 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03948/0.4312, allocations: 12.88 MB / 337.5 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01543/0.4466, allocations: 310.9 kB / 337.8 MB, free: 8.359 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01104/0.4578, allocations: 3.011 MB / 340.8 MB, free: 6.117 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03281/0.4906, allocations: 8.252 MB / 349.1 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006519/0.4972, allocations: 1.233 MB / 350.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.05352/0.5508, allocations: 17.75 MB / 368.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01253/0.5634, allocations: 5.725 MB / 373.8 MB, free: 5.641 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003989/0.5674, allocations: 1.492 MB / 375.3 MB, free: 4.145 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005763/0.5732, allocations: 2.494 MB / 377.8 MB, free: 1.645 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004328/0.5776, allocations: 1.163 MB / 379 MB, free: 492 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002135/0.5798, allocations: 224 kB / 379.2 MB, free: 268 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004917/0.5848, allocations: 2.685 MB / 381.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002612/0.5874, allocations: 456 kB / 382.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01481/0.6023, allocations: 8.908 MB / 391.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.6024, allocations: 0 / 391.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.6024, allocations: 0 / 391.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004422/0.6028, allocations: 0 / 391.2 MB, free: 4.195 MB / 314.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.02555/0.6284, allocations: 6.836 MB / 398 MB, free: 13.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.6285, allocations: 12.03 kB / 398.1 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3518/0.9803, allocations: 19.4 MB / 417.4 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02175/1.002, allocations: 6.198 MB / 423.6 MB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005589/1.003, allocations: 369.4 kB / 424 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002728/1.005, allocations: 0.5112 MB / 424.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0509/1.056, allocations: 16.38 MB / 440.9 MB, free: 1.242 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004497/1.057, allocations: 71.36 kB / 441 MB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002145/1.059, allocations: 235.8 kB / 441.2 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.253/1.312, allocations: 2.801 MB / 444 MB, free: 124.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04662/1.359, allocations: 13.69 MB / 457.7 MB, free: 120.9 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1063/1.465, allocations: 64.4 MB / 0.5098 GB, free: 58.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03818/1.503, allocations: 7.864 MB / 0.5175 GB, free: 50.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04513/1.549, allocations: 18.92 MB / 0.536 GB, free: 30.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.861e-05/1.549, allocations: 72.48 kB / 0.5361 GB, free: 30.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.054e-06/1.549, allocations: 0 / 0.5361 GB, free: 30.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.611/2.16, allocations: 53.03 MB / 0.5879 GB, free: 109 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/2.16, allocations: 278.5 kB / 0.5881 GB, free: 108.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01276/2.173, allocations: 5.863 MB / 0.5939 GB, free: 106.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009543/2.174, allocations: 82.52 kB / 0.5939 GB, free: 106.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003641/2.177, allocations: 4.522 MB / 0.5983 GB, free: 103 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002141/2.18, allocations: 1.355 MB / 0.5997 GB, free: 102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001004/2.181, allocations: 186.8 kB / 0.5998 GB, free: 101.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005215/2.181, allocations: 0.6927 MB / 0.6005 GB, free: 101.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00927/2.19, allocations: 3.92 MB / 0.6044 GB, free: 100 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01221/2.203, allocations: 9.093 MB / 0.6132 GB, free: 90.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01462/2.217, allocations: 5.786 MB / 0.6189 GB, free: 84.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001607/2.218, allocations: 52 kB / 0.6189 GB, free: 84.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05577/2.273, allocations: 16.66 MB / 0.6352 GB, free: 67.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001913/2.274, allocations: 80 kB / 0.6353 GB, free: 67.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003309/2.274, allocations: 184 kB / 0.6355 GB, free: 67.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02852/2.302, allocations: 4.163 MB / 0.6395 GB, free: 63.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.017/2.32, allocations: 2.059 MB / 0.6415 GB, free: 61.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07347/2.393, allocations: 23.84 MB / 0.6648 GB, free: 37.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01094/2.404, allocations: 0.5033 MB / 0.6653 GB, free: 36.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001975/2.406, allocations: 0.5351 MB / 0.6658 GB, free: 36.09 MB / 362.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.007975/2.414, allocations: 3.072 MB / 0.6688 GB, free: 33.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001687/2.416, allocations: 0.5746 MB / 0.6694 GB, free: 32.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03698/2.453, allocations: 10.08 MB / 0.6792 GB, free: 22.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.23e-05/2.453, allocations: 39.83 kB / 0.6793 GB, free: 22.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.01e-05/2.453, allocations: 16 kB / 0.6793 GB, free: 22.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.77e-05/2.453, allocations: 19.94 kB / 0.6793 GB, free: 22.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.314/2.767, allocations: 19.75 MB / 0.6986 GB, free: 98.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.421e-05/2.767, allocations: 2.594 kB / 0.6986 GB, free: 98.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005803/2.773, allocations: 0.5348 MB / 0.6991 GB, free: 98.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02253/2.796, allocations: 3.658 MB / 0.7027 GB, free: 98.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009304/2.797, allocations: 62.91 kB / 0.7027 GB, free: 98.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05185/2.848, allocations: 20.73 MB / 0.723 GB, free: 90.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/2.849, allocations: 0 / 0.723 GB, free: 90.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04736/2.896, allocations: 14.77 MB / 0.7374 GB, free: 85.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004411/2.9, allocations: 1.162 MB / 0.7385 GB, free: 85.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002565/2.903, allocations: 65.38 kB / 0.7386 GB, free: 85.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006465/2.91, allocations: 205.7 kB / 0.7388 GB, free: 85.24 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001641/2.911, allocations: 222.8 kB / 0.739 GB, free: 85.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005615/2.912, allocations: 99.69 kB / 0.7391 GB, free: 85.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.009783/2.922, allocations: 4.16 MB / 0.7432 GB, free: 81.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.62e-07/2.922, allocations: 3.938 kB / 0.7432 GB, free: 81.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01136/2.933, allocations: 1.877 MB / 0.745 GB, free: 79.73 MB / 362.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.001547/2.935, allocations: 232.1 kB / 0.7452 GB, free: 79.51 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.02408/2.959, allocations: 9.982 MB / 0.755 GB, free: 69.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/2.959, allocations: 0.8594 kB / 0.755 GB, free: 69.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009914/2.969, allocations: 3.935 MB / 0.7588 GB, free: 65.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006657/2.975, allocations: 0.7126 MB / 0.7595 GB, free: 65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04353/3.019, allocations: 19.29 MB / 0.7784 GB, free: 45.76 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01037/3.029, allocations: 5.013 MB / 0.7833 GB, free: 40.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002854/3.032, allocations: 459.4 kB / 0.7837 GB, free: 40.27 MB / 362.7 MB Notification: Performance of SimCode: time 2.014e-06/3.032, allocations: 0 / 0.7837 GB, free: 40.27 MB / 362.7 MB Notification: Performance of Templates: time 0.5896/3.622, allocations: 147 MB / 0.9272 GB, free: 32.1 MB / 378.7 MB