Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.7/1.7, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.817e-05/2.821e-05, allocations: 4 kB / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.2108, allocations: 38.76 MB / 263.8 MB, free: 9.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.3408, allocations: 84.92 MB / 348.7 MB, free: 4.797 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.3411, allocations: 79.95 kB / 348.8 MB, free: 4.719 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.032/1.373, allocations: 160 MB / 0.4968 GB, free: 36.13 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.093e-06/1.373, allocations: 0 / 0.4968 GB, free: 36.13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005694/1.374, allocations: 155.7 kB / 0.497 GB, free: 36.13 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.02457/1.398, allocations: 7.885 MB / 0.5047 GB, free: 34.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/1.398, allocations: 11.09 kB / 0.5047 GB, free: 34.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07894/1.477, allocations: 16.49 MB / 0.5208 GB, free: 33.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03461/1.512, allocations: 13.48 MB / 0.534 GB, free: 32.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006306/1.513, allocations: 0.5229 MB / 0.5345 GB, free: 32.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002675/1.515, allocations: 0.7218 MB / 0.5352 GB, free: 32.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03752/1.553, allocations: 16.18 MB / 0.551 GB, free: 29.08 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004628/1.553, allocations: 106 kB / 0.5511 GB, free: 29.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001907/1.555, allocations: 340.5 kB / 0.5514 GB, free: 29.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002471/1.558, allocations: 1.484 MB / 0.5528 GB, free: 29.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03082/1.589, allocations: 12.47 MB / 0.565 GB, free: 27.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1358/1.725, allocations: 73.31 MB / 0.6366 GB, free: 8.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04395/1.769, allocations: 7.422 MB / 0.6439 GB, free: 1.855 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2843/2.053, allocations: 4.555 MB / 0.6483 GB, free: 78.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03701/2.09, allocations: 11.57 MB / 0.6596 GB, free: 76.54 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.912e-05/2.09, allocations: 62.69 kB / 0.6597 GB, free: 76.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 1.314e-05/2.09, allocations: 7.688 kB / 0.6597 GB, free: 76.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=339): time 0.2204/2.311, allocations: 37.91 MB / 0.6967 GB, free: 72.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/2.311, allocations: 395.9 kB / 0.6971 GB, free: 71.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01575/2.327, allocations: 6.177 MB / 0.7031 GB, free: 71.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009647/2.328, allocations: 81.77 kB / 0.7032 GB, free: 71.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006451/2.334, allocations: 5.223 MB / 0.7083 GB, free: 69.07 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002393/2.336, allocations: 1.246 MB / 0.7095 GB, free: 68.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001139/2.338, allocations: 168 kB / 0.7097 GB, free: 68.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0007371/2.338, allocations: 0.6522 MB / 0.7103 GB, free: 68.01 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01241/2.351, allocations: 3.723 MB / 0.7139 GB, free: 67.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01422/2.365, allocations: 8.327 MB / 0.7221 GB, free: 60.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/2.375, allocations: 5.479 MB / 0.7274 GB, free: 59.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001325/2.376, allocations: 46.75 kB / 0.7275 GB, free: 59.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.04144/2.417, allocations: 16.1 MB / 0.7432 GB, free: 49.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/2.417, allocations: 75.94 kB / 0.7433 GB, free: 49.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001916/2.417, allocations: 164 kB / 0.7434 GB, free: 49.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01985/2.437, allocations: 5.502 MB / 0.7488 GB, free: 45.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007604/2.445, allocations: 1.783 MB / 0.7505 GB, free: 43.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04631/2.491, allocations: 28.01 MB / 0.7779 GB, free: 19.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01361/2.505, allocations: 0.5277 MB / 0.7784 GB, free: 19.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/2.507, allocations: 474.9 kB / 0.7789 GB, free: 18.57 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (944): * Single equations (assignments): 938 * 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 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.001653/2.508, allocations: 0.738 MB / 0.7796 GB, free: 17.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001476/2.51, allocations: 0.6556 MB / 0.7802 GB, free: 17.17 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3046/2.815, allocations: 11.46 MB / 0.7914 GB, free: 66.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.724e-05/2.815, allocations: 38.98 kB / 0.7914 GB, free: 66.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.156e-05/2.815, allocations: 18.09 kB / 0.7915 GB, free: 66.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.026e-05/2.815, allocations: 17.17 kB / 0.7915 GB, free: 66.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05474/2.869, allocations: 23.91 MB / 0.8148 GB, free: 63.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.808e-05/2.87, allocations: 7.281 kB / 0.8148 GB, free: 63.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00295/2.873, allocations: 431.2 kB / 0.8152 GB, free: 63.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01904/2.892, allocations: 5.08 MB / 0.8202 GB, free: 63.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006772/2.892, allocations: 56.34 kB / 0.8203 GB, free: 63.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04529/2.938, allocations: 26.73 MB / 0.8464 GB, free: 57.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/2.938, allocations: 12.69 kB / 0.8464 GB, free: 57.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0515/2.989, allocations: 16.76 MB / 0.8627 GB, free: 50.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004067/2.993, allocations: 1.265 MB / 0.864 GB, free: 49.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002046/2.995, allocations: 68.05 kB / 0.864 GB, free: 49.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004927/3, allocations: 254.1 kB / 0.8643 GB, free: 49.88 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001168/3.002, allocations: 240.4 kB / 0.8645 GB, free: 49.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004291/3.002, allocations: 89.97 kB / 0.8646 GB, free: 49.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.01069/3.013, allocations: 4.454 MB / 0.8689 GB, free: 48.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.289e-06/3.013, allocations: 0 / 0.8689 GB, free: 48.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01077/3.024, allocations: 1.964 MB / 0.8709 GB, free: 48.14 MB / 394.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.0009659/3.025, allocations: 218.8 kB / 0.8711 GB, free: 48.01 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0195/3.044, allocations: 9.706 MB / 0.8806 GB, free: 42.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/3.044, allocations: 0 / 0.8806 GB, free: 42.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008952/3.053, allocations: 4.338 MB / 0.8848 GB, free: 38.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005891/3.059, allocations: 0.9785 MB / 0.8857 GB, free: 37.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03701/3.096, allocations: 15.72 MB / 0.9011 GB, free: 23.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01164/3.108, allocations: 5.707 MB / 0.9067 GB, free: 19.78 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.009617/3.117, allocations: 2.629 MB / 0.9092 GB, free: 18.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001685/3.119, allocations: 390.3 kB / 0.9096 GB, free: 17.87 MB / 394.7 MB Notification: Performance of SimCode: time 1.578e-06/3.119, allocations: 0 / 0.9096 GB, free: 17.87 MB / 394.7 MB Notification: Performance of Templates: time 0.4379/3.557, allocations: 82.91 MB / 0.9906 GB, free: 56.64 MB / 394.7 MB