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.763/1.763, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.28e-05/3.298e-05, allocations: 4 kB / 225 MB, free: 2.82 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2135, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.3375, allocations: 80.93 MB / 344.7 MB, free: 8.707 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.3378, allocations: 91.94 kB / 344.8 MB, free: 8.617 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4934/0.8313, allocations: 82.47 MB / 427.2 MB, free: 45.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.572e-06/0.8313, allocations: 0 / 427.2 MB, free: 45.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000238/0.8316, allocations: 71.94 kB / 427.3 MB, free: 45.88 MB / 314.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.01208/0.8437, allocations: 3.96 MB / 431.3 MB, free: 41.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.8437, allocations: 8.031 kB / 431.3 MB, free: 41.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03205/0.8758, allocations: 6.617 MB / 437.9 MB, free: 35.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01618/0.892, allocations: 5.812 MB / 443.7 MB, free: 29.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/0.8924, allocations: 270.9 kB / 444 MB, free: 29.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001593/0.894, allocations: 371.7 kB / 444.3 MB, free: 28.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02023/0.9142, allocations: 8.986 MB / 453.3 MB, free: 18.82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002214/0.9145, allocations: 51.53 kB / 453.4 MB, free: 18.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001201/0.9157, allocations: 175.9 kB / 453.5 MB, free: 18.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001496/0.9172, allocations: 0.8923 MB / 454.4 MB, free: 17.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01697/0.9343, allocations: 7.312 MB / 461.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2679/1.202, allocations: 42.18 MB / 0.4921 GB, free: 73.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/1.213, allocations: 3.711 MB / 0.4957 GB, free: 73.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002888/1.215, allocations: 1.945 MB / 0.4976 GB, free: 73.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004329/1.216, allocations: 330.4 kB / 0.498 GB, free: 72.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/1.216, allocations: 47.75 kB / 0.498 GB, free: 72.9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 6.07e-06/1.216, allocations: 3.656 kB / 0.498 GB, free: 72.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.06017/1.276, allocations: 17.19 MB / 0.5148 GB, free: 70.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/1.276, allocations: 260.1 kB / 0.515 GB, free: 70.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006701/1.283, allocations: 3.419 MB / 0.5184 GB, free: 69.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003969/1.283, allocations: 52.39 kB / 0.5184 GB, free: 69.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001947/1.285, allocations: 2.725 MB / 0.5211 GB, free: 68.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008768/1.286, allocations: 0.7173 MB / 0.5218 GB, free: 67.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004615/1.287, allocations: 104.7 kB / 0.5219 GB, free: 67.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003309/1.287, allocations: 0.5407 MB / 0.5224 GB, free: 67.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004082/1.291, allocations: 2.039 MB / 0.5244 GB, free: 66.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005986/1.297, allocations: 5.232 MB / 0.5295 GB, free: 61.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006229/1.304, allocations: 3.252 MB / 0.5327 GB, free: 61.03 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.875e-05/1.304, allocations: 34.97 kB / 0.5327 GB, free: 61.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01937/1.323, allocations: 7.869 MB / 0.5404 GB, free: 58.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.625e-05/1.323, allocations: 54.53 kB / 0.5405 GB, free: 58.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/1.323, allocations: 113 kB / 0.5406 GB, free: 58.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005051/1.328, allocations: 1.386 MB / 0.5419 GB, free: 58.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005258/1.334, allocations: 1.222 MB / 0.5431 GB, free: 58.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01385/1.348, allocations: 8.401 MB / 0.5513 GB, free: 50.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00556/1.353, allocations: 315.9 kB / 0.5516 GB, free: 50.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001154/1.354, allocations: 323.4 kB / 0.5519 GB, free: 50.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * 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 (650): * Single equations (assignments): 646 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001166/1.356, allocations: 0.5157 MB / 0.5524 GB, free: 49.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007926/1.356, allocations: 355.5 kB / 0.5528 GB, free: 49.44 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008677/1.365, allocations: 3.884 MB / 0.5566 GB, free: 46.35 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.975e-05/1.365, allocations: 23.8 kB / 0.5566 GB, free: 46.33 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-05/1.365, allocations: 8 kB / 0.5566 GB, free: 46.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.449e-05/1.365, allocations: 13.84 kB / 0.5566 GB, free: 46.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0202/1.385, allocations: 8.881 MB / 0.5653 GB, free: 39.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/1.386, allocations: 0 / 0.5653 GB, free: 39.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/1.387, allocations: 270 kB / 0.5655 GB, free: 38.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004476/1.392, allocations: 1.209 MB / 0.5667 GB, free: 38.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003388/1.392, allocations: 36 kB / 0.5668 GB, free: 38.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01227/1.404, allocations: 7.542 MB / 0.5741 GB, free: 31.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.696e-06/1.404, allocations: 6.438 kB / 0.5741 GB, free: 31.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01211/1.416, allocations: 6.768 MB / 0.5807 GB, free: 25.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001936/1.418, allocations: 0.6762 MB / 0.5814 GB, free: 24.91 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007807/1.419, allocations: 28 kB / 0.5814 GB, free: 24.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/1.421, allocations: 113.8 kB / 0.5815 GB, free: 24.81 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/1.422, allocations: 114.8 kB / 0.5816 GB, free: 24.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001974/1.422, allocations: 44 kB / 0.5817 GB, free: 24.69 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004733/1.427, allocations: 2.422 MB / 0.5841 GB, free: 22.46 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.143e-06/1.427, allocations: 0 / 0.5841 GB, free: 22.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006026/1.433, allocations: 0.9954 MB / 0.585 GB, free: 21.48 MB / 346.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 (135): * Single equations (assignments): 131 * 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.000535/1.433, allocations: 172.7 kB / 0.5852 GB, free: 21.3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009012/1.442, allocations: 4.932 MB / 0.59 GB, free: 16.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.431e-06/1.442, allocations: 0 / 0.59 GB, free: 16.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003873/1.446, allocations: 1.932 MB / 0.5919 GB, free: 14.46 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002881/1.449, allocations: 451.8 kB / 0.5923 GB, free: 14.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01699/1.466, allocations: 7.948 MB / 0.6001 GB, free: 6.043 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005167/1.472, allocations: 3.176 MB / 0.6032 GB, free: 2.863 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001293/1.473, allocations: 271.4 kB / 0.6034 GB, free: 2.598 MB / 346.7 MB Notification: Performance of SimCode: time 1.74e-06/1.473, allocations: 7.938 kB / 0.6035 GB, free: 2.59 MB / 346.7 MB Notification: Performance of Templates: time 0.3189/1.792, allocations: 69.34 MB / 0.6712 GB, free: 69.95 MB / 362.7 MB