Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadModel(Modelica): time 1.782/1.782, allocations: 194.9 MB / 208.4 MB, free: 3.234 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.613e-05, allocations: 7.984 kB / 255.3 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07653/0.07657, allocations: 44.49 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3476/0.4242, allocations: 88.06 MB / 387.9 MB, free: 19.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.4245, allocations: 89.41 kB / 388 MB, free: 19.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2355/0.66, allocations: 67.1 MB / 455.1 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.01e-06/0.6601, allocations: 0 / 455.1 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001976/0.6603, allocations: 71.98 kB / 455.2 MB, free: 480 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1247 * Number of variables: 1247 Notification: Performance of Generate backend data structure: time 0.009079/0.6694, allocations: 3.168 MB / 458.3 MB, free: 13.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.6694, allocations: 8.031 kB / 458.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01101/0.6805, allocations: 1.956 MB / 460.3 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006176/0.6867, allocations: 2.051 MB / 462.3 MB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003727/0.6871, allocations: 266.8 kB / 462.6 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001462/0.6886, allocations: 339.9 kB / 462.9 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01911/0.7077, allocations: 8.011 MB / 470.9 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001647/0.7079, allocations: 51.5 kB / 471 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009628/0.7089, allocations: 175.9 kB / 471.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001444/0.7104, allocations: 0.7816 MB / 471.9 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01444/0.7248, allocations: 5.859 MB / 477.8 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0542/0.7791, allocations: 39.81 MB / 0.5055 GB, free: 72 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004025/0.7831, allocations: 1.594 MB / 0.507 GB, free: 14.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.7842, allocations: 453 kB / 0.5075 GB, free: 13.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006194/0.7904, allocations: 2.748 MB / 0.5102 GB, free: 10.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.7905, allocations: 42.56 kB / 0.5102 GB, free: 10.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.526e-06/0.7905, allocations: 0 / 0.5102 GB, free: 10.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004826/0.7954, allocations: 1.343 MB / 0.5115 GB, free: 9.539 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.7955, allocations: 187.9 kB / 0.5117 GB, free: 9.312 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008711/0.8043, allocations: 3.586 MB / 0.5152 GB, free: 5.699 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000133/0.8044, allocations: 41.64 kB / 0.5152 GB, free: 5.652 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00322/0.8077, allocations: 2.821 MB / 0.518 GB, free: 2.793 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006121/0.8083, allocations: 367.8 kB / 0.5183 GB, free: 2.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004493/0.8088, allocations: 100 kB / 0.5184 GB, free: 2.332 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005032/0.8093, allocations: 0.5176 MB / 0.5189 GB, free: 1.805 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002856/0.8122, allocations: 1.209 MB / 0.5201 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2253/1.037, allocations: 4.753 MB / 0.5248 GB, free: 102.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005084/1.043, allocations: 2.425 MB / 0.5271 GB, free: 102.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001764/1.043, allocations: 37.14 kB / 0.5272 GB, free: 102.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=654) (initialization): time 0.01397/1.057, allocations: 5.525 MB / 0.5326 GB, free: 101.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001442/1.057, allocations: 60.81 kB / 0.5326 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000237/1.057, allocations: 127.7 kB / 0.5327 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003145/1.058, allocations: 187.4 kB / 0.5329 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004945/1.063, allocations: 1.166 MB / 0.5341 GB, free: 101.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002844/1.063, allocations: 249.2 kB / 0.5343 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005538/1.068, allocations: 0.7432 MB / 0.535 GB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/1.069, allocations: 332.3 kB / 0.5353 GB, free: 101.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 585 * Number of states: 0 () * Number of discrete variables: 24 (fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],ground.fixed.color[3],ground.fixed.color[2],ground.fixed.color[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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 (630): * Single equations (assignments): 627 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009696/1.07, allocations: 0.5152 MB / 0.5358 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006535/1.071, allocations: 325.4 kB / 0.5361 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/1.073, allocations: 0.5102 MB / 0.5366 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-05/1.073, allocations: 10.81 kB / 0.5367 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.535e-06/1.073, allocations: 4.438 kB / 0.5367 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/1.073, allocations: 5.391 kB / 0.5367 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007942/1.081, allocations: 3.327 MB / 0.5399 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/1.081, allocations: 3.688 kB / 0.5399 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006685/1.081, allocations: 112.3 kB / 0.54 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.429e-05/1.081, allocations: 13.84 kB / 0.54 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.691e-05/1.082, allocations: 18.59 kB / 0.5401 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.168e-06/1.082, allocations: 3.406 kB / 0.5401 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.474e-06/1.082, allocations: 15.44 kB / 0.5401 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/1.084, allocations: 2.391 MB / 0.5424 GB, free: 99.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/1.085, allocations: 469.8 kB / 0.5429 GB, free: 99.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004273/1.086, allocations: 17.77 kB / 0.5429 GB, free: 99.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/1.087, allocations: 36.98 kB / 0.5429 GB, free: 99.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/1.087, allocations: 53.86 kB / 0.543 GB, free: 99.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-05/1.087, allocations: 28.62 kB / 0.543 GB, free: 99.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005255/1.093, allocations: 2.55 MB / 0.5455 GB, free: 98.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.093, allocations: 0 / 0.5455 GB, free: 98.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005683/1.098, allocations: 0.8808 MB / 0.5463 GB, free: 98.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.v,position.s) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 54 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003631/1.099, allocations: 152.8 kB / 0.5465 GB, free: 98.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005499/1.104, allocations: 2.835 MB / 0.5493 GB, free: 98.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.822e-06/1.104, allocations: 3.75 kB / 0.5493 GB, free: 98.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007193/1.105, allocations: 400 kB / 0.5496 GB, free: 98.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002532/1.108, allocations: 401.7 kB / 0.55 GB, free: 98.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/1.121, allocations: 6.12 MB / 0.556 GB, free: 96.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004449/1.126, allocations: 2.939 MB / 0.5589 GB, free: 96.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007643/1.127, allocations: 242.2 kB / 0.5591 GB, free: 96.16 MB / 410.7 MB Notification: Performance of SimCode: time 1.696e-06/1.127, allocations: 0 / 0.5591 GB, free: 96.16 MB / 410.7 MB Notification: Performance of Templates: time 0.0719/1.199, allocations: 45.99 MB / 0.604 GB, free: 72.05 MB / 410.7 MB