Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques,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.2_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques") Notification: Performance of loadModel(ModelicaTest): time 2.427/2.427, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.378e-05/3.378e-05, allocations: 4 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3839, allocations: 54.86 MB / 362.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques): time 0.1202/0.5042, allocations: 76.95 MB / 439.8 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.049/0.5532, allocations: 16.28 MB / 456.1 MB, free: 392 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0184/0.5717, allocations: 407.2 kB / 456.5 MB, free: 15.98 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01481/0.5866, allocations: 4.098 MB / 460.6 MB, free: 11.87 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04335/0.63, allocations: 10.96 MB / 471.5 MB, free: 0.8789 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006868/0.6369, allocations: 0.8855 MB / 472.4 MB, free: 15.99 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.05127/0.6882, allocations: 17.28 MB / 489.7 MB, free: 14.7 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01379/0.702, allocations: 6.642 MB / 496.3 MB, free: 8 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003488/0.7056, allocations: 1.317 MB / 497.7 MB, free: 6.68 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004627/0.7103, allocations: 2.08 MB / 499.7 MB, free: 4.594 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003962/0.7143, allocations: 1.1 MB / 0.4891 GB, free: 3.492 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001826/0.7161, allocations: 208 kB / 0.4893 GB, free: 3.289 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004608/0.7208, allocations: 2.556 MB / 0.4918 GB, free: 0.7266 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002423/0.7233, allocations: 444 kB / 0.4922 GB, free: 300 kB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4041/1.127, allocations: 9.344 MB / 0.5013 GB, free: 23.69 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/1.128, allocations: 0.5469 kB / 0.5013 GB, free: 23.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.276e-06/1.128, allocations: 0 / 0.5013 GB, free: 23.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005465/1.128, allocations: 0 / 0.5013 GB, free: 23.69 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03576/1.164, allocations: 6.797 MB / 0.508 GB, free: 21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/1.164, allocations: 14.12 kB / 0.508 GB, free: 21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1178/1.282, allocations: 12 MB / 0.5197 GB, free: 17.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01605/1.298, allocations: 4.86 MB / 0.5245 GB, free: 16.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005245/1.298, allocations: 396.8 kB / 0.5248 GB, free: 16.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003142/1.302, allocations: 0.5238 MB / 0.5254 GB, free: 16.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05155/1.353, allocations: 17.04 MB / 0.542 GB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000407/1.354, allocations: 68.77 kB / 0.5421 GB, free: 10.83 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002761/1.356, allocations: 245.2 kB / 0.5423 GB, free: 10.83 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007218/1.364, allocations: 3.028 MB / 0.5452 GB, free: 8.672 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04753/1.411, allocations: 14.41 MB / 0.5593 GB, free: 14.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1324/1.544, allocations: 62.46 MB / 0.6203 GB, free: 10.69 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03241/1.576, allocations: 6.979 MB / 0.6271 GB, free: 5.152 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03102/1.607, allocations: 9.505 MB / 0.6364 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.048e-05/1.607, allocations: 71.25 kB / 0.6365 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=297): time 9.728e-06/1.607, allocations: 0 / 0.6365 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=339): time 0.1829/1.79, allocations: 34.11 MB / 0.6698 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001707/1.791, allocations: 247.1 kB / 0.67 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01662/1.807, allocations: 6.247 MB / 0.6761 GB, free: 7.539 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001159/1.808, allocations: 69.7 kB / 0.6762 GB, free: 7.465 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005565/1.814, allocations: 4.552 MB / 0.6806 GB, free: 2.922 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002714/1.817, allocations: 1.262 MB / 0.6819 GB, free: 1.668 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001302/1.818, allocations: 182.6 kB / 0.682 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007517/1.819, allocations: 0.687 MB / 0.6827 GB, free: 0.793 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01136/1.83, allocations: 3.812 MB / 0.6864 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0169/1.847, allocations: 8.814 MB / 0.695 GB, free: 1.766 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.35/2.197, allocations: 5.671 MB / 0.7006 GB, free: 223.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001463/2.198, allocations: 50.66 kB / 0.7006 GB, free: 223.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.04026/2.238, allocations: 13.78 MB / 0.7141 GB, free: 219.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/2.238, allocations: 81.62 kB / 0.7142 GB, free: 219.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002759/2.238, allocations: 176.7 kB / 0.7143 GB, free: 219.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007721/2.246, allocations: 1.816 MB / 0.7161 GB, free: 218.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01433/2.26, allocations: 2.086 MB / 0.7181 GB, free: 218.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02412/2.285, allocations: 12.39 MB / 0.7302 GB, free: 209.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01155/2.296, allocations: 0.5197 MB / 0.7307 GB, free: 209.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002512/2.299, allocations: 0.5214 MB / 0.7312 GB, free: 208.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 801 * Number of states: 0 () * Number of discrete variables: 54 (FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[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 (1084): * Single equations (assignments): 1077 * 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.01076/2.31, allocations: 3.235 MB / 0.7344 GB, free: 206.1 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001859/2.311, allocations: 0.5855 MB / 0.735 GB, free: 205.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02435/2.336, allocations: 7.703 MB / 0.7425 GB, free: 199.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.231e-05/2.336, allocations: 36 kB / 0.7425 GB, free: 199.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.308e-05/2.336, allocations: 12 kB / 0.7425 GB, free: 199.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.102e-05/2.336, allocations: 16.69 kB / 0.7426 GB, free: 199.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05202/2.388, allocations: 16.36 MB / 0.7585 GB, free: 184.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-05/2.388, allocations: 4 kB / 0.7585 GB, free: 184.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006156/2.394, allocations: 0.5816 MB / 0.7591 GB, free: 184.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007108/2.402, allocations: 1.532 MB / 0.7606 GB, free: 182.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001214/2.403, allocations: 60 kB / 0.7607 GB, free: 182.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0239/2.427, allocations: 11.58 MB / 0.772 GB, free: 170.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/2.427, allocations: 11.89 kB / 0.772 GB, free: 170.8 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03296/2.46, allocations: 12.99 MB / 0.7847 GB, free: 157.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005061/2.465, allocations: 1.231 MB / 0.7859 GB, free: 156.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002705/2.468, allocations: 68 kB / 0.7859 GB, free: 156.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006756/2.474, allocations: 231.5 kB / 0.7862 GB, free: 156.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001528/2.476, allocations: 209.9 kB / 0.7864 GB, free: 156 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000969/2.477, allocations: 95.23 kB / 0.7864 GB, free: 156 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01205/2.489, allocations: 4.507 MB / 0.7908 GB, free: 151.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.42e-07/2.489, allocations: 0 / 0.7908 GB, free: 151.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01259/2.502, allocations: 1.724 MB / 0.7925 GB, free: 149.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (279): * Single equations (assignments): 274 * 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.0017/2.504, allocations: 225.3 kB / 0.7927 GB, free: 149.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02346/2.527, allocations: 9.319 MB / 0.8018 GB, free: 140.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/2.527, allocations: 3.062 kB / 0.8018 GB, free: 140.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01108/2.538, allocations: 3.795 MB / 0.8056 GB, free: 136.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006739/2.545, allocations: 0.7107 MB / 0.8062 GB, free: 135.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04876/2.594, allocations: 19.79 MB / 0.8256 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01323/2.607, allocations: 5.178 MB / 0.8306 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003877/2.611, allocations: 487.3 kB / 0.8311 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of SimCode: time 2.525e-06/2.611, allocations: 4 kB / 0.8311 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.6258/3.237, allocations: 153.1 MB / 0.9806 GB, free: 172.7 MB / 0.5417 GB