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.803/1.803, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.217e-05, allocations: 3.219 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07797/0.07802, allocations: 44.5 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3521/0.4302, allocations: 96.77 MB / 396.6 MB, free: 18.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.4305, allocations: 84.52 kB / 396.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7748/1.205, allocations: 135.7 MB / 0.5199 GB, free: 55.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.448e-06/1.205, allocations: 0 / 0.5199 GB, free: 55.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004999/1.206, allocations: 133.5 kB / 0.52 GB, free: 55.55 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.02422/1.23, allocations: 7.046 MB / 0.5269 GB, free: 53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/1.23, allocations: 14 kB / 0.5269 GB, free: 53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04208/1.272, allocations: 7.558 MB / 0.5343 GB, free: 52.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0282/1.301, allocations: 9.683 MB / 0.5438 GB, free: 51.63 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005474/1.301, allocations: 499.3 kB / 0.5443 GB, free: 51.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002891/1.304, allocations: 0.6522 MB / 0.5449 GB, free: 51.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04215/1.346, allocations: 16.49 MB / 0.561 GB, free: 47.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003847/1.347, allocations: 103.3 kB / 0.5611 GB, free: 47.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001996/1.349, allocations: 312.4 kB / 0.5614 GB, free: 47.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003014/1.352, allocations: 1.578 MB / 0.5629 GB, free: 47.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03598/1.388, allocations: 13.24 MB / 0.5759 GB, free: 47.01 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0997/1.487, allocations: 74.34 MB / 0.6485 GB, free: 17.65 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02891/1.516, allocations: 7.663 MB / 0.6559 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007993/1.524, allocations: 3.983 MB / 0.6598 GB, free: 7.598 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2836/1.808, allocations: 18.7 MB / 0.6781 GB, free: 81.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.116e-05/1.808, allocations: 71.7 kB / 0.6782 GB, free: 81.37 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 8.97e-06/1.808, allocations: 0 / 0.6782 GB, free: 81.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.1761/1.984, allocations: 40.3 MB / 0.7175 GB, free: 77.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.905e-05/1.984, allocations: 273.7 kB / 0.7178 GB, free: 76.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/1.996, allocations: 5.29 MB / 0.7229 GB, free: 76.39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007591/1.996, allocations: 89.66 kB / 0.723 GB, free: 76.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00338/2, allocations: 4.556 MB / 0.7275 GB, free: 74.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001847/2.002, allocations: 1.348 MB / 0.7288 GB, free: 73.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001354/2.003, allocations: 182 kB / 0.729 GB, free: 73.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00068/2.004, allocations: 0.6989 MB / 0.7297 GB, free: 73.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008088/2.012, allocations: 3.685 MB / 0.7332 GB, free: 72.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01114/2.023, allocations: 8.82 MB / 0.7419 GB, free: 63.86 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/2.034, allocations: 5.598 MB / 0.7473 GB, free: 62.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001505/2.034, allocations: 51.91 kB / 0.7474 GB, free: 62.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04308/2.077, allocations: 15.67 MB / 0.7627 GB, free: 55.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001334/2.078, allocations: 86.77 kB / 0.7628 GB, free: 54.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002012/2.078, allocations: 183.9 kB / 0.7629 GB, free: 54.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01589/2.094, allocations: 4.08 MB / 0.7669 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009591/2.103, allocations: 2.035 MB / 0.7689 GB, free: 50.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04082/2.144, allocations: 21.74 MB / 0.7901 GB, free: 31.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01012/2.154, allocations: 0.5462 MB / 0.7907 GB, free: 31.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001957/2.156, allocations: 0.5326 MB / 0.7912 GB, free: 30.56 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.002291/2.159, allocations: 0.8073 MB / 0.792 GB, free: 29.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/2.16, allocations: 0.5784 MB / 0.7926 GB, free: 29.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02731/2.187, allocations: 9.67 MB / 0.802 GB, free: 21.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.912e-05/2.188, allocations: 36 kB / 0.802 GB, free: 21.69 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.11e-05/2.188, allocations: 19.95 kB / 0.8021 GB, free: 21.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.438e-05/2.188, allocations: 21.34 kB / 0.8021 GB, free: 21.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3091/2.497, allocations: 19.09 MB / 0.8207 GB, free: 67.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.56e-05/2.497, allocations: 0.5625 kB / 0.8207 GB, free: 67.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003819/2.501, allocations: 0.5114 MB / 0.8212 GB, free: 67.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01614/2.517, allocations: 3.562 MB / 0.8247 GB, free: 67.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000797/2.518, allocations: 65.14 kB / 0.8248 GB, free: 67.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03804/2.556, allocations: 18.71 MB / 0.843 GB, free: 64.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/2.556, allocations: 4.219 kB / 0.843 GB, free: 64.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03456/2.59, allocations: 14.13 MB / 0.8568 GB, free: 63.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003905/2.594, allocations: 1.117 MB / 0.8579 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001794/2.596, allocations: 56.97 kB / 0.858 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004713/2.601, allocations: 228.5 kB / 0.8582 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001225/2.602, allocations: 229 kB / 0.8584 GB, free: 63.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000522/2.603, allocations: 90.61 kB / 0.8585 GB, free: 63.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008848/2.612, allocations: 3.703 MB / 0.8621 GB, free: 63.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.195e-06/2.612, allocations: 2.719 kB / 0.8621 GB, free: 63.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01169/2.623, allocations: 1.845 MB / 0.8639 GB, free: 63.63 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.001144/2.625, allocations: 232.9 kB / 0.8641 GB, free: 63.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01869/2.643, allocations: 9.22 MB / 0.8731 GB, free: 62.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.427e-06/2.643, allocations: 3.281 kB / 0.8732 GB, free: 62.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007591/2.651, allocations: 3.666 MB / 0.8767 GB, free: 60.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005345/2.656, allocations: 0.7147 MB / 0.8774 GB, free: 60.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03308/2.689, allocations: 13.83 MB / 0.8909 GB, free: 55.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01009/2.7, allocations: 5.01 MB / 0.8958 GB, free: 53.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002362/2.702, allocations: 449.3 kB / 0.8963 GB, free: 53.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.651e-06/2.702, allocations: 6.359 kB / 0.8963 GB, free: 53.73 MB / 426.7 MB Notification: Performance of Templates: time 0.5141/3.216, allocations: 144.7 MB / 1.038 GB, free: 58.57 MB / 442.7 MB