Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 1.719/1.719, allocations: 171.2 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.393e-05/3.417e-05, allocations: 6.188 kB / 228.1 MB, free: 8.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.0903, allocations: 38.78 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.04555/0.1359, allocations: 27.3 MB / 294.2 MB, free: 5.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.3112/0.4471, allocations: 6.777 MB / 301 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00632/0.4535, allocations: 142.3 kB / 301.1 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005524/0.4591, allocations: 1.387 MB / 302.5 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0155/0.4746, allocations: 3.924 MB / 306.4 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003045/0.4777, allocations: 0.5466 MB / 307 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004352/0.4821, allocations: 1.39 MB / 308.4 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006324/0.4885, allocations: 2.963 MB / 311.3 MB, free: 2.227 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002018/0.4906, allocations: 0.6706 MB / 312 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00263/0.4932, allocations: 1.082 MB / 313.1 MB, free: 1.887 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004608/0.4979, allocations: 0.8715 MB / 314 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001817/0.4998, allocations: 116.9 kB / 314.1 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003408/0.5033, allocations: 1.219 MB / 315.3 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002036/0.5054, allocations: 216 kB / 315.5 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.5158, allocations: 4.472 MB / 320 MB, free: 15.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.5159, allocations: 0 / 320 MB, free: 15.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.476e-06/0.5159, allocations: 0 / 320 MB, free: 15.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002486/0.5162, allocations: 3.938 kB / 320 MB, free: 15.06 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: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.01779/0.534, allocations: 3.383 MB / 323.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.287e-05/0.5341, allocations: 8.5 kB / 323.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04139/0.5755, allocations: 2.227 MB / 325.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01607/0.5917, allocations: 2.05 MB / 327.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003509/0.5921, allocations: 198.4 kB / 327.8 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001979/0.5941, allocations: 261.3 kB / 328.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05002/0.6442, allocations: 9.97 MB / 338.1 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002403/0.6445, allocations: 34 kB / 338.1 MB, free: 3.152 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001707/0.6462, allocations: 128.4 kB / 338.2 MB, free: 3.113 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00806/0.6543, allocations: 1.776 MB / 340 MB, free: 1.645 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04865/0.703, allocations: 8.526 MB / 348.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1059/0.8091, allocations: 36.72 MB / 385.2 MB, free: 6.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05091/0.86, allocations: 6.125 MB / 391.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03084/0.8909, allocations: 8.084 MB / 399.5 MB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.774e-05/0.8911, allocations: 49.72 kB / 399.5 MB, free: 7.543 MB / 330.7 MB Notification: Performance of pre-optimization done (n=139): time 8.245e-06/0.8911, allocations: 0 / 399.5 MB, free: 7.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=155): time 0.1806/1.072, allocations: 23.29 MB / 422.8 MB, free: 108 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/1.072, allocations: 148.4 kB / 422.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008201/1.08, allocations: 3.191 MB / 426.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004925/1.081, allocations: 52.59 kB / 426.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00298/1.084, allocations: 2.666 MB / 428.8 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00123/1.085, allocations: 0.6044 MB / 429.5 MB, free: 9.422 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006934/1.086, allocations: 108 kB / 429.6 MB, free: 9.316 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005128/1.086, allocations: 0.542 MB / 430.1 MB, free: 8.766 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006238/1.092, allocations: 2.033 MB / 432.1 MB, free: 6.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2373/1.33, allocations: 5.406 MB / 437.5 MB, free: 122.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008925/1.339, allocations: 3.195 MB / 440.7 MB, free: 122.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001151/1.339, allocations: 34.44 kB / 440.8 MB, free: 122.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02756/1.367, allocations: 8.192 MB / 449 MB, free: 119.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/1.367, allocations: 59.83 kB / 449 MB, free: 119.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002231/1.367, allocations: 122.4 kB / 449.1 MB, free: 119.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007367/1.374, allocations: 1.312 MB / 450.5 MB, free: 119.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007596/1.382, allocations: 1.254 MB / 451.7 MB, free: 119.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01389/1.396, allocations: 6.264 MB / 458 MB, free: 116.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006053/1.402, allocations: 328.6 kB / 458.3 MB, free: 116.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001145/1.403, allocations: 335 kB / 458.6 MB, free: 116.1 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 549 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (667): * Single equations (assignments): 663 * 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,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004414/1.408, allocations: 1.756 MB / 460.4 MB, free: 115.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007847/1.408, allocations: 299.4 kB / 460.7 MB, free: 115.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/1.421, allocations: 3.57 MB / 464.2 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.049e-05/1.421, allocations: 18.19 kB / 464.3 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/1.421, allocations: 3.938 kB / 464.3 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.205e-05/1.421, allocations: 10.14 kB / 464.3 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02365/1.445, allocations: 7.814 MB / 472.1 MB, free: 107.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-05/1.445, allocations: 4 kB / 472.1 MB, free: 107.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002395/1.447, allocations: 247.6 kB / 472.3 MB, free: 107.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006695/1.454, allocations: 1.119 MB / 473.4 MB, free: 106.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004349/1.454, allocations: 27.98 kB / 473.5 MB, free: 106.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01308/1.468, allocations: 5.879 MB / 479.4 MB, free: 100.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.468, allocations: 3.938 kB / 479.4 MB, free: 100.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01726/1.485, allocations: 6.095 MB / 485.5 MB, free: 94.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002281/1.487, allocations: 0.5946 MB / 486 MB, free: 93.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00119/1.488, allocations: 23.95 kB / 486.1 MB, free: 93.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003089/1.492, allocations: 111.8 kB / 486.2 MB, free: 93.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006079/1.492, allocations: 84.81 kB / 486.3 MB, free: 93.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/1.492, allocations: 45.25 kB / 486.3 MB, free: 93.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005109/1.498, allocations: 2.216 MB / 488.5 MB, free: 91.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.42e-07/1.498, allocations: 0 / 488.5 MB, free: 91.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005937/1.504, allocations: 0.9221 MB / 489.4 MB, free: 90.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 115 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009011/1.504, allocations: 171.5 kB / 489.6 MB, free: 90.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01197/1.516, allocations: 4.94 MB / 494.6 MB, free: 85.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/1.517, allocations: 0 / 494.6 MB, free: 85.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004115/1.521, allocations: 1.625 MB / 496.2 MB, free: 83.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/1.523, allocations: 313.5 kB / 496.5 MB, free: 83.17 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02283/1.546, allocations: 10.01 MB / 0.4946 GB, free: 73.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005391/1.552, allocations: 2.884 MB / 0.4974 GB, free: 70.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/1.553, allocations: 259.4 kB / 0.4977 GB, free: 69.98 MB / 362.7 MB Notification: Performance of SimCode: time 3.687e-06/1.553, allocations: 0 / 0.4977 GB, free: 69.98 MB / 362.7 MB Notification: Performance of Templates: time 0.3509/1.904, allocations: 63.13 MB / 0.5593 GB, free: 115.9 MB / 362.7 MB