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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.879/1.879, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.844e-05/2.858e-05, allocations: 0 / 255.3 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07917/0.07923, allocations: 44.5 MB / 299.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.36/0.4393, allocations: 92.15 MB / 392 MB, free: 19.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4396, allocations: 83.98 kB / 392.1 MB, free: 19.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9687/1.408, allocations: 165.2 MB / 0.5442 GB, free: 51.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.361e-06/1.408, allocations: 0 / 0.5442 GB, free: 51.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006856/1.409, allocations: 164 kB / 0.5444 GB, free: 51.9 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.0263/1.435, allocations: 8.182 MB / 0.5524 GB, free: 48.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/1.435, allocations: 9.25 kB / 0.5524 GB, free: 48.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08325/1.519, allocations: 16.56 MB / 0.5686 GB, free: 48.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03907/1.558, allocations: 13.76 MB / 0.582 GB, free: 46.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006543/1.559, allocations: 0.5472 MB / 0.5825 GB, free: 46.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00331/1.562, allocations: 0.7593 MB / 0.5833 GB, free: 46.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04508/1.607, allocations: 16.81 MB / 0.5997 GB, free: 40.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006422/1.608, allocations: 120.1 kB / 0.5998 GB, free: 40.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002907/1.611, allocations: 352.6 kB / 0.6001 GB, free: 40.14 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002754/1.613, allocations: 1.527 MB / 0.6016 GB, free: 38.87 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03547/1.649, allocations: 13.13 MB / 0.6145 GB, free: 27.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3945/2.043, allocations: 74.77 MB / 0.6875 GB, free: 32.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02535/2.069, allocations: 7.022 MB / 0.6943 GB, free: 31.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006712/2.076, allocations: 3.922 MB / 0.6982 GB, free: 31.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02471/2.1, allocations: 11.94 MB / 0.7098 GB, free: 29.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.589e-05/2.1, allocations: 70.62 kB / 0.7099 GB, free: 29.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 7.67e-06/2.1, allocations: 0 / 0.7099 GB, free: 29.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=366): time 0.1647/2.265, allocations: 35.3 MB / 0.7444 GB, free: 24.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/2.265, allocations: 401.9 kB / 0.7447 GB, free: 24.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01559/2.281, allocations: 6.352 MB / 0.7509 GB, free: 23.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007835/2.282, allocations: 87.8 kB / 0.751 GB, free: 23.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004201/2.286, allocations: 5.068 MB / 0.756 GB, free: 19.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001779/2.288, allocations: 1.349 MB / 0.7573 GB, free: 18.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/2.289, allocations: 171.3 kB / 0.7575 GB, free: 18.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000987/2.29, allocations: 0.6789 MB / 0.7581 GB, free: 17.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007654/2.298, allocations: 3.464 MB / 0.7615 GB, free: 16.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0104/2.308, allocations: 8.317 MB / 0.7696 GB, free: 8.898 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/2.318, allocations: 5.293 MB / 0.7748 GB, free: 7.266 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001523/2.319, allocations: 50.97 kB / 0.7748 GB, free: 7.266 MB / 426.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04039/2.359, allocations: 14.46 MB / 0.789 GB, free: 13.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001748/2.359, allocations: 83.98 kB / 0.789 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000269/2.359, allocations: 168 kB / 0.7892 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01537/2.375, allocations: 3.728 MB / 0.7928 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008533/2.383, allocations: 1.862 MB / 0.7947 GB, free: 8.543 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05497/2.438, allocations: 23.95 MB / 0.8181 GB, free: 4.012 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/2.449, allocations: 0.4889 MB / 0.8185 GB, free: 3.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002157/2.451, allocations: 0.4994 MB / 0.819 GB, free: 3.102 MB / 458.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.00355/2.454, allocations: 0.7651 MB / 0.8198 GB, free: 2.336 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001966/2.456, allocations: 0.6865 MB / 0.8204 GB, free: 1.641 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3054/2.762, allocations: 9.287 MB / 0.8295 GB, free: 99.24 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.947e-05/2.762, allocations: 37.06 kB / 0.8295 GB, free: 99.24 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.495e-05/2.762, allocations: 21.41 kB / 0.8296 GB, free: 99.24 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.666e-05/2.762, allocations: 18.08 kB / 0.8296 GB, free: 99.24 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05375/2.816, allocations: 19.45 MB / 0.8486 GB, free: 97.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.763e-05/2.816, allocations: 10.22 kB / 0.8486 GB, free: 97.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003077/2.819, allocations: 447.7 kB / 0.849 GB, free: 97.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01396/2.833, allocations: 3.492 MB / 0.8524 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008675/2.834, allocations: 67.12 kB / 0.8525 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04373/2.878, allocations: 23.07 MB / 0.875 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.239e-05/2.878, allocations: 17.91 kB / 0.875 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03042/2.908, allocations: 14.93 MB / 0.8896 GB, free: 85.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004322/2.912, allocations: 1.22 MB / 0.8908 GB, free: 85.24 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002299/2.915, allocations: 68.25 kB / 0.8909 GB, free: 85.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005497/2.92, allocations: 222.4 kB / 0.8911 GB, free: 85.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001392/2.922, allocations: 271 kB / 0.8913 GB, free: 85.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006707/2.922, allocations: 99.23 kB / 0.8914 GB, free: 85.09 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01185/2.934, allocations: 4.567 MB / 0.8959 GB, free: 83.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.453e-06/2.934, allocations: 3.906 kB / 0.8959 GB, free: 83.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01248/2.947, allocations: 2.009 MB / 0.8979 GB, free: 83.36 MB / 458.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.001137/2.948, allocations: 220.6 kB / 0.8981 GB, free: 83.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01886/2.967, allocations: 9.254 MB / 0.9071 GB, free: 80.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.604e-05/2.967, allocations: 7.281 kB / 0.9071 GB, free: 80.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00954/2.977, allocations: 4.126 MB / 0.9111 GB, free: 78.33 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007487/2.984, allocations: 1.018 MB / 0.9121 GB, free: 77.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04179/3.026, allocations: 16.25 MB / 0.928 GB, free: 64.83 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0137/3.04, allocations: 5.945 MB / 0.9338 GB, free: 60.53 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002151/3.042, allocations: 472.1 kB / 0.9343 GB, free: 60.08 MB / 458.7 MB Notification: Performance of SimCode: time 2.02e-06/3.042, allocations: 0 / 0.9343 GB, free: 60.08 MB / 458.7 MB Notification: Performance of Templates: time 0.5741/3.616, allocations: 201.9 MB / 1.131 GB, free: 15.15 MB / 474.7 MB