Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.25e-05, allocations: 6.031 kB / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09151/0.09156, allocations: 50.41 MB / 343.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4288/0.5204, allocations: 98.28 MB / 441.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.5207, allocations: 87.58 kB / 441.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8372/1.358, allocations: 163.2 MB / 0.5905 GB, free: 91.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.033e-06/1.358, allocations: 0 / 0.5905 GB, free: 91.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005997/1.359, allocations: 160.1 kB / 0.5906 GB, free: 91.95 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.02351/1.382, allocations: 7.858 MB / 0.5983 GB, free: 87.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/1.382, allocations: 10.38 kB / 0.5983 GB, free: 87.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08298/1.465, allocations: 16.49 MB / 0.6144 GB, free: 75.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0333/1.498, allocations: 12.54 MB / 0.6267 GB, free: 63.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005715/1.499, allocations: 0.522 MB / 0.6272 GB, free: 62.88 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002914/1.502, allocations: 0.723 MB / 0.6279 GB, free: 62.19 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03896/1.541, allocations: 16.2 MB / 0.6437 GB, free: 44.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000505/1.542, allocations: 107 kB / 0.6438 GB, free: 44.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00226/1.544, allocations: 336.8 kB / 0.6441 GB, free: 44.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002548/1.546, allocations: 1.486 MB / 0.6456 GB, free: 42.9 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03126/1.578, allocations: 12.48 MB / 0.6577 GB, free: 30.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3697/1.947, allocations: 73.26 MB / 0.7293 GB, free: 37.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02612/1.974, allocations: 7.412 MB / 0.7365 GB, free: 37.28 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006245/1.98, allocations: 3.964 MB / 0.7404 GB, free: 37.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02257/2.003, allocations: 11.51 MB / 0.7516 GB, free: 35.26 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.926e-05/2.003, allocations: 65.97 kB / 0.7517 GB, free: 35.22 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 8.601e-06/2.003, allocations: 0 / 0.7517 GB, free: 35.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.1668/2.169, allocations: 37.52 MB / 0.7883 GB, free: 26.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/2.17, allocations: 404.6 kB / 0.7887 GB, free: 26.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01363/2.183, allocations: 6.112 MB / 0.7947 GB, free: 24.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006726/2.184, allocations: 81.02 kB / 0.7948 GB, free: 23.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003761/2.188, allocations: 5.225 MB / 0.7999 GB, free: 19.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001471/2.189, allocations: 1.247 MB / 0.8011 GB, free: 19.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006656/2.19, allocations: 165.5 kB / 0.8013 GB, free: 18.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004619/2.19, allocations: 0.6566 MB / 0.8019 GB, free: 18.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006914/2.197, allocations: 3.725 MB / 0.8055 GB, free: 16.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008754/2.206, allocations: 8.349 MB / 0.8137 GB, free: 6.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00964/2.216, allocations: 5.486 MB / 0.819 GB, free: 1.789 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001492/2.216, allocations: 44 kB / 0.8191 GB, free: 1.746 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.06863/2.285, allocations: 16.26 MB / 0.835 GB, free: 5.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002848/2.285, allocations: 76 kB / 0.835 GB, free: 5.016 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004854/2.285, allocations: 160 kB / 0.8352 GB, free: 4.859 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02707/2.313, allocations: 5.49 MB / 0.8406 GB, free: 1.035 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008344/2.321, allocations: 1.807 MB / 0.8423 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05585/2.377, allocations: 28.04 MB / 0.8697 GB, free: 3.195 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009356/2.386, allocations: 0.5149 MB / 0.8702 GB, free: 2.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001838/2.388, allocations: 483.9 kB / 0.8707 GB, free: 2.207 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.001912/2.39, allocations: 0.7339 MB / 0.8714 GB, free: 1.465 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001733/2.392, allocations: 0.6595 MB / 0.872 GB, free: 0.7969 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3953/2.787, allocations: 10.88 MB / 0.8826 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001666/2.787, allocations: 43.22 kB / 0.8827 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-05/2.787, allocations: 18.06 kB / 0.8827 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001088/2.788, allocations: 21.03 kB / 0.8827 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07524/2.863, allocations: 23.88 MB / 0.906 GB, free: 117.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.672e-05/2.863, allocations: 3.938 kB / 0.906 GB, free: 117.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002836/2.866, allocations: 443.5 kB / 0.9065 GB, free: 117.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01997/2.886, allocations: 5.081 MB / 0.9114 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006958/2.887, allocations: 64.47 kB / 0.9115 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04747/2.934, allocations: 26.75 MB / 0.9376 GB, free: 104.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/2.934, allocations: 12.62 kB / 0.9376 GB, free: 104.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03746/2.972, allocations: 16.76 MB / 0.954 GB, free: 97.79 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002201/2.974, allocations: 0.6749 MB / 0.9547 GB, free: 97.66 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001873/2.976, allocations: 59.59 kB / 0.9547 GB, free: 97.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005053/2.981, allocations: 252.8 kB / 0.955 GB, free: 97.58 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00115/2.982, allocations: 246 kB / 0.9552 GB, free: 97.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004156/2.982, allocations: 87.36 kB / 0.9553 GB, free: 97.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0103/2.993, allocations: 4.403 MB / 0.9596 GB, free: 94.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.242e-06/2.993, allocations: 2.156 kB / 0.9596 GB, free: 94.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01075/3.004, allocations: 1.961 MB / 0.9615 GB, free: 93.03 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.0009603/3.005, allocations: 221.3 kB / 0.9617 GB, free: 92.85 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01852/3.023, allocations: 9.692 MB / 0.9712 GB, free: 84.36 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/3.023, allocations: 1.844 kB / 0.9712 GB, free: 84.36 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009057/3.032, allocations: 4.363 MB / 0.9754 GB, free: 80.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006398/3.039, allocations: 0.9722 MB / 0.9764 GB, free: 79.68 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03788/3.077, allocations: 15.64 MB / 0.9916 GB, free: 65.81 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01179/3.088, allocations: 5.699 MB / 0.9972 GB, free: 61.68 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009337/3.098, allocations: 2.638 MB / 0.9998 GB, free: 59.37 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/3.099, allocations: 395.4 kB / 1 GB, free: 58.98 MB / 490.7 MB Notification: Performance of SimCode: time 1.666e-06/3.099, allocations: 0 / 1 GB, free: 58.98 MB / 490.7 MB Notification: Performance of Templates: time 0.4967/3.596, allocations: 82.86 MB / 1.081 GB, free: 100.4 MB / 490.7 MB