Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadModel(Modelica): time 2.317/2.317, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.011e-05/3e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 50.4 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.0426/0.1539, allocations: 27.65 MB / 372.6 MB, free: 13.22 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.1713, allocations: 6.07 MB / 378.7 MB, free: 7.133 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005901/0.1773, allocations: 143.7 kB / 378.8 MB, free: 6.992 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005072/0.1824, allocations: 1.396 MB / 380.2 MB, free: 5.59 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01449/0.197, allocations: 3.891 MB / 384.1 MB, free: 1.688 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001936/0.1989, allocations: 207.8 kB / 384.3 MB, free: 1.484 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.4036/0.6026, allocations: 23.71 MB / 408 MB, free: 19.79 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004726/0.6074, allocations: 2.116 MB / 410.2 MB, free: 19.53 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.6091, allocations: 0.5451 MB / 410.7 MB, free: 19.53 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002397/0.6115, allocations: 0.9226 MB / 411.6 MB, free: 19.52 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001962/0.6135, allocations: 479.6 kB / 412.1 MB, free: 19.52 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009027/0.6145, allocations: 68.38 kB / 412.2 MB, free: 19.52 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00178/0.6163, allocations: 1.11 MB / 413.3 MB, free: 19.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001072/0.6174, allocations: 178.1 kB / 413.4 MB, free: 19.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005898/0.6233, allocations: 3.703 MB / 417.1 MB, free: 19.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.6234, allocations: 2.812 kB / 417.2 MB, free: 19.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.748e-06/0.6234, allocations: 0 / 417.2 MB, free: 19.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002252/0.6237, allocations: 0 / 417.2 MB, free: 19.23 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: 1143 * Number of variables: 1143 Notification: Performance of Generate backend data structure: time 0.00824/0.6319, allocations: 2.881 MB / 420 MB, free: 17.46 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.632, allocations: 8.688 kB / 420 MB, free: 17.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.6431, allocations: 1.967 MB / 422 MB, free: 16.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004942/0.6481, allocations: 1.623 MB / 423.6 MB, free: 15.85 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.6483, allocations: 154 kB / 423.8 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001096/0.6494, allocations: 194.6 kB / 424 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01573/0.6652, allocations: 6.988 MB / 431 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.806e-05/0.6653, allocations: 35.14 kB / 431 MB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005145/0.6658, allocations: 98.75 kB / 431.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003645/0.6695, allocations: 1.567 MB / 432.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/0.6842, allocations: 5.488 MB / 438.1 MB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04594/0.7302, allocations: 27.4 MB / 465.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004867/0.7351, allocations: 1.589 MB / 467.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006869/0.7421, allocations: 2.68 MB / 469.8 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.033e-05/0.7422, allocations: 49.55 kB / 469.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 7.524e-06/0.7422, allocations: 4 kB / 469.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=80): time 0.007325/0.7495, allocations: 1.92 MB / 471.8 MB, free: 9.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.7497, allocations: 194.2 kB / 472 MB, free: 9.105 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009496/0.7592, allocations: 3.317 MB / 475.3 MB, free: 5.801 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001653/0.7595, allocations: 29.7 kB / 475.3 MB, free: 5.766 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003353/0.7628, allocations: 2.643 MB / 478 MB, free: 3.125 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007001/0.7636, allocations: 362.9 kB / 478.3 MB, free: 2.773 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005182/0.7641, allocations: 92 kB / 478.4 MB, free: 2.684 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004585/0.7646, allocations: 0.5092 MB / 478.9 MB, free: 2.164 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003553/0.7681, allocations: 1.181 MB / 480.1 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007397/0.7756, allocations: 4.531 MB / 484.6 MB, free: 10.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006441/0.7821, allocations: 2.298 MB / 486.9 MB, free: 8.594 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/0.7823, allocations: 32 kB / 487 MB, free: 8.562 MB / 378.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01685/0.7992, allocations: 5.302 MB / 492.3 MB, free: 3.988 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.7993, allocations: 56 kB / 492.3 MB, free: 3.934 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002295/0.7996, allocations: 124 kB / 492.4 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002419/0.7998, allocations: 176 kB / 492.6 MB, free: 3.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006682/0.8065, allocations: 1.102 MB / 493.7 MB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003112/0.8069, allocations: 235.4 kB / 493.9 MB, free: 2.461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00595/0.8129, allocations: 0.7196 MB / 494.7 MB, free: 1.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001103/0.814, allocations: 316 kB / 495 MB, free: 1.426 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (597): * Single equations (assignments): 594 * 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.004933/0.819, allocations: 1.682 MB / 496.6 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008947/0.8199, allocations: 292.2 kB / 496.9 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.8217, allocations: 0.4906 MB / 497.4 MB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.556e-05/0.8217, allocations: 12 kB / 497.4 MB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.8218, allocations: 3.953 kB / 497.4 MB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.8218, allocations: 11.64 kB / 497.5 MB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009977/0.8318, allocations: 3.222 MB / 0.4889 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.999e-05/0.8319, allocations: 4 kB / 0.4889 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009959/0.8329, allocations: 107.9 kB / 0.489 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.531e-05/0.8329, allocations: 4 kB / 0.4891 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.047e-05/0.833, allocations: 16 kB / 0.4891 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.356e-05/0.833, allocations: 8 kB / 0.4891 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/0.833, allocations: 7.234 kB / 0.4891 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004449/0.8375, allocations: 2.396 MB / 0.4914 GB, free: 9.121 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/0.8392, allocations: 0.5241 MB / 0.4919 GB, free: 8.574 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000652/0.8399, allocations: 16 kB / 0.4919 GB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/0.8417, allocations: 51.97 kB / 0.492 GB, free: 8.508 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.8419, allocations: 51.14 kB / 0.492 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.497e-05/0.842, allocations: 24 kB / 0.4921 GB, free: 8.438 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00683/0.8488, allocations: 2.369 MB / 0.4944 GB, free: 6.086 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.21e-07/0.8489, allocations: 0 / 0.4944 GB, free: 6.086 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005865/0.8548, allocations: 0.8215 MB / 0.4952 GB, free: 5.262 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.0005828/0.8554, allocations: 166.7 kB / 0.4953 GB, free: 5.102 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007595/0.863, allocations: 2.751 MB / 0.498 GB, free: 2.695 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/0.8631, allocations: 4 kB / 0.498 GB, free: 2.691 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.8642, allocations: 398.4 kB / 0.4984 GB, free: 2.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003042/0.8672, allocations: 365.9 kB / 0.4988 GB, free: 1.965 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02226/0.8895, allocations: 8.306 MB / 0.5069 GB, free: 9.598 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006211/0.8958, allocations: 2.753 MB / 0.5096 GB, free: 6.816 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.897, allocations: 255.4 kB / 0.5098 GB, free: 6.57 MB / 410.7 MB Notification: Performance of SimCode: time 3.306e-06/0.897, allocations: 0 / 0.5098 GB, free: 6.57 MB / 410.7 MB Notification: Performance of Templates: time 0.1289/1.026, allocations: 45.91 MB / 0.5546 GB, free: 8.758 MB / 458.7 MB