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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 2.032/2.032, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.691e-05, allocations: 7.984 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2559, allocations: 44.49 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.3896, allocations: 86.01 MB / 380.1 MB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.39, allocations: 91.94 kB / 380.2 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5281/0.9181, allocations: 81.04 MB / 461.3 MB, free: 85.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.9182, allocations: 3.938 kB / 461.3 MB, free: 85.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002332/0.9184, allocations: 71.03 kB / 461.3 MB, free: 85.56 MB / 362.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.01202/0.9304, allocations: 3.962 MB / 465.3 MB, free: 82.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.9305, allocations: 12.03 kB / 465.3 MB, free: 82.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03209/0.9626, allocations: 6.614 MB / 471.9 MB, free: 76.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01722/0.9799, allocations: 5.808 MB / 477.7 MB, free: 70.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/0.9801, allocations: 116 kB / 477.8 MB, free: 70.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001485/0.9816, allocations: 223.7 kB / 478.1 MB, free: 69.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01093/0.9926, allocations: 5.241 MB / 483.3 MB, free: 64.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01661/1.009, allocations: 8.174 MB / 491.5 MB, free: 55.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00024/1.01, allocations: 63.47 kB / 491.5 MB, free: 55.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009944/1.011, allocations: 24 kB / 491.6 MB, free: 55.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001362/1.012, allocations: 0.8923 MB / 492.4 MB, free: 54.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04663/1.059, allocations: 40.6 MB / 0.5206 GB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004368/1.063, allocations: 3.043 MB / 0.5235 GB, free: 9.812 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00276/1.066, allocations: 1.904 MB / 0.5254 GB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004468/1.066, allocations: 327.2 kB / 0.5257 GB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/1.066, allocations: 55.81 kB / 0.5258 GB, free: 7.477 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 5.581e-06/1.066, allocations: 0 / 0.5258 GB, free: 7.477 MB / 362.7 MB Notification: Performance of matching and sorting (n=189): time 0.04958/1.116, allocations: 16.8 MB / 0.5422 GB, free: 6.586 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/1.116, allocations: 248.6 kB / 0.5424 GB, free: 6.285 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007386/1.124, allocations: 3.008 MB / 0.5453 GB, free: 3.281 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004011/1.124, allocations: 25.7 kB / 0.5454 GB, free: 3.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003163/1.127, allocations: 2.811 MB / 0.5481 GB, free: 412 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/1.128, allocations: 0.698 MB / 0.5488 GB, free: 15.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005366/1.129, allocations: 0 / 0.5488 GB, free: 15.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005964/1.13, allocations: 0.5425 MB / 0.5493 GB, free: 15.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004748/1.134, allocations: 1.971 MB / 0.5512 GB, free: 13.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008401/1.143, allocations: 5.306 MB / 0.5564 GB, free: 6.168 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007175/1.15, allocations: 3.225 MB / 0.5596 GB, free: 2.941 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001153/1.15, allocations: 36 kB / 0.5596 GB, free: 2.906 MB / 394.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.2479/1.398, allocations: 7.588 MB / 0.567 GB, free: 100.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001259/1.398, allocations: 63.55 kB / 0.5671 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001833/1.398, allocations: 118.3 kB / 0.5672 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00521/1.404, allocations: 1.37 MB / 0.5685 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005239/1.409, allocations: 1.27 MB / 0.5698 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01407/1.423, allocations: 7.843 MB / 0.5774 GB, free: 99.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00568/1.429, allocations: 208.5 kB / 0.5776 GB, free: 99.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/1.43, allocations: 341.8 kB / 0.578 GB, free: 99.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * 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 (674): * Single equations (assignments): 670 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001029/1.431, allocations: 407.7 kB / 0.5783 GB, free: 99.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007588/1.432, allocations: 325.7 kB / 0.5787 GB, free: 99.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00903/1.441, allocations: 3.754 MB / 0.5823 GB, free: 99.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.914e-05/1.441, allocations: 17.28 kB / 0.5823 GB, free: 99.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/1.441, allocations: 15.44 kB / 0.5824 GB, free: 99.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.11e-05/1.441, allocations: 9.234 kB / 0.5824 GB, free: 99.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02086/1.462, allocations: 8.151 MB / 0.5903 GB, free: 96.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.212e-05/1.462, allocations: 0 / 0.5903 GB, free: 96.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/1.464, allocations: 266.7 kB / 0.5906 GB, free: 96.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004812/1.469, allocations: 1.191 MB / 0.5917 GB, free: 96.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004146/1.469, allocations: 8.875 kB / 0.5917 GB, free: 96.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/1.482, allocations: 7.039 MB / 0.5986 GB, free: 92.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/1.482, allocations: 3.312 kB / 0.5986 GB, free: 92.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01292/1.495, allocations: 6.607 MB / 0.6051 GB, free: 90.24 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001951/1.497, allocations: 0.6432 MB / 0.6057 GB, free: 89.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009022/1.498, allocations: 3.969 kB / 0.6057 GB, free: 89.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002415/1.5, allocations: 88.66 kB / 0.6058 GB, free: 89.86 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005956/1.501, allocations: 107.3 kB / 0.6059 GB, free: 89.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002146/1.501, allocations: 50.52 kB / 0.6059 GB, free: 89.83 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004939/1.506, allocations: 2.039 MB / 0.6079 GB, free: 89.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.58e-06/1.506, allocations: 0 / 0.6079 GB, free: 89.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006723/1.513, allocations: 0.8596 MB / 0.6088 GB, free: 88.72 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 (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.000692/1.514, allocations: 142.5 kB / 0.6089 GB, free: 88.59 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009826/1.523, allocations: 4.996 MB / 0.6138 GB, free: 84.12 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/1.523, allocations: 4 kB / 0.6138 GB, free: 84.12 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003951/1.527, allocations: 1.898 MB / 0.6156 GB, free: 82.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/1.53, allocations: 380.8 kB / 0.616 GB, free: 82.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01824/1.548, allocations: 7.863 MB / 0.6237 GB, free: 75.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006438/1.555, allocations: 3.177 MB / 0.6268 GB, free: 72.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/1.556, allocations: 265.4 kB / 0.627 GB, free: 72.64 MB / 394.7 MB Notification: Performance of SimCode: time 2.053e-06/1.556, allocations: 4 kB / 0.627 GB, free: 72.64 MB / 394.7 MB Notification: Performance of Templates: time 0.1006/1.657, allocations: 68.46 MB / 0.6939 GB, free: 6.887 MB / 394.7 MB