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.964/1.964, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.469e-05/2.472e-05, allocations: 0 / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.304, allocations: 44.51 MB / 303.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0852/0.3893, allocations: 55.31 MB / 358.6 MB, free: 6.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03527/0.4246, allocations: 12.26 MB / 370.9 MB, free: 9.957 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01269/0.4373, allocations: 295.3 kB / 371.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.4474, allocations: 2.936 MB / 374.1 MB, free: 6.719 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02913/0.4766, allocations: 7.924 MB / 382 MB, free: 14.77 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004902/0.4816, allocations: 0.7722 MB / 382.8 MB, free: 14 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.04919/0.5308, allocations: 16.78 MB / 399.6 MB, free: 13.21 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0127/0.5436, allocations: 5.986 MB / 405.5 MB, free: 7.164 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002883/0.5465, allocations: 1.114 MB / 406.7 MB, free: 6.047 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003955/0.5505, allocations: 1.699 MB / 408.4 MB, free: 4.344 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003165/0.5538, allocations: 0.9481 MB / 409.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001302/0.5551, allocations: 168 kB / 409.5 MB, free: 3.23 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003355/0.5585, allocations: 2.01 MB / 411.5 MB, free: 1.215 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001686/0.5602, allocations: 356 kB / 411.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01208/0.5723, allocations: 7.571 MB / 419.4 MB, free: 9.277 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.5724, allocations: 0 / 419.4 MB, free: 9.277 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5724, allocations: 3.938 kB / 419.4 MB, free: 9.273 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003171/0.5727, allocations: 4 kB / 419.4 MB, free: 9.27 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.01819/0.5909, allocations: 5.208 MB / 424.6 MB, free: 3.988 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.591, allocations: 8.031 kB / 424.6 MB, free: 3.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3751/0.9661, allocations: 11.71 MB / 436.3 MB, free: 107.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01179/0.978, allocations: 4.276 MB / 440.6 MB, free: 104.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000274/0.9783, allocations: 314 kB / 440.9 MB, free: 103.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001755/0.9801, allocations: 440.1 kB / 441.3 MB, free: 103.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02891/1.009, allocations: 12.28 MB / 453.6 MB, free: 90.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002229/1.009, allocations: 59.48 kB / 453.7 MB, free: 90.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007929/1.01, allocations: 197.2 kB / 453.9 MB, free: 90.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00438/1.014, allocations: 2.088 MB / 456 MB, free: 88.33 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02975/1.044, allocations: 10.42 MB / 466.4 MB, free: 77.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07513/1.119, allocations: 47.06 MB / 0.5014 GB, free: 29.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01821/1.138, allocations: 4.49 MB / 0.5058 GB, free: 25.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02292/1.161, allocations: 10.14 MB / 0.5157 GB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.237e-05/1.161, allocations: 59.81 kB / 0.5158 GB, free: 14.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=192): time 6.342e-06/1.161, allocations: 1.688 kB / 0.5158 GB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.08947/1.25, allocations: 19.82 MB / 0.5351 GB, free: 10.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/1.251, allocations: 205.2 kB / 0.5353 GB, free: 10.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0112/1.262, allocations: 4.519 MB / 0.5397 GB, free: 6.043 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005406/1.262, allocations: 53.7 kB / 0.5398 GB, free: 5.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004234/1.267, allocations: 3.603 MB / 0.5433 GB, free: 2.336 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/1.268, allocations: 0.8368 MB / 0.5441 GB, free: 1.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007253/1.269, allocations: 132 kB / 0.5442 GB, free: 1.359 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005849/1.27, allocations: 0.5837 MB / 0.5448 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006946/1.277, allocations: 2.336 MB / 0.5471 GB, free: 14.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01115/1.288, allocations: 6.239 MB / 0.5532 GB, free: 6.234 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/1.298, allocations: 3.748 MB / 0.5568 GB, free: 2.484 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001319/1.298, allocations: 43.94 kB / 0.5569 GB, free: 2.441 MB / 394.7 MB Notification: Performance of matching and sorting (n=853) (initialization): time 0.0324/1.331, allocations: 9.007 MB / 0.5657 GB, free: 9.418 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/1.331, allocations: 64 kB / 0.5657 GB, free: 9.355 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002489/1.331, allocations: 140 kB / 0.5659 GB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005714/1.337, allocations: 1.101 MB / 0.567 GB, free: 8.113 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009772/1.347, allocations: 1.501 MB / 0.5684 GB, free: 6.609 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3169/1.664, allocations: 8.391 MB / 0.5766 GB, free: 133.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007709/1.671, allocations: 371.7 kB / 0.577 GB, free: 133.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001501/1.673, allocations: 394.8 kB / 0.5773 GB, free: 133.6 MB / 410.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.006191/1.679, allocations: 2.522 MB / 0.5798 GB, free: 133.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/1.68, allocations: 426.4 kB / 0.5802 GB, free: 133.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01167/1.692, allocations: 3.888 MB / 0.584 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.778e-05/1.692, allocations: 23.59 kB / 0.584 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/1.692, allocations: 15.52 kB / 0.584 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.897e-05/1.692, allocations: 7.453 kB / 0.5841 GB, free: 131.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0275/1.72, allocations: 9.777 MB / 0.5936 GB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.429e-05/1.72, allocations: 10 kB / 0.5936 GB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003398/1.723, allocations: 343 kB / 0.5939 GB, free: 128.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004844/1.728, allocations: 0.8545 MB / 0.5948 GB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005027/1.729, allocations: 39.8 kB / 0.5948 GB, free: 127.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01395/1.743, allocations: 7.531 MB / 0.6022 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/1.743, allocations: 2.906 kB / 0.6022 GB, free: 123.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01645/1.759, allocations: 6.766 MB / 0.6088 GB, free: 118.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002576/1.762, allocations: 0.7692 MB / 0.6095 GB, free: 117.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00132/1.763, allocations: 33.02 kB / 0.6096 GB, free: 117.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00364/1.767, allocations: 117.5 kB / 0.6097 GB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006747/1.768, allocations: 136.8 kB / 0.6098 GB, free: 117.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002382/1.768, allocations: 56.78 kB / 0.6099 GB, free: 117.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007153/1.775, allocations: 3.222 MB / 0.613 GB, free: 114.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.775, allocations: 0 / 0.613 GB, free: 114.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007281/1.782, allocations: 1.223 MB / 0.6142 GB, free: 112.9 MB / 410.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.000882/1.783, allocations: 189.9 kB / 0.6144 GB, free: 112.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01402/1.797, allocations: 5.913 MB / 0.6202 GB, free: 106.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/1.797, allocations: 7.625 kB / 0.6202 GB, free: 106.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005301/1.803, allocations: 2.073 MB / 0.6222 GB, free: 104.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004371/1.807, allocations: 0.5224 MB / 0.6227 GB, free: 104.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03075/1.838, allocations: 14.07 MB / 0.6364 GB, free: 90.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008039/1.846, allocations: 4.107 MB / 0.6404 GB, free: 86.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001997/1.848, allocations: 339.4 kB / 0.6408 GB, free: 85.89 MB / 410.7 MB Notification: Performance of SimCode: time 2.485e-06/1.848, allocations: 0 / 0.6408 GB, free: 85.89 MB / 410.7 MB Notification: Performance of Templates: time 0.473/2.321, allocations: 112.8 MB / 0.7509 GB, free: 118.7 MB / 410.7 MB