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_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint") Notification: Performance of loadModel(ModelicaTest): time 2.291/2.291, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.261e-05, allocations: 8 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1324, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint): time 0.4142/0.5466, allocations: 57.35 MB / 468.3 MB, free: 10.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04128/0.588, allocations: 12.62 MB / 480.9 MB, free: 1.562 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01618/0.6042, allocations: 311.2 kB / 481.2 MB, free: 1.258 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0124/0.6167, allocations: 2.982 MB / 484.2 MB, free: 14.26 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03354/0.6502, allocations: 8.2 MB / 492.4 MB, free: 6.039 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005456/0.6557, allocations: 0.7685 MB / 493.2 MB, free: 5.27 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.1193/0.7751, allocations: 47.16 MB / 0.5276 GB, free: 6.074 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01241/0.7876, allocations: 5.947 MB / 0.5335 GB, free: 84 kB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002861/0.7905, allocations: 1.075 MB / 0.5345 GB, free: 15 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003699/0.7942, allocations: 1.617 MB / 0.5361 GB, free: 13.38 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003141/0.7974, allocations: 0.9052 MB / 0.537 GB, free: 12.48 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001344/0.7988, allocations: 156 kB / 0.5371 GB, free: 12.32 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003337/0.8022, allocations: 1.94 MB / 0.539 GB, free: 10.38 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001813/0.804, allocations: 344 kB / 0.5393 GB, free: 10.04 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01178/0.8158, allocations: 7.248 MB / 0.5464 GB, free: 2.777 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.8159, allocations: 0 / 0.5464 GB, free: 2.777 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.8159, allocations: 0 / 0.5464 GB, free: 2.777 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002933/0.8162, allocations: 4 kB / 0.5464 GB, free: 2.773 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01638/0.8326, allocations: 4.965 MB / 0.5513 GB, free: 13.74 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.8327, allocations: 8.031 kB / 0.5513 GB, free: 13.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1186/0.9513, allocations: 11.69 MB / 0.5627 GB, free: 2.023 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01284/0.9641, allocations: 3.876 MB / 0.5665 GB, free: 14.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004069/0.9646, allocations: 307.8 kB / 0.5668 GB, free: 13.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002189/0.9668, allocations: 431.6 kB / 0.5672 GB, free: 13.37 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03417/1.001, allocations: 11.74 MB / 0.5786 GB, free: 0.8906 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002512/1.001, allocations: 55.42 kB / 0.5787 GB, free: 0.8359 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001379/1.003, allocations: 195.9 kB / 0.5789 GB, free: 0.6445 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006607/1.009, allocations: 2.081 MB / 0.5809 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03239/1.042, allocations: 9.982 MB / 0.5907 GB, free: 4.562 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4214/1.463, allocations: 45.55 MB / 0.6351 GB, free: 144.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01862/1.482, allocations: 4.253 MB / 0.6393 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02426/1.506, allocations: 9.536 MB / 0.6486 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/1.506, allocations: 50.66 kB / 0.6487 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=171): time 6.612e-06/1.506, allocations: 3.969 kB / 0.6487 GB, free: 137.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=197): time 0.08182/1.588, allocations: 18.53 MB / 0.6668 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/1.588, allocations: 206.9 kB / 0.667 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008941/1.597, allocations: 4.436 MB / 0.6713 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004329/1.598, allocations: 58.33 kB / 0.6713 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002644/1.6, allocations: 3.507 MB / 0.6748 GB, free: 123 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.601, allocations: 0.7511 MB / 0.6755 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005358/1.602, allocations: 125.1 kB / 0.6756 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003394/1.602, allocations: 0.5752 MB / 0.6762 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004825/1.607, allocations: 2.167 MB / 0.6783 GB, free: 119.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007103/1.614, allocations: 5.987 MB / 0.6841 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007598/1.622, allocations: 3.541 MB / 0.6876 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/1.622, allocations: 36 kB / 0.6876 GB, free: 108 MB / 0.5105 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02222/1.644, allocations: 8.568 MB / 0.696 GB, free: 99.44 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.452e-05/1.645, allocations: 64 kB / 0.6961 GB, free: 99.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001573/1.645, allocations: 132.8 kB / 0.6962 GB, free: 99.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005035/1.65, allocations: 1.101 MB / 0.6973 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008308/1.658, allocations: 1.435 MB / 0.6987 GB, free: 96.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/1.673, allocations: 8.401 MB / 0.7069 GB, free: 88.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00665/1.68, allocations: 352.2 kB / 0.7072 GB, free: 87.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/1.681, allocations: 384 kB / 0.7076 GB, free: 87.33 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (756): * Single equations (assignments): 751 * 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.005232/1.686, allocations: 2.436 MB / 0.71 GB, free: 84.88 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/1.687, allocations: 414.6 kB / 0.7103 GB, free: 84.47 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009616/1.697, allocations: 3.504 MB / 0.7138 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.406e-05/1.697, allocations: 20 kB / 0.7138 GB, free: 80.93 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/1.697, allocations: 8 kB / 0.7138 GB, free: 80.92 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-05/1.697, allocations: 11.95 kB / 0.7138 GB, free: 80.91 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02377/1.721, allocations: 9.058 MB / 0.7227 GB, free: 71.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.69e-05/1.721, allocations: 0 / 0.7227 GB, free: 71.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002822/1.724, allocations: 307.6 kB / 0.7229 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00452/1.728, allocations: 0.8495 MB / 0.7238 GB, free: 70.67 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003883/1.729, allocations: 33.38 kB / 0.7238 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/1.743, allocations: 7.55 MB / 0.7312 GB, free: 62.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.743, allocations: 0 / 0.7312 GB, free: 62.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01443/1.757, allocations: 6.175 MB / 0.7372 GB, free: 56.58 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/1.759, allocations: 471.6 kB / 0.7377 GB, free: 56.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001114/1.76, allocations: 40.92 kB / 0.7377 GB, free: 56.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003057/1.763, allocations: 103.9 kB / 0.7378 GB, free: 55.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004796/1.763, allocations: 124.1 kB / 0.7379 GB, free: 55.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001992/1.764, allocations: 51.98 kB / 0.738 GB, free: 55.79 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006376/1.77, allocations: 3.154 MB / 0.741 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.81e-07/1.77, allocations: 4 kB / 0.7411 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00673/1.777, allocations: 1.169 MB / 0.7422 GB, free: 51.47 MB / 0.5105 GB 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 (147): * Single equations (assignments): 142 * 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.0007118/1.778, allocations: 180.9 kB / 0.7424 GB, free: 51.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01219/1.79, allocations: 5.508 MB / 0.7477 GB, free: 45.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.79, allocations: 4 kB / 0.7477 GB, free: 45.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004373/1.794, allocations: 1.895 MB / 0.7496 GB, free: 43.87 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003988/1.798, allocations: 0.5176 MB / 0.7501 GB, free: 43.35 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02675/1.825, allocations: 13.4 MB / 0.7632 GB, free: 29.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006709/1.832, allocations: 3.977 MB / 0.7671 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/1.834, allocations: 323.4 kB / 0.7674 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of SimCode: time 1.663e-06/1.834, allocations: 0 / 0.7674 GB, free: 25.58 MB / 0.5105 GB Notification: Performance of Templates: time 0.5812/2.415, allocations: 108 MB / 0.8728 GB, free: 123.3 MB / 0.5261 GB