Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.791/1.791, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/3.008e-05, allocations: 4 kB / 225 MB, free: 2.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2075, allocations: 38.77 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.3382, allocations: 86.44 MB / 350.2 MB, free: 3.25 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.3385, allocations: 87.94 kB / 350.3 MB, free: 3.164 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.094/1.433, allocations: 165.2 MB / 0.5034 GB, free: 34.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.098e-06/1.433, allocations: 0 / 0.5034 GB, free: 34.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0009849/1.434, allocations: 168.4 kB / 0.5036 GB, free: 34.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.02662/1.461, allocations: 8.187 MB / 0.5116 GB, free: 31.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/1.461, allocations: 13.34 kB / 0.5116 GB, free: 31.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08523/1.546, allocations: 16.56 MB / 0.5278 GB, free: 30.9 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03758/1.584, allocations: 13.74 MB / 0.5412 GB, free: 29.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006489/1.584, allocations: 0.5519 MB / 0.5417 GB, free: 29.67 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00399/1.588, allocations: 0.7629 MB / 0.5425 GB, free: 29.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04477/1.633, allocations: 16.73 MB / 0.5588 GB, free: 26.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005387/1.634, allocations: 115.5 kB / 0.5589 GB, free: 26.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002446/1.636, allocations: 348.6 kB / 0.5593 GB, free: 26.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002855/1.639, allocations: 1.53 MB / 0.5608 GB, free: 26.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03418/1.673, allocations: 12.88 MB / 0.5733 GB, free: 21.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3966/2.07, allocations: 74.8 MB / 0.6464 GB, free: 21.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02492/2.095, allocations: 7.006 MB / 0.6532 GB, free: 20.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006258/2.101, allocations: 3.924 MB / 0.6571 GB, free: 20.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02351/2.125, allocations: 11.92 MB / 0.6687 GB, free: 18.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.533e-05/2.125, allocations: 68.28 kB / 0.6688 GB, free: 18.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 7.668e-06/2.125, allocations: 0 / 0.6688 GB, free: 18.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.1677/2.293, allocations: 35.31 MB / 0.7033 GB, free: 13.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/2.293, allocations: 404 kB / 0.7036 GB, free: 12.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01495/2.308, allocations: 6.347 MB / 0.7098 GB, free: 12.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007217/2.308, allocations: 83.8 kB / 0.7099 GB, free: 12.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00465/2.313, allocations: 5.437 MB / 0.7152 GB, free: 9.727 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001718/2.315, allocations: 1.341 MB / 0.7165 GB, free: 8.734 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000869/2.316, allocations: 174.8 kB / 0.7167 GB, free: 8.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000595/2.316, allocations: 0.6756 MB / 0.7174 GB, free: 8.133 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007478/2.324, allocations: 3.468 MB / 0.7208 GB, free: 6.906 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01057/2.334, allocations: 8.264 MB / 0.7288 GB, free: 14.09 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/2.346, allocations: 5.304 MB / 0.734 GB, free: 9.918 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001744/2.346, allocations: 48 kB / 0.734 GB, free: 9.871 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04432/2.391, allocations: 14.46 MB / 0.7482 GB, free: 14.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001766/2.391, allocations: 80.89 kB / 0.7482 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002918/2.391, allocations: 168 kB / 0.7484 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01541/2.406, allocations: 3.73 MB / 0.7521 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008932/2.415, allocations: 1.864 MB / 0.7539 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05439/2.47, allocations: 24.07 MB / 0.7774 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009559/2.48, allocations: 0.4911 MB / 0.7779 GB, free: 5.492 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001919/2.481, allocations: 0.4907 MB / 0.7783 GB, free: 5.012 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 768 * Number of states: 0 () * Number of discrete variables: 69 (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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1001): * Single equations (assignments): 995 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001969/2.483, allocations: 0.7728 MB / 0.7791 GB, free: 4.246 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001807/2.485, allocations: 0.6865 MB / 0.7798 GB, free: 3.551 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3067/2.792, allocations: 9.407 MB / 0.7889 GB, free: 96.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.386e-05/2.792, allocations: 37.73 kB / 0.789 GB, free: 96.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.637e-05/2.792, allocations: 19.44 kB / 0.789 GB, free: 96.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.497e-05/2.792, allocations: 15.7 kB / 0.789 GB, free: 96.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0664/2.859, allocations: 19.43 MB / 0.808 GB, free: 95.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-05/2.859, allocations: 9.469 kB / 0.808 GB, free: 95.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002766/2.862, allocations: 449.5 kB / 0.8084 GB, free: 95.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0146/2.876, allocations: 3.493 MB / 0.8118 GB, free: 95.34 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007168/2.877, allocations: 68.75 kB / 0.8119 GB, free: 95.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04237/2.919, allocations: 23.08 MB / 0.8344 GB, free: 91.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.221e-05/2.919, allocations: 12.66 kB / 0.8345 GB, free: 91.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02898/2.948, allocations: 14.93 MB / 0.849 GB, free: 84.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00402/2.952, allocations: 1.224 MB / 0.8502 GB, free: 84.37 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002083/2.955, allocations: 74.84 kB / 0.8503 GB, free: 84.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005237/2.96, allocations: 214.4 kB / 0.8505 GB, free: 84.28 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001291/2.961, allocations: 267.8 kB / 0.8508 GB, free: 84.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004261/2.962, allocations: 100.7 kB / 0.8509 GB, free: 84.22 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01132/2.973, allocations: 4.58 MB / 0.8553 GB, free: 82.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.127e-06/2.973, allocations: 0 / 0.8553 GB, free: 82.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01187/2.985, allocations: 2.003 MB / 0.8573 GB, free: 82.49 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001012/2.986, allocations: 231.8 kB / 0.8575 GB, free: 82.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01782/3.004, allocations: 8.95 MB / 0.8662 GB, free: 79.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/3.004, allocations: 3.906 kB / 0.8662 GB, free: 79.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009302/3.013, allocations: 4.042 MB / 0.8702 GB, free: 77.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006856/3.02, allocations: 1.026 MB / 0.8712 GB, free: 77.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03463/3.055, allocations: 15.32 MB / 0.8862 GB, free: 64.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01155/3.066, allocations: 5.932 MB / 0.892 GB, free: 59.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.009878/3.076, allocations: 2.791 MB / 0.8947 GB, free: 58.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/3.078, allocations: 412 kB / 0.8951 GB, free: 57.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.784e-06/3.078, allocations: 0 / 0.8951 GB, free: 57.9 MB / 426.7 MB Notification: Performance of Templates: time 0.5376/3.616, allocations: 82.48 MB / 0.9756 GB, free: 85.77 MB / 426.7 MB