Running command: translateModel(ModelicaTest.MultiBody.Forces.ForcesAndTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 1.936/1.936, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/2.988e-05, allocations: 4 kB / 276.1 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3499, allocations: 48.7 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForcesAndTorques): time 0.1288/0.4788, allocations: 83.71 MB / 408.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0539/0.5327, allocations: 17.47 MB / 426 MB, free: 10.15 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0217/0.5545, allocations: 435.1 kB / 426.4 MB, free: 9.727 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01609/0.5706, allocations: 4.464 MB / 430.9 MB, free: 5.242 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04516/0.6158, allocations: 11.86 MB / 442.8 MB, free: 9.348 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00717/0.623, allocations: 0.9673 MB / 443.7 MB, free: 8.379 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.05222/0.6752, allocations: 17.46 MB / 461.2 MB, free: 6.91 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.017/0.6923, allocations: 8.023 MB / 469.2 MB, free: 14.83 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003767/0.6961, allocations: 1.426 MB / 470.6 MB, free: 13.4 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005078/0.7013, allocations: 2.271 MB / 472.9 MB, free: 11.12 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003787/0.7051, allocations: 0.9988 MB / 473.9 MB, free: 10.12 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001981/0.7071, allocations: 212 kB / 474.1 MB, free: 9.918 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004968/0.7122, allocations: 2.852 MB / 477 MB, free: 7.059 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002646/0.7148, allocations: 492 kB / 477.5 MB, free: 6.578 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.354/1.069, allocations: 10.35 MB / 487.8 MB, free: 25.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/1.069, allocations: 0 / 487.8 MB, free: 25.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.188e-06/1.069, allocations: 0 / 487.8 MB, free: 25.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004989/1.07, allocations: 1.188 kB / 487.8 MB, free: 25.69 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2756 * Number of variables: 2756 Notification: Performance of Generate backend data structure: time 0.02844/1.098, allocations: 7.39 MB / 495.2 MB, free: 22.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/1.098, allocations: 10.81 kB / 495.2 MB, free: 22.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1202/1.218, allocations: 12.12 MB / 0.4954 GB, free: 21.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01719/1.235, allocations: 5.176 MB / 0.5005 GB, free: 19.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000573/1.236, allocations: 449 kB / 0.5009 GB, free: 19.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003909/1.24, allocations: 0.5895 MB / 0.5015 GB, free: 19.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05781/1.298, allocations: 18.67 MB / 0.5197 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004193/1.298, allocations: 66.59 kB / 0.5198 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003678/1.302, allocations: 286 kB / 0.5201 GB, free: 14.03 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008313/1.31, allocations: 3.313 MB / 0.5233 GB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05003/1.36, allocations: 15.66 MB / 0.5386 GB, free: 2.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1444/1.505, allocations: 69.95 MB / 0.6069 GB, free: 8.863 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04014/1.545, allocations: 8.547 MB / 0.6153 GB, free: 1.996 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03215/1.577, allocations: 11.75 MB / 0.6267 GB, free: 9.422 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.306e-05/1.577, allocations: 70.19 kB / 0.6268 GB, free: 9.367 MB / 490.7 MB Notification: Performance of pre-optimization done (n=347): time 7.554e-06/1.577, allocations: 4 kB / 0.6268 GB, free: 9.363 MB / 490.7 MB Notification: Performance of matching and sorting (n=389): time 0.4871/2.065, allocations: 38.32 MB / 0.6642 GB, free: 205.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/2.065, allocations: 247.7 kB / 0.6645 GB, free: 205.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02017/2.085, allocations: 6.854 MB / 0.6711 GB, free: 202.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001538/2.087, allocations: 91.27 kB / 0.6712 GB, free: 202.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004764/2.091, allocations: 4.972 MB / 0.6761 GB, free: 198.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002767/2.094, allocations: 1.449 MB / 0.6775 GB, free: 197.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001973/2.096, allocations: 194.4 kB / 0.6777 GB, free: 197.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008649/2.097, allocations: 0.7377 MB / 0.6784 GB, free: 197.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01204/2.109, allocations: 4.205 MB / 0.6825 GB, free: 195.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01513/2.124, allocations: 9.758 MB / 0.692 GB, free: 186.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01528/2.14, allocations: 6.282 MB / 0.6982 GB, free: 184.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001973/2.14, allocations: 58.03 kB / 0.6982 GB, free: 184.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1302) (initialization): time 0.04332/2.183, allocations: 15.1 MB / 0.713 GB, free: 174.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/2.184, allocations: 88 kB / 0.7131 GB, free: 174 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000296/2.184, allocations: 192 kB / 0.7133 GB, free: 173.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007932/2.192, allocations: 1.84 MB / 0.715 GB, free: 172.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01576/2.208, allocations: 2.378 MB / 0.7174 GB, free: 170.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02411/2.232, allocations: 12.41 MB / 0.7295 GB, free: 157.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01276/2.245, allocations: 0.5781 MB / 0.7301 GB, free: 157.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002431/2.247, allocations: 0.5801 MB / 0.7306 GB, free: 156.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 887 * Number of states: 0 () * Number of discrete variables: 66 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1220): * Single equations (assignments): 1213 * Array equations: 5 * 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%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01002/2.257, allocations: 3.549 MB / 0.7341 GB, free: 153 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002686/2.26, allocations: 0.644 MB / 0.7347 GB, free: 152.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02626/2.286, allocations: 8.455 MB / 0.743 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.38e-05/2.286, allocations: 40 kB / 0.743 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-05/2.286, allocations: 8 kB / 0.743 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.734e-05/2.286, allocations: 15.94 kB / 0.743 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05545/2.342, allocations: 18.63 MB / 0.7612 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.258e-05/2.342, allocations: 8 kB / 0.7612 GB, free: 125.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007076/2.349, allocations: 0.7059 MB / 0.7619 GB, free: 124.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007092/2.356, allocations: 1.534 MB / 0.7634 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001257/2.358, allocations: 76.77 kB / 0.7635 GB, free: 122.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02341/2.381, allocations: 11.59 MB / 0.7748 GB, free: 111 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/2.381, allocations: 15.94 kB / 0.7748 GB, free: 111 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03462/2.416, allocations: 14.84 MB / 0.7893 GB, free: 95.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005567/2.421, allocations: 1.351 MB / 0.7906 GB, free: 94.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003381/2.425, allocations: 68 kB / 0.7907 GB, free: 94.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007299/2.432, allocations: 256.3 kB / 0.791 GB, free: 93.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001599/2.434, allocations: 242.8 kB / 0.7912 GB, free: 93.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008012/2.434, allocations: 108.7 kB / 0.7913 GB, free: 93.63 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01171/2.446, allocations: 4.944 MB / 0.7961 GB, free: 88.71 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.493e-06/2.446, allocations: 0 / 0.7961 GB, free: 88.71 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01318/2.459, allocations: 1.898 MB / 0.798 GB, free: 86.82 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (329): * Single equations (assignments): 324 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001807/2.461, allocations: 241.2 kB / 0.7982 GB, free: 86.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0251/2.486, allocations: 10.27 MB / 0.8082 GB, free: 76.33 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/2.486, allocations: 4 kB / 0.8082 GB, free: 76.32 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01196/2.498, allocations: 4.136 MB / 0.8123 GB, free: 72.17 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007499/2.506, allocations: 0.7647 MB / 0.813 GB, free: 71.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05071/2.557, allocations: 21.84 MB / 0.8343 GB, free: 49.44 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01211/2.569, allocations: 5.627 MB / 0.8398 GB, free: 43.77 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00413/2.573, allocations: 0.5305 MB / 0.8404 GB, free: 43.24 MB / 0.4948 GB Notification: Performance of SimCode: time 1.533e-06/2.573, allocations: 0 / 0.8404 GB, free: 43.24 MB / 0.4948 GB Notification: Performance of Templates: time 0.6045/3.178, allocations: 167.7 MB / 1.004 GB, free: 68.14 MB / 0.4948 GB