Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadModel(Modelica): time 2.194/2.194, allocations: 194.9 MB / 211.2 MB, free: 7.859 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.137e-05/3.133e-05, allocations: 4 kB / 258.8 MB, free: 8.215 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3079, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01797/0.3259, allocations: 11.11 MB / 314.4 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.3365, allocations: 3.71 MB / 318.1 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.3389, allocations: 55.88 kB / 318.2 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.3407, allocations: 0.5288 MB / 318.7 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006495/0.3472, allocations: 1.741 MB / 320.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001593/0.3488, allocations: 387.3 kB / 320.8 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00311/0.3519, allocations: 1.053 MB / 321.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002245/0.3542, allocations: 1.115 MB / 323 MB, free: 9.871 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008721/0.3551, allocations: 478.8 kB / 323.4 MB, free: 9.402 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001479/0.3566, allocations: 0.791 MB / 324.2 MB, free: 8.609 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002085/0.3587, allocations: 0.7529 MB / 325 MB, free: 7.855 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006303/0.3594, allocations: 91.88 kB / 325.1 MB, free: 7.766 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.3606, allocations: 0.8376 MB / 325.9 MB, free: 6.926 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005771/0.3612, allocations: 140 kB / 326.1 MB, free: 6.789 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005253/0.3665, allocations: 2.987 MB / 329 MB, free: 3.797 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3665, allocations: 0 / 329 MB, free: 3.797 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3665, allocations: 0 / 329 MB, free: 3.797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001371/0.3667, allocations: 0 / 329 MB, free: 3.797 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 931 * Number of variables: 931 Notification: Performance of Generate backend data structure: time 0.00859/0.3753, allocations: 2.492 MB / 331.5 MB, free: 1.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.3754, allocations: 12.03 kB / 331.5 MB, free: 1.238 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/0.3882, allocations: 1.974 MB / 333.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00447/0.3927, allocations: 1.534 MB / 335.1 MB, free: 13.67 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.3929, allocations: 118.8 kB / 335.2 MB, free: 13.55 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008451/0.3938, allocations: 159.7 kB / 335.3 MB, free: 13.4 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01603/0.4098, allocations: 6.397 MB / 341.7 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001631/0.4101, allocations: 23.81 kB / 341.7 MB, free: 6.461 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006872/0.4108, allocations: 91.78 kB / 341.8 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004063/0.4149, allocations: 1.378 MB / 343.2 MB, free: 4.988 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01734/0.4323, allocations: 5.681 MB / 348.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04684/0.4792, allocations: 26.24 MB / 375.1 MB, free: 4.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007679/0.4869, allocations: 2.26 MB / 377.4 MB, free: 1.824 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.4871, allocations: 11.97 kB / 377.4 MB, free: 1.812 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.4871, allocations: 50.5 kB / 377.5 MB, free: 1.754 MB / 314.7 MB Notification: Performance of pre-optimization done (n=98): time 4.598e-06/0.4871, allocations: 0 / 377.5 MB, free: 1.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.03899/0.5261, allocations: 8.853 MB / 386.3 MB, free: 8.699 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.5263, allocations: 144.5 kB / 386.4 MB, free: 8.527 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006102/0.5324, allocations: 2.611 MB / 389.1 MB, free: 5.902 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002599/0.5327, allocations: 41.83 kB / 389.1 MB, free: 5.855 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002063/0.5348, allocations: 2.058 MB / 391.2 MB, free: 3.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006809/0.5355, allocations: 446.5 kB / 391.6 MB, free: 3.328 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/0.5358, allocations: 84 kB / 391.7 MB, free: 3.246 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000392/0.5362, allocations: 0.4887 MB / 392.2 MB, free: 2.746 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003802/0.5401, allocations: 1.386 MB / 393.6 MB, free: 1.352 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006248/0.5463, allocations: 4.184 MB / 397.7 MB, free: 11.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005733/0.5521, allocations: 2.358 MB / 400.1 MB, free: 9.387 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.704e-05/0.5522, allocations: 28 kB / 400.1 MB, free: 9.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=566) (initialization): time 0.02646/0.5787, allocations: 5.969 MB / 406.1 MB, free: 3.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001529/0.5789, allocations: 48 kB / 406.1 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002397/0.5792, allocations: 100.1 kB / 406.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006571/0.5858, allocations: 0.8084 MB / 407 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009043/0.5949, allocations: 0.9786 MB / 408 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01089/0.6058, allocations: 4.242 MB / 412.3 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00458/0.6105, allocations: 251.6 kB / 412.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009318/0.6115, allocations: 276 kB / 412.8 MB, free: 12.55 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 456 * Number of states: 0 () * Number of discrete variables: 15 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (530): * Single equations (assignments): 526 * 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.003589/0.6151, allocations: 1.328 MB / 414.1 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006377/0.6157, allocations: 233 kB / 414.3 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006994/0.6227, allocations: 1.849 MB / 416.2 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.693e-05/0.6228, allocations: 15.95 kB / 416.2 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.6229, allocations: 4 kB / 416.2 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/0.6229, allocations: 3.984 kB / 416.2 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01572/0.6386, allocations: 4.812 MB / 421 MB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.592e-05/0.6387, allocations: 0 / 421 MB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/0.64, allocations: 143.7 kB / 421.2 MB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004519/0.6446, allocations: 0.6405 MB / 421.8 MB, free: 3.406 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002516/0.6449, allocations: 20.06 kB / 421.8 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3417/0.9866, allocations: 3.783 MB / 425.6 MB, free: 103 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.379e-05/0.9867, allocations: 2.031 kB / 425.6 MB, free: 103 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01485/1.002, allocations: 3.78 MB / 429.4 MB, free: 102.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001361/1.003, allocations: 449.8 kB / 429.8 MB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006315/1.004, allocations: 19.23 kB / 429.8 MB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/1.005, allocations: 64.05 kB / 429.9 MB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000296/1.006, allocations: 55.81 kB / 430 MB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/1.006, allocations: 36.11 kB / 430 MB, free: 102.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004112/1.01, allocations: 1.823 MB / 431.8 MB, free: 101.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.02e-07/1.01, allocations: 0 / 431.8 MB, free: 101.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004409/1.014, allocations: 0.6609 MB / 432.5 MB, free: 101.5 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.0005896/1.015, allocations: 155.5 kB / 432.6 MB, free: 101.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00755/1.023, allocations: 3.367 MB / 436 MB, free: 100.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.023, allocations: 0 / 436 MB, free: 100.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001916/1.025, allocations: 0.9319 MB / 436.9 MB, free: 99.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/1.027, allocations: 236.2 kB / 437.2 MB, free: 99.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/1.04, allocations: 6.667 MB / 443.8 MB, free: 95.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003187/1.044, allocations: 2.24 MB / 446.1 MB, free: 93.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008903/1.044, allocations: 197.4 kB / 446.3 MB, free: 93.45 MB / 362.7 MB Notification: Performance of SimCode: time 1.513e-06/1.044, allocations: 0 / 446.3 MB, free: 93.45 MB / 362.7 MB Notification: Performance of Templates: time 0.08127/1.126, allocations: 45.64 MB / 491.9 MB, free: 47.94 MB / 362.7 MB