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 2.011/2.011, allocations: 194.9 MB / 210.6 MB, free: 9.32 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.154e-05/3.158e-05, allocations: 0 / 258.8 MB, free: 9.031 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2924, allocations: 44.51 MB / 303.3 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0449/0.3374, allocations: 30.28 MB / 333.6 MB, free: 15.4 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02067/0.3581, allocations: 7.559 MB / 341.2 MB, free: 7.816 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006589/0.3648, allocations: 159.6 kB / 341.3 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005411/0.3702, allocations: 1.575 MB / 342.9 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01632/0.3866, allocations: 4.523 MB / 347.4 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003143/0.3898, allocations: 0.5967 MB / 348 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.048/0.4378, allocations: 16.38 MB / 364.4 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006369/0.4442, allocations: 3.106 MB / 367.5 MB, free: 13.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/0.4462, allocations: 0.8338 MB / 368.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002742/0.4489, allocations: 1.317 MB / 369.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002694/0.4517, allocations: 0.9285 MB / 370.6 MB, free: 10.33 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009875/0.4527, allocations: 136 kB / 370.7 MB, free: 10.2 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0024/0.4551, allocations: 1.481 MB / 372.2 MB, free: 8.711 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001262/0.4564, allocations: 252 kB / 372.4 MB, free: 8.465 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008403/0.4649, allocations: 5.456 MB / 377.9 MB, free: 2.996 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.4649, allocations: 0 / 377.9 MB, free: 2.996 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4649, allocations: 4 kB / 377.9 MB, free: 2.992 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002399/0.4652, allocations: 0 / 377.9 MB, free: 2.992 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: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01392/0.4791, allocations: 3.929 MB / 381.8 MB, free: 14.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.4792, allocations: 12.03 kB / 381.8 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.35/0.8292, allocations: 18.75 MB / 400.6 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01196/0.8412, allocations: 3.711 MB / 404.3 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.8415, allocations: 197 kB / 404.5 MB, free: 8.234 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008805/0.8424, allocations: 271.7 kB / 404.7 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02164/0.864, allocations: 8.838 MB / 413.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001751/0.8642, allocations: 51.58 kB / 413.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000579/0.8648, allocations: 131.8 kB / 413.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004268/0.8691, allocations: 1.653 MB / 415.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02357/0.8927, allocations: 7.604 MB / 423 MB, free: 5.027 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3051/1.198, allocations: 35.54 MB / 458.6 MB, free: 82.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01278/1.211, allocations: 3.761 MB / 462.3 MB, free: 80.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005424/1.211, allocations: 329.1 kB / 462.6 MB, free: 79.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/1.211, allocations: 51.19 kB / 462.7 MB, free: 79.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 4.729e-06/1.211, allocations: 0 / 462.7 MB, free: 79.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=190): time 0.08836/1.3, allocations: 20.87 MB / 483.6 MB, free: 58.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/1.3, allocations: 252.6 kB / 483.8 MB, free: 58.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006781/1.307, allocations: 3.759 MB / 487.6 MB, free: 54.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005011/1.307, allocations: 49.7 kB / 487.6 MB, free: 54.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002072/1.309, allocations: 2.808 MB / 490.4 MB, free: 52.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001027/1.31, allocations: 0.7243 MB / 491.2 MB, free: 51.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004193/1.311, allocations: 109.2 kB / 491.3 MB, free: 51.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002969/1.311, allocations: 0.5334 MB / 491.8 MB, free: 50.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004751/1.316, allocations: 2.138 MB / 493.9 MB, free: 48.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006681/1.323, allocations: 5.341 MB / 499.3 MB, free: 41.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006862/1.33, allocations: 3.324 MB / 0.4908 GB, free: 38.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-05/1.33, allocations: 32 kB / 0.4909 GB, free: 38.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02313/1.353, allocations: 8.59 MB / 0.4992 GB, free: 29.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.755e-05/1.353, allocations: 53.25 kB / 0.4993 GB, free: 29.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001389/1.353, allocations: 112 kB / 0.4994 GB, free: 29.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007138/1.36, allocations: 1.526 MB / 0.5009 GB, free: 27.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007207/1.367, allocations: 1.22 MB / 0.5021 GB, free: 26.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01952/1.387, allocations: 9.481 MB / 0.5113 GB, free: 17.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005849/1.393, allocations: 324.1 kB / 0.5116 GB, free: 16.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008601/1.394, allocations: 330.1 kB / 0.512 GB, free: 16.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * 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 (647): * Single equations (assignments): 643 * 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 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003817/1.398, allocations: 1.912 MB / 0.5138 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008551/1.398, allocations: 351.4 kB / 0.5142 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/1.41, allocations: 4.141 MB / 0.5182 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.196e-05/1.41, allocations: 23.98 kB / 0.5182 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/1.411, allocations: 8 kB / 0.5182 GB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.225e-05/1.411, allocations: 11.92 kB / 0.5182 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02486/1.435, allocations: 9.291 MB / 0.5273 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-05/1.436, allocations: 7.984 kB / 0.5273 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002501/1.438, allocations: 271.6 kB / 0.5276 GB, free: 408 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007124/1.445, allocations: 1.351 MB / 0.5289 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004588/1.446, allocations: 31.44 kB / 0.5289 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02105/1.467, allocations: 8.634 MB / 0.5374 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.467, allocations: 0 / 0.5374 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01961/1.486, allocations: 7.154 MB / 0.5444 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002536/1.489, allocations: 0.7072 MB / 0.545 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001215/1.49, allocations: 36.28 kB / 0.5451 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003267/1.494, allocations: 119.8 kB / 0.5452 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006431/1.494, allocations: 112.7 kB / 0.5453 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002356/1.494, allocations: 52.12 kB / 0.5454 GB, free: 14 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006252/1.501, allocations: 2.693 MB / 0.548 GB, free: 11.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.82e-07/1.501, allocations: 0 / 0.548 GB, free: 11.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006165/1.507, allocations: 1.025 MB / 0.549 GB, free: 10.31 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 (136): * Single equations (assignments): 132 * 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.0007944/1.508, allocations: 185.2 kB / 0.5492 GB, free: 10.12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01335/1.521, allocations: 5.325 MB / 0.5544 GB, free: 4.812 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/1.521, allocations: 0 / 0.5544 GB, free: 4.812 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006083/1.527, allocations: 2.075 MB / 0.5564 GB, free: 2.727 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003736/1.531, allocations: 445.9 kB / 0.5568 GB, free: 2.289 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/1.557, allocations: 10.65 MB / 0.5672 GB, free: 7.602 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005718/1.563, allocations: 3.168 MB / 0.5703 GB, free: 4.406 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00792/1.571, allocations: 1.831 MB / 0.5721 GB, free: 2.566 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/1.572, allocations: 239.4 kB / 0.5723 GB, free: 2.332 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.572, allocations: 0 / 0.5723 GB, free: 2.332 MB / 410.7 MB Notification: Performance of Templates: time 0.3586/1.931, allocations: 40.71 MB / 0.6121 GB, free: 115.8 MB / 410.7 MB