Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.762/1.762, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.535e-05/2.526e-05, allocations: 0 / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0828/0.08286, allocations: 38.77 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.04656/0.1295, allocations: 30.26 MB / 297.2 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2515/0.381, allocations: 7.521 MB / 304.7 MB, free: 3.043 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0078/0.3889, allocations: 163.3 kB / 304.8 MB, free: 3.043 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006072/0.395, allocations: 1.562 MB / 306.4 MB, free: 3.043 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01848/0.4135, allocations: 4.511 MB / 310.9 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003466/0.4171, allocations: 0.6178 MB / 311.5 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.05181/0.4689, allocations: 16.75 MB / 328.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007057/0.4761, allocations: 3.098 MB / 331.4 MB, free: 11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002569/0.4787, allocations: 0.8455 MB / 332.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003381/0.4821, allocations: 1.309 MB / 333.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003402/0.4856, allocations: 0.9278 MB / 334.5 MB, free: 8.688 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00146/0.4871, allocations: 136 kB / 334.6 MB, free: 8.555 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002892/0.49, allocations: 1.481 MB / 336.1 MB, free: 7.332 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.4916, allocations: 256 kB / 336.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009525/0.5012, allocations: 5.443 MB / 341.8 MB, free: 2.332 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.5013, allocations: 0 / 341.8 MB, free: 2.332 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.5013, allocations: 0 / 341.8 MB, free: 2.332 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002427/0.5015, allocations: 0 / 341.8 MB, free: 2.332 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1298 * Number of variables: 1298 Notification: Performance of Generate backend data structure: time 0.01481/0.5164, allocations: 3.929 MB / 345.7 MB, free: 14.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.5164, allocations: 8.031 kB / 345.7 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3552/0.8717, allocations: 18.75 MB / 364.5 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01365/0.8854, allocations: 3.72 MB / 368.2 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00031/0.8857, allocations: 196.8 kB / 368.4 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001657/0.8874, allocations: 271.8 kB / 368.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02622/0.9137, allocations: 8.836 MB / 377.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002362/0.914, allocations: 43.56 kB / 377.5 MB, free: 14.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001284/0.9153, allocations: 134.2 kB / 377.6 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004803/0.9201, allocations: 1.65 MB / 379.3 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02503/0.9452, allocations: 7.607 MB / 386.9 MB, free: 5.547 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06924/1.014, allocations: 35.54 MB / 422.4 MB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01473/1.029, allocations: 3.75 MB / 426.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007314/1.03, allocations: 333.6 kB / 426.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.885e-05/1.03, allocations: 51.69 kB / 426.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 5.591e-06/1.03, allocations: 0 / 426.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=190): time 0.3358/1.366, allocations: 20.86 MB / 447.4 MB, free: 125.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/1.366, allocations: 257.2 kB / 447.7 MB, free: 124.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01108/1.377, allocations: 3.762 MB / 451.4 MB, free: 123.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005929/1.378, allocations: 52.58 kB / 451.5 MB, free: 123.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002804/1.381, allocations: 2.707 MB / 454.2 MB, free: 121.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001448/1.382, allocations: 0.717 MB / 454.9 MB, free: 120.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007167/1.383, allocations: 105.6 kB / 455 MB, free: 120.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004643/1.383, allocations: 0.5418 MB / 455.6 MB, free: 120.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005642/1.389, allocations: 2.141 MB / 457.7 MB, free: 119.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00765/1.397, allocations: 5.339 MB / 463 MB, free: 114.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007577/1.404, allocations: 3.325 MB / 466.4 MB, free: 113.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000109/1.405, allocations: 36.97 kB / 466.4 MB, free: 113.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02499/1.43, allocations: 8.433 MB / 474.8 MB, free: 109.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/1.43, allocations: 59.03 kB / 474.9 MB, free: 109.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001738/1.43, allocations: 112 kB / 475 MB, free: 109.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00766/1.438, allocations: 1.535 MB / 476.5 MB, free: 107.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007674/1.445, allocations: 1.216 MB / 477.8 MB, free: 106.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02049/1.466, allocations: 9.478 MB / 487.2 MB, free: 96.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00665/1.473, allocations: 323.5 kB / 487.6 MB, free: 96.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001286/1.474, allocations: 324.7 kB / 487.9 MB, free: 96.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * Number of states: 0 () * Number of discrete variables: 27 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 643 * 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 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004927/1.479, allocations: 1.906 MB / 489.8 MB, free: 94.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.48, allocations: 355.5 kB / 490.1 MB, free: 93.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/1.493, allocations: 4.142 MB / 494.3 MB, free: 89.83 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.842e-05/1.493, allocations: 27.38 kB / 494.3 MB, free: 89.8 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.061e-05/1.493, allocations: 8 kB / 494.3 MB, free: 89.8 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.44e-05/1.493, allocations: 11.97 kB / 494.3 MB, free: 89.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03242/1.526, allocations: 9.324 MB / 0.4918 GB, free: 80.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-05/1.526, allocations: 0 / 0.4918 GB, free: 80.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002538/1.528, allocations: 269.2 kB / 0.4921 GB, free: 80.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00678/1.535, allocations: 1.352 MB / 0.4934 GB, free: 78.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005311/1.536, allocations: 32 kB / 0.4934 GB, free: 78.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01861/1.554, allocations: 8.618 MB / 0.5019 GB, free: 70.03 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.555, allocations: 4.625 kB / 0.5019 GB, free: 70.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01802/1.573, allocations: 7.138 MB / 0.5088 GB, free: 62.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00272/1.575, allocations: 0.7073 MB / 0.5095 GB, free: 62.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001373/1.577, allocations: 41.2 kB / 0.5096 GB, free: 62.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003368/1.58, allocations: 119.8 kB / 0.5097 GB, free: 61.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006208/1.581, allocations: 113.1 kB / 0.5098 GB, free: 61.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002217/1.581, allocations: 52.12 kB / 0.5098 GB, free: 61.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006054/1.587, allocations: 2.685 MB / 0.5125 GB, free: 59.13 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.587, allocations: 0 / 0.5125 GB, free: 59.13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006741/1.594, allocations: 1.025 MB / 0.5135 GB, free: 58.11 MB / 362.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 (136): * Single equations (assignments): 132 * 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.000832/1.595, allocations: 185.9 kB / 0.5136 GB, free: 57.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01205/1.607, allocations: 5.329 MB / 0.5188 GB, free: 52.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.764e-06/1.607, allocations: 0 / 0.5188 GB, free: 52.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005652/1.613, allocations: 2.071 MB / 0.5209 GB, free: 50.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003941/1.617, allocations: 459.7 kB / 0.5213 GB, free: 50.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02485/1.641, allocations: 11.08 MB / 0.5321 GB, free: 38.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005925/1.647, allocations: 3.172 MB / 0.5352 GB, free: 35.76 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/1.649, allocations: 283.4 kB / 0.5355 GB, free: 35.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.773e-06/1.649, allocations: 0 / 0.5355 GB, free: 35.48 MB / 362.7 MB Notification: Performance of Templates: time 0.4569/2.106, allocations: 71.34 MB / 0.6051 GB, free: 84.94 MB / 362.7 MB