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 2.171/2.171, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.825e-05/2.835e-05, allocations: 4 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3083, allocations: 44.51 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Surfaces): time 0.05287/0.3612, allocations: 32.66 MB / 336 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02193/0.3832, allocations: 6.698 MB / 342.7 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008255/0.3915, allocations: 167.6 kB / 342.8 MB, free: 6.082 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006762/0.3983, allocations: 1.695 MB / 344.5 MB, free: 4.379 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01741/0.4158, allocations: 4.425 MB / 348.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002398/0.4183, allocations: 235.7 kB / 349.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003419/0.4217, allocations: 1.021 MB / 350.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005169/0.427, allocations: 2.385 MB / 352.6 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001383/0.4284, allocations: 0.5843 MB / 353.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00202/0.4304, allocations: 0.9935 MB / 354.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.4318, allocations: 487.3 kB / 354.6 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005114/0.4324, allocations: 72 kB / 354.7 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0017/0.4341, allocations: 1.212 MB / 355.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000789/0.4349, allocations: 196 kB / 356.1 MB, free: 8.711 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006696/0.4416, allocations: 4.1 MB / 360.2 MB, free: 4.602 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4417, allocations: 0 / 360.2 MB, free: 4.602 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.4417, allocations: 0 / 360.2 MB, free: 4.602 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001985/0.4419, allocations: 0 / 360.2 MB, free: 4.602 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: 1247 * Number of variables: 1247 Notification: Performance of Generate backend data structure: time 0.008725/0.4506, allocations: 3.092 MB / 363.3 MB, free: 1.449 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.4507, allocations: 11.97 kB / 363.3 MB, free: 1.438 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01183/0.4625, allocations: 2.019 MB / 365.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005297/0.4679, allocations: 1.722 MB / 367 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002104/0.4681, allocations: 168.3 kB / 367.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008948/0.4691, allocations: 227.8 kB / 367.4 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01812/0.4872, allocations: 7.589 MB / 375 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.4874, allocations: 35.64 kB / 375.1 MB, free: 4.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000659/0.488, allocations: 115.9 kB / 375.2 MB, free: 4.867 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0046/0.4926, allocations: 1.68 MB / 376.8 MB, free: 3.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01737/0.5101, allocations: 5.81 MB / 382.7 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05246/0.5626, allocations: 30.37 MB / 413 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004716/0.5674, allocations: 1.584 MB / 414.6 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006885/0.5743, allocations: 2.776 MB / 417.4 MB, free: 9.324 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.288e-05/0.5744, allocations: 42.56 kB / 417.4 MB, free: 9.273 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 5.3e-06/0.5744, allocations: 4 kB / 417.4 MB, free: 9.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=80): time 0.006997/0.5814, allocations: 1.937 MB / 419.4 MB, free: 7.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.5816, allocations: 187.9 kB / 419.6 MB, free: 7.043 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009086/0.5907, allocations: 3.667 MB / 423.2 MB, free: 3.355 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001447/0.5909, allocations: 33.98 kB / 423.3 MB, free: 3.316 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003174/0.5941, allocations: 2.821 MB / 426.1 MB, free: 468 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006447/0.5948, allocations: 372 kB / 426.4 MB, free: 92 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2758/0.8706, allocations: 102.8 kB / 426.5 MB, free: 108.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007576/0.8714, allocations: 0.5171 MB / 427.1 MB, free: 108.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00437/0.8758, allocations: 1.251 MB / 428.3 MB, free: 108.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006086/0.882, allocations: 4.797 MB / 433.1 MB, free: 103 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005516/0.8875, allocations: 2.429 MB / 435.5 MB, free: 102 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001966/0.8878, allocations: 38.47 kB / 435.6 MB, free: 102 MB / 362.7 MB Notification: Performance of matching and sorting (n=655) (initialization): time 0.01481/0.9026, allocations: 5.599 MB / 441.2 MB, free: 99.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.9028, allocations: 67.69 kB / 441.2 MB, free: 99.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002008/0.903, allocations: 127.2 kB / 441.4 MB, free: 99.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.9032, allocations: 187.2 kB / 441.5 MB, free: 99.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006542/0.9097, allocations: 1.163 MB / 442.7 MB, free: 99.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002499/0.91, allocations: 253.5 kB / 443 MB, free: 99.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005698/0.9158, allocations: 0.7689 MB / 443.7 MB, free: 98.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008732/0.9167, allocations: 332.6 kB / 444.1 MB, free: 98.52 MB / 362.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.003884/0.9206, allocations: 1.807 MB / 445.9 MB, free: 96.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007864/0.9214, allocations: 322.4 kB / 446.2 MB, free: 96.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.9228, allocations: 0.514 MB / 446.7 MB, free: 96.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.065e-05/0.9229, allocations: 14.92 kB / 446.7 MB, free: 96.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.9229, allocations: 0 / 446.7 MB, free: 96.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.9229, allocations: 11.75 kB / 446.7 MB, free: 96.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008834/0.9318, allocations: 3.435 MB / 450.1 MB, free: 93.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/0.9318, allocations: 7.984 kB / 450.2 MB, free: 93.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009147/0.9328, allocations: 103.8 kB / 450.3 MB, free: 93.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.458e-05/0.9328, allocations: 4 kB / 450.3 MB, free: 93.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.058e-05/0.9329, allocations: 19.98 kB / 450.3 MB, free: 93.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/0.9329, allocations: 8 kB / 450.3 MB, free: 93.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.9329, allocations: 8.219 kB / 450.3 MB, free: 93.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003204/0.9361, allocations: 2.427 MB / 452.7 MB, free: 90.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/0.9376, allocations: 0.5611 MB / 453.3 MB, free: 89.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008116/0.9385, allocations: 19.94 kB / 453.3 MB, free: 89.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002008/0.9405, allocations: 57.14 kB / 453.4 MB, free: 89.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.9407, allocations: 43.95 kB / 453.4 MB, free: 89.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.66e-05/0.9408, allocations: 28.69 kB / 453.4 MB, free: 89.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005924/0.9468, allocations: 2.623 MB / 456.1 MB, free: 87.08 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.9468, allocations: 4 kB / 456.1 MB, free: 87.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00531/0.9521, allocations: 0.8781 MB / 456.9 MB, free: 86.21 MB / 362.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.0005205/0.9527, allocations: 162.9 kB / 457.1 MB, free: 86.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006498/0.9592, allocations: 2.888 MB / 460 MB, free: 83.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/0.9593, allocations: 4 kB / 460 MB, free: 83.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008319/0.9601, allocations: 414.7 kB / 460.4 MB, free: 82.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002949/0.9631, allocations: 393.3 kB / 460.8 MB, free: 82.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/0.9814, allocations: 8.906 MB / 469.7 MB, free: 73.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005097/0.9865, allocations: 2.928 MB / 472.6 MB, free: 70.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/0.9876, allocations: 271.4 kB / 472.9 MB, free: 70.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.723e-06/0.9876, allocations: 4 kB / 472.9 MB, free: 70.19 MB / 362.7 MB Notification: Performance of Templates: time 0.09519/1.083, allocations: 49.5 MB / 0.5101 GB, free: 20.64 MB / 362.7 MB