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_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3") Notification: Performance of loadModel(ModelicaTest): time 2.589/2.589, allocations: 269 MB / 284.1 MB, free: 3.547 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.524e-05/3.531e-05, allocations: 4 kB / 349 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1332, allocations: 61.89 MB / 410.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3): time 0.434/0.5672, allocations: 71.44 MB / 482.4 MB, free: 15.5 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0508/0.6181, allocations: 15.46 MB / 497.8 MB, free: 0.5703 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01944/0.6376, allocations: 395 kB / 498.2 MB, free: 188 kB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01415/0.6518, allocations: 3.725 MB / 0.4902 GB, free: 12.44 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04127/0.6931, allocations: 10.16 MB / 0.5001 GB, free: 2.254 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007081/0.7003, allocations: 1.006 MB / 0.5011 GB, free: 1.246 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1764/0.8767, allocations: 70.34 MB / 0.5698 GB, free: 10.85 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01585/0.8926, allocations: 7.16 MB / 0.5768 GB, free: 3.652 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00378/0.8965, allocations: 1.379 MB / 0.5781 GB, free: 2.27 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005082/0.9016, allocations: 2.096 MB / 0.5802 GB, free: 172 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003818/0.9055, allocations: 0.9442 MB / 0.5811 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001708/0.9072, allocations: 188 kB / 0.5813 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.004238/0.9115, allocations: 2.466 MB / 0.5837 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.00235/0.9139, allocations: 440 kB / 0.5841 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01421/0.9282, allocations: 9.212 MB / 0.5931 GB, free: 2.902 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.9282, allocations: 3.938 kB / 0.5931 GB, free: 2.898 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.046e-06/0.9282, allocations: 0 / 0.5931 GB, free: 2.898 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003571/0.9286, allocations: 4 kB / 0.5931 GB, free: 2.895 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2149 * Number of variables: 2149 Notification: Performance of Generate backend data structure: time 0.02809/0.9567, allocations: 6.553 MB / 0.5995 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/0.9568, allocations: 12.03 kB / 0.5995 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.8908/1.848, allocations: 27.45 MB / 0.6263 GB, free: 171.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02178/1.869, allocations: 5.556 MB / 0.6317 GB, free: 168.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005025/1.87, allocations: 375.5 kB / 0.6321 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002925/1.873, allocations: 0.5222 MB / 0.6326 GB, free: 168.1 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04339/1.916, allocations: 15.58 MB / 0.6478 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003483/1.917, allocations: 71.28 kB / 0.6479 GB, free: 156.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002235/1.919, allocations: 234.1 kB / 0.6481 GB, free: 156 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008928/1.928, allocations: 2.788 MB / 0.6508 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04254/1.971, allocations: 14.11 MB / 0.6646 GB, free: 139.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1088/2.079, allocations: 61.44 MB / 0.7246 GB, free: 76.53 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03124/2.111, allocations: 7.356 MB / 0.7318 GB, free: 69.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04222/2.153, allocations: 17.86 MB / 0.7492 GB, free: 51.08 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.597e-05/2.153, allocations: 68.55 kB / 0.7493 GB, free: 51.01 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=289): time 7.143e-06/2.153, allocations: 0 / 0.7493 GB, free: 51.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=383): time 0.3069/2.46, allocations: 62.19 MB / 0.81 GB, free: 4.578 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001918/2.46, allocations: 329.2 kB / 0.8103 GB, free: 4.188 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3808/2.841, allocations: 5.571 MB / 0.8158 GB, free: 172.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001623/2.843, allocations: 84.3 kB / 0.8159 GB, free: 172.2 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004585/2.847, allocations: 4.097 MB / 0.8199 GB, free: 170.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002936/2.85, allocations: 1.387 MB / 0.8212 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/2.852, allocations: 162 kB / 0.8214 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000652/2.852, allocations: 0.6592 MB / 0.822 GB, free: 168.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01387/2.866, allocations: 5.042 MB / 0.8269 GB, free: 167 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01666/2.883, allocations: 9.321 MB / 0.836 GB, free: 159.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01769/2.901, allocations: 6.741 MB / 0.8426 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001526/2.901, allocations: 45.64 kB / 0.8427 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1066) (initialization): time 0.06034/2.961, allocations: 18.92 MB / 0.8611 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001768/2.961, allocations: 73.45 kB / 0.8612 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003058/2.962, allocations: 147.5 kB / 0.8614 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02826/2.99, allocations: 5.572 MB / 0.8668 GB, free: 149.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01377/3.004, allocations: 1.942 MB / 0.8687 GB, free: 149.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06305/3.067, allocations: 28.32 MB / 0.8963 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01278/3.08, allocations: 0.6247 MB / 0.897 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002154/3.082, allocations: 480.4 kB / 0.8974 GB, free: 119.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 59 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (963): * Single equations (assignments): 957 * 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,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007894/3.09, allocations: 3.033 MB / 0.9004 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001953/3.092, allocations: 0.5361 MB / 0.9009 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04474/3.137, allocations: 14.11 MB / 0.9147 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.268e-05/3.137, allocations: 40 kB / 0.9147 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.658e-05/3.137, allocations: 22.53 kB / 0.9147 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-05/3.137, allocations: 15.94 kB / 0.9147 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07/3.207, allocations: 24.61 MB / 0.9388 GB, free: 76.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.25e-05/3.207, allocations: 0 / 0.9388 GB, free: 76.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007708/3.215, allocations: 0.6591 MB / 0.9394 GB, free: 76.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0283/3.243, allocations: 5.328 MB / 0.9446 GB, free: 70.97 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001404/3.244, allocations: 72.86 kB / 0.9447 GB, free: 70.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08525/3.33, allocations: 27.7 MB / 0.9717 GB, free: 42.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/3.33, allocations: 0 / 0.9717 GB, free: 42.81 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05928/3.389, allocations: 20.97 MB / 0.9922 GB, free: 21.74 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002128/3.391, allocations: 0.6266 MB / 0.9928 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003218/3.395, allocations: 64.62 kB / 0.9929 GB, free: 21.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00854/3.403, allocations: 380.7 kB / 0.9933 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001922/3.405, allocations: 238.8 kB / 0.9935 GB, free: 20.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005754/3.406, allocations: 95.98 kB / 0.9936 GB, free: 20.33 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008478/3.414, allocations: 4.039 MB / 0.9975 GB, free: 16.32 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.12e-07/3.414, allocations: 0 / 0.9975 GB, free: 16.32 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0106/3.425, allocations: 1.951 MB / 0.9994 GB, free: 14.37 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 (293): * Single equations (assignments): 287 * 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.001532/3.426, allocations: 236.7 kB / 0.9996 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.381/3.807, allocations: 13.15 MB / 1.012 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/3.808, allocations: 0 / 1.012 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02207/3.83, allocations: 6.511 MB / 1.019 GB, free: 161.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006791/3.836, allocations: 0.6941 MB / 1.02 GB, free: 161.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06213/3.899, allocations: 20.95 MB / 1.04 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01512/3.914, allocations: 4.959 MB / 1.045 GB, free: 149.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006029/3.92, allocations: 447.4 kB / 1.045 GB, free: 149.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.763e-06/3.92, allocations: 3.938 kB / 1.045 GB, free: 149.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.7101/4.63, allocations: 180.9 MB / 1.222 GB, free: 165.5 MB / 0.5417 GB