Running command: translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadModel(PlanarMechanics): time 1.952/1.952, allocations: 234.8 MB / 247 MB, free: 2.043 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.282e-05/3.29e-05, allocations: 4 kB / 302.2 MB, free: 14.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.0954, allocations: 52.38 MB / 354.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3775/0.473, allocations: 85.95 MB / 440.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.4732, allocations: 71.97 kB / 440.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2389/0.7121, allocations: 63.31 MB / 0.4921 GB, free: 11.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.907e-06/0.7122, allocations: 0 / 0.4921 GB, free: 11.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001151/0.7123, allocations: 52 kB / 0.4922 GB, free: 11.19 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01319/0.7255, allocations: 3.258 MB / 0.4953 GB, free: 7.871 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.7256, allocations: 12.03 kB / 0.4954 GB, free: 7.859 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01178/0.7374, allocations: 1.935 MB / 0.4972 GB, free: 5.918 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004885/0.7423, allocations: 1.696 MB / 0.4989 GB, free: 4.176 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003246/0.7426, allocations: 221.8 kB / 0.4991 GB, free: 3.957 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001425/0.7441, allocations: 295.9 kB / 0.4994 GB, free: 3.668 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/0.7642, allocations: 7.747 MB / 0.507 GB, free: 11.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001276/0.7643, allocations: 31.77 kB / 0.507 GB, free: 11.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006807/0.765, allocations: 127.9 kB / 0.5071 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001856/0.7669, allocations: 0.9272 MB / 0.508 GB, free: 10.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01941/0.7863, allocations: 7.134 MB / 0.515 GB, free: 3.293 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3139/1.1, allocations: 25.61 MB / 0.54 GB, free: 93.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008403/1.109, allocations: 2.564 MB / 0.5425 GB, free: 92.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002031/1.111, allocations: 0.884 MB / 0.5434 GB, free: 92.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008817/1.12, allocations: 5.102 MB / 0.5483 GB, free: 89.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/1.12, allocations: 44.47 kB / 0.5484 GB, free: 89.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=148): time 5.15e-06/1.12, allocations: 0 / 0.5484 GB, free: 89.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=176): time 0.01587/1.136, allocations: 4.729 MB / 0.553 GB, free: 88.96 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/1.136, allocations: 67.31 kB / 0.5531 GB, free: 88.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004319/1.14, allocations: 2.31 MB / 0.5553 GB, free: 88.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000243/1.14, allocations: 51.14 kB / 0.5554 GB, free: 88.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/1.142, allocations: 2.092 MB / 0.5574 GB, free: 87.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006406/1.142, allocations: 0.6476 MB / 0.558 GB, free: 86.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002977/1.143, allocations: 83.89 kB / 0.5581 GB, free: 86.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002626/1.143, allocations: 489 kB / 0.5586 GB, free: 86.42 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002634/1.145, allocations: 1.303 MB / 0.5599 GB, free: 85.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003914/1.149, allocations: 3.516 MB / 0.5633 GB, free: 82.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004161/1.154, allocations: 2.205 MB / 0.5654 GB, free: 81.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.488e-05/1.154, allocations: 22.78 kB / 0.5655 GB, free: 81.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01149/1.165, allocations: 4.864 MB / 0.5702 GB, free: 80.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.52e-05/1.165, allocations: 36.53 kB / 0.5703 GB, free: 80.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.591e-05/1.165, allocations: 79.84 kB / 0.5703 GB, free: 80.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/1.167, allocations: 370 kB / 0.5707 GB, free: 80.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004177/1.171, allocations: 0.9191 MB / 0.5716 GB, free: 80.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005894/1.177, allocations: 3.81 MB / 0.5753 GB, free: 77.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004079/1.181, allocations: 207.1 kB / 0.5755 GB, free: 77.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007153/1.182, allocations: 249.8 kB / 0.5757 GB, free: 77.75 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (498): * Single equations (assignments): 493 * Array equations: 4 * 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%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007142/1.182, allocations: 405.5 kB / 0.5761 GB, free: 77.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004338/1.183, allocations: 237.1 kB / 0.5764 GB, free: 77.28 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004562/1.187, allocations: 2.262 MB / 0.5786 GB, free: 76.44 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001322/1.187, allocations: 30.66 kB / 0.5786 GB, free: 76.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/1.187, allocations: 10.19 kB / 0.5786 GB, free: 76.44 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/1.187, allocations: 7.312 kB / 0.5786 GB, free: 76.44 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/1.201, allocations: 6.366 MB / 0.5848 GB, free: 74.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/1.201, allocations: 3.938 kB / 0.5848 GB, free: 74.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/1.202, allocations: 252 kB / 0.5851 GB, free: 74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008938/1.203, allocations: 252.2 kB / 0.5853 GB, free: 73.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000156/1.204, allocations: 35.64 kB / 0.5853 GB, free: 73.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004358/1.208, allocations: 3.125 MB / 0.5884 GB, free: 71.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.043e-06/1.208, allocations: 14.83 kB / 0.5884 GB, free: 71.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006212/1.214, allocations: 3.767 MB / 0.5921 GB, free: 70.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008708/1.215, allocations: 322.8 kB / 0.5924 GB, free: 69.86 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003874/1.216, allocations: 27 kB / 0.5924 GB, free: 69.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/1.217, allocations: 76.88 kB / 0.5925 GB, free: 69.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/1.217, allocations: 108.4 kB / 0.5926 GB, free: 69.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/1.217, allocations: 49.62 kB / 0.5926 GB, free: 69.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002987/1.22, allocations: 1.625 MB / 0.5942 GB, free: 69.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.23e-07/1.22, allocations: 0 / 0.5942 GB, free: 69.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004257/1.224, allocations: 0.7354 MB / 0.5949 GB, free: 69.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * Array equations: 4 * 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%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004288/1.225, allocations: 180 kB / 0.5951 GB, free: 68.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005854/1.231, allocations: 3.173 MB / 0.5982 GB, free: 66.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.845e-06/1.231, allocations: 0 / 0.5982 GB, free: 66.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001834/1.233, allocations: 1.092 MB / 0.5993 GB, free: 65.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/1.235, allocations: 361.9 kB / 0.5996 GB, free: 65.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/1.246, allocations: 5.499 MB / 0.605 GB, free: 60.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003462/1.25, allocations: 2.688 MB / 0.6076 GB, free: 58.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003979/1.254, allocations: 1.264 MB / 0.6089 GB, free: 57.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006624/1.254, allocations: 182 kB / 0.609 GB, free: 57.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.843e-06/1.254, allocations: 0 / 0.609 GB, free: 57.2 MB / 442.7 MB Notification: Performance of Templates: time 0.06686/1.321, allocations: 24.87 MB / 0.6333 GB, free: 35.81 MB / 442.7 MB