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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadModel(Modelica): time 1.703/1.703, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.405e-05, allocations: 6.188 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08071/0.08077, allocations: 38.76 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01795/0.09878, allocations: 11.1 MB / 278 MB, free: 5.992 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.1089, allocations: 3.686 MB / 281.7 MB, free: 2.297 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002066/0.111, allocations: 55.81 kB / 281.7 MB, free: 2.242 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00178/0.1128, allocations: 0.521 MB / 282.3 MB, free: 1.719 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006298/0.1191, allocations: 1.745 MB / 284 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.1207, allocations: 395.2 kB / 284.4 MB, free: 15.58 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003033/0.1237, allocations: 1.053 MB / 285.4 MB, free: 14.53 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002235/0.126, allocations: 1.119 MB / 286.6 MB, free: 13.38 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009065/0.127, allocations: 486.8 kB / 287 MB, free: 12.91 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.1285, allocations: 0.787 MB / 287.8 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.1305, allocations: 0.7529 MB / 288.6 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005857/0.1311, allocations: 84 kB / 288.7 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.1324, allocations: 0.8493 MB / 289.5 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005776/0.133, allocations: 140 kB / 289.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004786/0.1378, allocations: 2.974 MB / 292.6 MB, free: 7.312 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1378, allocations: 0 / 292.6 MB, free: 7.312 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1379, allocations: 0 / 292.6 MB, free: 7.312 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000106/0.138, allocations: 0 / 292.6 MB, free: 7.312 MB / 250.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.008136/0.1461, allocations: 2.497 MB / 295.1 MB, free: 4.758 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.1462, allocations: 16.03 kB / 295.1 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01291/0.1591, allocations: 1.966 MB / 297.1 MB, free: 2.77 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004337/0.1635, allocations: 1.546 MB / 298.6 MB, free: 1.176 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.1638, allocations: 122.8 kB / 298.8 MB, free: 1.055 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008468/0.1646, allocations: 147.9 kB / 298.9 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2567/0.4214, allocations: 6.391 MB / 305.3 MB, free: 25.97 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001257/0.4215, allocations: 31.67 kB / 305.3 MB, free: 25.96 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006104/0.4222, allocations: 80.77 kB / 305.4 MB, free: 25.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0042/0.4264, allocations: 1.375 MB / 306.8 MB, free: 25.7 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01704/0.4435, allocations: 5.684 MB / 312.5 MB, free: 24 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03967/0.4832, allocations: 26.22 MB / 338.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00754/0.4908, allocations: 2.273 MB / 341 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.491, allocations: 19.22 kB / 341 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.078e-05/0.4911, allocations: 42.56 kB / 341 MB, free: 12.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 4.759e-06/0.4911, allocations: 0 / 341 MB, free: 12.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.03785/0.5289, allocations: 8.861 MB / 349.9 MB, free: 3.613 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.741e-05/0.5291, allocations: 140.5 kB / 350 MB, free: 3.445 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006589/0.5357, allocations: 2.619 MB / 352.6 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002865/0.536, allocations: 41.69 kB / 352.7 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002359/0.5384, allocations: 2.05 MB / 354.7 MB, free: 14.72 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008454/0.5393, allocations: 439.8 kB / 355.2 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004736/0.5398, allocations: 85.25 kB / 355.2 MB, free: 14.21 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004325/0.5402, allocations: 0.4924 MB / 355.7 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004093/0.5443, allocations: 1.386 MB / 357.1 MB, free: 12.32 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006804/0.5512, allocations: 4.18 MB / 361.3 MB, free: 6.715 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006293/0.5576, allocations: 2.367 MB / 363.7 MB, free: 4.348 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.874e-05/0.5577, allocations: 32 kB / 363.7 MB, free: 4.316 MB / 282.7 MB Notification: Performance of matching and sorting (n=566) (initialization): time 0.01916/0.5769, allocations: 5.962 MB / 369.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.559e-05/0.577, allocations: 48 kB / 369.7 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001555/0.5772, allocations: 103.9 kB / 369.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00412/0.5813, allocations: 0.8151 MB / 370.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005948/0.5873, allocations: 0.9794 MB / 371.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009718/0.5971, allocations: 4.239 MB / 375.8 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004612/0.6017, allocations: 244.8 kB / 376.1 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009296/0.6027, allocations: 276 kB / 376.3 MB, free: 7.531 MB / 298.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.003542/0.6063, allocations: 1.332 MB / 377.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006478/0.607, allocations: 229 kB / 377.9 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007117/0.6141, allocations: 1.853 MB / 379.8 MB, free: 4.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.003e-05/0.6142, allocations: 17.25 kB / 379.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.6142, allocations: 0 / 379.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-05/0.6143, allocations: 12.06 kB / 379.8 MB, free: 4.062 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01545/0.6297, allocations: 4.809 MB / 384.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/0.6298, allocations: 0 / 384.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.6311, allocations: 131.8 kB / 384.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003822/0.6349, allocations: 0.6522 MB / 385.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002305/0.6352, allocations: 20.64 kB / 385.4 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008625/0.6439, allocations: 3.792 MB / 389.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.6439, allocations: 8.188 kB / 389.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.6547, allocations: 3.784 MB / 393 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/0.6562, allocations: 449.8 kB / 393.4 MB, free: 6.152 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006316/0.6569, allocations: 13.25 kB / 393.4 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001886/0.6588, allocations: 71.84 kB / 393.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003573/0.6592, allocations: 55.98 kB / 393.6 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/0.6594, allocations: 28.62 kB / 393.6 MB, free: 5.988 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.004792/0.6642, allocations: 1.832 MB / 395.4 MB, free: 4.148 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.6642, allocations: 0 / 395.4 MB, free: 4.148 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004684/0.6689, allocations: 0.6519 MB / 396.1 MB, free: 3.5 MB / 314.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.0006688/0.6696, allocations: 162.8 kB / 396.2 MB, free: 3.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.009141/0.6788, allocations: 3.372 MB / 399.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.6788, allocations: 0 / 399.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0023/0.6812, allocations: 0.9314 MB / 400.5 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.6833, allocations: 240.7 kB / 400.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/0.6997, allocations: 6.655 MB / 407.4 MB, free: 8.094 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003848/0.7036, allocations: 2.231 MB / 409.7 MB, free: 5.828 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009867/0.7046, allocations: 203.3 kB / 409.9 MB, free: 5.629 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.7046, allocations: 0 / 409.9 MB, free: 5.629 MB / 330.7 MB Notification: Performance of Templates: time 0.3354/1.04, allocations: 45.64 MB / 455.5 MB, free: 96.3 MB / 346.7 MB