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.785/1.785, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.311e-05/4.336e-05, allocations: 7.234 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.08746, allocations: 44.51 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3464/0.4339, allocations: 88.06 MB / 387.9 MB, free: 20.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.4342, allocations: 87.2 kB / 388 MB, free: 20.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.238/0.6722, allocations: 67.11 MB / 455.1 MB, free: 1.066 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.431e-06/0.6722, allocations: 0 / 455.1 MB, free: 1.066 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002083/0.6725, allocations: 68 kB / 455.2 MB, free: 1 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: 1247 * Number of variables: 1247 Notification: Performance of Generate backend data structure: time 0.00872/0.6812, allocations: 3.171 MB / 458.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.6812, allocations: 8.031 kB / 458.4 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01069/0.692, allocations: 1.954 MB / 460.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006088/0.6981, allocations: 2.052 MB / 462.4 MB, free: 9.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003492/0.6985, allocations: 262.8 kB / 462.6 MB, free: 9.699 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001254/0.6997, allocations: 343.9 kB / 463 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01973/0.7195, allocations: 7.978 MB / 471 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002953/0.7199, allocations: 51.56 kB / 471 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001562/0.7215, allocations: 167.9 kB / 471.2 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002732/0.7242, allocations: 0.7933 MB / 472 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0269/0.7511, allocations: 5.689 MB / 477.6 MB, free: 9.688 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07533/0.8265, allocations: 39.81 MB / 0.5053 GB, free: 464 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2198/1.046, allocations: 1.561 MB / 0.5068 GB, free: 93.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009325/1.047, allocations: 460.6 kB / 0.5073 GB, free: 93.11 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005194/1.053, allocations: 2.748 MB / 0.51 GB, free: 91.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/1.053, allocations: 44.38 kB / 0.51 GB, free: 91.65 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 6.082e-06/1.053, allocations: 1.094 kB / 0.51 GB, free: 91.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=80): time 0.004673/1.057, allocations: 1.325 MB / 0.5113 GB, free: 91.61 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.394e-05/1.057, allocations: 196 kB / 0.5115 GB, free: 91.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008126/1.066, allocations: 3.587 MB / 0.515 GB, free: 91.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/1.066, allocations: 38.05 kB / 0.515 GB, free: 90.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002142/1.068, allocations: 2.817 MB / 0.5178 GB, free: 89.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004761/1.068, allocations: 373.4 kB / 0.5181 GB, free: 89.44 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003365/1.069, allocations: 100.2 kB / 0.5182 GB, free: 89.44 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003649/1.069, allocations: 0.5236 MB / 0.5187 GB, free: 89.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002803/1.072, allocations: 1.209 MB / 0.5199 GB, free: 89.11 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004467/1.076, allocations: 4.726 MB / 0.5245 GB, free: 84.46 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004492/1.081, allocations: 2.422 MB / 0.5269 GB, free: 84.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001604/1.081, allocations: 37.97 kB / 0.5269 GB, free: 84.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=654) (initialization): time 0.01235/1.094, allocations: 5.166 MB / 0.532 GB, free: 83.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/1.094, allocations: 59.38 kB / 0.532 GB, free: 83.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00015/1.094, allocations: 129.3 kB / 0.5322 GB, free: 83.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001958/1.094, allocations: 184.8 kB / 0.5323 GB, free: 83.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005075/1.099, allocations: 1.166 MB / 0.5335 GB, free: 83.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001914/1.099, allocations: 246 kB / 0.5337 GB, free: 83.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005358/1.105, allocations: 0.7412 MB / 0.5344 GB, free: 83.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009484/1.106, allocations: 339.2 kB / 0.5348 GB, free: 83.41 MB / 394.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.0008472/1.107, allocations: 0.5051 MB / 0.5353 GB, free: 83.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006216/1.107, allocations: 327.5 kB / 0.5356 GB, free: 82.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/1.108, allocations: 0.5215 MB / 0.5361 GB, free: 82.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-05/1.109, allocations: 11.41 kB / 0.5361 GB, free: 82.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/1.109, allocations: 0 / 0.5361 GB, free: 82.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/1.109, allocations: 7.656 kB / 0.5361 GB, free: 82.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007948/1.117, allocations: 3.323 MB / 0.5393 GB, free: 82.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/1.117, allocations: 4.219 kB / 0.5394 GB, free: 82.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007613/1.117, allocations: 108.8 kB / 0.5395 GB, free: 82.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.377e-05/1.117, allocations: 7.5 kB / 0.5395 GB, free: 82.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.758e-05/1.117, allocations: 17.77 kB / 0.5395 GB, free: 82.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.316e-06/1.117, allocations: 7.562 kB / 0.5395 GB, free: 82.35 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.042e-06/1.118, allocations: 11.03 kB / 0.5395 GB, free: 82.35 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002777/1.12, allocations: 2.408 MB / 0.5418 GB, free: 81.09 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/1.122, allocations: 468.5 kB / 0.5423 GB, free: 80.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005832/1.122, allocations: 15.3 kB / 0.5423 GB, free: 80.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/1.124, allocations: 39.55 kB / 0.5423 GB, free: 80.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/1.124, allocations: 43.19 kB / 0.5424 GB, free: 80.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-05/1.124, allocations: 29.59 kB / 0.5424 GB, free: 80.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005474/1.129, allocations: 2.554 MB / 0.5449 GB, free: 80.28 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.128e-06/1.129, allocations: 0 / 0.5449 GB, free: 80.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00565/1.135, allocations: 0.8764 MB / 0.5458 GB, free: 80.05 MB / 394.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.0003734/1.135, allocations: 145.3 kB / 0.5459 GB, free: 79.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005354/1.141, allocations: 2.678 MB / 0.5485 GB, free: 79.11 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.141, allocations: 7.844 kB / 0.5485 GB, free: 79.11 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007117/1.142, allocations: 385.4 kB / 0.5489 GB, free: 78.99 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002676/1.144, allocations: 396.6 kB / 0.5493 GB, free: 78.81 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/1.158, allocations: 6.117 MB / 0.5552 GB, free: 76.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00469/1.163, allocations: 2.933 MB / 0.5581 GB, free: 75.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008435/1.163, allocations: 243.2 kB / 0.5583 GB, free: 75.19 MB / 394.7 MB Notification: Performance of SimCode: time 1.848e-06/1.163, allocations: 4 kB / 0.5583 GB, free: 75.18 MB / 394.7 MB Notification: Performance of Templates: time 0.069/1.232, allocations: 45.15 MB / 0.6024 GB, free: 44.21 MB / 394.7 MB