Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,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.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 1.856/1.856, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.306e-05/3.33e-05, allocations: 4 kB / 273.1 MB, free: 3.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.09027, allocations: 48.69 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3723/0.4626, allocations: 98.82 MB / 420.6 MB, free: 12.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.4628, allocations: 70.84 kB / 420.6 MB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7576/1.221, allocations: 135.7 MB / 0.5433 GB, free: 73.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.089e-06/1.221, allocations: 0 / 0.5433 GB, free: 73.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004772/1.221, allocations: 133.2 kB / 0.5434 GB, free: 73.9 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.02295/1.244, allocations: 7.043 MB / 0.5503 GB, free: 71.31 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/1.244, allocations: 6.875 kB / 0.5503 GB, free: 71.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04253/1.287, allocations: 7.563 MB / 0.5577 GB, free: 70.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02876/1.315, allocations: 9.777 MB / 0.5672 GB, free: 69.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005591/1.316, allocations: 492.3 kB / 0.5677 GB, free: 69.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002901/1.319, allocations: 0.6473 MB / 0.5683 GB, free: 69.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04315/1.362, allocations: 16.47 MB / 0.5844 GB, free: 65.97 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000403/1.363, allocations: 103.2 kB / 0.5845 GB, free: 65.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002233/1.365, allocations: 312.5 kB / 0.5848 GB, free: 65.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002807/1.368, allocations: 1.577 MB / 0.5863 GB, free: 65.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03653/1.404, allocations: 13.22 MB / 0.5992 GB, free: 63.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09511/1.499, allocations: 74.33 MB / 0.6718 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03071/1.53, allocations: 7.627 MB / 0.6793 GB, free: 8.559 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007723/1.538, allocations: 3.916 MB / 0.6831 GB, free: 4.945 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3012/1.839, allocations: 18.6 MB / 0.7013 GB, free: 82.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.892e-05/1.839, allocations: 64.64 kB / 0.7013 GB, free: 82.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 8.167e-06/1.839, allocations: 1.625 kB / 0.7013 GB, free: 82.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.1772/2.016, allocations: 40.41 MB / 0.7408 GB, free: 78.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/2.017, allocations: 271.5 kB / 0.7411 GB, free: 78.03 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/2.028, allocations: 5.297 MB / 0.7462 GB, free: 77.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007384/2.029, allocations: 80.45 kB / 0.7463 GB, free: 77.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00313/2.032, allocations: 4.551 MB / 0.7508 GB, free: 74.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00168/2.033, allocations: 1.33 MB / 0.7521 GB, free: 73.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008818/2.034, allocations: 184.7 kB / 0.7522 GB, free: 73.31 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005324/2.035, allocations: 0.6937 MB / 0.7529 GB, free: 72.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007596/2.043, allocations: 3.657 MB / 0.7565 GB, free: 71.56 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/2.053, allocations: 8.785 MB / 0.7651 GB, free: 63.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/2.064, allocations: 5.569 MB / 0.7705 GB, free: 61.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001333/2.064, allocations: 58 kB / 0.7706 GB, free: 61.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.04428/2.108, allocations: 15.66 MB / 0.7858 GB, free: 53.76 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/2.109, allocations: 80 kB / 0.7859 GB, free: 53.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/2.109, allocations: 184 kB / 0.7861 GB, free: 53.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01638/2.125, allocations: 4.104 MB / 0.7901 GB, free: 50.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008684/2.134, allocations: 2.03 MB / 0.7921 GB, free: 48.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03943/2.173, allocations: 21.77 MB / 0.8133 GB, free: 30.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009782/2.183, allocations: 0.5444 MB / 0.8139 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001988/2.185, allocations: 0.5391 MB / 0.8144 GB, free: 29.25 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 (1077): * Single equations (assignments): 1072 * 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 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00289/2.188, allocations: 0.7882 MB / 0.8152 GB, free: 28.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001437/2.19, allocations: 0.5708 MB / 0.8157 GB, free: 27.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02723/2.217, allocations: 9.66 MB / 0.8252 GB, free: 20.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.278e-05/2.217, allocations: 36 kB / 0.8252 GB, free: 20.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-05/2.217, allocations: 16 kB / 0.8252 GB, free: 20.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-05/2.217, allocations: 18.61 kB / 0.8252 GB, free: 20.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05145/2.268, allocations: 19.02 MB / 0.8438 GB, free: 1.859 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.432e-05/2.269, allocations: 4 kB / 0.8438 GB, free: 1.855 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003344/2.272, allocations: 0.4954 MB / 0.8443 GB, free: 1.359 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01626/2.288, allocations: 3.607 MB / 0.8478 GB, free: 13.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008162/2.289, allocations: 65.47 kB / 0.8479 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3051/2.594, allocations: 18.71 MB / 0.8662 GB, free: 85.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.371e-06/2.594, allocations: 0 / 0.8662 GB, free: 85.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03449/2.629, allocations: 14.06 MB / 0.8799 GB, free: 84.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003434/2.632, allocations: 1.114 MB / 0.881 GB, free: 84.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001348/2.634, allocations: 53.16 kB / 0.881 GB, free: 84.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004019/2.638, allocations: 239.4 kB / 0.8813 GB, free: 84.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000939/2.639, allocations: 218.5 kB / 0.8815 GB, free: 84.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004214/2.639, allocations: 87.83 kB / 0.8815 GB, free: 84.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007871/2.647, allocations: 3.701 MB / 0.8852 GB, free: 84.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.07e-06/2.647, allocations: 0 / 0.8852 GB, free: 84.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01028/2.657, allocations: 1.839 MB / 0.887 GB, free: 84.18 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 (264): * Single equations (assignments): 259 * 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.0007122/2.658, allocations: 227.6 kB / 0.8872 GB, free: 84.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01731/2.675, allocations: 9.132 MB / 0.8961 GB, free: 82.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.765e-06/2.675, allocations: 0 / 0.8961 GB, free: 82.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006993/2.682, allocations: 3.623 MB / 0.8996 GB, free: 81.26 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004476/2.687, allocations: 0.7224 MB / 0.9003 GB, free: 80.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03203/2.719, allocations: 13.79 MB / 0.9138 GB, free: 76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01031/2.729, allocations: 5.004 MB / 0.9187 GB, free: 74.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002241/2.732, allocations: 447.4 kB / 0.9191 GB, free: 74.41 MB / 458.7 MB Notification: Performance of SimCode: time 2.086e-06/2.732, allocations: 0 / 0.9191 GB, free: 74.41 MB / 458.7 MB Notification: Performance of Templates: time 0.4718/3.204, allocations: 144.3 MB / 1.06 GB, free: 102.6 MB / 474.7 MB