Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadModel(Modelica): time 1.916/1.916, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.362e-05/2.373e-05, allocations: 0 / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.08963, allocations: 50.42 MB / 343.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.377/0.4666, allocations: 98.72 MB / 441.8 MB, free: 11.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4669, allocations: 82.14 kB / 441.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4012/0.8681, allocations: 93.64 MB / 0.523 GB, free: 1.859 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.8682, allocations: 0 / 0.523 GB, free: 1.859 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002754/0.8685, allocations: 84 kB / 0.5231 GB, free: 1.777 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.2573/1.126, allocations: 4.4 MB / 0.5274 GB, free: 96.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/1.126, allocations: 9.406 kB / 0.5274 GB, free: 96.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03499/1.161, allocations: 6.712 MB / 0.5339 GB, free: 95.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01715/1.178, allocations: 5.811 MB / 0.5396 GB, free: 95.44 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000305/1.178, allocations: 318.2 kB / 0.5399 GB, free: 95.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001143/1.18, allocations: 429.4 kB / 0.5403 GB, free: 95.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02026/1.2, allocations: 10.09 MB / 0.5502 GB, free: 92.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001902/1.2, allocations: 69.64 kB / 0.5502 GB, free: 92.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007695/1.201, allocations: 210.4 kB / 0.5504 GB, free: 92.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001433/1.202, allocations: 0.9735 MB / 0.5514 GB, free: 92.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01771/1.22, allocations: 8.11 MB / 0.5593 GB, free: 92.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05015/1.27, allocations: 45.13 MB / 0.6034 GB, free: 61.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/1.281, allocations: 3.836 MB / 0.6071 GB, free: 59.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002869/1.284, allocations: 1.976 MB / 0.609 GB, free: 58.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006548/1.285, allocations: 0.6476 MB / 0.6097 GB, free: 58.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/1.285, allocations: 55.38 kB / 0.6097 GB, free: 58.08 MB / 442.7 MB Notification: Performance of pre-optimization done (n=166): time 5.906e-06/1.285, allocations: 0 / 0.6097 GB, free: 58.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=201): time 0.06334/1.348, allocations: 18.44 MB / 0.6277 GB, free: 48.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.064e-05/1.348, allocations: 256.6 kB / 0.628 GB, free: 48.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005994/1.354, allocations: 3.625 MB / 0.6315 GB, free: 45.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003567/1.355, allocations: 53.7 kB / 0.6316 GB, free: 45.08 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001929/1.357, allocations: 3.18 MB / 0.6347 GB, free: 42.22 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008347/1.358, allocations: 0.7636 MB / 0.6354 GB, free: 41.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003644/1.358, allocations: 116.6 kB / 0.6355 GB, free: 41.44 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003359/1.358, allocations: 0.5515 MB / 0.6361 GB, free: 40.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/1.362, allocations: 2.149 MB / 0.6382 GB, free: 39.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005413/1.368, allocations: 5.588 MB / 0.6436 GB, free: 32.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005929/1.374, allocations: 3.467 MB / 0.647 GB, free: 29.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.79e-05/1.374, allocations: 36 kB / 0.6471 GB, free: 29.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02057/1.394, allocations: 8.918 MB / 0.6558 GB, free: 21.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/1.394, allocations: 63.95 kB / 0.6558 GB, free: 21.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001388/1.395, allocations: 120 kB / 0.6559 GB, free: 21.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007035/1.402, allocations: 1.966 MB / 0.6579 GB, free: 19.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004885/1.406, allocations: 1.254 MB / 0.6591 GB, free: 18.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02298/1.43, allocations: 14.96 MB / 0.6737 GB, free: 4.211 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005588/1.435, allocations: 339.3 kB / 0.674 GB, free: 3.883 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009066/1.436, allocations: 356 kB / 0.6744 GB, free: 3.535 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (675): * Single equations (assignments): 669 * 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: 2 {(3,88.9%) 35,(3,100.0%) 11} * Non-linear torn systems: 1 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.0009757/1.437, allocations: 0.5495 MB / 0.6749 GB, free: 2.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007613/1.438, allocations: 379.1 kB / 0.6753 GB, free: 2.605 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009267/1.447, allocations: 4.049 MB / 0.6792 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.778e-05/1.447, allocations: 23.95 kB / 0.6792 GB, free: 14.51 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/1.447, allocations: 8 kB / 0.6792 GB, free: 14.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.034e-05/1.447, allocations: 7.969 kB / 0.6792 GB, free: 14.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02468/1.472, allocations: 9.7 MB / 0.6887 GB, free: 4.758 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.141e-05/1.472, allocations: 4 kB / 0.6887 GB, free: 4.754 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/1.474, allocations: 275.6 kB / 0.689 GB, free: 4.484 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004935/1.479, allocations: 1.218 MB / 0.6902 GB, free: 3.266 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003781/1.479, allocations: 35.92 kB / 0.6902 GB, free: 3.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2747/1.754, allocations: 7.53 MB / 0.6976 GB, free: 98.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.253e-06/1.754, allocations: 7.297 kB / 0.6976 GB, free: 98.62 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/1.769, allocations: 6.991 MB / 0.7044 GB, free: 98 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/1.77, allocations: 428.1 kB / 0.7048 GB, free: 97.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006328/1.77, allocations: 32.45 kB / 0.7048 GB, free: 97.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001962/1.772, allocations: 119 kB / 0.7049 GB, free: 97.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004642/1.773, allocations: 119.2 kB / 0.7051 GB, free: 97.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002224/1.773, allocations: 55.02 kB / 0.7051 GB, free: 97.91 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00543/1.779, allocations: 2.548 MB / 0.7076 GB, free: 97.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.33e-06/1.779, allocations: 3.25 kB / 0.7076 GB, free: 97.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006629/1.785, allocations: 1.116 MB / 0.7087 GB, free: 97.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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): 143 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005279/1.786, allocations: 187.1 kB / 0.7089 GB, free: 97.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01116/1.797, allocations: 5.594 MB / 0.7143 GB, free: 97.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.079e-06/1.797, allocations: 0 / 0.7143 GB, free: 97.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004234/1.801, allocations: 1.996 MB / 0.7163 GB, free: 97.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003399/1.805, allocations: 0.5336 MB / 0.7168 GB, free: 97.08 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01813/1.823, allocations: 8.305 MB / 0.7249 GB, free: 95.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005416/1.828, allocations: 3.536 MB / 0.7284 GB, free: 94.71 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006239/1.835, allocations: 1.883 MB / 0.7302 GB, free: 94.68 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/1.836, allocations: 247.7 kB / 0.7304 GB, free: 94.67 MB / 458.7 MB Notification: Performance of SimCode: time 2.199e-06/1.836, allocations: 0 / 0.7304 GB, free: 94.67 MB / 458.7 MB Notification: Performance of Templates: time 0.1147/1.95, allocations: 44.33 MB / 0.7737 GB, free: 83.58 MB / 458.7 MB