Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.276/2.276, allocations: 234.9 MB / 250.1 MB, free: 10.92 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.964e-05/3.972e-05, allocations: 7.984 kB / 308 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4026, allocations: 54.87 MB / 362.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.08465/0.4873, allocations: 55.36 MB / 418.2 MB, free: 4.402 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03484/0.5222, allocations: 12.25 MB / 430.5 MB, free: 8.109 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0126/0.5349, allocations: 295.3 kB / 430.8 MB, free: 7.82 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01046/0.5454, allocations: 2.928 MB / 433.7 MB, free: 4.879 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03753/0.583, allocations: 7.923 MB / 441.6 MB, free: 12.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006457/0.5896, allocations: 0.7761 MB / 442.4 MB, free: 12.16 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.06179/0.6514, allocations: 16.79 MB / 459.2 MB, free: 11.35 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01492/0.6664, allocations: 5.993 MB / 465.2 MB, free: 5.301 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002904/0.6694, allocations: 1.114 MB / 466.3 MB, free: 4.184 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00389/0.6733, allocations: 1.691 MB / 468 MB, free: 2.488 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003481/0.6768, allocations: 0.9597 MB / 468.9 MB, free: 1.527 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001706/0.6786, allocations: 168 kB / 469.1 MB, free: 1.363 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003605/0.6822, allocations: 2.003 MB / 471.1 MB, free: 15.36 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001775/0.6841, allocations: 364 kB / 471.5 MB, free: 15 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01318/0.6973, allocations: 7.567 MB / 479 MB, free: 7.414 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.6973, allocations: 0 / 479 MB, free: 7.414 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.553e-06/0.6974, allocations: 0 / 479 MB, free: 7.414 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003515/0.6977, allocations: 3.938 kB / 479 MB, free: 7.41 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.03976/0.7375, allocations: 5.212 MB / 484.2 MB, free: 2.125 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.055e-05/0.7376, allocations: 8.031 kB / 484.2 MB, free: 2.117 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4449/1.182, allocations: 11.71 MB / 496 MB, free: 106.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0122/1.195, allocations: 4.276 MB / 0.4885 GB, free: 102.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003224/1.195, allocations: 316.2 kB / 0.4888 GB, free: 102.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001995/1.197, allocations: 441.4 kB / 0.4892 GB, free: 102 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03091/1.228, allocations: 12.29 MB / 0.5012 GB, free: 89.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002352/1.228, allocations: 59.52 kB / 0.5013 GB, free: 89.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009099/1.229, allocations: 197.2 kB / 0.5015 GB, free: 88.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004576/1.234, allocations: 2.085 MB / 0.5035 GB, free: 86.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03083/1.265, allocations: 10.41 MB / 0.5137 GB, free: 76.35 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08078/1.346, allocations: 47.07 MB / 0.5597 GB, free: 28.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01821/1.364, allocations: 4.49 MB / 0.564 GB, free: 23.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02403/1.388, allocations: 10.14 MB / 0.5739 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/1.388, allocations: 51.88 kB / 0.574 GB, free: 13.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 7.303e-06/1.388, allocations: 0 / 0.574 GB, free: 13.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.09076/1.479, allocations: 19.83 MB / 0.5934 GB, free: 9.277 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/1.479, allocations: 205.2 kB / 0.5936 GB, free: 9.035 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01192/1.491, allocations: 4.519 MB / 0.598 GB, free: 4.516 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005386/1.492, allocations: 57.7 kB / 0.598 GB, free: 4.453 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004361/1.496, allocations: 3.614 MB / 0.6015 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.498, allocations: 0.8252 MB / 0.6024 GB, free: 15.97 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007346/1.498, allocations: 132 kB / 0.6025 GB, free: 15.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005778/1.499, allocations: 0.5798 MB / 0.603 GB, free: 15.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006958/1.506, allocations: 2.336 MB / 0.6053 GB, free: 12.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01132/1.517, allocations: 6.246 MB / 0.6114 GB, free: 4.711 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/1.528, allocations: 3.751 MB / 0.6151 GB, free: 0.957 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001415/1.528, allocations: 36.28 kB / 0.6151 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.02861/1.556, allocations: 9.007 MB / 0.6239 GB, free: 7.898 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001328/1.557, allocations: 64.09 kB / 0.624 GB, free: 7.836 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002362/1.557, allocations: 144.8 kB / 0.6241 GB, free: 7.695 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005694/1.563, allocations: 1.1 MB / 0.6252 GB, free: 6.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009749/1.572, allocations: 1.509 MB / 0.6267 GB, free: 5.078 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0188/1.591, allocations: 8.386 MB / 0.6349 GB, free: 12.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007254/1.599, allocations: 379.4 kB / 0.6352 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001491/1.6, allocations: 396 kB / 0.6356 GB, free: 11.67 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 786 * 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 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007279/1.607, allocations: 2.51 MB / 0.638 GB, free: 9.145 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/1.609, allocations: 426.5 kB / 0.6385 GB, free: 8.723 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01417/1.623, allocations: 3.892 MB / 0.6423 GB, free: 4.809 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.505e-05/1.623, allocations: 31.94 kB / 0.6423 GB, free: 4.777 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.19e-05/1.623, allocations: 12 kB / 0.6423 GB, free: 4.766 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-05/1.623, allocations: 7.969 kB / 0.6423 GB, free: 4.758 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0325/1.656, allocations: 9.769 MB / 0.6518 GB, free: 10.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.005e-05/1.656, allocations: 7.984 kB / 0.6519 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003532/1.659, allocations: 347.5 kB / 0.6522 GB, free: 10.57 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005069/1.664, allocations: 0.8612 MB / 0.653 GB, free: 9.703 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004748/1.665, allocations: 36 kB / 0.6531 GB, free: 9.668 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0172/1.682, allocations: 7.528 MB / 0.6604 GB, free: 1.867 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.682, allocations: 0 / 0.6604 GB, free: 1.867 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3459/2.028, allocations: 6.754 MB / 0.667 GB, free: 165.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00272/2.031, allocations: 0.7686 MB / 0.6678 GB, free: 165 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001396/2.032, allocations: 39.31 kB / 0.6678 GB, free: 165 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003735/2.036, allocations: 125.6 kB / 0.6679 GB, free: 164.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007691/2.037, allocations: 132 kB / 0.668 GB, free: 164.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002364/2.037, allocations: 58.05 kB / 0.6681 GB, free: 164.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008022/2.045, allocations: 3.222 MB / 0.6712 GB, free: 163.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.61e-07/2.045, allocations: 0 / 0.6712 GB, free: 163.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007488/2.053, allocations: 1.218 MB / 0.6724 GB, free: 163.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 164 * 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 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009557/2.054, allocations: 186.5 kB / 0.6726 GB, free: 163.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01427/2.068, allocations: 5.908 MB / 0.6784 GB, free: 161.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/2.068, allocations: 3.562 kB / 0.6784 GB, free: 161.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005443/2.074, allocations: 2.085 MB / 0.6804 GB, free: 160.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004456/2.078, allocations: 0.5253 MB / 0.6809 GB, free: 160.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03119/2.109, allocations: 14.08 MB / 0.6947 GB, free: 151.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008472/2.118, allocations: 4.105 MB / 0.6987 GB, free: 148.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00192/2.12, allocations: 338.6 kB / 0.699 GB, free: 147.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.784e-06/2.12, allocations: 4 kB / 0.699 GB, free: 147.8 MB / 490.7 MB Notification: Performance of Templates: time 0.1969/2.317, allocations: 112.8 MB / 0.8092 GB, free: 35.54 MB / 490.7 MB