Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.916/1.916, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.983e-05/3e-05, allocations: 7.984 kB / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.08961, allocations: 50.42 MB / 343.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3839/0.4735, allocations: 99.88 MB / 443 MB, free: 10.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.4738, allocations: 89.52 kB / 443.1 MB, free: 10.58 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.854/1.328, allocations: 168.1 MB / 0.5968 GB, free: 89.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.972e-06/1.328, allocations: 0 / 0.5968 GB, free: 89.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006405/1.329, allocations: 168 kB / 0.5969 GB, free: 89.84 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02555/1.354, allocations: 8.16 MB / 0.6049 GB, free: 84.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/1.354, allocations: 7.188 kB / 0.6049 GB, free: 84.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08219/1.436, allocations: 16.56 MB / 0.6211 GB, free: 69.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03367/1.47, allocations: 12.82 MB / 0.6336 GB, free: 56.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005993/1.471, allocations: 0.5479 MB / 0.6341 GB, free: 56.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002913/1.474, allocations: 0.7625 MB / 0.6349 GB, free: 55.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04008/1.514, allocations: 16.75 MB / 0.6512 GB, free: 37.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004534/1.514, allocations: 107 kB / 0.6513 GB, free: 37.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001909/1.516, allocations: 348.5 kB / 0.6517 GB, free: 37.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00245/1.519, allocations: 1.535 MB / 0.6532 GB, free: 35.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03233/1.551, allocations: 12.88 MB / 0.6658 GB, free: 22.69 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3734/1.924, allocations: 75.16 MB / 0.7392 GB, free: 32.06 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0275/1.952, allocations: 7.768 MB / 0.7467 GB, free: 31.37 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006604/1.959, allocations: 4.094 MB / 0.7507 GB, free: 31.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02444/1.983, allocations: 11.87 MB / 0.7623 GB, free: 28.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/1.983, allocations: 75.02 kB / 0.7624 GB, free: 28.48 MB / 442.7 MB Notification: Performance of pre-optimization done (n=294): time 7.823e-06/1.983, allocations: 0 / 0.7624 GB, free: 28.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.2246/2.208, allocations: 40.41 MB / 0.8019 GB, free: 18.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/2.208, allocations: 407 kB / 0.8023 GB, free: 18.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01366/2.222, allocations: 6.242 MB / 0.8084 GB, free: 15.07 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007584/2.223, allocations: 81.7 kB / 0.8084 GB, free: 14.99 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004312/2.227, allocations: 5.405 MB / 0.8137 GB, free: 10.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00162/2.229, allocations: 1.321 MB / 0.815 GB, free: 8.953 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007971/2.229, allocations: 172 kB / 0.8152 GB, free: 8.785 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004666/2.23, allocations: 0.6677 MB / 0.8158 GB, free: 8.211 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007223/2.237, allocations: 3.89 MB / 0.8196 GB, free: 4.684 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01157/2.249, allocations: 8.622 MB / 0.828 GB, free: 10.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01193/2.261, allocations: 5.699 MB / 0.8336 GB, free: 5.496 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/2.261, allocations: 48 kB / 0.8336 GB, free: 5.449 MB / 458.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.05074/2.312, allocations: 16.81 MB / 0.8501 GB, free: 7.934 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000149/2.312, allocations: 79.95 kB / 0.8501 GB, free: 7.855 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002363/2.312, allocations: 164.9 kB / 0.8503 GB, free: 7.695 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02343/2.335, allocations: 5.744 MB / 0.8559 GB, free: 2.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008289/2.344, allocations: 1.847 MB / 0.8577 GB, free: 0.7422 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3406/2.684, allocations: 29.17 MB / 0.8862 GB, free: 99.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009519/2.694, allocations: 0.5334 MB / 0.8867 GB, free: 99.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001719/2.696, allocations: 497.4 kB / 0.8872 GB, free: 99.49 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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.groundColor[3],world.groundColor[2],world.groundColor[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 (982): * Single equations (assignments): 976 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001841/2.698, allocations: 0.7655 MB / 0.8879 GB, free: 99.24 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001577/2.699, allocations: 0.6754 MB / 0.8886 GB, free: 99.24 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03186/2.731, allocations: 11.51 MB / 0.8998 GB, free: 95.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.4e-05/2.731, allocations: 39.41 kB / 0.8999 GB, free: 95.57 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.588e-05/2.731, allocations: 21.34 kB / 0.8999 GB, free: 95.57 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-05/2.731, allocations: 21.16 kB / 0.8999 GB, free: 95.57 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06135/2.793, allocations: 25.05 MB / 0.9244 GB, free: 85.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-05/2.793, allocations: 7.031 kB / 0.9244 GB, free: 85.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003195/2.796, allocations: 469.3 kB / 0.9248 GB, free: 85.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02332/2.819, allocations: 5.379 MB / 0.9301 GB, free: 84.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007874/2.82, allocations: 71.75 kB / 0.9302 GB, free: 84.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04964/2.87, allocations: 28.04 MB / 0.9575 GB, free: 66.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/2.87, allocations: 14.59 kB / 0.9576 GB, free: 66.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03836/2.908, allocations: 17.63 MB / 0.9748 GB, free: 52.13 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004201/2.913, allocations: 1.314 MB / 0.9761 GB, free: 50.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002089/2.915, allocations: 60.94 kB / 0.9761 GB, free: 50.74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00536/2.92, allocations: 270.4 kB / 0.9764 GB, free: 50.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001308/2.921, allocations: 250.7 kB / 0.9766 GB, free: 50.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005286/2.922, allocations: 99.98 kB / 0.9767 GB, free: 50.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01045/2.932, allocations: 4.488 MB / 0.9811 GB, free: 45.69 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.016e-06/2.932, allocations: 1.875 kB / 0.9811 GB, free: 45.69 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0114/2.944, allocations: 2.05 MB / 0.9831 GB, free: 43.65 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001022/2.945, allocations: 231 kB / 0.9833 GB, free: 43.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0202/2.965, allocations: 10.12 MB / 0.9932 GB, free: 33.65 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/2.965, allocations: 0 / 0.9932 GB, free: 33.65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009908/2.975, allocations: 4.618 MB / 0.9977 GB, free: 29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006895/2.982, allocations: 1.004 MB / 0.9987 GB, free: 28.05 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04182/3.024, allocations: 16.32 MB / 1.015 GB, free: 11.68 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01301/3.037, allocations: 5.898 MB / 1.02 GB, free: 5.801 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01089/3.048, allocations: 2.734 MB / 1.023 GB, free: 3.238 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001907/3.05, allocations: 407.4 kB / 1.023 GB, free: 2.84 MB / 474.7 MB Notification: Performance of SimCode: time 1.847e-06/3.05, allocations: 0 / 1.023 GB, free: 2.84 MB / 474.7 MB Notification: Performance of Templates: time 0.5103/3.56, allocations: 87.14 MB / 1.109 GB, free: 96.08 MB / 490.7 MB