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.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.308/2.308, allocations: 249.5 MB / 261.6 MB, free: 2.16 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.18e-05, allocations: 4 kB / 323.4 MB, free: 4.312 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3242, allocations: 58.84 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1733/0.4975, allocations: 112.6 MB / 494.8 MB, free: 11.86 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.4978, allocations: 75.95 kB / 494.9 MB, free: 11.79 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.7671/1.265, allocations: 136.4 MB / 0.6165 GB, free: 58.73 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.472e-06/1.265, allocations: 4 kB / 0.6165 GB, free: 58.73 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0004131/1.265, allocations: 136 kB / 0.6166 GB, free: 58.59 MB / 458.8 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.02213/1.288, allocations: 7.047 MB / 0.6235 GB, free: 51.47 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/1.288, allocations: 8.031 kB / 0.6235 GB, free: 51.46 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03963/1.327, allocations: 7.561 MB / 0.6309 GB, free: 43.88 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02728/1.355, allocations: 9.809 MB / 0.6405 GB, free: 33.98 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005633/1.355, allocations: 488.9 kB / 0.641 GB, free: 33.5 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002819/1.358, allocations: 0.6481 MB / 0.6416 GB, free: 32.86 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04128/1.399, allocations: 16.5 MB / 0.6577 GB, free: 14.91 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000433/1.4, allocations: 111 kB / 0.6578 GB, free: 14.8 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002518/1.402, allocations: 311.8 kB / 0.6581 GB, free: 14.49 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002821/1.405, allocations: 1.576 MB / 0.6596 GB, free: 12.91 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03411/1.439, allocations: 13.23 MB / 0.6726 GB, free: 15.66 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4365/1.876, allocations: 74.33 MB / 0.7451 GB, free: 64.23 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03133/1.907, allocations: 7.634 MB / 0.7526 GB, free: 63.55 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006909/1.914, allocations: 3.914 MB / 0.7564 GB, free: 63.5 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03667/1.951, allocations: 18.61 MB / 0.7746 GB, free: 58.93 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/1.951, allocations: 67.41 kB / 0.7747 GB, free: 58.89 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=281): time 7.465e-06/1.951, allocations: 0 / 0.7747 GB, free: 58.89 MB / 0.4949 GB Notification: Performance of matching and sorting (n=363): time 0.1745/2.126, allocations: 38.8 MB / 0.8126 GB, free: 49.21 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/2.126, allocations: 275.1 kB / 0.8128 GB, free: 48.93 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01123/2.137, allocations: 5.315 MB / 0.818 GB, free: 45.57 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0007252/2.138, allocations: 81.7 kB / 0.8181 GB, free: 45.48 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003456/2.141, allocations: 4.782 MB / 0.8228 GB, free: 41.22 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001622/2.143, allocations: 1.335 MB / 0.8241 GB, free: 40.04 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008161/2.144, allocations: 184 kB / 0.8242 GB, free: 39.86 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0004977/2.144, allocations: 0.6971 MB / 0.8249 GB, free: 39.26 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007245/2.152, allocations: 3.638 MB / 0.8285 GB, free: 35.98 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01037/2.162, allocations: 8.793 MB / 0.8371 GB, free: 25.36 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/2.173, allocations: 5.551 MB / 0.8425 GB, free: 20.89 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001466/2.173, allocations: 55.94 kB / 0.8425 GB, free: 20.84 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.04141/2.214, allocations: 15.35 MB / 0.8575 GB, free: 8.777 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/2.214, allocations: 83.94 kB / 0.8576 GB, free: 8.695 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002008/2.215, allocations: 187.2 kB / 0.8578 GB, free: 8.516 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01632/2.231, allocations: 4.029 MB / 0.8617 GB, free: 5.75 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009236/2.24, allocations: 2.031 MB / 0.8637 GB, free: 3.98 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0452/2.285, allocations: 20.84 MB / 0.884 GB, free: 0.6367 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01008/2.296, allocations: 0.5461 MB / 0.8846 GB, free: 96 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00221/2.298, allocations: 0.5195 MB / 0.8851 GB, free: 15.57 MB / 0.5261 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.002881/2.301, allocations: 0.8045 MB / 0.8859 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0016/2.302, allocations: 0.5785 MB / 0.8864 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02987/2.332, allocations: 9.433 MB / 0.8956 GB, free: 4.688 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.632e-05/2.332, allocations: 39.98 kB / 0.8957 GB, free: 4.648 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.07e-05/2.332, allocations: 16 kB / 0.8957 GB, free: 4.633 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.48e-05/2.332, allocations: 19.69 kB / 0.8957 GB, free: 4.617 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05849/2.391, allocations: 18.89 MB / 0.9142 GB, free: 1.625 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.417e-05/2.391, allocations: 0 / 0.9142 GB, free: 1.625 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003743/2.395, allocations: 0.4915 MB / 0.9146 GB, free: 1.133 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01736/2.412, allocations: 3.632 MB / 0.9182 GB, free: 13.49 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007883/2.413, allocations: 63.98 kB / 0.9182 GB, free: 13.43 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3576/2.771, allocations: 18.71 MB / 0.9365 GB, free: 160.2 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.364e-06/2.771, allocations: 5.062 kB / 0.9365 GB, free: 160.2 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03563/2.806, allocations: 13.9 MB / 0.9501 GB, free: 159.5 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003715/2.81, allocations: 1.118 MB / 0.9512 GB, free: 159.4 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001643/2.812, allocations: 57.31 kB / 0.9512 GB, free: 159.4 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004596/2.816, allocations: 229.9 kB / 0.9515 GB, free: 159.4 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/2.817, allocations: 221 kB / 0.9517 GB, free: 159.4 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004384/2.818, allocations: 90.67 kB / 0.9518 GB, free: 159.4 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.008322/2.826, allocations: 3.723 MB / 0.9554 GB, free: 159.1 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.312e-06/2.826, allocations: 0 / 0.9554 GB, free: 159.1 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01075/2.837, allocations: 1.841 MB / 0.9572 GB, free: 159.1 MB / 0.5574 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.001001/2.838, allocations: 232.1 kB / 0.9574 GB, free: 159 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01856/2.857, allocations: 9.101 MB / 0.9663 GB, free: 158.7 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/2.857, allocations: 0 / 0.9663 GB, free: 158.7 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.007625/2.864, allocations: 3.63 MB / 0.9698 GB, free: 158.4 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004947/2.869, allocations: 0.7166 MB / 0.9705 GB, free: 158 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03067/2.9, allocations: 13.09 MB / 0.9833 GB, free: 153.5 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/2.91, allocations: 5.007 MB / 0.9882 GB, free: 151.9 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.01045/2.921, allocations: 2.792 MB / 0.9909 GB, free: 151.9 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001965/2.923, allocations: 375.6 kB / 0.9913 GB, free: 151.9 MB / 0.5574 GB Notification: Performance of SimCode: time 1.668e-06/2.923, allocations: 2.625 kB / 0.9913 GB, free: 151.9 MB / 0.5574 GB Notification: Performance of Templates: time 0.1788/3.102, allocations: 73.61 MB / 1.063 GB, free: 99.35 MB / 0.5574 GB