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.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.892/1.892, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.988e-05/3.007e-05, allocations: 4 kB / 255.4 MB, free: 2.684 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07704/0.07709, allocations: 44.5 MB / 299.9 MB, free: 6.121 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3395/0.4166, allocations: 86.67 MB / 386.6 MB, free: 20.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.417, allocations: 85.83 kB / 386.6 MB, free: 20.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2995/0.7165, allocations: 82.52 MB / 469.2 MB, free: 2.895 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.214e-06/0.7165, allocations: 4 kB / 469.2 MB, free: 2.891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002664/0.7168, allocations: 68 kB / 469.2 MB, free: 2.824 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01335/0.7301, allocations: 3.96 MB / 473.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.7302, allocations: 8.031 kB / 473.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03547/0.7657, allocations: 6.621 MB / 479.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01842/0.7842, allocations: 5.822 MB / 485.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003788/0.7846, allocations: 271 kB / 485.9 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001589/0.7862, allocations: 359.8 kB / 486.3 MB, free: 1.656 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0229/0.8091, allocations: 8.982 MB / 495.2 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002477/0.8094, allocations: 67.38 kB / 495.3 MB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001128/0.8105, allocations: 187.8 kB / 495.5 MB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001719/0.8123, allocations: 0.8768 MB / 496.4 MB, free: 6.633 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01938/0.8317, allocations: 7.331 MB / 0.4919 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3166/1.148, allocations: 42.18 MB / 0.5331 GB, free: 51.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01727/1.166, allocations: 3.715 MB / 0.5367 GB, free: 50.87 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006245/1.172, allocations: 1.949 MB / 0.5386 GB, free: 50.83 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007724/1.173, allocations: 325.1 kB / 0.5389 GB, free: 50.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.209e-05/1.173, allocations: 54.84 kB / 0.539 GB, free: 50.51 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 1.133e-05/1.173, allocations: 0 / 0.539 GB, free: 50.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=189): time 0.09423/1.267, allocations: 17.17 MB / 0.5558 GB, free: 47.78 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.363e-05/1.268, allocations: 254.3 kB / 0.556 GB, free: 47.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007176/1.275, allocations: 3.423 MB / 0.5593 GB, free: 47.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003932/1.275, allocations: 53.64 kB / 0.5594 GB, free: 47.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002096/1.277, allocations: 2.826 MB / 0.5622 GB, free: 45.94 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008518/1.278, allocations: 0.7215 MB / 0.5629 GB, free: 45.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005025/1.279, allocations: 105.5 kB / 0.563 GB, free: 45.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003358/1.279, allocations: 0.5345 MB / 0.5635 GB, free: 45.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004001/1.283, allocations: 2.034 MB / 0.5655 GB, free: 45.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00557/1.289, allocations: 5.228 MB / 0.5706 GB, free: 40.46 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00598/1.295, allocations: 3.265 MB / 0.5738 GB, free: 39.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.265e-05/1.295, allocations: 30 kB / 0.5738 GB, free: 39.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01933/1.314, allocations: 8.005 MB / 0.5816 GB, free: 37.29 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.883e-05/1.314, allocations: 51.34 kB / 0.5817 GB, free: 37.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/1.314, allocations: 113.7 kB / 0.5818 GB, free: 37.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004742/1.319, allocations: 1.375 MB / 0.5831 GB, free: 37.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005556/1.325, allocations: 1.221 MB / 0.5843 GB, free: 36.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01477/1.34, allocations: 8.4 MB / 0.5925 GB, free: 32.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005645/1.345, allocations: 325.7 kB / 0.5928 GB, free: 32.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008893/1.346, allocations: 326.8 kB / 0.5931 GB, free: 32.73 MB / 394.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.0009288/1.347, allocations: 0.5153 MB / 0.5936 GB, free: 32.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007173/1.348, allocations: 350.6 kB / 0.594 GB, free: 32.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008705/1.357, allocations: 3.891 MB / 0.5978 GB, free: 30.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-05/1.357, allocations: 22.75 kB / 0.5978 GB, free: 30.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.357, allocations: 7.812 kB / 0.5978 GB, free: 30.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.869e-05/1.357, allocations: 10.8 kB / 0.5978 GB, free: 30.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01898/1.376, allocations: 8.89 MB / 0.6065 GB, free: 23.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/1.376, allocations: 0 / 0.6065 GB, free: 23.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001579/1.377, allocations: 271.3 kB / 0.6067 GB, free: 23.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004273/1.382, allocations: 1.203 MB / 0.6079 GB, free: 22.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003005/1.382, allocations: 41.09 kB / 0.608 GB, free: 22.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01216/1.394, allocations: 7.543 MB / 0.6153 GB, free: 16.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.888e-06/1.394, allocations: 5 kB / 0.6153 GB, free: 16.17 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/1.406, allocations: 6.763 MB / 0.6219 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001897/1.408, allocations: 0.6766 MB / 0.6226 GB, free: 9.668 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005707/1.409, allocations: 32.56 kB / 0.6226 GB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002112/1.411, allocations: 109.9 kB / 0.6227 GB, free: 9.566 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/1.411, allocations: 118.3 kB / 0.6228 GB, free: 9.492 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000197/1.412, allocations: 44.94 kB / 0.6229 GB, free: 9.449 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00434/1.416, allocations: 2.419 MB / 0.6252 GB, free: 7.332 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.09e-07/1.416, allocations: 0 / 0.6252 GB, free: 7.332 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005744/1.422, allocations: 0.998 MB / 0.6262 GB, free: 6.34 MB / 394.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.0004736/1.422, allocations: 171 kB / 0.6264 GB, free: 6.176 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008717/1.431, allocations: 4.941 MB / 0.6312 GB, free: 1.691 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.114e-06/1.431, allocations: 0 / 0.6312 GB, free: 1.691 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003704/1.435, allocations: 1.934 MB / 0.6331 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002749/1.438, allocations: 449.6 kB / 0.6335 GB, free: 15.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01798/1.456, allocations: 7.508 MB / 0.6409 GB, free: 8.902 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005293/1.461, allocations: 3.172 MB / 0.644 GB, free: 6.488 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006149/1.467, allocations: 1.811 MB / 0.6457 GB, free: 5.332 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/1.468, allocations: 239 kB / 0.646 GB, free: 5.109 MB / 410.7 MB Notification: Performance of SimCode: time 2.068e-06/1.468, allocations: 0 / 0.646 GB, free: 5.109 MB / 410.7 MB Notification: Performance of Templates: time 0.3841/1.852, allocations: 38.07 MB / 0.6831 GB, free: 99.26 MB / 426.7 MB