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.819/1.819, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.423e-05/3.45e-05, allocations: 4 kB / 225 MB, free: 2.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2116, allocations: 38.78 MB / 263.8 MB, free: 9.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1245/0.3362, allocations: 80.93 MB / 344.7 MB, free: 8.773 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.3365, allocations: 87.89 kB / 344.8 MB, free: 8.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5454/0.882, allocations: 82.45 MB / 427.3 MB, free: 46.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.547e-06/0.882, allocations: 0 / 427.3 MB, free: 46.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002468/0.8823, allocations: 75.98 kB / 427.3 MB, free: 46.08 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.01235/0.8947, allocations: 3.962 MB / 431.3 MB, free: 42.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.8947, allocations: 8.031 kB / 431.3 MB, free: 42.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03269/0.9274, allocations: 6.617 MB / 437.9 MB, free: 35.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0162/0.9437, allocations: 5.816 MB / 443.7 MB, free: 29.54 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003016/0.944, allocations: 267 kB / 444 MB, free: 29.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/0.9455, allocations: 367.7 kB / 444.4 MB, free: 28.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01989/0.9654, allocations: 8.982 MB / 453.3 MB, free: 19.03 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002101/0.9657, allocations: 63.47 kB / 453.4 MB, free: 18.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000984/0.9667, allocations: 171.9 kB / 453.6 MB, free: 18.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001378/0.9681, allocations: 0.8885 MB / 454.5 MB, free: 17.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01643/0.9845, allocations: 7.315 MB / 461.8 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2622/1.247, allocations: 42.18 MB / 0.4922 GB, free: 73.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/1.258, allocations: 3.71 MB / 0.4958 GB, free: 73.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003144/1.261, allocations: 1.938 MB / 0.4977 GB, free: 73.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004898/1.262, allocations: 335.5 kB / 0.498 GB, free: 72.92 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/1.262, allocations: 49.78 kB / 0.498 GB, free: 72.88 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 6.076e-06/1.262, allocations: 0 / 0.498 GB, free: 72.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.06295/1.325, allocations: 17.19 MB / 0.5148 GB, free: 70.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/1.325, allocations: 259.3 kB / 0.5151 GB, free: 70.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006984/1.332, allocations: 3.422 MB / 0.5184 GB, free: 69.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003874/1.332, allocations: 53.17 kB / 0.5185 GB, free: 69.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002087/1.335, allocations: 2.82 MB / 0.5212 GB, free: 68.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009197/1.335, allocations: 0.7232 MB / 0.5219 GB, free: 68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000492/1.336, allocations: 105.8 kB / 0.522 GB, free: 68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003475/1.336, allocations: 0.5341 MB / 0.5225 GB, free: 67.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004123/1.34, allocations: 2.041 MB / 0.5245 GB, free: 66.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005886/1.346, allocations: 5.233 MB / 0.5296 GB, free: 61.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006324/1.353, allocations: 3.258 MB / 0.5328 GB, free: 61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.056e-05/1.353, allocations: 34.28 kB / 0.5329 GB, free: 61 MB / 346.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02033/1.373, allocations: 7.992 MB / 0.5407 GB, free: 58.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.119e-05/1.373, allocations: 53.41 kB / 0.5407 GB, free: 58.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001311/1.374, allocations: 112.9 kB / 0.5408 GB, free: 58.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005307/1.379, allocations: 1.39 MB / 0.5422 GB, free: 58.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005619/1.385, allocations: 1.217 MB / 0.5434 GB, free: 58.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0138/1.398, allocations: 8.406 MB / 0.5516 GB, free: 51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005713/1.404, allocations: 312.1 kB / 0.5519 GB, free: 50.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/1.405, allocations: 331.5 kB / 0.5522 GB, free: 50.42 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.00112/1.406, allocations: 0.5133 MB / 0.5527 GB, free: 49.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001432/1.408, allocations: 355.5 kB / 0.553 GB, free: 49.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/1.424, allocations: 3.891 MB / 0.5568 GB, free: 46.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-05/1.424, allocations: 27.28 kB / 0.5569 GB, free: 46.44 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.877e-05/1.424, allocations: 8 kB / 0.5569 GB, free: 46.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.922e-05/1.424, allocations: 7.031 kB / 0.5569 GB, free: 46.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03548/1.46, allocations: 8.869 MB / 0.5655 GB, free: 39.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.593e-05/1.46, allocations: 6.625 kB / 0.5655 GB, free: 39.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003214/1.463, allocations: 261.1 kB / 0.5658 GB, free: 39.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008608/1.472, allocations: 1.218 MB / 0.567 GB, free: 38.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005597/1.472, allocations: 28 kB / 0.567 GB, free: 38.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02327/1.496, allocations: 7.545 MB / 0.5744 GB, free: 31.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/1.496, allocations: 3.688 kB / 0.5744 GB, free: 31.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02403/1.52, allocations: 6.775 MB / 0.581 GB, free: 25.67 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00304/1.523, allocations: 0.6765 MB / 0.5817 GB, free: 25.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009897/1.524, allocations: 32 kB / 0.5817 GB, free: 24.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00258/1.527, allocations: 112.5 kB / 0.5818 GB, free: 24.92 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006079/1.527, allocations: 110.8 kB / 0.5819 GB, free: 24.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002556/1.527, allocations: 54.7 kB / 0.582 GB, free: 24.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005566/1.533, allocations: 2.414 MB / 0.5843 GB, free: 22.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.468e-06/1.533, allocations: 0 / 0.5843 GB, free: 22.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006394/1.54, allocations: 0.9938 MB / 0.5853 GB, free: 21.59 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.0006261/1.54, allocations: 169.3 kB / 0.5854 GB, free: 21.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01362/1.554, allocations: 4.932 MB / 0.5903 GB, free: 16.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/1.554, allocations: 4 kB / 0.5903 GB, free: 16.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006905/1.561, allocations: 1.937 MB / 0.5922 GB, free: 14.56 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002996/1.564, allocations: 448.2 kB / 0.5926 GB, free: 14.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01673/1.581, allocations: 7.516 MB / 0.5999 GB, free: 6.594 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005342/1.586, allocations: 3.164 MB / 0.603 GB, free: 3.422 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.005902/1.592, allocations: 1.816 MB / 0.6048 GB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/1.593, allocations: 243.3 kB / 0.605 GB, free: 1.367 MB / 346.7 MB Notification: Performance of SimCode: time 1.735e-06/1.593, allocations: 0 / 0.605 GB, free: 1.367 MB / 346.7 MB Notification: Performance of Templates: time 0.3078/1.901, allocations: 38.07 MB / 0.6422 GB, free: 86.33 MB / 362.7 MB