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.617/1.617, allocations: 171.2 MB / 183.8 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.85e-05/2.858e-05, allocations: 0 / 225 MB, free: 2.824 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2561, allocations: 38.76 MB / 263.8 MB, free: 9.91 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.121/0.3772, allocations: 78.99 MB / 342.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.3775, allocations: 87.95 kB / 342.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3977/0.7752, allocations: 56.74 MB / 399.6 MB, free: 73.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.096e-06/0.7753, allocations: 0 / 399.6 MB, free: 73.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.52e-05/0.7754, allocations: 40 kB / 399.6 MB, free: 73.62 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: 931 * Number of variables: 931 Notification: Performance of Generate backend data structure: time 0.006238/0.7816, allocations: 2.528 MB / 402.1 MB, free: 71.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.7817, allocations: 8.031 kB / 402.1 MB, free: 71.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.7918, allocations: 1.966 MB / 404.1 MB, free: 69.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009159/0.801, allocations: 3.275 MB / 407.4 MB, free: 65.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.8012, allocations: 175.3 kB / 407.6 MB, free: 65.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007897/0.802, allocations: 238.6 kB / 407.8 MB, free: 65.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01194/0.814, allocations: 6.705 MB / 414.5 MB, free: 57.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000112/0.8141, allocations: 39.62 kB / 414.5 MB, free: 57.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004723/0.8146, allocations: 120.7 kB / 414.6 MB, free: 57.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001035/0.8157, allocations: 0.7138 MB / 415.4 MB, free: 57.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01104/0.8267, allocations: 5.559 MB / 420.9 MB, free: 51.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03367/0.8604, allocations: 33.29 MB / 454.2 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005424/0.8659, allocations: 2.274 MB / 456.5 MB, free: 14.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002288/0.8683, allocations: 1.011 MB / 457.5 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.304e-05/0.8684, allocations: 12 kB / 457.5 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.8684, allocations: 47.27 kB / 457.6 MB, free: 13.67 MB / 314.7 MB Notification: Performance of pre-optimization done (n=98): time 8.937e-06/0.8685, allocations: 0 / 457.6 MB, free: 13.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.03157/0.9001, allocations: 7.008 MB / 464.6 MB, free: 6.531 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.494e-05/0.9002, allocations: 140.5 kB / 464.7 MB, free: 6.363 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008245/0.9085, allocations: 2.478 MB / 467.2 MB, free: 3.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003083/0.9088, allocations: 45.69 kB / 467.2 MB, free: 3.816 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/0.9112, allocations: 2.054 MB / 469.3 MB, free: 1.734 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007826/0.912, allocations: 434.7 kB / 469.7 MB, free: 1.305 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005712/0.9126, allocations: 87.94 kB / 469.8 MB, free: 1.219 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004945/0.9131, allocations: 0.4887 MB / 470.3 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005547/0.9187, allocations: 1.352 MB / 471.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0105/0.9292, allocations: 4.119 MB / 475.7 MB, free: 9.828 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009341/0.9386, allocations: 2.35 MB / 478.1 MB, free: 7.477 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001487/0.9388, allocations: 28 kB / 478.1 MB, free: 7.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=564) (initialization): time 0.02818/0.967, allocations: 5.6 MB / 483.7 MB, free: 1.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.434e-05/0.9672, allocations: 44 kB / 483.8 MB, free: 1.797 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001477/0.9673, allocations: 100 kB / 483.9 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003083/0.9704, allocations: 0.8052 MB / 484.7 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004369/0.9748, allocations: 1.002 MB / 485.7 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007768/0.9826, allocations: 4.103 MB / 489.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00466/0.9873, allocations: 279.6 kB / 490 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008776/0.9882, allocations: 276 kB / 490.3 MB, free: 11.11 MB / 346.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.0008341/0.9891, allocations: 434.5 kB / 490.7 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006008/0.9897, allocations: 233 kB / 491 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005076/0.9948, allocations: 1.841 MB / 492.8 MB, free: 8.586 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.916e-05/0.9949, allocations: 15.98 kB / 492.8 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.9949, allocations: 4 kB / 492.8 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.346e-05/0.9949, allocations: 11.92 kB / 492.8 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01267/1.008, allocations: 4.793 MB / 497.6 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/1.008, allocations: 7.938 kB / 497.6 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009079/1.009, allocations: 127.9 kB / 497.8 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002727/1.011, allocations: 0.6483 MB / 498.4 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001918/1.012, allocations: 16 kB / 498.4 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2044/1.216, allocations: 3.632 MB / 0.4903 GB, free: 93.2 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.396e-06/1.216, allocations: 1.75 kB / 0.4903 GB, free: 93.2 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007437/1.223, allocations: 3.758 MB / 0.494 GB, free: 92.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/1.225, allocations: 441 kB / 0.4944 GB, free: 92.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000365/1.225, allocations: 22.81 kB / 0.4944 GB, free: 92.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001454/1.227, allocations: 67.39 kB / 0.4945 GB, free: 92.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/1.227, allocations: 55.08 kB / 0.4945 GB, free: 92.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/1.227, allocations: 29.89 kB / 0.4946 GB, free: 92.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003173/1.23, allocations: 1.711 MB / 0.4962 GB, free: 92.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.83e-07/1.23, allocations: 3.5 kB / 0.4962 GB, free: 92.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004373/1.234, allocations: 0.6491 MB / 0.4969 GB, free: 92.41 MB / 346.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.0003758/1.235, allocations: 149.9 kB / 0.497 GB, free: 92.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005972/1.241, allocations: 3.189 MB / 0.5001 GB, free: 92.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.498e-06/1.241, allocations: 1.75 kB / 0.5001 GB, free: 92.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/1.242, allocations: 0.9029 MB / 0.501 GB, free: 92.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/1.244, allocations: 235 kB / 0.5012 GB, free: 92.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009997/1.254, allocations: 4.692 MB / 0.5058 GB, free: 91.08 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002783/1.257, allocations: 2.237 MB / 0.508 GB, free: 90.06 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000804/1.258, allocations: 195.4 kB / 0.5082 GB, free: 90.06 MB / 346.7 MB Notification: Performance of SimCode: time 1.853e-06/1.258, allocations: 0 / 0.5082 GB, free: 90.06 MB / 346.7 MB Notification: Performance of Templates: time 0.06032/1.318, allocations: 44.59 MB / 0.5517 GB, free: 58.95 MB / 346.7 MB