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.148/2.148, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.963e-05/3.989e-05, allocations: 11.94 kB / 258.8 MB, free: 8.699 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3529, allocations: 44.51 MB / 303.3 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.04867/0.4016, allocations: 30.26 MB / 333.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02237/0.424, allocations: 7.56 MB / 341.1 MB, free: 7.668 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007025/0.4311, allocations: 159.6 kB / 341.3 MB, free: 7.512 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005766/0.4369, allocations: 1.571 MB / 342.8 MB, free: 5.934 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01783/0.4548, allocations: 4.519 MB / 347.4 MB, free: 1.402 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003392/0.4582, allocations: 0.6006 MB / 348 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.04873/0.507, allocations: 16.38 MB / 364.3 MB, free: 420 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006748/0.5138, allocations: 3.11 MB / 367.5 MB, free: 13.27 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002136/0.516, allocations: 0.8377 MB / 368.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003046/0.5191, allocations: 1.321 MB / 369.6 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002979/0.5221, allocations: 0.9246 MB / 370.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001091/0.5233, allocations: 140 kB / 370.7 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002567/0.5258, allocations: 1.469 MB / 372.1 MB, free: 8.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001393/0.5273, allocations: 256 kB / 372.4 MB, free: 8.32 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009319/0.5366, allocations: 5.453 MB / 377.8 MB, free: 2.855 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.5367, allocations: 4 kB / 377.9 MB, free: 2.852 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.5367, allocations: 0 / 377.9 MB, free: 2.852 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002529/0.537, allocations: 0 / 377.9 MB, free: 2.852 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.01512/0.5521, allocations: 3.937 MB / 381.8 MB, free: 14.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/0.5522, allocations: 8.031 kB / 381.8 MB, free: 14.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3481/0.9003, allocations: 18.76 MB / 400.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01275/0.9131, allocations: 3.703 MB / 404.3 MB, free: 8.285 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.9134, allocations: 197 kB / 404.4 MB, free: 8.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001265/0.9147, allocations: 279.7 kB / 404.7 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02323/0.9379, allocations: 8.835 MB / 413.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001882/0.9382, allocations: 39.66 kB / 413.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006023/0.9388, allocations: 139.8 kB / 413.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004477/0.9433, allocations: 1.653 MB / 415.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02412/0.9674, allocations: 7.6 MB / 423 MB, free: 4.891 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3175/1.285, allocations: 35.55 MB / 458.5 MB, free: 82.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01327/1.298, allocations: 3.758 MB / 462.3 MB, free: 80 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005658/1.299, allocations: 332 kB / 462.6 MB, free: 79.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/1.299, allocations: 51.09 kB / 462.7 MB, free: 79.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=160): time 6.332e-06/1.299, allocations: 3.562 kB / 462.7 MB, free: 79.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=190): time 0.09181/1.391, allocations: 20.86 MB / 483.5 MB, free: 58.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/1.391, allocations: 256.6 kB / 483.8 MB, free: 58.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007846/1.399, allocations: 3.752 MB / 487.5 MB, free: 54.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005897/1.4, allocations: 51.03 kB / 487.6 MB, free: 54.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002318/1.402, allocations: 2.707 MB / 490.3 MB, free: 51.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001256/1.403, allocations: 0.7202 MB / 491 MB, free: 51.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006149/1.404, allocations: 108.9 kB / 491.1 MB, free: 51.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000333/1.404, allocations: 0.542 MB / 491.7 MB, free: 50.6 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005258/1.409, allocations: 2.148 MB / 493.8 MB, free: 48.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007389/1.417, allocations: 5.333 MB / 499.1 MB, free: 41.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007492/1.424, allocations: 3.328 MB / 0.4907 GB, free: 38.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.912e-05/1.425, allocations: 32 kB / 0.4907 GB, free: 38.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02421/1.449, allocations: 8.447 MB / 0.499 GB, free: 29.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.081e-05/1.449, allocations: 52 kB / 0.499 GB, free: 29.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/1.449, allocations: 112 kB / 0.4991 GB, free: 29.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00728/1.456, allocations: 1.53 MB / 0.5006 GB, free: 27.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007529/1.464, allocations: 1.224 MB / 0.5018 GB, free: 26.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01991/1.484, allocations: 9.47 MB / 0.5111 GB, free: 17.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006401/1.49, allocations: 328.6 kB / 0.5114 GB, free: 16.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/1.492, allocations: 328 kB / 0.5117 GB, free: 16.52 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.004717/1.496, allocations: 1.909 MB / 0.5136 GB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/1.497, allocations: 351.5 kB / 0.5139 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/1.51, allocations: 4.145 MB / 0.5179 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.693e-05/1.51, allocations: 20 kB / 0.518 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/1.51, allocations: 8 kB / 0.518 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.337e-05/1.51, allocations: 11.92 kB / 0.518 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/1.536, allocations: 9.304 MB / 0.5271 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-05/1.536, allocations: 4 kB / 0.5271 GB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00253/1.539, allocations: 267.7 kB / 0.5273 GB, free: 456 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007288/1.546, allocations: 1.354 MB / 0.5286 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004856/1.546, allocations: 28 kB / 0.5287 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/1.568, allocations: 8.63 MB / 0.5371 GB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/1.568, allocations: 10.3 kB / 0.5371 GB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02092/1.589, allocations: 7.158 MB / 0.5441 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002994/1.592, allocations: 0.7034 MB / 0.5448 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/1.594, allocations: 32 kB / 0.5448 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003582/1.597, allocations: 119.8 kB / 0.5449 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008072/1.598, allocations: 113.1 kB / 0.545 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002375/1.598, allocations: 48 kB / 0.5451 GB, free: 14.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007722/1.606, allocations: 2.693 MB / 0.5477 GB, free: 11.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.603e-06/1.606, allocations: 0 / 0.5477 GB, free: 11.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007579/1.614, allocations: 1.028 MB / 0.5487 GB, free: 10.36 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.001146/1.615, allocations: 185.8 kB / 0.5489 GB, free: 10.17 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01464/1.63, allocations: 5.329 MB / 0.5541 GB, free: 4.855 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/1.63, allocations: 0 / 0.5541 GB, free: 4.855 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006064/1.636, allocations: 2.069 MB / 0.5561 GB, free: 2.777 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003731/1.64, allocations: 449.1 kB / 0.5566 GB, free: 2.336 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02758/1.667, allocations: 11.08 MB / 0.5674 GB, free: 7.215 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006557/1.674, allocations: 3.18 MB / 0.5705 GB, free: 4.008 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001822/1.676, allocations: 279.4 kB / 0.5707 GB, free: 3.734 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/1.676, allocations: 4 kB / 0.5707 GB, free: 3.73 MB / 410.7 MB Notification: Performance of Templates: time 0.4189/2.095, allocations: 71.36 MB / 0.6404 GB, free: 85.79 MB / 410.7 MB