Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.281/2.281, allocations: 270 MB / 282.7 MB, free: 1.746 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.878e-05/2.89e-05, allocations: 4 kB / 347 MB, free: 3.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3209, allocations: 61.88 MB / 408.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1773/0.4982, allocations: 114.4 MB / 0.511 GB, free: 8.184 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4985, allocations: 75.97 kB / 0.5111 GB, free: 8.109 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8319/1.33, allocations: 137.9 MB / 0.6457 GB, free: 9.789 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.878e-06/1.33, allocations: 0 / 0.6457 GB, free: 9.789 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004287/1.331, allocations: 132 kB / 0.6459 GB, free: 9.66 MB / 458.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.02355/1.354, allocations: 7.023 MB / 0.6527 GB, free: 2.562 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/1.355, allocations: 11.97 kB / 0.6527 GB, free: 2.551 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04146/1.396, allocations: 7.553 MB / 0.6601 GB, free: 10.98 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02905/1.425, allocations: 9.204 MB / 0.6691 GB, free: 1.688 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006822/1.426, allocations: 488.9 kB / 0.6696 GB, free: 1.207 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002856/1.429, allocations: 0.6558 MB / 0.6702 GB, free: 0.5508 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04528/1.474, allocations: 16.49 MB / 0.6863 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004358/1.474, allocations: 91.19 kB / 0.6864 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002354/1.477, allocations: 315.8 kB / 0.6867 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003386/1.48, allocations: 1.584 MB / 0.6882 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03784/1.518, allocations: 13.23 MB / 0.7012 GB, free: 15.37 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4157/1.934, allocations: 74.24 MB / 0.7737 GB, free: 46.11 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03026/1.964, allocations: 7.619 MB / 0.7811 GB, free: 45.42 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006588/1.971, allocations: 3.916 MB / 0.7849 GB, free: 45.37 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03584/2.007, allocations: 18.56 MB / 0.8031 GB, free: 39.74 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.888e-05/2.007, allocations: 68.22 kB / 0.8031 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 7.587e-06/2.007, allocations: 0 / 0.8031 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.1655/2.172, allocations: 38.59 MB / 0.8408 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.995e-05/2.173, allocations: 273.1 kB / 0.8411 GB, free: 28.89 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0102/2.183, allocations: 5.266 MB / 0.8462 GB, free: 26.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007053/2.183, allocations: 85.7 kB / 0.8463 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003133/2.187, allocations: 4.56 MB / 0.8507 GB, free: 22.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001632/2.188, allocations: 1.341 MB / 0.8521 GB, free: 21.11 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000836/2.189, allocations: 180 kB / 0.8522 GB, free: 20.94 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005088/2.19, allocations: 0.7012 MB / 0.8529 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006938/2.197, allocations: 3.638 MB / 0.8565 GB, free: 17.05 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01012/2.207, allocations: 8.788 MB / 0.865 GB, free: 6.438 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/2.217, allocations: 5.56 MB / 0.8705 GB, free: 1.918 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001345/2.217, allocations: 52 kB / 0.8705 GB, free: 1.867 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.04622/2.263, allocations: 15.28 MB / 0.8854 GB, free: 6.523 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001602/2.263, allocations: 84 kB / 0.8855 GB, free: 6.441 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002676/2.264, allocations: 183.9 kB / 0.8857 GB, free: 6.266 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01721/2.281, allocations: 4.025 MB / 0.8896 GB, free: 3.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009343/2.29, allocations: 2.036 MB / 0.8916 GB, free: 1.723 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04613/2.336, allocations: 20.94 MB / 0.9121 GB, free: 84 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01135/2.348, allocations: 0.6224 MB / 0.9127 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002148/2.35, allocations: 0.5278 MB / 0.9132 GB, free: 15.29 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1081): * Single equations (assignments): 1076 * 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%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002303/2.352, allocations: 0.7965 MB / 0.914 GB, free: 14.49 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/2.354, allocations: 0.5708 MB / 0.9145 GB, free: 13.91 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02883/2.383, allocations: 9.442 MB / 0.9238 GB, free: 4.625 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.364e-05/2.383, allocations: 36 kB / 0.9238 GB, free: 4.59 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.131e-05/2.383, allocations: 16 kB / 0.9238 GB, free: 4.574 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.529e-05/2.383, allocations: 15.94 kB / 0.9238 GB, free: 4.559 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3801/2.763, allocations: 18.85 MB / 0.9422 GB, free: 131.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.403e-05/2.763, allocations: 3.906 kB / 0.9422 GB, free: 131.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003657/2.767, allocations: 0.5 MB / 0.9427 GB, free: 131.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0171/2.784, allocations: 3.621 MB / 0.9463 GB, free: 131.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006862/2.785, allocations: 62.23 kB / 0.9463 GB, free: 131.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0374/2.822, allocations: 18.72 MB / 0.9646 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.413e-06/2.822, allocations: 3.812 kB / 0.9646 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03302/2.855, allocations: 13.89 MB / 0.9782 GB, free: 127.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00168/2.857, allocations: 0.5871 MB / 0.9787 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001604/2.859, allocations: 58.84 kB / 0.9788 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004318/2.863, allocations: 234.1 kB / 0.979 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009702/2.864, allocations: 221.5 kB / 0.9792 GB, free: 126.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000432/2.864, allocations: 90.09 kB / 0.9793 GB, free: 126.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.007059/2.871, allocations: 3.678 MB / 0.9829 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.013e-06/2.871, allocations: 0 / 0.9829 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01047/2.882, allocations: 1.84 MB / 0.9847 GB, free: 125.3 MB / 0.5573 GB 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 (263): * Single equations (assignments): 258 * 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%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001056/2.883, allocations: 234.8 kB / 0.9849 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.018/2.901, allocations: 9.095 MB / 0.9938 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.123e-06/2.901, allocations: 0 / 0.9938 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00742/2.909, allocations: 3.626 MB / 0.9974 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004818/2.913, allocations: 0.7109 MB / 0.998 GB, free: 120.4 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03067/2.944, allocations: 13.78 MB / 1.011 GB, free: 115.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008446/2.953, allocations: 4.994 MB / 1.016 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002142/2.955, allocations: 448.4 kB / 1.017 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of SimCode: time 2.03e-06/2.955, allocations: 0 / 1.017 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.5158/3.471, allocations: 143.9 MB / 1.157 GB, free: 129.2 MB / 0.5573 GB