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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadModel(Modelica): time 2.12/2.12, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.083e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1152, allocations: 50.42 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.05096/0.1662, allocations: 31.58 MB / 376.6 MB, free: 9.262 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02347/0.1897, allocations: 7.777 MB / 384.3 MB, free: 1.461 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007854/0.1976, allocations: 171.6 kB / 384.5 MB, free: 1.293 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006116/0.2038, allocations: 1.606 MB / 386.1 MB, free: 15.68 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01883/0.2227, allocations: 4.663 MB / 390.8 MB, free: 11 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003381/0.2261, allocations: 0.6006 MB / 391.4 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.4188/0.645, allocations: 46.8 MB / 438.2 MB, free: 3.203 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005592/0.6506, allocations: 3.108 MB / 441.3 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001677/0.6524, allocations: 0.8345 MB / 442.1 MB, free: 424 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002654/0.6551, allocations: 1.314 MB / 443.4 MB, free: 15.43 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002836/0.6579, allocations: 0.8855 MB / 444.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001014/0.659, allocations: 132 kB / 444.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002373/0.6614, allocations: 1.48 MB / 445.9 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001264/0.6627, allocations: 252 kB / 446.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009022/0.6717, allocations: 5.409 MB / 451.6 MB, free: 8.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.6718, allocations: 4 kB / 451.6 MB, free: 8.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.6718, allocations: 0 / 451.6 MB, free: 8.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002226/0.6721, allocations: 4 kB / 451.6 MB, free: 8.531 MB / 346.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.01318/0.6853, allocations: 3.848 MB / 455.4 MB, free: 4.941 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.6853, allocations: 12.03 kB / 455.5 MB, free: 4.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3482/1.034, allocations: 18.75 MB / 474.2 MB, free: 2.859 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01271/1.046, allocations: 3.384 MB / 477.6 MB, free: 392 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/1.047, allocations: 199.8 kB / 477.8 MB, free: 276 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001736/1.048, allocations: 274.8 kB / 478.1 MB, free: 96 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/1.074, allocations: 8.807 MB / 486.9 MB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002162/1.074, allocations: 50.36 kB / 486.9 MB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008632/1.075, allocations: 130.2 kB / 487 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005968/1.081, allocations: 1.773 MB / 488.8 MB, free: 6.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02504/1.106, allocations: 7.606 MB / 496.4 MB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06941/1.176, allocations: 35.62 MB / 0.5196 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01479/1.191, allocations: 3.759 MB / 0.5232 GB, free: 6.453 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007055/1.191, allocations: 330.4 kB / 0.5236 GB, free: 6.086 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.924e-05/1.191, allocations: 55.56 kB / 0.5236 GB, free: 6.023 MB / 426.7 MB Notification: Performance of pre-optimization done (n=160): time 5.61e-06/1.191, allocations: 0 / 0.5236 GB, free: 6.023 MB / 426.7 MB Notification: Performance of matching and sorting (n=190): time 0.1005/1.292, allocations: 20.75 MB / 0.5439 GB, free: 1.156 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/1.292, allocations: 252.6 kB / 0.5441 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008814/1.301, allocations: 3.744 MB / 0.5478 GB, free: 13.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005541/1.302, allocations: 53.7 kB / 0.5478 GB, free: 13.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002995/1.305, allocations: 2.714 MB / 0.5505 GB, free: 10.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001371/1.306, allocations: 0.7243 MB / 0.5512 GB, free: 9.605 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005395/1.307, allocations: 108 kB / 0.5513 GB, free: 9.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004772/1.307, allocations: 0.5459 MB / 0.5518 GB, free: 8.945 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00574/1.313, allocations: 2.138 MB / 0.5539 GB, free: 6.801 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.311/1.624, allocations: 5.355 MB / 0.5591 GB, free: 160.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009472/1.633, allocations: 3.333 MB / 0.5624 GB, free: 160.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/1.634, allocations: 32.38 kB / 0.5624 GB, free: 160.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02821/1.662, allocations: 8.469 MB / 0.5707 GB, free: 157.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.918e-05/1.662, allocations: 56.34 kB / 0.5707 GB, free: 157.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002232/1.662, allocations: 110.5 kB / 0.5708 GB, free: 157.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007468/1.67, allocations: 1.528 MB / 0.5723 GB, free: 156.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007314/1.677, allocations: 1.228 MB / 0.5735 GB, free: 156.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02054/1.698, allocations: 9.486 MB / 0.5828 GB, free: 152.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006122/1.704, allocations: 324 kB / 0.5831 GB, free: 152.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/1.705, allocations: 335.1 kB / 0.5834 GB, free: 152.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 (650): * Single equations (assignments): 646 * 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.0047/1.71, allocations: 1.907 MB / 0.5853 GB, free: 151.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000955/1.711, allocations: 359.2 kB / 0.5856 GB, free: 151.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/1.723, allocations: 4.139 MB / 0.5897 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-05/1.724, allocations: 20 kB / 0.5897 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.611e-05/1.724, allocations: 8 kB / 0.5897 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.271e-05/1.724, allocations: 14.08 kB / 0.5897 GB, free: 149.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02524/1.749, allocations: 9.313 MB / 0.5988 GB, free: 140 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.692e-05/1.749, allocations: 4.062 kB / 0.5988 GB, free: 140 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002503/1.752, allocations: 264.5 kB / 0.5991 GB, free: 139.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006718/1.758, allocations: 1.352 MB / 0.6004 GB, free: 138.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004611/1.759, allocations: 39.55 kB / 0.6004 GB, free: 138.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01843/1.777, allocations: 8.621 MB / 0.6088 GB, free: 129.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/1.777, allocations: 4 kB / 0.6088 GB, free: 129.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/1.795, allocations: 7.155 MB / 0.6158 GB, free: 122.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/1.796, allocations: 416.4 kB / 0.6162 GB, free: 122.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001273/1.798, allocations: 35.98 kB / 0.6163 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003266/1.801, allocations: 120.1 kB / 0.6164 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006528/1.802, allocations: 111.3 kB / 0.6165 GB, free: 121.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002178/1.802, allocations: 57.47 kB / 0.6165 GB, free: 121.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005902/1.808, allocations: 2.681 MB / 0.6192 GB, free: 119.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.263e-06/1.808, allocations: 0 / 0.6192 GB, free: 119.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006159/1.814, allocations: 1.025 MB / 0.6202 GB, free: 118 MB / 458.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.0008874/1.815, allocations: 191.9 kB / 0.6203 GB, free: 117.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01299/1.828, allocations: 5.345 MB / 0.6256 GB, free: 112.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/1.828, allocations: 0 / 0.6256 GB, free: 112.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005706/1.834, allocations: 2.071 MB / 0.6276 GB, free: 110.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003735/1.838, allocations: 455.4 kB / 0.628 GB, free: 110 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02247/1.86, allocations: 11.07 MB / 0.6388 GB, free: 98.88 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004348/1.865, allocations: 3.169 MB / 0.6419 GB, free: 95.67 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/1.866, allocations: 279.4 kB / 0.6422 GB, free: 95.4 MB / 458.7 MB Notification: Performance of SimCode: time 9.82e-07/1.866, allocations: 0 / 0.6422 GB, free: 95.4 MB / 458.7 MB Notification: Performance of Templates: time 0.1281/1.994, allocations: 71.41 MB / 0.7119 GB, free: 24.01 MB / 458.7 MB