Running command: translateModel(ModelicaTest.MultiBody.Forces.WorldForces,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.WorldForces") Notification: Performance of loadModel(ModelicaTest): time 2.437/2.437, allocations: 234.9 MB / 250.1 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.923e-05/3.921e-05, allocations: 8 kB / 308 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3935, allocations: 54.86 MB / 362.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.1653/0.5589, allocations: 89.32 MB / 452.2 MB, free: 4.301 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05486/0.6139, allocations: 18.66 MB / 470.8 MB, free: 1.574 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02142/0.6353, allocations: 466.9 kB / 471.3 MB, free: 1.117 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01735/0.6528, allocations: 4.779 MB / 476.1 MB, free: 12.32 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05034/0.7032, allocations: 12.68 MB / 488.8 MB, free: 15.6 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007736/0.7109, allocations: 1.026 MB / 489.8 MB, free: 14.57 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.4403/1.151, allocations: 24.97 MB / 0.5027 GB, free: 14.88 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01466/1.166, allocations: 7.284 MB / 0.5098 GB, free: 14.35 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004439/1.17, allocations: 1.485 MB / 0.5112 GB, free: 14.35 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005656/1.176, allocations: 2.433 MB / 0.5136 GB, free: 14.34 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004704/1.181, allocations: 0.9953 MB / 0.5146 GB, free: 14.34 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002859/1.184, allocations: 225.1 kB / 0.5148 GB, free: 14.33 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005437/1.189, allocations: 2.936 MB / 0.5177 GB, free: 14.33 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003237/1.193, allocations: 0.4935 MB / 0.5182 GB, free: 14.33 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01585/1.209, allocations: 10.44 MB / 0.5283 GB, free: 11.14 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/1.209, allocations: 0 / 0.5283 GB, free: 11.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.427e-06/1.209, allocations: 0 / 0.5283 GB, free: 11.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005665/1.209, allocations: 0 / 0.5283 GB, free: 11.14 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: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.02777/1.237, allocations: 7.384 MB / 0.5356 GB, free: 6.855 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/1.237, allocations: 8.094 kB / 0.5356 GB, free: 6.855 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1745/1.412, allocations: 16.82 MB / 0.552 GB, free: 8.973 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02059/1.432, allocations: 5.934 MB / 0.5578 GB, free: 4.707 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006349/1.433, allocations: 439.6 kB / 0.5582 GB, free: 4.469 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003541/1.436, allocations: 0.5803 MB / 0.5588 GB, free: 4.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05563/1.492, allocations: 17.84 MB / 0.5762 GB, free: 6.215 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004864/1.493, allocations: 78.02 kB / 0.5763 GB, free: 6.172 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00304/1.496, allocations: 275.5 kB / 0.5765 GB, free: 6.094 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008689/1.505, allocations: 3.197 MB / 0.5797 GB, free: 3.484 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05051/1.555, allocations: 14.69 MB / 0.594 GB, free: 9.285 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1423/1.697, allocations: 68.5 MB / 0.6609 GB, free: 252 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03256/1.73, allocations: 7.296 MB / 0.668 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006232/1.731, allocations: 59.27 kB / 0.6681 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001249/1.731, allocations: 73.12 kB / 0.6681 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=307): time 1.296e-05/1.731, allocations: 0 / 0.6681 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=340): time 0.5046/2.236, allocations: 33.18 MB / 0.7005 GB, free: 227.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/2.236, allocations: 298.6 kB / 0.7008 GB, free: 226.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.019/2.255, allocations: 7.011 MB / 0.7077 GB, free: 224.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001015/2.256, allocations: 76.09 kB / 0.7077 GB, free: 224.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.005198/2.261, allocations: 5.06 MB / 0.7127 GB, free: 220.6 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002501/2.264, allocations: 1.287 MB / 0.7139 GB, free: 219.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001319/2.265, allocations: 184.7 kB / 0.7141 GB, free: 219.6 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0007534/2.266, allocations: 0.7163 MB / 0.7148 GB, free: 219.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01048/2.276, allocations: 3.791 MB / 0.7185 GB, free: 217.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01422/2.291, allocations: 9.346 MB / 0.7276 GB, free: 209 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01432/2.305, allocations: 5.817 MB / 0.7333 GB, free: 206.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002059/2.305, allocations: 54.81 kB / 0.7334 GB, free: 206.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.03899/2.344, allocations: 13.9 MB / 0.747 GB, free: 198.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000161/2.344, allocations: 92.06 kB / 0.747 GB, free: 198.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003398/2.345, allocations: 196 kB / 0.7472 GB, free: 198.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006726/2.351, allocations: 1.586 MB / 0.7488 GB, free: 196.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01532/2.367, allocations: 2.273 MB / 0.751 GB, free: 195 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02285/2.39, allocations: 12.67 MB / 0.7634 GB, free: 182.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01239/2.402, allocations: 0.5501 MB / 0.7639 GB, free: 182.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002386/2.405, allocations: 0.5596 MB / 0.7645 GB, free: 181.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 893 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1166): * Single equations (assignments): 1160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0109/2.416, allocations: 3.535 MB / 0.7679 GB, free: 178 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002512/2.418, allocations: 0.6402 MB / 0.7685 GB, free: 177.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02243/2.441, allocations: 7.003 MB / 0.7754 GB, free: 170.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-05/2.441, allocations: 36.55 kB / 0.7754 GB, free: 170.3 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.742e-05/2.441, allocations: 12 kB / 0.7754 GB, free: 170.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-05/2.441, allocations: 23.89 kB / 0.7754 GB, free: 170.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04975/2.491, allocations: 16.05 MB / 0.7911 GB, free: 154.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.142e-05/2.491, allocations: 7.891 kB / 0.7911 GB, free: 154.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007489/2.498, allocations: 0.6279 MB / 0.7917 GB, free: 153.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0082/2.506, allocations: 1.247 MB / 0.793 GB, free: 152.3 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001217/2.508, allocations: 63.66 kB / 0.793 GB, free: 152.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02997/2.538, allocations: 11.65 MB / 0.8044 GB, free: 140.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/2.538, allocations: 4 kB / 0.8044 GB, free: 140.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04015/2.578, allocations: 11.76 MB / 0.8159 GB, free: 128.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005355/2.583, allocations: 1.258 MB / 0.8171 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003253/2.587, allocations: 52 kB / 0.8172 GB, free: 127 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006868/2.594, allocations: 207.7 kB / 0.8174 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001372/2.595, allocations: 198.3 kB / 0.8176 GB, free: 126.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005839/2.596, allocations: 87.98 kB / 0.8176 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01388/2.61, allocations: 5.031 MB / 0.8225 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.302e-06/2.61, allocations: 0 / 0.8225 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01315/2.623, allocations: 1.828 MB / 0.8243 GB, free: 119.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/2.624, allocations: 226.8 kB / 0.8245 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02313/2.648, allocations: 9.479 MB / 0.8338 GB, free: 110 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/2.648, allocations: 4 kB / 0.8338 GB, free: 110 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009557/2.657, allocations: 3.663 MB / 0.8374 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007657/2.665, allocations: 0.8171 MB / 0.8382 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05033/2.715, allocations: 21.04 MB / 0.8587 GB, free: 84.41 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01269/2.728, allocations: 5.608 MB / 0.8642 GB, free: 78.77 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003767/2.732, allocations: 0.5072 MB / 0.8647 GB, free: 78.26 MB / 0.5417 GB Notification: Performance of SimCode: time 1.754e-06/2.732, allocations: 0 / 0.8647 GB, free: 78.26 MB / 0.5417 GB Notification: Performance of Templates: time 0.707/3.439, allocations: 196.6 MB / 1.057 GB, free: 88.82 MB / 0.5417 GB