Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3") Notification: Performance of loadModel(ModelicaTest): time 2.309/2.309, allocations: 234.9 MB / 250.1 MB, free: 10.03 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.502e-05/5.5e-05, allocations: 4.047 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.3766, allocations: 54.86 MB / 362.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3): time 0.1093/0.486, allocations: 68.89 MB / 431.7 MB, free: 8.812 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0438/0.5298, allocations: 14.98 MB / 446.7 MB, free: 9.785 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01617/0.546, allocations: 379.1 kB / 447.1 MB, free: 9.414 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01268/0.5588, allocations: 3.655 MB / 450.7 MB, free: 5.742 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03711/0.5959, allocations: 9.813 MB / 460.6 MB, free: 11.9 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006475/0.6025, allocations: 1.014 MB / 461.6 MB, free: 10.89 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.07249/0.675, allocations: 24.77 MB / 486.3 MB, free: 2.094 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01587/0.6909, allocations: 7.212 MB / 493.6 MB, free: 10.84 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003892/0.6949, allocations: 1.43 MB / 495 MB, free: 9.406 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004995/0.6999, allocations: 2.178 MB / 497.2 MB, free: 7.223 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003683/0.7037, allocations: 0.9949 MB / 498.2 MB, free: 6.227 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001931/0.7057, allocations: 200 kB / 498.4 MB, free: 6.031 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004495/0.7102, allocations: 2.54 MB / 0.4892 GB, free: 3.484 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002472/0.7127, allocations: 456 kB / 0.4896 GB, free: 3.039 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3903/1.103, allocations: 9.55 MB / 0.4989 GB, free: 31.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/1.103, allocations: 0 / 0.4989 GB, free: 31.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.277e-06/1.103, allocations: 0 / 0.4989 GB, free: 31.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005288/1.104, allocations: 0 / 0.4989 GB, free: 31.59 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: 2232 * Number of variables: 2232 Notification: Performance of Generate backend data structure: time 0.02919/1.133, allocations: 6.942 MB / 0.5057 GB, free: 29.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.133, allocations: 8.125 kB / 0.5057 GB, free: 29.01 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5541/1.687, allocations: 27.49 MB / 0.5326 GB, free: 20.19 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03213/1.719, allocations: 6.121 MB / 0.5385 GB, free: 16.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007092/1.72, allocations: 386.9 kB / 0.5389 GB, free: 16.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004834/1.725, allocations: 0.5334 MB / 0.5394 GB, free: 15.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05282/1.778, allocations: 16.2 MB / 0.5552 GB, free: 3.504 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000454/1.778, allocations: 67.02 kB / 0.5553 GB, free: 3.465 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00359/1.782, allocations: 237.3 kB / 0.5555 GB, free: 3.398 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006648/1.789, allocations: 2.624 MB / 0.5581 GB, free: 1.254 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05256/1.841, allocations: 14.54 MB / 0.5723 GB, free: 7.133 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1757/2.017, allocations: 62.99 MB / 0.6338 GB, free: 3.461 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04623/2.063, allocations: 7.602 MB / 0.6412 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07061/2.134, allocations: 18.45 MB / 0.6593 GB, free: 11.53 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.727e-05/2.134, allocations: 67.3 kB / 0.6593 GB, free: 11.46 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=310): time 7.063e-06/2.134, allocations: 0 / 0.6593 GB, free: 11.46 MB / 0.5105 GB Notification: Performance of matching and sorting (n=394): time 0.6516/2.786, allocations: 62.5 MB / 0.7204 GB, free: 205.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/2.786, allocations: 330.9 kB / 0.7207 GB, free: 205.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0188/2.805, allocations: 5.676 MB / 0.7262 GB, free: 200 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.002034/2.807, allocations: 85.7 kB / 0.7263 GB, free: 199.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005218/2.812, allocations: 4.205 MB / 0.7304 GB, free: 195.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003917/2.816, allocations: 1.428 MB / 0.7318 GB, free: 194.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002377/2.819, allocations: 171.3 kB / 0.732 GB, free: 194.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0008894/2.819, allocations: 0.6671 MB / 0.7326 GB, free: 193.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01676/2.836, allocations: 5.013 MB / 0.7375 GB, free: 188.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0163/2.853, allocations: 9.372 MB / 0.7467 GB, free: 177 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01677/2.869, allocations: 6.736 MB / 0.7532 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000161/2.87, allocations: 40 kB / 0.7533 GB, free: 170.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.06341/2.933, allocations: 18.93 MB / 0.7718 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000117/2.933, allocations: 73.23 kB / 0.7718 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002106/2.933, allocations: 152 kB / 0.772 GB, free: 151.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02883/2.962, allocations: 5.573 MB / 0.7774 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01483/2.977, allocations: 1.996 MB / 0.7794 GB, free: 143.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06738/3.045, allocations: 28.26 MB / 0.807 GB, free: 115 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01375/3.058, allocations: 0.6318 MB / 0.8076 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002858/3.061, allocations: 496 kB / 0.8081 GB, free: 113.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 54 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.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 (988): * Single equations (assignments): 982 * 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 {(2,100.0%) 16,(14,42.9%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01053/3.072, allocations: 3.104 MB / 0.8111 GB, free: 110.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002907/3.075, allocations: 0.5448 MB / 0.8116 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05494/3.13, allocations: 14.02 MB / 0.8253 GB, free: 96.11 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.907e-05/3.13, allocations: 40 kB / 0.8254 GB, free: 96.07 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.891e-05/3.13, allocations: 16 kB / 0.8254 GB, free: 96.05 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001079/3.13, allocations: 19.92 kB / 0.8254 GB, free: 96.03 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08392/3.214, allocations: 24.53 MB / 0.8493 GB, free: 71.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-05/3.214, allocations: 7.938 kB / 0.8494 GB, free: 71.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007814/3.222, allocations: 0.6865 MB / 0.85 GB, free: 70.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02845/3.251, allocations: 5.337 MB / 0.8552 GB, free: 65.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001752/3.252, allocations: 67.98 kB / 0.8553 GB, free: 65.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06655/3.319, allocations: 27.63 MB / 0.8823 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/3.319, allocations: 4.031 kB / 0.8823 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06576/3.385, allocations: 20.81 MB / 0.9026 GB, free: 16.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3687/3.754, allocations: 1.51 MB / 0.9041 GB, free: 202.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003946/3.758, allocations: 62.03 kB / 0.9041 GB, free: 202.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009824/3.767, allocations: 385.1 kB / 0.9045 GB, free: 202.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00262/3.77, allocations: 249 kB / 0.9047 GB, free: 202.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00167/3.772, allocations: 98.06 kB / 0.9048 GB, free: 202.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01185/3.784, allocations: 4.117 MB / 0.9089 GB, free: 202.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.092e-06/3.784, allocations: 0 / 0.9089 GB, free: 202.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01462/3.798, allocations: 1.98 MB / 0.9108 GB, free: 202.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (305): * Single equations (assignments): 299 * 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 {(3,100.0%) 12,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002373/3.801, allocations: 225.4 kB / 0.911 GB, free: 202.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03815/3.839, allocations: 13.1 MB / 0.9238 GB, free: 198.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/3.839, allocations: 0 / 0.9238 GB, free: 198.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.022/3.861, allocations: 6.452 MB / 0.9301 GB, free: 196 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007462/3.869, allocations: 0.6988 MB / 0.9308 GB, free: 195.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05711/3.926, allocations: 21.25 MB / 0.9515 GB, free: 177.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01269/3.939, allocations: 5.08 MB / 0.9565 GB, free: 174 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004938/3.944, allocations: 461.4 kB / 0.9569 GB, free: 173.6 MB / 0.5261 GB Notification: Performance of SimCode: time 3.286e-06/3.944, allocations: 0 / 0.9569 GB, free: 173.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.6995/4.643, allocations: 184.7 MB / 1.137 GB, free: 185.1 MB / 0.5261 GB