Running command: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 1.861/1.861, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.545e-05/3.563e-05, allocations: 7.984 kB / 273.1 MB, free: 3.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08702/0.08707, allocations: 48.69 MB / 321.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.373/0.4602, allocations: 98.92 MB / 420.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.4604, allocations: 70.72 kB / 420.7 MB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7695/1.23, allocations: 135.6 MB / 0.5433 GB, free: 74.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.787e-06/1.23, allocations: 0 / 0.5433 GB, free: 74.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004824/1.23, allocations: 136.2 kB / 0.5435 GB, free: 74.14 MB / 426.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.02331/1.254, allocations: 7.047 MB / 0.5504 GB, free: 71.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/1.254, allocations: 11.88 kB / 0.5504 GB, free: 71.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04036/1.294, allocations: 7.559 MB / 0.5577 GB, free: 71.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0273/1.322, allocations: 9.787 MB / 0.5673 GB, free: 70.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005288/1.322, allocations: 490.4 kB / 0.5678 GB, free: 70.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00271/1.325, allocations: 0.6544 MB / 0.5684 GB, free: 70.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04054/1.365, allocations: 16.48 MB / 0.5845 GB, free: 66.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004061/1.366, allocations: 98.55 kB / 0.5846 GB, free: 66.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00219/1.368, allocations: 311.5 kB / 0.5849 GB, free: 66.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002933/1.371, allocations: 1.581 MB / 0.5864 GB, free: 66.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03521/1.406, allocations: 13.23 MB / 0.5994 GB, free: 63.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09472/1.501, allocations: 74.36 MB / 0.672 GB, free: 14.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02977/1.531, allocations: 7.666 MB / 0.6795 GB, free: 8.129 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007936/1.539, allocations: 3.981 MB / 0.6834 GB, free: 4.457 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.296/1.835, allocations: 18.69 MB / 0.7016 GB, free: 82.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/1.835, allocations: 68.31 kB / 0.7017 GB, free: 82.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 8.352e-06/1.835, allocations: 0 / 0.7017 GB, free: 82.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=367): time 0.1678/2.003, allocations: 40.3 MB / 0.741 GB, free: 78.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.258e-05/2.003, allocations: 276 kB / 0.7413 GB, free: 78.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/2.014, allocations: 5.296 MB / 0.7465 GB, free: 77.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000783/2.015, allocations: 81.02 kB / 0.7465 GB, free: 77.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003411/2.018, allocations: 4.552 MB / 0.751 GB, free: 74.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001766/2.02, allocations: 1.352 MB / 0.7523 GB, free: 73.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009384/2.021, allocations: 186.2 kB / 0.7525 GB, free: 72.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005736/2.022, allocations: 0.6947 MB / 0.7532 GB, free: 72.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007724/2.03, allocations: 3.69 MB / 0.7568 GB, free: 71.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01081/2.04, allocations: 8.818 MB / 0.7654 GB, free: 62.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/2.051, allocations: 5.594 MB / 0.7708 GB, free: 61.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001402/2.052, allocations: 51.12 kB / 0.7709 GB, free: 61.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04245/2.094, allocations: 15.68 MB / 0.7862 GB, free: 53.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001362/2.094, allocations: 84.94 kB / 0.7863 GB, free: 53.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001989/2.094, allocations: 180 kB / 0.7864 GB, free: 52.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01573/2.11, allocations: 4.08 MB / 0.7904 GB, free: 50.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008918/2.119, allocations: 2.04 MB / 0.7924 GB, free: 48.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04041/2.16, allocations: 21.73 MB / 0.8136 GB, free: 29.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01006/2.17, allocations: 0.554 MB / 0.8142 GB, free: 29.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002007/2.172, allocations: 0.531 MB / 0.8147 GB, free: 28.76 MB / 442.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.002442/2.174, allocations: 0.8046 MB / 0.8155 GB, free: 27.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001405/2.176, allocations: 0.5669 MB / 0.816 GB, free: 27.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02715/2.203, allocations: 9.678 MB / 0.8255 GB, free: 19.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.507e-05/2.203, allocations: 40.7 kB / 0.8255 GB, free: 19.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.789e-05/2.203, allocations: 16 kB / 0.8255 GB, free: 19.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-05/2.203, allocations: 22 kB / 0.8256 GB, free: 19.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05051/2.254, allocations: 19.09 MB / 0.8442 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.425e-05/2.254, allocations: 7.938 kB / 0.8442 GB, free: 1.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003505/2.257, allocations: 0.5032 MB / 0.8447 GB, free: 0.7656 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01605/2.273, allocations: 3.56 MB / 0.8482 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008113/2.274, allocations: 63.94 kB / 0.8482 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.304/2.578, allocations: 18.73 MB / 0.8665 GB, free: 85.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.632e-06/2.578, allocations: 1.312 kB / 0.8665 GB, free: 85.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03348/2.612, allocations: 14.13 MB / 0.8803 GB, free: 84.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003505/2.615, allocations: 1.115 MB / 0.8814 GB, free: 84.31 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001392/2.617, allocations: 62.98 kB / 0.8815 GB, free: 84.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004401/2.621, allocations: 229.2 kB / 0.8817 GB, free: 84.31 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/2.622, allocations: 218 kB / 0.8819 GB, free: 84.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004176/2.623, allocations: 94.59 kB / 0.882 GB, free: 84.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007758/2.63, allocations: 3.709 MB / 0.8856 GB, free: 84.06 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.147e-06/2.63, allocations: 0 / 0.8856 GB, free: 84.06 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01058/2.641, allocations: 1.845 MB / 0.8874 GB, free: 84.06 MB / 458.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.0009518/2.642, allocations: 226.6 kB / 0.8876 GB, free: 83.97 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01812/2.66, allocations: 9.229 MB / 0.8967 GB, free: 82.33 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.217e-06/2.66, allocations: 2.094 kB / 0.8967 GB, free: 82.33 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007174/2.667, allocations: 3.659 MB / 0.9002 GB, free: 80.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004559/2.672, allocations: 0.7215 MB / 0.9009 GB, free: 80.51 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03066/2.703, allocations: 13.83 MB / 0.9144 GB, free: 75.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009595/2.712, allocations: 5.007 MB / 0.9193 GB, free: 73.97 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002213/2.714, allocations: 450 kB / 0.9198 GB, free: 73.96 MB / 458.7 MB Notification: Performance of SimCode: time 1.605e-06/2.714, allocations: 2.531 kB / 0.9198 GB, free: 73.96 MB / 458.7 MB Notification: Performance of Templates: time 0.5371/3.252, allocations: 144.6 MB / 1.061 GB, free: 103.7 MB / 474.7 MB