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.179/2.179, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.524e-05/3.537e-05, allocations: 4 kB / 304.9 MB, free: 5.664 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3267, allocations: 54.86 MB / 359.8 MB, free: 2.652 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.4841, allocations: 102.5 MB / 462.3 MB, free: 10.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.4844, allocations: 72.75 kB / 462.4 MB, free: 10.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7988/1.283, allocations: 151.9 MB / 0.5999 GB, free: 88.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.483e-06/1.283, allocations: 0 / 0.5999 GB, free: 88.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004458/1.284, allocations: 151.5 kB / 0.6 GB, free: 88.59 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: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.02238/1.306, allocations: 7.37 MB / 0.6072 GB, free: 81.85 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/1.306, allocations: 12.03 kB / 0.6073 GB, free: 81.84 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04933/1.356, allocations: 9.632 MB / 0.6167 GB, free: 72.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0243/1.38, allocations: 9.125 MB / 0.6256 GB, free: 62.98 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005868/1.381, allocations: 0.5775 MB / 0.6261 GB, free: 62.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003061/1.384, allocations: 0.7691 MB / 0.6269 GB, free: 61.63 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0418/1.425, allocations: 17.93 MB / 0.6444 GB, free: 42.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003977/1.426, allocations: 111 kB / 0.6445 GB, free: 41.94 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002148/1.428, allocations: 367.8 kB / 0.6449 GB, free: 41.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002821/1.431, allocations: 1.695 MB / 0.6465 GB, free: 39.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0331/1.464, allocations: 14.09 MB / 0.6603 GB, free: 25.76 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7073/2.171, allocations: 80.8 MB / 0.7392 GB, free: 39.23 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02248/2.194, allocations: 7.104 MB / 0.7461 GB, free: 38.51 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00728/2.201, allocations: 4.073 MB / 0.7501 GB, free: 38.45 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003108/2.202, allocations: 57.86 kB / 0.7502 GB, free: 38.45 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/2.202, allocations: 72.62 kB / 0.7502 GB, free: 38.41 MB / 474.8 MB Notification: Performance of pre-optimization done (n=307): time 8.768e-06/2.202, allocations: 0.9375 kB / 0.7502 GB, free: 38.41 MB / 474.8 MB Notification: Performance of matching and sorting (n=340): time 0.09515/2.297, allocations: 27.35 MB / 0.7769 GB, free: 31.39 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/2.297, allocations: 303.1 kB / 0.7772 GB, free: 31.08 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01496/2.312, allocations: 6.508 MB / 0.7836 GB, free: 30.5 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007168/2.313, allocations: 75.92 kB / 0.7837 GB, free: 30.43 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003918/2.317, allocations: 5.083 MB / 0.7886 GB, free: 26.42 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001732/2.318, allocations: 1.284 MB / 0.7899 GB, free: 25.48 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001105/2.32, allocations: 191.2 kB / 0.7901 GB, free: 25.34 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0006892/2.32, allocations: 0.7188 MB / 0.7908 GB, free: 24.85 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007901/2.328, allocations: 3.599 MB / 0.7943 GB, free: 23.61 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01075/2.339, allocations: 9.139 MB / 0.8032 GB, free: 14.91 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/2.35, allocations: 5.702 MB / 0.8088 GB, free: 13.22 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001752/2.35, allocations: 55.31 kB / 0.8088 GB, free: 13.22 MB / 474.8 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03078/2.381, allocations: 12.91 MB / 0.8214 GB, free: 8.164 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001501/2.381, allocations: 90.5 kB / 0.8215 GB, free: 8.078 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002276/2.381, allocations: 196 kB / 0.8217 GB, free: 7.887 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004343/2.386, allocations: 1.382 MB / 0.823 GB, free: 6.805 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01042/2.396, allocations: 2.235 MB / 0.8252 GB, free: 4.879 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01945/2.416, allocations: 11.33 MB / 0.8363 GB, free: 10.67 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01042/2.426, allocations: 0.5249 MB / 0.8368 GB, free: 10.21 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002262/2.429, allocations: 0.5638 MB / 0.8374 GB, free: 9.668 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * 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 (1172): * Single equations (assignments): 1166 * 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.00307/2.432, allocations: 0.8409 MB / 0.8382 GB, free: 8.824 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001882/2.434, allocations: 0.6402 MB / 0.8388 GB, free: 8.176 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01741/2.451, allocations: 6.595 MB / 0.8452 GB, free: 2.746 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-05/2.451, allocations: 36 kB / 0.8453 GB, free: 2.711 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.985e-05/2.451, allocations: 18.42 kB / 0.8453 GB, free: 2.699 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.39e-05/2.451, allocations: 18.81 kB / 0.8453 GB, free: 2.695 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04325/2.495, allocations: 15.45 MB / 0.8604 GB, free: 6.379 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.614e-05/2.495, allocations: 4 kB / 0.8604 GB, free: 6.375 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004265/2.499, allocations: 0.5745 MB / 0.861 GB, free: 5.914 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00414/2.503, allocations: 1.055 MB / 0.862 GB, free: 5.148 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007483/2.504, allocations: 60.38 kB / 0.862 GB, free: 5.094 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01823/2.522, allocations: 10.24 MB / 0.872 GB, free: 11.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.446e-06/2.522, allocations: 4 kB / 0.8721 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02384/2.546, allocations: 11.12 MB / 0.8829 GB, free: 1.293 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004445/2.55, allocations: 1.211 MB / 0.8841 GB, free: 56 kB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001804/2.552, allocations: 58.5 kB / 0.8842 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004673/2.557, allocations: 199.7 kB / 0.8843 GB, free: 15.8 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009873/2.558, allocations: 202.5 kB / 0.8845 GB, free: 15.61 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004113/2.558, allocations: 87.98 kB / 0.8846 GB, free: 15.52 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01235/2.571, allocations: 4.624 MB / 0.8891 GB, free: 10.93 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.115e-06/2.571, allocations: 0 / 0.8891 GB, free: 10.93 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01213/2.583, allocations: 1.791 MB / 0.8909 GB, free: 9.145 MB / 0.5262 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.00103/2.584, allocations: 205.5 kB / 0.8911 GB, free: 8.938 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01986/2.604, allocations: 8.814 MB / 0.8997 GB, free: 140 kB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 7.181e-06/2.604, allocations: 0 / 0.8997 GB, free: 140 kB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.3008/2.905, allocations: 3.431 MB / 0.903 GB, free: 151.3 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005889/2.911, allocations: 0.8185 MB / 0.9038 GB, free: 151.2 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.041/2.952, allocations: 15.17 MB / 0.9187 GB, free: 148.6 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0137/2.966, allocations: 5.611 MB / 0.9241 GB, free: 147.7 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002986/2.969, allocations: 0.5017 MB / 0.9246 GB, free: 147.7 MB / 0.5262 GB Notification: Performance of SimCode: time 1.843e-06/2.969, allocations: 0 / 0.9246 GB, free: 147.7 MB / 0.5262 GB Notification: Performance of Templates: time 0.5753/3.544, allocations: 193.6 MB / 1.114 GB, free: 146.7 MB / 0.5262 GB