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.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.283e-05/3.29e-05, allocations: 4 kB / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08285/0.08291, allocations: 47.58 MB / 316.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3582/0.4412, allocations: 92.22 MB / 409.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.4415, allocations: 87.69 kB / 409.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3473/0.7888, allocations: 83.05 MB / 492.3 MB, free: 15.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.543e-06/0.7889, allocations: 4 kB / 492.3 MB, free: 15.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002514/0.7891, allocations: 72 kB / 492.4 MB, free: 15.71 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.01292/0.802, allocations: 3.96 MB / 496.3 MB, free: 11.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.8021, allocations: 11.97 kB / 496.3 MB, free: 11.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03533/0.8375, allocations: 6.621 MB / 0.4912 GB, free: 5.043 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01849/0.856, allocations: 5.835 MB / 0.4969 GB, free: 15.15 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003723/0.8564, allocations: 267 kB / 0.4971 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001581/0.858, allocations: 359.8 kB / 0.4975 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02186/0.8799, allocations: 8.995 MB / 0.5062 GB, free: 4.629 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002375/0.8802, allocations: 67.36 kB / 0.5063 GB, free: 4.562 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007897/0.881, allocations: 175.9 kB / 0.5065 GB, free: 4.391 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001729/0.8827, allocations: 0.8923 MB / 0.5073 GB, free: 3.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2524/1.135, allocations: 7.325 MB / 0.5145 GB, free: 99.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04792/1.183, allocations: 42.3 MB / 0.5558 GB, free: 74.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01077/1.194, allocations: 3.716 MB / 0.5594 GB, free: 73.52 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002936/1.197, allocations: 1.94 MB / 0.5613 GB, free: 73.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004507/1.197, allocations: 336.4 kB / 0.5617 GB, free: 73.01 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/1.197, allocations: 56.59 kB / 0.5617 GB, free: 72.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 6.609e-06/1.197, allocations: 0 / 0.5617 GB, free: 72.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=189): time 0.06095/1.258, allocations: 17.2 MB / 0.5785 GB, free: 67.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/1.259, allocations: 257.1 kB / 0.5788 GB, free: 66.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006525/1.265, allocations: 3.447 MB / 0.5821 GB, free: 65.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003766/1.266, allocations: 56.69 kB / 0.5822 GB, free: 65.69 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002036/1.268, allocations: 2.837 MB / 0.5849 GB, free: 63.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008492/1.268, allocations: 0.7224 MB / 0.5856 GB, free: 63.18 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004247/1.269, allocations: 106.5 kB / 0.5857 GB, free: 63.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003476/1.269, allocations: 0.5366 MB / 0.5863 GB, free: 62.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004067/1.273, allocations: 2.041 MB / 0.5883 GB, free: 62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005766/1.279, allocations: 5.248 MB / 0.5934 GB, free: 56.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005917/1.285, allocations: 3.275 MB / 0.5966 GB, free: 56 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.009e-05/1.285, allocations: 32.53 kB / 0.5966 GB, free: 56 MB / 426.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01934/1.305, allocations: 8.005 MB / 0.6044 GB, free: 53.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.95e-05/1.305, allocations: 58.12 kB / 0.6045 GB, free: 53.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001198/1.305, allocations: 120.6 kB / 0.6046 GB, free: 53.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005403/1.31, allocations: 1.383 MB / 0.606 GB, free: 52.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005138/1.315, allocations: 1.222 MB / 0.6072 GB, free: 51.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01368/1.329, allocations: 8.398 MB / 0.6154 GB, free: 44.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005589/1.335, allocations: 310.4 kB / 0.6156 GB, free: 43.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009842/1.336, allocations: 339.1 kB / 0.616 GB, free: 43.54 MB / 426.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.001033/1.337, allocations: 0.5129 MB / 0.6165 GB, free: 43.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008272/1.338, allocations: 359.4 kB / 0.6168 GB, free: 42.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00867/1.346, allocations: 3.889 MB / 0.6206 GB, free: 39.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-05/1.346, allocations: 24 kB / 0.6206 GB, free: 39.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-05/1.347, allocations: 8 kB / 0.6206 GB, free: 39.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.433e-05/1.347, allocations: 15.28 kB / 0.6207 GB, free: 39.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/1.366, allocations: 8.893 MB / 0.6293 GB, free: 32.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.015e-05/1.366, allocations: 8.062 kB / 0.6294 GB, free: 32.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/1.367, allocations: 256.2 kB / 0.6296 GB, free: 32.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004361/1.372, allocations: 1.219 MB / 0.6308 GB, free: 31.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003135/1.372, allocations: 28 kB / 0.6308 GB, free: 31.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01236/1.384, allocations: 7.547 MB / 0.6382 GB, free: 24.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.098e-06/1.384, allocations: 3.938 kB / 0.6382 GB, free: 24.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01217/1.397, allocations: 6.77 MB / 0.6448 GB, free: 18.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/1.398, allocations: 0.6811 MB / 0.6455 GB, free: 18.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000537/1.399, allocations: 28 kB / 0.6455 GB, free: 18.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/1.401, allocations: 113.8 kB / 0.6456 GB, free: 17.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003844/1.401, allocations: 110.2 kB / 0.6457 GB, free: 17.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001969/1.402, allocations: 55.47 kB / 0.6458 GB, free: 17.83 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005676/1.407, allocations: 2.437 MB / 0.6481 GB, free: 15.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.35e-06/1.407, allocations: 0 / 0.6481 GB, free: 15.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006007/1.413, allocations: 0.9966 MB / 0.6491 GB, free: 14.48 MB / 426.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.0005004/1.414, allocations: 177 kB / 0.6493 GB, free: 14.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009327/1.423, allocations: 4.942 MB / 0.6541 GB, free: 9.379 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.257e-06/1.423, allocations: 0 / 0.6541 GB, free: 9.379 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003924/1.427, allocations: 1.935 MB / 0.656 GB, free: 7.441 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002879/1.43, allocations: 446.5 kB / 0.6564 GB, free: 7.008 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01528/1.445, allocations: 7.547 MB / 0.6638 GB, free: 15.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005088/1.451, allocations: 3.174 MB / 0.6669 GB, free: 12.24 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006186/1.457, allocations: 1.831 MB / 0.6687 GB, free: 10.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/1.458, allocations: 235.4 kB / 0.6689 GB, free: 10.19 MB / 442.7 MB Notification: Performance of SimCode: time 2.09e-06/1.458, allocations: 0 / 0.6689 GB, free: 10.19 MB / 442.7 MB Notification: Performance of Templates: time 0.3482/1.806, allocations: 38.18 MB / 0.7062 GB, free: 103.1 MB / 442.7 MB