Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadModel(Modelica): time 2.092/2.092, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.084e-05/3.076e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01909/0.1332, allocations: 11.58 MB / 356.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.1441, allocations: 3.83 MB / 360.4 MB, free: 9.492 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002407/0.1466, allocations: 59.81 kB / 360.4 MB, free: 9.434 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.1487, allocations: 0.5366 MB / 361 MB, free: 8.895 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007157/0.1559, allocations: 1.839 MB / 362.8 MB, free: 7.051 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.1576, allocations: 379.4 kB / 363.2 MB, free: 6.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003298/0.1609, allocations: 1.053 MB / 364.2 MB, free: 5.625 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002501/0.1635, allocations: 1.131 MB / 365.4 MB, free: 4.473 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.1646, allocations: 482.8 kB / 365.8 MB, free: 4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001738/0.1664, allocations: 0.7871 MB / 366.6 MB, free: 3.211 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00215/0.1686, allocations: 0.7138 MB / 367.3 MB, free: 2.496 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007738/0.1694, allocations: 80 kB / 367.4 MB, free: 2.418 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001411/0.1708, allocations: 0.8415 MB / 368.3 MB, free: 1.574 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000667/0.1715, allocations: 140 kB / 368.4 MB, free: 1.438 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005071/0.1766, allocations: 2.966 MB / 371.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1767, allocations: 0 / 371.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1767, allocations: 8 kB / 371.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001632/0.1769, allocations: 0 / 371.4 MB, free: 14.46 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.00772/0.1846, allocations: 2.459 MB / 373.8 MB, free: 11.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.1847, allocations: 8.031 kB / 373.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/0.1979, allocations: 1.97 MB / 375.8 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004195/0.2021, allocations: 1.39 MB / 377.2 MB, free: 8.523 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.2024, allocations: 118.9 kB / 377.3 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008576/0.2032, allocations: 151.8 kB / 377.5 MB, free: 8.258 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01586/0.2191, allocations: 6.39 MB / 383.9 MB, free: 1.344 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.2193, allocations: 27.75 kB / 383.9 MB, free: 1.316 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005207/0.2198, allocations: 83.89 kB / 384 MB, free: 1.234 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004695/0.2245, allocations: 1.433 MB / 385.4 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01746/0.242, allocations: 5.693 MB / 391.1 MB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3248/0.5669, allocations: 26.32 MB / 417.4 MB, free: 30.35 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007522/0.5744, allocations: 2.258 MB / 419.7 MB, free: 29.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/0.5746, allocations: 11 kB / 419.7 MB, free: 29.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/0.5747, allocations: 47.72 kB / 419.7 MB, free: 29.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 5.34e-06/0.5747, allocations: 0 / 419.7 MB, free: 29.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=106): time 0.03579/0.6105, allocations: 8.817 MB / 428.5 MB, free: 25.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.6106, allocations: 139.2 kB / 428.7 MB, free: 25.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005498/0.6161, allocations: 2.634 MB / 431.3 MB, free: 24.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002475/0.6164, allocations: 37.39 kB / 431.4 MB, free: 24.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001664/0.6181, allocations: 2.072 MB / 433.4 MB, free: 22.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006428/0.6188, allocations: 435 kB / 433.9 MB, free: 21.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003934/0.6192, allocations: 88.48 kB / 433.9 MB, free: 21.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002701/0.6195, allocations: 0.4931 MB / 434.4 MB, free: 21.44 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003534/0.623, allocations: 1.389 MB / 435.8 MB, free: 20.78 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005289/0.6284, allocations: 4.206 MB / 440 MB, free: 16.15 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005349/0.6338, allocations: 2.37 MB / 442.4 MB, free: 13.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.942e-05/0.634, allocations: 28 kB / 442.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01669/0.6507, allocations: 5.991 MB / 448.4 MB, free: 7.883 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.234e-05/0.6508, allocations: 48 kB / 448.5 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/0.6509, allocations: 100.9 kB / 448.6 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00389/0.6548, allocations: 0.8088 MB / 449.4 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005507/0.6604, allocations: 0.9825 MB / 450.3 MB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008173/0.6686, allocations: 4.248 MB / 454.6 MB, free: 1.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004474/0.6732, allocations: 243.6 kB / 454.8 MB, free: 1.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007588/0.674, allocations: 278.8 kB / 455.1 MB, free: 1.062 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (533): * Single equations (assignments): 529 * 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,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003046/0.677, allocations: 1.34 MB / 456.4 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000683/0.6777, allocations: 233 kB / 456.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006917/0.6847, allocations: 1.858 MB / 458.5 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.568e-05/0.6848, allocations: 12 kB / 458.5 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/0.6848, allocations: 7.953 kB / 458.6 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.549e-05/0.6849, allocations: 7.922 kB / 458.6 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01601/0.7009, allocations: 4.792 MB / 463.4 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/0.701, allocations: 4.859 kB / 463.4 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.7022, allocations: 135.8 kB / 463.5 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003814/0.7061, allocations: 0.6489 MB / 464.1 MB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000218/0.7063, allocations: 20 kB / 464.2 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008877/0.7152, allocations: 3.786 MB / 467.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.7153, allocations: 4.031 kB / 467.9 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01097/0.7263, allocations: 3.78 MB / 471.7 MB, free: 168 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009331/0.7273, allocations: 298.1 kB / 472 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006897/0.728, allocations: 27.88 kB / 472 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001895/0.7299, allocations: 63.97 kB / 472.1 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003024/0.7302, allocations: 51.92 kB / 472.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/0.7304, allocations: 29.56 kB / 472.2 MB, free: 15.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004928/0.7353, allocations: 1.836 MB / 474 MB, free: 13.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.81e-07/0.7354, allocations: 0 / 474 MB, free: 13.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004841/0.7402, allocations: 0.665 MB / 474.7 MB, free: 13.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000723/0.741, allocations: 168.2 kB / 474.9 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009139/0.7501, allocations: 3.389 MB / 478.2 MB, free: 9.637 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/0.7502, allocations: 4 kB / 478.2 MB, free: 9.633 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0023/0.7525, allocations: 0.9264 MB / 479.2 MB, free: 8.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/0.7547, allocations: 238.5 kB / 479.4 MB, free: 8.465 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/0.7717, allocations: 6.679 MB / 486.1 MB, free: 1.738 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004459/0.7762, allocations: 2.244 MB / 488.3 MB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.7773, allocations: 195.4 kB / 488.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.7773, allocations: 0 / 488.5 MB, free: 15.27 MB / 378.7 MB Notification: Performance of Templates: time 0.1215/0.8988, allocations: 45.79 MB / 0.5218 GB, free: 1.469 MB / 410.7 MB