Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,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.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 1.874/1.874, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.299e-05/3.293e-05, allocations: 4 kB / 273.1 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1371, allocations: 48.69 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3504/0.4875, allocations: 92.75 MB / 414.5 MB, free: 2.496 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.4878, allocations: 71.94 kB / 414.6 MB, free: 2.488 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9218/1.41, allocations: 169.9 MB / 0.5708 GB, free: 68.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.301e-06/1.41, allocations: 0 / 0.5708 GB, free: 68.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005115/1.41, allocations: 169.8 kB / 0.5709 GB, free: 68.41 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 0.02707/1.437, allocations: 8.245 MB / 0.579 GB, free: 65.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/1.437, allocations: 10.47 kB / 0.579 GB, free: 65.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06292/1.5, allocations: 12.09 MB / 0.5908 GB, free: 64.6 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02983/1.53, allocations: 10.95 MB / 0.6015 GB, free: 63.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006803/1.531, allocations: 0.6322 MB / 0.6021 GB, free: 63.44 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003418/1.534, allocations: 0.8516 MB / 0.6029 GB, free: 63.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04965/1.584, allocations: 19.72 MB / 0.6222 GB, free: 52.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005035/1.584, allocations: 110.3 kB / 0.6223 GB, free: 52.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002975/1.587, allocations: 401.5 kB / 0.6227 GB, free: 52.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002854/1.59, allocations: 1.814 MB / 0.6245 GB, free: 50.69 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03762/1.628, allocations: 15.74 MB / 0.6398 GB, free: 36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4091/2.037, allocations: 82.07 MB / 0.72 GB, free: 40.04 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02663/2.064, allocations: 8.031 MB / 0.7278 GB, free: 39.35 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006929/2.071, allocations: 4.076 MB / 0.7318 GB, free: 39.31 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008908/2.072, allocations: 0.6689 MB / 0.7324 GB, free: 38.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.137e-05/2.072, allocations: 70.56 kB / 0.7325 GB, free: 38.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=311): time 8.37e-06/2.072, allocations: 0 / 0.7325 GB, free: 38.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=335): time 0.09373/2.166, allocations: 26.24 MB / 0.7581 GB, free: 32.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.739e-05/2.166, allocations: 297.1 kB / 0.7584 GB, free: 32.01 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01615/2.182, allocations: 6.813 MB / 0.7651 GB, free: 31.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006508/2.183, allocations: 79.86 kB / 0.7652 GB, free: 31.45 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0042/2.187, allocations: 5.529 MB / 0.7705 GB, free: 28.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001629/2.189, allocations: 1.272 MB / 0.7718 GB, free: 27.89 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009846/2.19, allocations: 194.7 kB / 0.772 GB, free: 27.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007727/2.19, allocations: 0.7129 MB / 0.7727 GB, free: 27.56 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007285/2.198, allocations: 3.436 MB / 0.776 GB, free: 27.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/2.208, allocations: 9.062 MB / 0.7849 GB, free: 19.37 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/2.219, allocations: 5.537 MB / 0.7903 GB, free: 17.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001608/2.219, allocations: 56.38 kB / 0.7903 GB, free: 17.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.02896/2.248, allocations: 12.31 MB / 0.8024 GB, free: 14.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/2.248, allocations: 93.17 kB / 0.8025 GB, free: 14.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002325/2.248, allocations: 203.8 kB / 0.8026 GB, free: 14.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003296/2.251, allocations: 1.053 MB / 0.8037 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01019/2.262, allocations: 2.249 MB / 0.8059 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01598/2.278, allocations: 11.27 MB / 0.8169 GB, free: 6.027 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01074/2.289, allocations: 0.5254 MB / 0.8174 GB, free: 5.566 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002329/2.291, allocations: 0.5723 MB / 0.818 GB, free: 5.012 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],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],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 (1179): * Single equations (assignments): 1172 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003287/2.294, allocations: 0.8463 MB / 0.8188 GB, free: 4.168 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00185/2.296, allocations: 0.6749 MB / 0.8194 GB, free: 3.484 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/2.312, allocations: 5.981 MB / 0.8253 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.039e-05/2.312, allocations: 36 kB / 0.8253 GB, free: 14.56 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.305e-05/2.312, allocations: 8 kB / 0.8253 GB, free: 14.55 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-05/2.312, allocations: 25.53 kB / 0.8253 GB, free: 14.55 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04146/2.354, allocations: 15.01 MB / 0.84 GB, free: 2.363 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-05/2.354, allocations: 0 / 0.84 GB, free: 2.363 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003949/2.358, allocations: 0.5569 MB / 0.8405 GB, free: 1.918 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002863/2.361, allocations: 0.7016 MB / 0.8412 GB, free: 1.387 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006292/2.362, allocations: 59.61 kB / 0.8413 GB, free: 1.332 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/2.378, allocations: 10.11 MB / 0.8512 GB, free: 7.574 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.511e-06/2.378, allocations: 11.58 kB / 0.8512 GB, free: 7.566 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03103/2.409, allocations: 10.62 MB / 0.8615 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004528/2.413, allocations: 1.192 MB / 0.8627 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002003/2.415, allocations: 61.33 kB / 0.8628 GB, free: 14.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004987/2.42, allocations: 189.8 kB / 0.8629 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009627/2.421, allocations: 201.2 kB / 0.8631 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004439/2.422, allocations: 96.41 kB / 0.8632 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01296/2.435, allocations: 4.847 MB / 0.868 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.109e-06/2.435, allocations: 0 / 0.868 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01294/2.448, allocations: 1.87 MB / 0.8698 GB, free: 8.27 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(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.001048/2.449, allocations: 207.7 kB / 0.87 GB, free: 8.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01939/2.468, allocations: 8.541 MB / 0.8783 GB, free: 296 kB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/2.468, allocations: 0 / 0.8783 GB, free: 296 kB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.279/2.747, allocations: 3.125 MB / 0.8814 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006258/2.754, allocations: 0.9244 MB / 0.8823 GB, free: 132.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04143/2.795, allocations: 15.94 MB / 0.8978 GB, free: 129.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01453/2.81, allocations: 6.125 MB / 0.9038 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002951/2.813, allocations: 0.5099 MB / 0.9043 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.927e-06/2.813, allocations: 3.344 kB / 0.9043 GB, free: 128.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.6028/3.415, allocations: 242.8 MB / 1.141 GB, free: 95.46 MB / 0.4948 GB