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_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 1.849/1.849, allocations: 209.3 MB / 221.5 MB, free: 1.855 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.241e-05, allocations: 0 / 273.1 MB, free: 244 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08824, allocations: 48.7 MB / 321.8 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3652/0.4535, allocations: 98.81 MB / 420.6 MB, free: 6.859 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.4537, allocations: 75.95 kB / 420.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7475/1.201, allocations: 135.7 MB / 0.5433 GB, free: 91.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.137e-06/1.201, allocations: 4 kB / 0.5433 GB, free: 91.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004483/1.202, allocations: 133.8 kB / 0.5434 GB, free: 91.19 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.02298/1.225, allocations: 7.031 MB / 0.5503 GB, free: 88.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/1.225, allocations: 7.656 kB / 0.5503 GB, free: 88.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04144/1.266, allocations: 7.568 MB / 0.5577 GB, free: 88.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02817/1.294, allocations: 9.78 MB / 0.5672 GB, free: 85.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005754/1.295, allocations: 0.4891 MB / 0.5677 GB, free: 84.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002912/1.298, allocations: 0.6496 MB / 0.5683 GB, free: 84.74 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04145/1.339, allocations: 16.47 MB / 0.5844 GB, free: 69.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003972/1.34, allocations: 103.1 kB / 0.5845 GB, free: 69.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00228/1.342, allocations: 318.5 kB / 0.5848 GB, free: 69.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00261/1.345, allocations: 1.575 MB / 0.5864 GB, free: 67.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03351/1.378, allocations: 13.22 MB / 0.5993 GB, free: 54.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4314/1.81, allocations: 74.2 MB / 0.6717 GB, free: 36.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03024/1.84, allocations: 7.627 MB / 0.6792 GB, free: 36.31 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007315/1.847, allocations: 3.914 MB / 0.683 GB, free: 36.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03666/1.884, allocations: 18.61 MB / 0.7012 GB, free: 31.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.687e-05/1.884, allocations: 71.27 kB / 0.7013 GB, free: 31.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.319e-06/1.884, allocations: 0 / 0.7013 GB, free: 31.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=361): time 0.1856/2.07, allocations: 40.41 MB / 0.7407 GB, free: 20.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.314e-05/2.07, allocations: 269.9 kB / 0.741 GB, free: 20.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01287/2.083, allocations: 5.296 MB / 0.7461 GB, free: 18.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008109/2.084, allocations: 84.23 kB / 0.7462 GB, free: 18.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003934/2.088, allocations: 4.764 MB / 0.7509 GB, free: 14.85 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001921/2.09, allocations: 1.33 MB / 0.7522 GB, free: 13.87 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/2.091, allocations: 189 kB / 0.7524 GB, free: 13.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008312/2.092, allocations: 0.6864 MB / 0.753 GB, free: 13.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00783/2.1, allocations: 3.661 MB / 0.7566 GB, free: 9.828 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01111/2.111, allocations: 8.779 MB / 0.7652 GB, free: 15.23 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/2.123, allocations: 5.57 MB / 0.7706 GB, free: 10.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001665/2.123, allocations: 52 kB / 0.7707 GB, free: 10.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.0475/2.171, allocations: 15.89 MB / 0.7862 GB, free: 13.92 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001811/2.171, allocations: 84 kB / 0.7863 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002859/2.171, allocations: 187.1 kB / 0.7864 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01771/2.189, allocations: 4.104 MB / 0.7904 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009793/2.199, allocations: 2.027 MB / 0.7924 GB, free: 8.453 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04884/2.248, allocations: 21.76 MB / 0.8137 GB, free: 2.441 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009668/2.258, allocations: 0.5444 MB / 0.8142 GB, free: 1.898 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002011/2.26, allocations: 0.539 MB / 0.8147 GB, free: 1.359 MB / 474.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.002292/2.262, allocations: 0.7988 MB / 0.8155 GB, free: 0.5547 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001567/2.264, allocations: 0.5785 MB / 0.8161 GB, free: 15.97 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02924/2.293, allocations: 9.658 MB / 0.8255 GB, free: 6.258 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.38e-05/2.293, allocations: 36 kB / 0.8255 GB, free: 6.223 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.025e-05/2.293, allocations: 16 kB / 0.8256 GB, free: 6.207 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.667e-05/2.293, allocations: 23.83 kB / 0.8256 GB, free: 6.184 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3565/2.65, allocations: 19.01 MB / 0.8441 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.958e-05/2.65, allocations: 3.609 kB / 0.8441 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006359/2.656, allocations: 0.4992 MB / 0.8446 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0223/2.678, allocations: 3.61 MB / 0.8482 GB, free: 133 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001055/2.68, allocations: 59.41 kB / 0.8482 GB, free: 133 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05346/2.733, allocations: 18.72 MB / 0.8665 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.512e-06/2.733, allocations: 0 / 0.8665 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03478/2.768, allocations: 14.05 MB / 0.8802 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003775/2.772, allocations: 1.118 MB / 0.8813 GB, free: 124.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001713/2.773, allocations: 62.36 kB / 0.8814 GB, free: 124.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004515/2.778, allocations: 234.2 kB / 0.8816 GB, free: 124.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001001/2.779, allocations: 218.5 kB / 0.8818 GB, free: 124.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004282/2.779, allocations: 92.52 kB / 0.8819 GB, free: 124.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008255/2.788, allocations: 3.708 MB / 0.8855 GB, free: 123.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.28e-06/2.788, allocations: 0 / 0.8855 GB, free: 123.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01047/2.798, allocations: 1.843 MB / 0.8873 GB, free: 123.1 MB / 490.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.00103/2.799, allocations: 219 kB / 0.8875 GB, free: 123 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01779/2.817, allocations: 9.134 MB / 0.8964 GB, free: 120 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/2.817, allocations: 1.875 kB / 0.8964 GB, free: 120 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007558/2.825, allocations: 3.622 MB / 0.9 GB, free: 118.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004718/2.829, allocations: 0.7213 MB / 0.9007 GB, free: 118.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02978/2.859, allocations: 13.07 MB / 0.9134 GB, free: 111.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008806/2.868, allocations: 4.996 MB / 0.9183 GB, free: 107.8 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01022/2.878, allocations: 2.785 MB / 0.921 GB, free: 106.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001882/2.88, allocations: 388.5 kB / 0.9214 GB, free: 105.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.739e-06/2.88, allocations: 0 / 0.9214 GB, free: 105.8 MB / 490.7 MB Notification: Performance of Templates: time 0.1719/3.052, allocations: 74.29 MB / 0.994 GB, free: 38.6 MB / 490.7 MB