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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces") Notification: Performance of loadModel(Modelica): time 1.826/1.826, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.255e-05/3.257e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08347, allocations: 38.77 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.05076/0.1343, allocations: 32.67 MB / 299.6 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2703/0.4047, allocations: 6.671 MB / 306.2 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008742/0.4135, allocations: 167.7 kB / 306.4 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006968/0.4205, allocations: 1.698 MB / 308.1 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01804/0.4386, allocations: 4.426 MB / 312.5 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002467/0.4411, allocations: 225 kB / 312.7 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003671/0.4449, allocations: 1.027 MB / 313.8 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005138/0.4501, allocations: 2.38 MB / 316.2 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001874/0.452, allocations: 0.5912 MB / 316.7 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002615/0.4547, allocations: 0.9902 MB / 317.7 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002147/0.4568, allocations: 476.8 kB / 318.2 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008546/0.4577, allocations: 73.56 kB / 318.3 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002027/0.4598, allocations: 1.213 MB / 319.5 MB, free: 168 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001324/0.4612, allocations: 198.4 kB / 319.7 MB, free: 168 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007059/0.4683, allocations: 4.113 MB / 323.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.4683, allocations: 0 / 323.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.4683, allocations: 0 / 323.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002353/0.4686, allocations: 2.688 kB / 323.8 MB, free: 13.96 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: 1247 * Number of variables: 1247 Notification: Performance of Generate backend data structure: time 0.009268/0.4779, allocations: 3.083 MB / 326.9 MB, free: 11.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.4779, allocations: 9 kB / 326.9 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/0.4899, allocations: 2.016 MB / 328.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005634/0.4956, allocations: 1.73 MB / 330.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.4958, allocations: 169.5 kB / 330.8 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001096/0.4969, allocations: 219.6 kB / 331 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01908/0.516, allocations: 7.591 MB / 338.6 MB, free: 4.059 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.5162, allocations: 35.69 kB / 338.6 MB, free: 4.023 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005228/0.5167, allocations: 118.1 kB / 338.8 MB, free: 3.984 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004224/0.521, allocations: 1.676 MB / 340.4 MB, free: 2.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01697/0.538, allocations: 5.814 MB / 346.2 MB, free: 13.97 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05166/0.5897, allocations: 30.37 MB / 376.6 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004644/0.5944, allocations: 1.592 MB / 378.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00676/0.6012, allocations: 2.772 MB / 381 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.842e-05/0.6013, allocations: 46.56 kB / 381 MB, free: 10.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=80): time 4.949e-06/0.6013, allocations: 3.938 kB / 381 MB, free: 10.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=80): time 0.007011/0.6084, allocations: 1.936 MB / 383 MB, free: 8.039 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.6085, allocations: 191.9 kB / 383.1 MB, free: 7.809 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01037/0.6189, allocations: 3.667 MB / 386.8 MB, free: 4.121 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/0.6191, allocations: 33.7 kB / 386.8 MB, free: 4.082 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00323/0.6224, allocations: 2.817 MB / 389.7 MB, free: 1.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006437/0.623, allocations: 375.9 kB / 390 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004081/0.6235, allocations: 96 kB / 390.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0004221/0.6239, allocations: 0.5215 MB / 390.6 MB, free: 288 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003378/0.6273, allocations: 1.243 MB / 391.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006589/0.6339, allocations: 4.803 MB / 396.7 MB, free: 8.402 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006236/0.6402, allocations: 2.437 MB / 399.1 MB, free: 5.969 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001143/0.6404, allocations: 43.92 kB / 399.2 MB, free: 5.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=655) (initialization): time 0.01586/0.6563, allocations: 5.593 MB / 404.8 MB, free: 336 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001136/0.6564, allocations: 63.95 kB / 404.8 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001993/0.6566, allocations: 128 kB / 405 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002561/0.6569, allocations: 192.1 kB / 405.1 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006674/0.6636, allocations: 1.17 MB / 406.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000297/0.6639, allocations: 247.6 kB / 406.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005764/0.6697, allocations: 0.7655 MB / 407.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009623/0.6707, allocations: 338.6 kB / 407.6 MB, free: 13.44 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * 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 (631): * Single equations (assignments): 628 * 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.004522/0.6753, allocations: 1.801 MB / 409.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008954/0.6762, allocations: 319.9 kB / 409.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001475/0.6777, allocations: 0.5206 MB / 410.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.695e-05/0.6777, allocations: 12 kB / 410.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.6777, allocations: 0 / 410.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.6778, allocations: 7.984 kB / 410.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00933/0.6871, allocations: 3.437 MB / 413.7 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/0.6872, allocations: 4 kB / 413.7 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009526/0.6881, allocations: 108.1 kB / 413.8 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.589e-05/0.6882, allocations: 8 kB / 413.9 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.181e-05/0.6882, allocations: 19.98 kB / 413.9 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.251e-05/0.6883, allocations: 4 kB / 413.9 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.271e-05/0.6883, allocations: 11.88 kB / 413.9 MB, free: 7.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004113/0.6924, allocations: 2.441 MB / 416.3 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001692/0.6941, allocations: 0.5589 MB / 416.9 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006725/0.6948, allocations: 24.05 kB / 416.9 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/0.6966, allocations: 51.92 kB / 417 MB, free: 3.844 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.6968, allocations: 43.89 kB / 417 MB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-05/0.6969, allocations: 27.98 kB / 417 MB, free: 3.773 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.007276/0.7042, allocations: 2.631 MB / 419.7 MB, free: 1.133 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.113e-06/0.7042, allocations: 0 / 419.7 MB, free: 1.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005899/0.7101, allocations: 0.8726 MB / 420.5 MB, free: 264 kB / 346.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.0005907/0.7108, allocations: 145.9 kB / 420.7 MB, free: 108 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007545/0.7184, allocations: 2.902 MB / 423.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/0.7184, allocations: 0 / 423.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.7195, allocations: 401.4 kB / 424 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003383/0.7229, allocations: 423.9 kB / 424.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02319/0.7461, allocations: 8.909 MB / 433.3 MB, free: 3.441 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006686/0.7528, allocations: 2.928 MB / 436.2 MB, free: 496 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/0.7541, allocations: 275.4 kB / 436.5 MB, free: 220 kB / 362.7 MB Notification: Performance of SimCode: time 1.453e-06/0.7541, allocations: 0 / 436.5 MB, free: 220 kB / 362.7 MB Notification: Performance of Templates: time 0.3524/1.106, allocations: 49.49 MB / 486 MB, free: 89.8 MB / 362.7 MB