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 1.883/1.883, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.172e-05, allocations: 7.984 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07956/0.07961, allocations: 44.5 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.347/0.4266, allocations: 84.71 MB / 384.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.4269, allocations: 84.78 kB / 384.6 MB, free: 21.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2116/0.6386, allocations: 56.72 MB / 441.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.757e-06/0.6386, allocations: 4 kB / 441.4 MB, free: 13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001235/0.6388, allocations: 48 kB / 441.4 MB, free: 12.96 MB / 330.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.008005/0.6468, allocations: 2.524 MB / 443.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.6468, allocations: 11.97 kB / 443.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.6583, allocations: 1.972 MB / 445.9 MB, free: 8.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/0.6691, allocations: 3.266 MB / 449.2 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.6694, allocations: 174.5 kB / 449.3 MB, free: 5.719 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009831/0.6704, allocations: 241.2 kB / 449.6 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01469/0.6851, allocations: 6.721 MB / 456.3 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001344/0.6853, allocations: 43.62 kB / 456.3 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000612/0.6859, allocations: 123.9 kB / 456.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001418/0.6873, allocations: 0.7072 MB / 457.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01419/0.7015, allocations: 5.697 MB / 462.9 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04769/0.7493, allocations: 33.3 MB / 496.2 MB, free: 6.312 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006295/0.7556, allocations: 2.278 MB / 498.4 MB, free: 3.887 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002059/0.7577, allocations: 1.009 MB / 499.5 MB, free: 2.867 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.4e-05/0.7579, allocations: 27.67 kB / 499.5 MB, free: 2.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.7579, allocations: 38.56 kB / 499.5 MB, free: 2.793 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 6.283e-06/0.7579, allocations: 0 / 499.5 MB, free: 2.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=106): time 0.02372/0.7817, allocations: 7.011 MB / 0.4947 GB, free: 11.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.7818, allocations: 136.5 kB / 0.4948 GB, free: 11.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00562/0.7874, allocations: 2.489 MB / 0.4972 GB, free: 8.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002249/0.7877, allocations: 41.64 kB / 0.4973 GB, free: 8.934 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002182/0.7899, allocations: 2.058 MB / 0.4993 GB, free: 6.848 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006694/0.7906, allocations: 434.6 kB / 0.4997 GB, free: 6.418 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003854/0.791, allocations: 88 kB / 0.4998 GB, free: 6.332 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004713/0.7915, allocations: 0.4925 MB / 0.5002 GB, free: 5.828 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003146/0.7946, allocations: 1.356 MB / 0.5016 GB, free: 4.465 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006107/0.8008, allocations: 4.135 MB / 0.5056 GB, free: 14.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005102/0.8059, allocations: 2.352 MB / 0.5079 GB, free: 12.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.052e-05/0.8061, allocations: 28 kB / 0.5079 GB, free: 12.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.016/0.8221, allocations: 5.885 MB / 0.5137 GB, free: 6.637 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.8222, allocations: 48.09 kB / 0.5137 GB, free: 6.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/0.8224, allocations: 103.9 kB / 0.5138 GB, free: 6.488 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003305/0.8257, allocations: 0.7975 MB / 0.5146 GB, free: 5.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004411/0.8302, allocations: 0.9942 MB / 0.5156 GB, free: 4.691 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008133/0.8384, allocations: 4.102 MB / 0.5196 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004551/0.843, allocations: 283.6 kB / 0.5199 GB, free: 184 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2513/1.094, allocations: 276 kB / 0.5201 GB, free: 109.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * 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 (528): * Single equations (assignments): 524 * 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.001147/1.096, allocations: 433.4 kB / 0.5205 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005381/1.096, allocations: 231 kB / 0.5208 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005153/1.101, allocations: 1.842 MB / 0.5226 GB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.268e-05/1.101, allocations: 13.69 kB / 0.5226 GB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/1.101, allocations: 3.312 kB / 0.5226 GB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.046e-05/1.101, allocations: 5.266 kB / 0.5226 GB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/1.114, allocations: 4.788 MB / 0.5272 GB, free: 108.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/1.114, allocations: 1.594 kB / 0.5272 GB, free: 108.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008991/1.115, allocations: 141.1 kB / 0.5274 GB, free: 108.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002656/1.118, allocations: 0.637 MB / 0.528 GB, free: 108.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001806/1.118, allocations: 20.28 kB / 0.528 GB, free: 108.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005864/1.124, allocations: 3.63 MB / 0.5316 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.364e-06/1.124, allocations: 1.469 kB / 0.5316 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007676/1.131, allocations: 3.748 MB / 0.5352 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/1.133, allocations: 453.3 kB / 0.5357 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003856/1.133, allocations: 18.12 kB / 0.5357 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/1.134, allocations: 78.36 kB / 0.5358 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/1.135, allocations: 56.34 kB / 0.5358 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/1.135, allocations: 30.06 kB / 0.5358 GB, free: 106.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003284/1.138, allocations: 1.707 MB / 0.5375 GB, free: 106.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.27e-07/1.138, allocations: 0 / 0.5375 GB, free: 106.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004576/1.143, allocations: 0.6474 MB / 0.5381 GB, free: 106.7 MB / 410.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.0004172/1.143, allocations: 155.2 kB / 0.5383 GB, free: 106.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006181/1.149, allocations: 3.326 MB / 0.5415 GB, free: 106.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.417e-06/1.149, allocations: 0 / 0.5415 GB, free: 106.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/1.151, allocations: 0.92 MB / 0.5424 GB, free: 106.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/1.153, allocations: 240.5 kB / 0.5427 GB, free: 106.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009876/1.163, allocations: 4.68 MB / 0.5472 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002767/1.165, allocations: 2.241 MB / 0.5494 GB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007611/1.166, allocations: 196.1 kB / 0.5496 GB, free: 104.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.886e-06/1.166, allocations: 0 / 0.5496 GB, free: 104.1 MB / 410.7 MB Notification: Performance of Templates: time 0.06507/1.231, allocations: 45.26 MB / 0.5938 GB, free: 82.29 MB / 410.7 MB