Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.FrameTorques") Notification: Performance of loadModel(ModelicaTest): time 2.262/2.262, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.53e-05/3.538e-05, allocations: 0.9375 kB / 304.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4134/0.4135, allocations: 54.85 MB / 359.8 MB, free: 3.133 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2026/0.6161, allocations: 100.8 MB / 460.6 MB, free: 12.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.6164, allocations: 75.95 kB / 460.6 MB, free: 12.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7186/1.335, allocations: 114.5 MB / 0.5616 GB, free: 102 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.39e-06/1.335, allocations: 0 / 0.5616 GB, free: 102 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003247/1.335, allocations: 107.4 kB / 0.5617 GB, free: 102 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: 1956 * Number of variables: 1956 Notification: Performance of Generate backend data structure: time 0.01715/1.353, allocations: 5.467 MB / 0.5671 GB, free: 99.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/1.353, allocations: 11.12 kB / 0.5671 GB, free: 99.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03603/1.389, allocations: 6.952 MB / 0.5739 GB, free: 99.32 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02038/1.409, allocations: 6.866 MB / 0.5806 GB, free: 97.09 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004752/1.41, allocations: 417.9 kB / 0.581 GB, free: 96.94 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002399/1.412, allocations: 0.5434 MB / 0.5815 GB, free: 96.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03201/1.444, allocations: 13.19 MB / 0.5944 GB, free: 89.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003012/1.445, allocations: 84.84 kB / 0.5945 GB, free: 89.76 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001816/1.446, allocations: 265 kB / 0.5947 GB, free: 89.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002195/1.449, allocations: 1.251 MB / 0.596 GB, free: 89.38 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02471/1.473, allocations: 10.27 MB / 0.606 GB, free: 80.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06891/1.542, allocations: 59.66 MB / 0.6642 GB, free: 19.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01374/1.556, allocations: 4.588 MB / 0.6687 GB, free: 15.02 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003601/1.56, allocations: 2.218 MB / 0.6709 GB, free: 12.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01321/1.573, allocations: 6.501 MB / 0.6772 GB, free: 6.223 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.762e-05/1.573, allocations: 51.78 kB / 0.6773 GB, free: 6.164 MB / 458.7 MB Notification: Performance of pre-optimization done (n=183): time 6.305e-06/1.573, allocations: 4 kB / 0.6773 GB, free: 6.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=195): time 0.05062/1.624, allocations: 14.53 MB / 0.6915 GB, free: 7.449 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/1.624, allocations: 227 kB / 0.6917 GB, free: 7.18 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01516/1.639, allocations: 5.159 MB / 0.6967 GB, free: 2.047 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004902/1.64, allocations: 57.7 kB / 0.6968 GB, free: 1.984 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.323/1.963, allocations: 4.115 MB / 0.7008 GB, free: 108.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001251/1.964, allocations: 0.7704 MB / 0.7016 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008867/1.965, allocations: 145.3 kB / 0.7017 GB, free: 107.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000732/1.966, allocations: 0.604 MB / 0.7023 GB, free: 107.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005708/1.971, allocations: 2.244 MB / 0.7045 GB, free: 107.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008199/1.98, allocations: 6.687 MB / 0.711 GB, free: 101.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00843/1.988, allocations: 3.87 MB / 0.7148 GB, free: 101.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002491/1.988, allocations: 46.3 kB / 0.7148 GB, free: 101.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.02288/2.011, allocations: 8.693 MB / 0.7233 GB, free: 100.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/2.011, allocations: 73.59 kB / 0.7234 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002011/2.012, allocations: 160.2 kB / 0.7235 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001818/2.013, allocations: 0.6119 MB / 0.7241 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007336/2.021, allocations: 1.641 MB / 0.7257 GB, free: 100.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00747/2.028, allocations: 5.722 MB / 0.7313 GB, free: 97.76 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007583/2.036, allocations: 384.6 kB / 0.7317 GB, free: 97.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/2.037, allocations: 443.4 kB / 0.7321 GB, free: 97.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 42 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (882): * Single equations (assignments): 877 * 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%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001409/2.039, allocations: 0.662 MB / 0.7328 GB, free: 97.13 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009833/2.04, allocations: 490.4 kB / 0.7332 GB, free: 96.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006449/2.046, allocations: 3.022 MB / 0.7362 GB, free: 95.71 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.335e-05/2.046, allocations: 22.52 kB / 0.7362 GB, free: 95.71 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/2.046, allocations: 7.344 kB / 0.7362 GB, free: 95.71 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.342e-05/2.046, allocations: 7.406 kB / 0.7362 GB, free: 95.71 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01997/2.066, allocations: 8.442 MB / 0.7445 GB, free: 92.53 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.011e-05/2.067, allocations: 3.781 kB / 0.7445 GB, free: 92.53 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/2.069, allocations: 325.1 kB / 0.7448 GB, free: 92.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001438/2.07, allocations: 360.8 kB / 0.7451 GB, free: 92.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003805/2.071, allocations: 39.09 kB / 0.7452 GB, free: 92.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006662/2.077, allocations: 5.07 MB / 0.7501 GB, free: 88.69 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.602e-06/2.078, allocations: 3.5 kB / 0.7501 GB, free: 88.69 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009758/2.087, allocations: 6.097 MB / 0.7561 GB, free: 85.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00238/2.09, allocations: 0.7935 MB / 0.7568 GB, free: 85.08 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001151/2.091, allocations: 39.98 kB / 0.7569 GB, free: 85.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003028/2.094, allocations: 91.05 kB / 0.757 GB, free: 85.04 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005047/2.094, allocations: 119.9 kB / 0.7571 GB, free: 85.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002047/2.095, allocations: 53.52 kB / 0.7571 GB, free: 85 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008285/2.103, allocations: 3.672 MB / 0.7607 GB, free: 83.76 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.082e-06/2.103, allocations: 0 / 0.7607 GB, free: 83.76 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008276/2.111, allocations: 1.222 MB / 0.7619 GB, free: 83.61 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (154): * Single equations (assignments): 149 * 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%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005885/2.112, allocations: 178.2 kB / 0.7621 GB, free: 83.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01041/2.122, allocations: 5.391 MB / 0.7674 GB, free: 81.52 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.848e-06/2.122, allocations: 0 / 0.7674 GB, free: 81.52 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002979/2.125, allocations: 1.658 MB / 0.769 GB, free: 80.78 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003893/2.129, allocations: 0.5994 MB / 0.7696 GB, free: 80.52 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02344/2.153, allocations: 9.58 MB / 0.7789 GB, free: 75.46 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008762/2.162, allocations: 4.243 MB / 0.7831 GB, free: 72.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008093/2.17, allocations: 2.312 MB / 0.7853 GB, free: 70.83 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001519/2.171, allocations: 322.1 kB / 0.7856 GB, free: 70.53 MB / 474.7 MB Notification: Performance of SimCode: time 1.906e-06/2.171, allocations: 0 / 0.7856 GB, free: 70.53 MB / 474.7 MB Notification: Performance of Templates: time 0.1173/2.289, allocations: 42.46 MB / 0.8271 GB, free: 36.34 MB / 474.7 MB