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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 2.068/2.068, allocations: 194.9 MB / 211.2 MB, free: 8.836 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.932e-05/2.924e-05, allocations: 4 kB / 258.8 MB, free: 9.188 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3362, allocations: 44.5 MB / 303.3 MB, free: 12.71 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.04279/0.3791, allocations: 27.32 MB / 330.6 MB, free: 2.383 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01994/0.3991, allocations: 6.825 MB / 337.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006287/0.4054, allocations: 143.6 kB / 337.6 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005244/0.4107, allocations: 1.384 MB / 339 MB, free: 10.01 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01485/0.4256, allocations: 3.927 MB / 342.9 MB, free: 6.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002979/0.4286, allocations: 0.5226 MB / 343.4 MB, free: 5.547 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004251/0.4329, allocations: 1.415 MB / 344.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006575/0.4395, allocations: 2.954 MB / 347.8 MB, free: 1.137 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001688/0.4413, allocations: 0.674 MB / 348.4 MB, free: 472 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002364/0.4437, allocations: 1.083 MB / 349.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002664/0.4464, allocations: 0.8738 MB / 350.4 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.4474, allocations: 120 kB / 350.5 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002198/0.4497, allocations: 1.219 MB / 351.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.4508, allocations: 216 kB / 351.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007711/0.4585, allocations: 4.46 MB / 356.4 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4586, allocations: 4 kB / 356.4 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.675e-06/0.4586, allocations: 3.984 kB / 356.4 MB, free: 8.473 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002138/0.4588, allocations: 3.938 kB / 356.4 MB, free: 8.469 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1323 * Number of variables: 1323 Notification: Performance of Generate backend data structure: time 0.01414/0.473, allocations: 3.388 MB / 359.8 MB, free: 5.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.473, allocations: 8.031 kB / 359.8 MB, free: 5.012 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01418/0.4872, allocations: 2.23 MB / 362 MB, free: 2.773 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006046/0.4933, allocations: 2.034 MB / 364.1 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/0.4937, allocations: 201 kB / 364.3 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001328/0.495, allocations: 263.8 kB / 364.5 MB, free: 240 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03045/0.5255, allocations: 9.974 MB / 374.5 MB, free: 5.586 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001485/0.5257, allocations: 39.59 kB / 374.5 MB, free: 5.547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008155/0.5265, allocations: 127.9 kB / 374.7 MB, free: 5.422 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005024/0.5316, allocations: 1.786 MB / 376.5 MB, free: 3.633 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03074/0.5623, allocations: 8.528 MB / 385 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0675/0.6299, allocations: 37 MB / 422 MB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2843/0.9143, allocations: 6.117 MB / 428.1 MB, free: 107.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01792/0.9323, allocations: 8.088 MB / 436.2 MB, free: 104.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.654e-05/0.9324, allocations: 51.88 kB / 436.2 MB, free: 104.1 MB / 362.7 MB Notification: Performance of pre-optimization done (n=139): time 5.23e-06/0.9324, allocations: 3.562 kB / 436.2 MB, free: 104.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=155): time 0.1172/1.05, allocations: 23.3 MB / 459.5 MB, free: 86.01 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/1.05, allocations: 153.5 kB / 459.7 MB, free: 85.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005895/1.056, allocations: 3.187 MB / 462.9 MB, free: 82.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000441/1.056, allocations: 49.45 kB / 462.9 MB, free: 82.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001786/1.058, allocations: 2.678 MB / 465.6 MB, free: 79.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008678/1.059, allocations: 0.6057 MB / 466.2 MB, free: 79.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004172/1.059, allocations: 106 kB / 466.3 MB, free: 79.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003019/1.06, allocations: 0.5421 MB / 466.9 MB, free: 78.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005151/1.065, allocations: 2.029 MB / 468.9 MB, free: 76.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007389/1.072, allocations: 5.404 MB / 474.3 MB, free: 69.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007375/1.08, allocations: 3.191 MB / 477.5 MB, free: 66.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/1.08, allocations: 40 kB / 477.5 MB, free: 66.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02438/1.104, allocations: 8.183 MB / 485.7 MB, free: 58.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.953e-05/1.104, allocations: 57.72 kB / 485.8 MB, free: 58.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001574/1.105, allocations: 120 kB / 485.9 MB, free: 57.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007075/1.112, allocations: 1.312 MB / 487.2 MB, free: 56.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007602/1.119, allocations: 1.267 MB / 488.4 MB, free: 55.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01389/1.133, allocations: 6.267 MB / 494.7 MB, free: 48.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006185/1.139, allocations: 320.7 kB / 495 MB, free: 48.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00118/1.141, allocations: 336 kB / 495.4 MB, free: 48.31 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.004248/1.145, allocations: 1.757 MB / 497.1 MB, free: 46.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007444/1.146, allocations: 300.1 kB / 497.4 MB, free: 46.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/1.158, allocations: 3.564 MB / 0.4892 GB, free: 42.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.812e-05/1.158, allocations: 22.27 kB / 0.4893 GB, free: 42.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/1.158, allocations: 4 kB / 0.4893 GB, free: 42.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.652e-05/1.158, allocations: 7.969 kB / 0.4893 GB, free: 42.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02353/1.182, allocations: 7.822 MB / 0.4969 GB, free: 34.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.423e-05/1.182, allocations: 0 / 0.4969 GB, free: 34.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002428/1.184, allocations: 247.6 kB / 0.4971 GB, free: 34.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006601/1.191, allocations: 1.116 MB / 0.4982 GB, free: 33.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000409/1.191, allocations: 31.94 kB / 0.4983 GB, free: 33.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/1.204, allocations: 5.884 MB / 0.504 GB, free: 27.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.204, allocations: 3.938 kB / 0.504 GB, free: 27.36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01673/1.221, allocations: 6.098 MB / 0.51 GB, free: 21.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/1.223, allocations: 0.5946 MB / 0.5105 GB, free: 20.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008796/1.224, allocations: 20 kB / 0.5106 GB, free: 20.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002586/1.227, allocations: 115.8 kB / 0.5107 GB, free: 20.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003775/1.227, allocations: 88.77 kB / 0.5108 GB, free: 20.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/1.227, allocations: 40.78 kB / 0.5108 GB, free: 20.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004833/1.232, allocations: 2.212 MB / 0.513 GB, free: 18.13 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.232, allocations: 0 / 0.513 GB, free: 18.13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005589/1.238, allocations: 0.9246 MB / 0.5139 GB, free: 17.21 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.000708/1.239, allocations: 172.1 kB / 0.514 GB, free: 17.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01149/1.25, allocations: 4.948 MB / 0.5189 GB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.25, allocations: 0 / 0.5189 GB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004069/1.254, allocations: 1.621 MB / 0.5204 GB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002591/1.257, allocations: 311.2 kB / 0.5207 GB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02051/1.277, allocations: 9.994 MB / 0.5305 GB, free: 144 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005264/1.283, allocations: 2.895 MB / 0.5333 GB, free: 13.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00161/1.284, allocations: 255.4 kB / 0.5336 GB, free: 12.97 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/1.284, allocations: 0 / 0.5336 GB, free: 12.97 MB / 378.7 MB Notification: Performance of Templates: time 0.4107/1.695, allocations: 63.15 MB / 0.5952 GB, free: 99.03 MB / 394.7 MB