Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.865/1.865, allocations: 194.9 MB / 208.5 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.017e-05/3.033e-05, allocations: 6.391 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07778/0.07783, allocations: 44.5 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3443/0.4221, allocations: 90.65 MB / 390.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.4224, allocations: 85.59 kB / 390.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8116/1.234, allocations: 160 MB / 0.5377 GB, free: 51.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.662e-06/1.234, allocations: 0 / 0.5377 GB, free: 51.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006117/1.235, allocations: 157.3 kB / 0.5378 GB, free: 51.04 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.02521/1.26, allocations: 7.877 MB / 0.5455 GB, free: 48.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/1.26, allocations: 10.75 kB / 0.5455 GB, free: 48.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09062/1.351, allocations: 16.49 MB / 0.5616 GB, free: 47.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03672/1.387, allocations: 13.48 MB / 0.5748 GB, free: 46.35 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005956/1.388, allocations: 0.5201 MB / 0.5753 GB, free: 46.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002963/1.391, allocations: 0.7279 MB / 0.576 GB, free: 46.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04034/1.431, allocations: 16.17 MB / 0.5918 GB, free: 41.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000609/1.432, allocations: 109.8 kB / 0.5919 GB, free: 41.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002552/1.435, allocations: 332.2 kB / 0.5922 GB, free: 41.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002588/1.437, allocations: 1.484 MB / 0.5937 GB, free: 41 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03308/1.47, allocations: 12.47 MB / 0.6059 GB, free: 32.87 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3921/1.863, allocations: 73.32 MB / 0.6774 GB, free: 36.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04848/1.911, allocations: 7.423 MB / 0.6847 GB, free: 35.49 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01117/1.922, allocations: 3.97 MB / 0.6886 GB, free: 35.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03604/1.958, allocations: 11.58 MB / 0.6999 GB, free: 33.69 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.767e-05/1.959, allocations: 66.41 kB / 0.6999 GB, free: 33.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 1.263e-05/1.959, allocations: 0 / 0.6999 GB, free: 33.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1811/2.14, allocations: 37.92 MB / 0.737 GB, free: 29.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/2.14, allocations: 398.1 kB / 0.7374 GB, free: 28.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01311/2.153, allocations: 6.169 MB / 0.7434 GB, free: 28.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006948/2.154, allocations: 78.98 kB / 0.7435 GB, free: 28.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003735/2.157, allocations: 4.884 MB / 0.7482 GB, free: 25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001537/2.159, allocations: 1.25 MB / 0.7494 GB, free: 24.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008395/2.16, allocations: 161.7 kB / 0.7496 GB, free: 23.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006078/2.16, allocations: 0.661 MB / 0.7502 GB, free: 23.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007121/2.168, allocations: 3.718 MB / 0.7539 GB, free: 22.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00992/2.178, allocations: 8.323 MB / 0.762 GB, free: 14.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009869/2.188, allocations: 5.484 MB / 0.7674 GB, free: 12.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001294/2.188, allocations: 48.25 kB / 0.7674 GB, free: 12.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.04278/2.23, allocations: 15.75 MB / 0.7828 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000159/2.231, allocations: 72 kB / 0.7829 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002621/2.231, allocations: 168 kB / 0.783 GB, free: 432 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02196/2.253, allocations: 5.512 MB / 0.7884 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008072/2.261, allocations: 1.79 MB / 0.7901 GB, free: 11.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09885/2.36, allocations: 28.16 MB / 0.8176 GB, free: 3.176 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03567/2.396, allocations: 0.5118 MB / 0.8181 GB, free: 2.754 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002154/2.398, allocations: 485.6 kB / 0.8186 GB, free: 2.293 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (944): * Single equations (assignments): 938 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002334/2.4, allocations: 0.7336 MB / 0.8193 GB, free: 1.562 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001845/2.402, allocations: 0.6569 MB / 0.82 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03299/2.435, allocations: 10.88 MB / 0.8306 GB, free: 6.727 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.57e-05/2.435, allocations: 36 kB / 0.8306 GB, free: 6.691 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.943e-05/2.435, allocations: 27.98 kB / 0.8307 GB, free: 6.664 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.036e-05/2.435, allocations: 11.95 kB / 0.8307 GB, free: 6.652 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3626/2.798, allocations: 23.9 MB / 0.854 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.921e-05/2.798, allocations: 6 kB / 0.854 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002445/2.801, allocations: 428.7 kB / 0.8544 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01858/2.819, allocations: 5.079 MB / 0.8594 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006806/2.82, allocations: 61.06 kB / 0.8594 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04456/2.864, allocations: 26.74 MB / 0.8856 GB, free: 106.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.097e-05/2.865, allocations: 14.23 kB / 0.8856 GB, free: 106.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03475/2.899, allocations: 16.75 MB / 0.9019 GB, free: 99.76 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004148/2.903, allocations: 1.266 MB / 0.9032 GB, free: 99.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001941/2.905, allocations: 66.03 kB / 0.9032 GB, free: 99.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005063/2.911, allocations: 254 kB / 0.9035 GB, free: 99.32 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001247/2.912, allocations: 238 kB / 0.9037 GB, free: 99.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004372/2.912, allocations: 92.95 kB / 0.9038 GB, free: 99.26 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0109/2.923, allocations: 4.449 MB / 0.9081 GB, free: 97.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.666e-06/2.923, allocations: 2.625 kB / 0.9081 GB, free: 97.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01103/2.934, allocations: 1.966 MB / 0.9101 GB, free: 97.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/2.935, allocations: 214.6 kB / 0.9103 GB, free: 97.45 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01974/2.955, allocations: 9.701 MB / 0.9197 GB, free: 94.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/2.955, allocations: 0 / 0.9197 GB, free: 94.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009544/2.965, allocations: 4.343 MB / 0.924 GB, free: 92.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006465/2.971, allocations: 0.9834 MB / 0.9249 GB, free: 91.86 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04288/3.014, allocations: 16.58 MB / 0.9411 GB, free: 81.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0126/3.027, allocations: 5.711 MB / 0.9467 GB, free: 77.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002146/3.029, allocations: 451.4 kB / 0.9471 GB, free: 76.67 MB / 474.7 MB Notification: Performance of SimCode: time 2.274e-06/3.029, allocations: 1.969 kB / 0.9471 GB, free: 76.67 MB / 474.7 MB Notification: Performance of Templates: time 0.5786/3.608, allocations: 194.2 MB / 1.137 GB, free: 40.14 MB / 474.7 MB