Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.587e-05/3.615e-05, allocations: 4 kB / 292.1 MB, free: 8.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09315, allocations: 50.43 MB / 342.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4896/0.5828, allocations: 99.93 MB / 442.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.5831, allocations: 87.08 kB / 442.6 MB, free: 10.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8896/1.473, allocations: 168 MB / 0.5963 GB, free: 89.81 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.349e-06/1.473, allocations: 0 / 0.5963 GB, free: 89.81 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005894/1.473, allocations: 167.2 kB / 0.5965 GB, free: 89.8 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.02518/1.499, allocations: 8.162 MB / 0.6044 GB, free: 84.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/1.499, allocations: 11.72 kB / 0.6045 GB, free: 84.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07972/1.578, allocations: 16.56 MB / 0.6206 GB, free: 69.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03437/1.613, allocations: 12.82 MB / 0.6331 GB, free: 56.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006102/1.613, allocations: 0.5502 MB / 0.6337 GB, free: 56.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002952/1.616, allocations: 0.7618 MB / 0.6344 GB, free: 55.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04164/1.658, allocations: 16.74 MB / 0.6508 GB, free: 37.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005729/1.659, allocations: 111 kB / 0.6509 GB, free: 37.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00255/1.661, allocations: 351.8 kB / 0.6512 GB, free: 37.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002676/1.664, allocations: 1.531 MB / 0.6527 GB, free: 35.81 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0328/1.697, allocations: 12.88 MB / 0.6653 GB, free: 22.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3836/2.08, allocations: 75.16 MB / 0.7387 GB, free: 32.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02631/2.107, allocations: 7.77 MB / 0.7463 GB, free: 31.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006445/2.113, allocations: 4.091 MB / 0.7503 GB, free: 31.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02342/2.137, allocations: 11.88 MB / 0.7619 GB, free: 28.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.033e-05/2.137, allocations: 74.05 kB / 0.7619 GB, free: 28.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=294): time 7.403e-06/2.137, allocations: 0 / 0.7619 GB, free: 28.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.1664/2.303, allocations: 40.4 MB / 0.8014 GB, free: 18.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/2.303, allocations: 402.7 kB / 0.8018 GB, free: 18.39 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01436/2.318, allocations: 6.251 MB / 0.8079 GB, free: 15.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007503/2.319, allocations: 82.64 kB / 0.808 GB, free: 15.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003766/2.322, allocations: 5.048 MB / 0.8129 GB, free: 10.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001651/2.324, allocations: 1.317 MB / 0.8142 GB, free: 9.375 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009371/2.325, allocations: 175.5 kB / 0.8144 GB, free: 9.207 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005335/2.326, allocations: 0.6754 MB / 0.815 GB, free: 8.625 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007726/2.333, allocations: 3.889 MB / 0.8188 GB, free: 5.098 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01203/2.345, allocations: 8.62 MB / 0.8272 GB, free: 10.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/2.358, allocations: 5.699 MB / 0.8328 GB, free: 5.902 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001632/2.358, allocations: 48 kB / 0.8328 GB, free: 5.855 MB / 458.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.0635/2.422, allocations: 17.35 MB / 0.8498 GB, free: 9.832 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001528/2.422, allocations: 79.98 kB / 0.8499 GB, free: 9.754 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002404/2.422, allocations: 164.1 kB / 0.85 GB, free: 9.594 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02378/2.446, allocations: 5.747 MB / 0.8556 GB, free: 3.828 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008504/2.454, allocations: 1.844 MB / 0.8574 GB, free: 1.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3789/2.833, allocations: 29.16 MB / 0.8859 GB, free: 98.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01088/2.844, allocations: 0.5401 MB / 0.8864 GB, free: 98.67 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001866/2.846, allocations: 490.2 kB / 0.8869 GB, free: 98.67 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.002196/2.848, allocations: 0.767 MB / 0.8876 GB, free: 98.55 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001635/2.85, allocations: 0.6701 MB / 0.8883 GB, free: 98.55 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03042/2.881, allocations: 11.51 MB / 0.8995 GB, free: 94.94 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.585e-05/2.881, allocations: 38.58 kB / 0.8996 GB, free: 94.94 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-05/2.881, allocations: 24.38 kB / 0.8996 GB, free: 94.94 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-05/2.881, allocations: 21.03 kB / 0.8996 GB, free: 94.94 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08024/2.961, allocations: 25.06 MB / 0.9241 GB, free: 84.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-05/2.961, allocations: 6.094 kB / 0.9241 GB, free: 84.97 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006312/2.968, allocations: 461.8 kB / 0.9245 GB, free: 84.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04247/3.01, allocations: 5.389 MB / 0.9298 GB, free: 84.01 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007207/3.011, allocations: 61.09 kB / 0.9299 GB, free: 83.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04717/3.058, allocations: 28.04 MB / 0.9572 GB, free: 66.82 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.729e-06/3.058, allocations: 6.438 kB / 0.9572 GB, free: 66.81 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03668/3.095, allocations: 17.64 MB / 0.9745 GB, free: 52.03 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004212/3.099, allocations: 1.31 MB / 0.9757 GB, free: 50.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00199/3.101, allocations: 67.75 kB / 0.9758 GB, free: 50.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005273/3.106, allocations: 271.5 kB / 0.9761 GB, free: 50.59 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001294/3.108, allocations: 254.1 kB / 0.9763 GB, free: 50.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004353/3.108, allocations: 95.5 kB / 0.9764 GB, free: 50.34 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0106/3.119, allocations: 4.494 MB / 0.9808 GB, free: 46.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.37e-06/3.119, allocations: 0 / 0.9808 GB, free: 46.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01122/3.13, allocations: 2.046 MB / 0.9828 GB, free: 44.38 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.001051/3.131, allocations: 237.6 kB / 0.983 GB, free: 44.19 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02048/3.152, allocations: 10.1 MB / 0.9929 GB, free: 34.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/3.152, allocations: 4 kB / 0.9929 GB, free: 34.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009898/3.162, allocations: 4.619 MB / 0.9974 GB, free: 30.06 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00647/3.168, allocations: 1.005 MB / 0.9984 GB, free: 29.11 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0429/3.211, allocations: 17.23 MB / 1.015 GB, free: 11.83 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01284/3.224, allocations: 5.903 MB / 1.021 GB, free: 5.941 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002174/3.226, allocations: 461.9 kB / 1.021 GB, free: 5.492 MB / 474.7 MB Notification: Performance of SimCode: time 1.902e-06/3.226, allocations: 0 / 1.021 GB, free: 5.492 MB / 474.7 MB Notification: Performance of Templates: time 0.8884/4.115, allocations: 201.7 MB / 1.218 GB, free: 121.1 MB / 0.4948 GB