Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.903/1.903, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.598e-05/2.633e-05, allocations: 2.031 kB / 292.1 MB, free: 8.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09062/0.09067, allocations: 50.41 MB / 342.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3875/0.4783, allocations: 98.33 MB / 440.9 MB, free: 12.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.4786, allocations: 91.88 kB / 441 MB, free: 12.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.87/1.349, allocations: 163.2 MB / 0.59 GB, free: 91.87 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.184e-06/1.349, allocations: 3.656 kB / 0.59 GB, free: 91.87 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005747/1.349, allocations: 165.8 kB / 0.5902 GB, free: 91.86 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02378/1.373, allocations: 7.863 MB / 0.5978 GB, free: 87.99 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/1.373, allocations: 11.75 kB / 0.5978 GB, free: 87.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07815/1.451, allocations: 16.48 MB / 0.6139 GB, free: 75.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03275/1.484, allocations: 12.55 MB / 0.6262 GB, free: 63.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005358/1.485, allocations: 0.5319 MB / 0.6267 GB, free: 63.06 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002817/1.487, allocations: 0.7174 MB / 0.6274 GB, free: 62.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03745/1.525, allocations: 16.19 MB / 0.6432 GB, free: 44.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004392/1.525, allocations: 111 kB / 0.6433 GB, free: 44.87 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001787/1.527, allocations: 336.2 kB / 0.6436 GB, free: 44.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00238/1.53, allocations: 1.479 MB / 0.6451 GB, free: 43.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03098/1.561, allocations: 12.48 MB / 0.6573 GB, free: 30.61 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4133/1.974, allocations: 73.27 MB / 0.7288 GB, free: 37.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02704/2.001, allocations: 7.398 MB / 0.7361 GB, free: 37.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00586/2.007, allocations: 3.961 MB / 0.7399 GB, free: 37.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02187/2.029, allocations: 11.52 MB / 0.7512 GB, free: 35.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.062e-05/2.029, allocations: 64.97 kB / 0.7512 GB, free: 35.24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 8.189e-06/2.029, allocations: 0 / 0.7512 GB, free: 35.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.1516/2.181, allocations: 37.52 MB / 0.7879 GB, free: 26.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/2.181, allocations: 399.5 kB / 0.7883 GB, free: 26.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01355/2.194, allocations: 6.113 MB / 0.7942 GB, free: 24.06 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006816/2.195, allocations: 80.58 kB / 0.7943 GB, free: 23.99 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003813/2.199, allocations: 4.882 MB / 0.7991 GB, free: 20.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001576/2.2, allocations: 1.241 MB / 0.8003 GB, free: 19.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007943/2.201, allocations: 165.3 kB / 0.8004 GB, free: 19.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004814/2.202, allocations: 0.6618 MB / 0.8011 GB, free: 18.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007234/2.209, allocations: 3.728 MB / 0.8047 GB, free: 16.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009547/2.219, allocations: 8.342 MB / 0.8129 GB, free: 6.691 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009879/2.228, allocations: 5.491 MB / 0.8182 GB, free: 2.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/2.229, allocations: 44 kB / 0.8183 GB, free: 2.027 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.04522/2.274, allocations: 15.82 MB / 0.8337 GB, free: 5.434 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000151/2.274, allocations: 76 kB / 0.8338 GB, free: 5.359 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002363/2.274, allocations: 163 kB / 0.834 GB, free: 5.203 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02188/2.296, allocations: 5.488 MB / 0.8393 GB, free: 1.383 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008636/2.305, allocations: 1.817 MB / 0.8411 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05906/2.364, allocations: 28.04 MB / 0.8685 GB, free: 3.871 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009591/2.374, allocations: 0.5226 MB / 0.869 GB, free: 3.348 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002059/2.376, allocations: 483.7 kB / 0.8695 GB, free: 2.879 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (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 (947): * Single equations (assignments): 941 * 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%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003002/2.379, allocations: 0.7301 MB / 0.8702 GB, free: 2.141 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00188/2.381, allocations: 0.6518 MB / 0.8708 GB, free: 1.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3508/2.732, allocations: 10.88 MB / 0.8814 GB, free: 121 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.887e-05/2.732, allocations: 34.12 kB / 0.8815 GB, free: 121 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.067e-05/2.732, allocations: 22.66 kB / 0.8815 GB, free: 121 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.42e-05/2.732, allocations: 16.8 kB / 0.8815 GB, free: 121 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05898/2.791, allocations: 23.88 MB / 0.9048 GB, free: 118.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-05/2.791, allocations: 8.906 kB / 0.9048 GB, free: 118.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002602/2.794, allocations: 445.6 kB / 0.9052 GB, free: 118.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01929/2.813, allocations: 5.073 MB / 0.9102 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006822/2.814, allocations: 68.75 kB / 0.9103 GB, free: 117.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04496/2.859, allocations: 26.74 MB / 0.9364 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.211e-05/2.859, allocations: 11.28 kB / 0.9364 GB, free: 105 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03491/2.894, allocations: 16.76 MB / 0.9528 GB, free: 98.21 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/2.896, allocations: 0.6703 MB / 0.9534 GB, free: 98.07 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001958/2.898, allocations: 59.59 kB / 0.9535 GB, free: 98.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00505/2.903, allocations: 260.8 kB / 0.9537 GB, free: 98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/2.904, allocations: 241.6 kB / 0.9539 GB, free: 97.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005128/2.904, allocations: 94.11 kB / 0.954 GB, free: 97.93 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01032/2.915, allocations: 4.398 MB / 0.9583 GB, free: 95.42 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.24e-06/2.915, allocations: 0 / 0.9583 GB, free: 95.42 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01093/2.926, allocations: 1.966 MB / 0.9603 GB, free: 93.46 MB / 490.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.0009685/2.927, allocations: 225.6 kB / 0.9605 GB, free: 93.28 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0192/2.946, allocations: 9.686 MB / 0.9699 GB, free: 84.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/2.946, allocations: 7.188 kB / 0.9699 GB, free: 84.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00919/2.955, allocations: 4.351 MB / 0.9742 GB, free: 80.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00613/2.961, allocations: 0.9832 MB / 0.9751 GB, free: 80.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03937/3.001, allocations: 16.5 MB / 0.9913 GB, free: 65.55 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0123/3.013, allocations: 5.7 MB / 0.9968 GB, free: 61.43 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002011/3.015, allocations: 449.6 kB / 0.9973 GB, free: 61 MB / 490.7 MB Notification: Performance of SimCode: time 1.65e-06/3.015, allocations: 0 / 0.9973 GB, free: 61 MB / 490.7 MB Notification: Performance of Templates: time 0.5649/3.58, allocations: 193.8 MB / 1.187 GB, free: 17.09 MB / 490.7 MB