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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.456/2.456, allocations: 270 MB / 283.6 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.623e-05/3.656e-05, allocations: 8 kB / 348.4 MB, free: 2.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3381, allocations: 61.88 MB / 410.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.18/0.5182, allocations: 114.4 MB / 0.5124 GB, free: 8.148 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.5185, allocations: 75.95 kB / 0.5125 GB, free: 8.074 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7964/1.315, allocations: 137.9 MB / 0.6471 GB, free: 9.781 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.815e-06/1.315, allocations: 0 / 0.6471 GB, free: 9.781 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004457/1.315, allocations: 136 kB / 0.6473 GB, free: 9.648 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.02439/1.34, allocations: 7.024 MB / 0.6541 GB, free: 2.547 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/1.34, allocations: 11.97 kB / 0.6541 GB, free: 2.535 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04525/1.385, allocations: 7.561 MB / 0.6615 GB, free: 10.95 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0302/1.415, allocations: 9.196 MB / 0.6705 GB, free: 1.672 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007209/1.416, allocations: 488.9 kB / 0.671 GB, free: 1.191 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003008/1.419, allocations: 0.6558 MB / 0.6716 GB, free: 0.5352 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05526/1.475, allocations: 16.5 MB / 0.6877 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003855/1.475, allocations: 99.11 kB / 0.6878 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001816/1.477, allocations: 311.8 kB / 0.6881 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003186/1.48, allocations: 1.576 MB / 0.6896 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03863/1.519, allocations: 13.23 MB / 0.7026 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4496/1.968, allocations: 74.24 MB / 0.7751 GB, free: 46.26 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03002/1.998, allocations: 7.619 MB / 0.7825 GB, free: 45.57 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006878/2.005, allocations: 3.916 MB / 0.7863 GB, free: 45.52 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03634/2.042, allocations: 18.56 MB / 0.8044 GB, free: 39.78 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.676e-05/2.042, allocations: 66.28 kB / 0.8045 GB, free: 39.72 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 6.858e-06/2.042, allocations: 1.938 kB / 0.8045 GB, free: 39.72 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.1667/2.208, allocations: 38.59 MB / 0.8422 GB, free: 29.21 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/2.209, allocations: 270.5 kB / 0.8425 GB, free: 28.93 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01094/2.22, allocations: 5.27 MB / 0.8476 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007074/2.22, allocations: 85.7 kB / 0.8477 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003406/2.224, allocations: 4.76 MB / 0.8523 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001707/2.225, allocations: 1.338 MB / 0.8536 GB, free: 21.03 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008902/2.226, allocations: 184 kB / 0.8538 GB, free: 20.85 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005223/2.227, allocations: 0.6988 MB / 0.8545 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007226/2.234, allocations: 3.641 MB / 0.8581 GB, free: 16.97 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01032/2.244, allocations: 8.785 MB / 0.8666 GB, free: 6.359 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/2.255, allocations: 5.567 MB / 0.8721 GB, free: 1.832 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001357/2.255, allocations: 52 kB / 0.8721 GB, free: 1.781 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.05166/2.307, allocations: 15.53 MB / 0.8873 GB, free: 6.285 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002571/2.307, allocations: 84 kB / 0.8874 GB, free: 6.203 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004491/2.308, allocations: 184.1 kB / 0.8875 GB, free: 6.023 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03192/2.339, allocations: 4.03 MB / 0.8915 GB, free: 3.258 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01765/2.357, allocations: 2.037 MB / 0.8935 GB, free: 1.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0766/2.434, allocations: 21.04 MB / 0.914 GB, free: 84 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01016/2.444, allocations: 0.5759 MB / 0.9146 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00193/2.446, allocations: 0.5218 MB / 0.9151 GB, free: 15.12 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.002026/2.448, allocations: 0.8049 MB / 0.9159 GB, free: 14.3 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/2.45, allocations: 0.5745 MB / 0.9164 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02895/2.479, allocations: 9.435 MB / 0.9256 GB, free: 4.23 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.099e-05/2.479, allocations: 36 kB / 0.9257 GB, free: 4.195 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.504e-05/2.479, allocations: 16 kB / 0.9257 GB, free: 4.18 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.742e-05/2.479, allocations: 19.94 kB / 0.9257 GB, free: 4.16 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4373/2.916, allocations: 18.85 MB / 0.9441 GB, free: 131.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.392e-05/2.916, allocations: 3.312 kB / 0.9441 GB, free: 131.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003408/2.92, allocations: 0.4941 MB / 0.9446 GB, free: 131.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01647/2.936, allocations: 3.617 MB / 0.9481 GB, free: 131.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007438/2.937, allocations: 60.17 kB / 0.9482 GB, free: 131.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03745/2.974, allocations: 18.73 MB / 0.9665 GB, free: 128.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.158e-06/2.974, allocations: 3.031 kB / 0.9665 GB, free: 128.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03449/3.009, allocations: 13.9 MB / 0.9801 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/3.011, allocations: 0.5832 MB / 0.9806 GB, free: 126.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001758/3.012, allocations: 55.72 kB / 0.9807 GB, free: 126.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004487/3.017, allocations: 233.3 kB / 0.9809 GB, free: 126.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001066/3.018, allocations: 223.8 kB / 0.9811 GB, free: 126.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004017/3.018, allocations: 90.69 kB / 0.9812 GB, free: 126.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.007919/3.026, allocations: 3.678 MB / 0.9848 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.161e-06/3.026, allocations: 0 / 0.9848 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01078/3.037, allocations: 1.844 MB / 0.9866 GB, free: 125.2 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.001026/3.038, allocations: 227.6 kB / 0.9868 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01847/3.057, allocations: 9.09 MB / 0.9957 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.856e-06/3.057, allocations: 1.594 kB / 0.9957 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007748/3.065, allocations: 3.626 MB / 0.9992 GB, free: 120.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004743/3.069, allocations: 0.7176 MB / 0.9999 GB, free: 120.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03131/3.101, allocations: 13.05 MB / 1.013 GB, free: 115.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/3.111, allocations: 5.004 MB / 1.018 GB, free: 112.9 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01002/3.121, allocations: 2.782 MB / 1.02 GB, free: 111.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/3.123, allocations: 380.7 kB / 1.021 GB, free: 110.9 MB / 0.5573 GB Notification: Performance of SimCode: time 1.822e-06/3.123, allocations: 0 / 1.021 GB, free: 110.9 MB / 0.5573 GB Notification: Performance of Templates: time 0.1929/3.316, allocations: 73.44 MB / 1.092 GB, free: 50.53 MB / 0.5573 GB