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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 225.8 MB / 239.4 MB, free: 1.242 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.742e-05, allocations: 4 kB / 292.7 MB, free: 11.47 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08971/0.08976, allocations: 50.42 MB / 343.1 MB, free: 9.051 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3741/0.4639, allocations: 93.62 MB / 436.7 MB, free: 5.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.4642, allocations: 87.55 kB / 436.8 MB, free: 5.648 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3143/0.7785, allocations: 84.09 MB / 0.5087 GB, free: 15.58 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.7785, allocations: 4 kB / 0.5087 GB, free: 15.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002198/0.7788, allocations: 72 kB / 0.5087 GB, free: 15.51 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01201/0.7908, allocations: 3.956 MB / 0.5126 GB, free: 11.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.7908, allocations: 15.95 kB / 0.5126 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03456/0.8254, allocations: 6.613 MB / 0.5191 GB, free: 4.848 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01748/0.8429, allocations: 5.522 MB / 0.5245 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003688/0.8433, allocations: 266.9 kB / 0.5247 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001602/0.8449, allocations: 367.8 kB / 0.5251 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02171/0.8667, allocations: 8.996 MB / 0.5339 GB, free: 4.738 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000204/0.8669, allocations: 59.45 kB / 0.5339 GB, free: 4.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006714/0.8676, allocations: 179.9 kB / 0.5341 GB, free: 4.504 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001616/0.8692, allocations: 0.8923 MB / 0.535 GB, free: 3.609 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01858/0.8878, allocations: 7.319 MB / 0.5421 GB, free: 12.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3487/1.237, allocations: 42.24 MB / 0.5834 GB, free: 71.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/1.248, allocations: 3.716 MB / 0.587 GB, free: 70.59 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003148/1.251, allocations: 1.947 MB / 0.5889 GB, free: 70.56 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004571/1.251, allocations: 325.6 kB / 0.5892 GB, free: 70.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/1.251, allocations: 51.48 kB / 0.5892 GB, free: 70.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=160): time 6.04e-06/1.251, allocations: 0 / 0.5892 GB, free: 70.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.06139/1.313, allocations: 17.1 MB / 0.6059 GB, free: 67.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/1.313, allocations: 253.4 kB / 0.6062 GB, free: 67.22 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01287/1.326, allocations: 3.414 MB / 0.6095 GB, free: 66.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006114/1.327, allocations: 55.14 kB / 0.6096 GB, free: 66.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002987/1.33, allocations: 2.833 MB / 0.6123 GB, free: 65.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000833/1.33, allocations: 0.7212 MB / 0.613 GB, free: 65.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003871/1.331, allocations: 111.4 kB / 0.6131 GB, free: 65.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003796/1.331, allocations: 0.5379 MB / 0.6137 GB, free: 64.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00394/1.335, allocations: 2.038 MB / 0.6157 GB, free: 64.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005486/1.341, allocations: 5.253 MB / 0.6208 GB, free: 59.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005776/1.347, allocations: 3.264 MB / 0.624 GB, free: 59.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-05/1.347, allocations: 33.06 kB / 0.624 GB, free: 59.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01892/1.366, allocations: 8.016 MB / 0.6318 GB, free: 56.76 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.435e-05/1.366, allocations: 56.12 kB / 0.6319 GB, free: 56.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/1.366, allocations: 113.8 kB / 0.632 GB, free: 56.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004947/1.371, allocations: 1.385 MB / 0.6334 GB, free: 56.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005086/1.376, allocations: 1.221 MB / 0.6345 GB, free: 56.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01468/1.391, allocations: 8.404 MB / 0.6428 GB, free: 52.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005609/1.396, allocations: 314.6 kB / 0.6431 GB, free: 52.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/1.397, allocations: 337.2 kB / 0.6434 GB, free: 52.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * Number of states: 0 () * Number of discrete variables: 30 (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 (653): * Single equations (assignments): 649 * 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.0009917/1.398, allocations: 0.519 MB / 0.6439 GB, free: 51.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007856/1.399, allocations: 360.6 kB / 0.6442 GB, free: 51.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009301/1.408, allocations: 3.887 MB / 0.648 GB, free: 50.22 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.885e-05/1.409, allocations: 22.69 kB / 0.648 GB, free: 50.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.802e-05/1.409, allocations: 7.469 kB / 0.648 GB, free: 50.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.308e-05/1.409, allocations: 8.766 kB / 0.6481 GB, free: 50.22 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01981/1.428, allocations: 8.877 MB / 0.6567 GB, free: 43.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/1.429, allocations: 0 / 0.6567 GB, free: 43.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/1.43, allocations: 261 kB / 0.657 GB, free: 43.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004322/1.434, allocations: 1.215 MB / 0.6582 GB, free: 42.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002975/1.435, allocations: 35.66 kB / 0.6582 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/1.447, allocations: 7.55 MB / 0.6656 GB, free: 36.28 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.447, allocations: 7.938 kB / 0.6656 GB, free: 36.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/1.459, allocations: 6.758 MB / 0.6722 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/1.46, allocations: 407.3 kB / 0.6726 GB, free: 29.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007756/1.461, allocations: 32.86 kB / 0.6726 GB, free: 29.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/1.463, allocations: 112.3 kB / 0.6727 GB, free: 29.87 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004014/1.464, allocations: 107.6 kB / 0.6728 GB, free: 29.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002088/1.464, allocations: 44.78 kB / 0.6728 GB, free: 29.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004611/1.469, allocations: 2.411 MB / 0.6752 GB, free: 27.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.55e-07/1.469, allocations: 0 / 0.6752 GB, free: 27.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005851/1.474, allocations: 1.008 MB / 0.6762 GB, free: 26.61 MB / 442.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.0004937/1.475, allocations: 169.2 kB / 0.6763 GB, free: 26.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008586/1.484, allocations: 4.947 MB / 0.6812 GB, free: 21.96 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.602e-06/1.484, allocations: 0 / 0.6812 GB, free: 21.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003616/1.487, allocations: 1.93 MB / 0.6831 GB, free: 20.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/1.49, allocations: 452 kB / 0.6835 GB, free: 19.85 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/1.505, allocations: 7.517 MB / 0.6908 GB, free: 13.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004216/1.51, allocations: 3.173 MB / 0.6939 GB, free: 10.74 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005781/1.515, allocations: 1.824 MB / 0.6957 GB, free: 9.574 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/1.516, allocations: 238.8 kB / 0.6959 GB, free: 9.355 MB / 442.7 MB Notification: Performance of SimCode: time 1.788e-06/1.516, allocations: 2.188 kB / 0.6959 GB, free: 9.355 MB / 442.7 MB Notification: Performance of Templates: time 0.3833/1.9, allocations: 38.13 MB / 0.7332 GB, free: 106.8 MB / 458.7 MB