Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadModel(Modelica): time 1.984/1.984, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.952e-05/1.956e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2527, allocations: 44.5 MB / 294.1 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1444/0.3972, allocations: 92.09 MB / 386.2 MB, free: 5.875 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.3975, allocations: 91.88 kB / 386.3 MB, free: 5.785 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5854/0.9829, allocations: 104 MB / 490.2 MB, free: 58.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.582e-06/0.983, allocations: 0 / 490.2 MB, free: 58.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003155/0.9833, allocations: 108 kB / 490.3 MB, free: 58.73 MB / 362.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.01564/0.999, allocations: 5.255 MB / 495.6 MB, free: 53.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.999, allocations: 8.031 kB / 495.6 MB, free: 53.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03577/1.035, allocations: 6.943 MB / 0.4908 GB, free: 46.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01836/1.053, allocations: 6.799 MB / 0.4974 GB, free: 39.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/1.054, allocations: 172 kB / 0.4976 GB, free: 39.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001944/1.055, allocations: 327.8 kB / 0.4979 GB, free: 39.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01517/1.071, allocations: 7.545 MB / 0.5053 GB, free: 31.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02347/1.094, allocations: 11.33 MB / 0.5163 GB, free: 19.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002595/1.095, allocations: 67.41 kB / 0.5164 GB, free: 19.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001246/1.096, allocations: 39.95 kB / 0.5164 GB, free: 19.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00161/1.097, allocations: 1.125 MB / 0.5175 GB, free: 17.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.329/1.426, allocations: 55.94 MB / 0.5721 GB, free: 56.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/1.437, allocations: 3.508 MB / 0.5756 GB, free: 56.14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006633/1.443, allocations: 2.277 MB / 0.5778 GB, free: 56.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006913/1.444, allocations: 336.1 kB / 0.5781 GB, free: 55.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.212e-05/1.444, allocations: 57.62 kB / 0.5782 GB, free: 55.78 MB / 394.7 MB Notification: Performance of pre-optimization done (n=201): time 1.09e-05/1.444, allocations: 3.688 kB / 0.5782 GB, free: 55.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=228): time 0.08363/1.528, allocations: 19.93 MB / 0.5976 GB, free: 52.51 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.08e-05/1.528, allocations: 209.6 kB / 0.5978 GB, free: 52.29 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0106/1.539, allocations: 3.658 MB / 0.6014 GB, free: 51.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005016/1.539, allocations: 25.7 kB / 0.6014 GB, free: 51.87 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005192/1.544, allocations: 3.726 MB / 0.6051 GB, free: 49.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001937/1.546, allocations: 0.8385 MB / 0.6059 GB, free: 49.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001131/1.548, allocations: 0 / 0.6059 GB, free: 49.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0009611/1.549, allocations: 0.5992 MB / 0.6065 GB, free: 48.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006181/1.555, allocations: 2.171 MB / 0.6086 GB, free: 48.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00638/1.561, allocations: 6.229 MB / 0.6147 GB, free: 41.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006759/1.568, allocations: 3.664 MB / 0.6183 GB, free: 40.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002004/1.568, allocations: 42.03 kB / 0.6183 GB, free: 40.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01973/1.588, allocations: 8.11 MB / 0.6262 GB, free: 38.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/1.588, allocations: 66.16 kB / 0.6263 GB, free: 38.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001551/1.588, allocations: 144.1 kB / 0.6264 GB, free: 38.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003318/1.592, allocations: 0.9532 MB / 0.6274 GB, free: 38.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006518/1.598, allocations: 1.574 MB / 0.6289 GB, free: 38.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/1.608, allocations: 7.242 MB / 0.636 GB, free: 32.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006108/1.615, allocations: 235.7 kB / 0.6362 GB, free: 31.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001197/1.616, allocations: 419.3 kB / 0.6366 GB, free: 31.49 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * 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 (832): * Single equations (assignments): 827 * 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.001066/1.617, allocations: 482.7 kB / 0.637 GB, free: 31.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007971/1.618, allocations: 401.4 kB / 0.6374 GB, free: 30.63 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007156/1.625, allocations: 3.486 MB / 0.6408 GB, free: 27.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.571e-05/1.625, allocations: 24.7 kB / 0.6409 GB, free: 27.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/1.625, allocations: 6.5 kB / 0.6409 GB, free: 27.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.168e-05/1.625, allocations: 18.22 kB / 0.6409 GB, free: 27.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01996/1.645, allocations: 8.54 MB / 0.6492 GB, free: 20.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/1.645, allocations: 11.8 kB / 0.6492 GB, free: 20.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002103/1.647, allocations: 360.5 kB / 0.6496 GB, free: 20.51 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002778/1.65, allocations: 0.674 MB / 0.6502 GB, free: 20.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00026/1.65, allocations: 8 kB / 0.6502 GB, free: 20.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008494/1.659, allocations: 6.207 MB / 0.6563 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.687e-06/1.659, allocations: 4 kB / 0.6563 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01073/1.67, allocations: 6.331 MB / 0.6625 GB, free: 8.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001991/1.672, allocations: 0.7132 MB / 0.6632 GB, free: 7.906 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007891/1.672, allocations: 4 kB / 0.6632 GB, free: 7.902 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002216/1.675, allocations: 78.95 kB / 0.6633 GB, free: 7.859 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004535/1.675, allocations: 135.6 kB / 0.6634 GB, free: 7.773 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002196/1.675, allocations: 65.05 kB / 0.6635 GB, free: 7.715 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004532/1.68, allocations: 2.476 MB / 0.6659 GB, free: 5.559 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.076e-06/1.68, allocations: 3.719 kB / 0.6659 GB, free: 5.559 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007561/1.688, allocations: 1.03 MB / 0.6669 GB, free: 4.531 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (179): * Single equations (assignments): 174 * 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.0006271/1.688, allocations: 147.9 kB / 0.667 GB, free: 4.387 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01067/1.699, allocations: 5.471 MB / 0.6724 GB, free: 15.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.441e-06/1.699, allocations: 1.781 kB / 0.6724 GB, free: 15.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004149/1.703, allocations: 1.946 MB / 0.6743 GB, free: 13.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/1.706, allocations: 447.8 kB / 0.6747 GB, free: 13.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02438/1.731, allocations: 9.855 MB / 0.6843 GB, free: 4.559 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00771/1.738, allocations: 4.117 MB / 0.6883 GB, free: 1.477 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001594/1.74, allocations: 318.2 kB / 0.6886 GB, free: 1.176 MB / 410.7 MB Notification: Performance of SimCode: time 1.927e-06/1.74, allocations: 3.938 kB / 0.6886 GB, free: 1.172 MB / 410.7 MB Notification: Performance of Templates: time 0.4125/2.152, allocations: 109.9 MB / 0.796 GB, free: 122.5 MB / 458.7 MB