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_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.785/1.785, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.699e-05/2.704e-05, allocations: 4 kB / 228.2 MB, free: 7.312 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.0816, allocations: 38.76 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.04738/0.129, allocations: 30.26 MB / 297.2 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2426/0.3717, allocations: 7.524 MB / 304.7 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00762/0.3793, allocations: 166.5 kB / 304.9 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005747/0.3851, allocations: 1.563 MB / 306.4 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01742/0.4026, allocations: 4.516 MB / 310.9 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003312/0.406, allocations: 0.6156 MB / 311.6 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.04874/0.4547, allocations: 16.57 MB / 328.1 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007544/0.4624, allocations: 3.11 MB / 331.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002316/0.4647, allocations: 0.8367 MB / 332.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003039/0.4678, allocations: 1.318 MB / 333.4 MB, free: 9.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003071/0.4709, allocations: 0.9223 MB / 334.3 MB, free: 8.246 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009769/0.4719, allocations: 140 kB / 334.5 MB, free: 8.109 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002389/0.4743, allocations: 1.484 MB / 335.9 MB, free: 6.855 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.4757, allocations: 252 kB / 336.2 MB, free: 6.609 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008936/0.4846, allocations: 5.446 MB / 341.6 MB, free: 1.855 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4847, allocations: 0 / 341.6 MB, free: 1.855 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.761e-06/0.4847, allocations: 0 / 341.6 MB, free: 1.855 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002032/0.4849, allocations: 3.938 kB / 341.6 MB, free: 1.852 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.01423/0.4991, allocations: 3.927 MB / 345.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.4992, allocations: 12.03 kB / 345.6 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4316/0.9308, allocations: 18.74 MB / 364.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01792/0.9488, allocations: 3.719 MB / 368 MB, free: 8.523 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003179/0.9492, allocations: 204.7 kB / 368.2 MB, free: 8.352 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001579/0.9508, allocations: 263 kB / 368.5 MB, free: 8.125 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02863/0.9794, allocations: 8.838 MB / 377.3 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000163/0.9796, allocations: 47.5 kB / 377.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005678/0.9802, allocations: 127.9 kB / 377.5 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004235/0.9845, allocations: 1.653 MB / 379.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02359/1.008, allocations: 7.603 MB / 386.8 MB, free: 5.348 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06383/1.072, allocations: 35.54 MB / 422.3 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01426/1.086, allocations: 3.761 MB / 426.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005855/1.087, allocations: 330.5 kB / 426.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/1.087, allocations: 51.7 kB / 426.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 5.5e-06/1.087, allocations: 0 / 426.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=190): time 0.343/1.43, allocations: 20.86 MB / 447.3 MB, free: 125.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.221e-05/1.43, allocations: 254.2 kB / 447.5 MB, free: 124.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00918/1.439, allocations: 3.758 MB / 451.3 MB, free: 123.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005326/1.44, allocations: 53.56 kB / 451.3 MB, free: 123.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002595/1.442, allocations: 2.809 MB / 454.2 MB, free: 121.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/1.444, allocations: 0.715 MB / 454.9 MB, free: 120.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006021/1.444, allocations: 106.5 kB / 455 MB, free: 120.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003721/1.445, allocations: 0.5422 MB / 455.5 MB, free: 120.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006867/1.452, allocations: 2.137 MB / 457.7 MB, free: 119.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009301/1.461, allocations: 5.344 MB / 463 MB, free: 114.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02186/1.483, allocations: 3.331 MB / 466.3 MB, free: 113.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.731e-05/1.483, allocations: 30.59 kB / 466.4 MB, free: 113.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.05266/1.536, allocations: 8.584 MB / 474.9 MB, free: 109 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/1.536, allocations: 52 kB / 475 MB, free: 108.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002264/1.536, allocations: 112 kB / 475.1 MB, free: 108.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007559/1.544, allocations: 1.529 MB / 476.6 MB, free: 107.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007087/1.551, allocations: 1.216 MB / 477.8 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01941/1.57, allocations: 9.482 MB / 487.3 MB, free: 96.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006168/1.577, allocations: 322.1 kB / 487.6 MB, free: 96.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008668/1.577, allocations: 328 kB / 488 MB, free: 95.8 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.004039/1.582, allocations: 1.912 MB / 489.9 MB, free: 93.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/1.583, allocations: 347.5 kB / 490.2 MB, free: 93.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/1.595, allocations: 4.15 MB / 494.4 MB, free: 89.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.895e-05/1.595, allocations: 20 kB / 494.4 MB, free: 89.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/1.595, allocations: 8 kB / 494.4 MB, free: 89.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.992e-05/1.595, allocations: 7.969 kB / 494.4 MB, free: 89.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02452/1.619, allocations: 9.326 MB / 0.4919 GB, free: 79.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-05/1.619, allocations: 0 / 0.4919 GB, free: 79.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002516/1.622, allocations: 271.6 kB / 0.4922 GB, free: 79.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006552/1.628, allocations: 1.344 MB / 0.4935 GB, free: 78.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003694/1.629, allocations: 32 kB / 0.4935 GB, free: 78.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01823/1.647, allocations: 8.624 MB / 0.5019 GB, free: 69.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/1.647, allocations: 4 kB / 0.5019 GB, free: 69.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01728/1.664, allocations: 7.14 MB / 0.5089 GB, free: 62.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002535/1.667, allocations: 0.7073 MB / 0.5096 GB, free: 61.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001328/1.668, allocations: 36.95 kB / 0.5096 GB, free: 61.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003291/1.672, allocations: 115.8 kB / 0.5098 GB, free: 61.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006122/1.672, allocations: 113.9 kB / 0.5099 GB, free: 61.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002194/1.673, allocations: 51.98 kB / 0.5099 GB, free: 61.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005702/1.678, allocations: 2.689 MB / 0.5125 GB, free: 58.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.678, allocations: 288 / 0.5125 GB, free: 58.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006132/1.685, allocations: 1.03 MB / 0.5135 GB, free: 57.66 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.0007849/1.685, allocations: 175.8 kB / 0.5137 GB, free: 57.49 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01196/1.697, allocations: 5.336 MB / 0.5189 GB, free: 52.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/1.697, allocations: 0 / 0.5189 GB, free: 52.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005584/1.703, allocations: 2.076 MB / 0.521 GB, free: 50.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003964/1.707, allocations: 451.5 kB / 0.5214 GB, free: 49.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02291/1.73, allocations: 10.64 MB / 0.5318 GB, free: 38.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005305/1.735, allocations: 3.172 MB / 0.5349 GB, free: 35.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.007567/1.743, allocations: 1.824 MB / 0.5367 GB, free: 33.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/1.744, allocations: 243.4 kB / 0.5369 GB, free: 33.7 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/1.744, allocations: 0 / 0.5369 GB, free: 33.7 MB / 362.7 MB Notification: Performance of Templates: time 0.347/2.091, allocations: 40.7 MB / 0.5766 GB, free: 107.8 MB / 362.7 MB