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.798/1.798, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.474e-05/3.494e-05, allocations: 7.938 kB / 255.4 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07938/0.07944, allocations: 44.51 MB / 299.9 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3554/0.4349, allocations: 92.15 MB / 392 MB, free: 19.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.4352, allocations: 83.31 kB / 392.1 MB, free: 19.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9169/1.352, allocations: 165.2 MB / 0.5443 GB, free: 51.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.517e-06/1.352, allocations: 0 / 0.5443 GB, free: 51.37 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006648/1.353, allocations: 160.2 kB / 0.5444 GB, free: 51.37 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.02599/1.379, allocations: 8.191 MB / 0.5524 GB, free: 48.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/1.379, allocations: 9.406 kB / 0.5524 GB, free: 48.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08995/1.469, allocations: 16.56 MB / 0.5686 GB, free: 47.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03808/1.507, allocations: 13.75 MB / 0.582 GB, free: 46.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000601/1.508, allocations: 0.5483 MB / 0.5826 GB, free: 46.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002923/1.511, allocations: 0.7576 MB / 0.5833 GB, free: 46.39 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0426/1.553, allocations: 16.73 MB / 0.5996 GB, free: 40.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004157/1.554, allocations: 112.2 kB / 0.5997 GB, free: 40.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001615/1.555, allocations: 352.2 kB / 0.6001 GB, free: 39.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00226/1.558, allocations: 1.533 MB / 0.6016 GB, free: 38.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03331/1.591, allocations: 12.88 MB / 0.6141 GB, free: 27.56 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3829/1.974, allocations: 74.77 MB / 0.6872 GB, free: 32.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02536/1.999, allocations: 6.994 MB / 0.694 GB, free: 32.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006438/2.006, allocations: 3.921 MB / 0.6978 GB, free: 32.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03286/2.039, allocations: 11.94 MB / 0.7095 GB, free: 29.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.821e-05/2.039, allocations: 65.69 kB / 0.7095 GB, free: 29.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 1.311e-05/2.039, allocations: 3.562 kB / 0.7095 GB, free: 29.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=366): time 0.1928/2.232, allocations: 35.29 MB / 0.744 GB, free: 24.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/2.232, allocations: 402.5 kB / 0.7444 GB, free: 24.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01467/2.247, allocations: 6.353 MB / 0.7506 GB, free: 23.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007472/2.247, allocations: 77.16 kB / 0.7507 GB, free: 23.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0041/2.251, allocations: 5.078 MB / 0.7556 GB, free: 19.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001773/2.253, allocations: 1.342 MB / 0.7569 GB, free: 18.49 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009354/2.254, allocations: 173.4 kB / 0.7571 GB, free: 18.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007071/2.255, allocations: 0.683 MB / 0.7578 GB, free: 17.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0074/2.262, allocations: 3.464 MB / 0.7612 GB, free: 16.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01018/2.273, allocations: 8.267 MB / 0.7692 GB, free: 8.973 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/2.283, allocations: 5.297 MB / 0.7744 GB, free: 7.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001447/2.283, allocations: 48.5 kB / 0.7745 GB, free: 7.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.03991/2.323, allocations: 13.99 MB / 0.7881 GB, free: 13.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001716/2.323, allocations: 83.95 kB / 0.7882 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002788/2.323, allocations: 168 kB / 0.7884 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0153/2.339, allocations: 3.726 MB / 0.792 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00901/2.348, allocations: 1.855 MB / 0.7938 GB, free: 9.012 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05644/2.404, allocations: 24.14 MB / 0.8174 GB, free: 4.883 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009837/2.414, allocations: 0.4921 MB / 0.8179 GB, free: 4.461 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002151/2.416, allocations: 0.4907 MB / 0.8183 GB, free: 3.98 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.003119/2.42, allocations: 0.7658 MB / 0.8191 GB, free: 3.219 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001921/2.422, allocations: 0.6865 MB / 0.8198 GB, free: 2.523 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2978/2.719, allocations: 8.954 MB / 0.8285 GB, free: 98.23 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.444e-05/2.72, allocations: 37.56 kB / 0.8285 GB, free: 98.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.013e-05/2.72, allocations: 18.62 kB / 0.8286 GB, free: 98.23 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.83e-05/2.72, allocations: 16.45 kB / 0.8286 GB, free: 98.23 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05375/2.773, allocations: 19.42 MB / 0.8475 GB, free: 96.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.354e-05/2.774, allocations: 7.5 kB / 0.8475 GB, free: 96.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003125/2.777, allocations: 451.3 kB / 0.848 GB, free: 96.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01411/2.791, allocations: 3.489 MB / 0.8514 GB, free: 96.87 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008359/2.792, allocations: 66.09 kB / 0.8514 GB, free: 96.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04443/2.836, allocations: 23.08 MB / 0.874 GB, free: 91.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.36e-05/2.836, allocations: 13.97 kB / 0.874 GB, free: 91.48 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03085/2.867, allocations: 14.93 MB / 0.8886 GB, free: 84.84 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004446/2.872, allocations: 1.223 MB / 0.8898 GB, free: 84.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002361/2.874, allocations: 68.88 kB / 0.8898 GB, free: 84.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005354/2.879, allocations: 221.7 kB / 0.8901 GB, free: 84.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001416/2.881, allocations: 269.6 kB / 0.8903 GB, free: 84.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007803/2.882, allocations: 103.9 kB / 0.8904 GB, free: 84.36 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01192/2.894, allocations: 4.57 MB / 0.8949 GB, free: 82.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.147e-06/2.894, allocations: 0 / 0.8949 GB, free: 82.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01241/2.906, allocations: 2.001 MB / 0.8968 GB, free: 82.63 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.001167/2.907, allocations: 241.3 kB / 0.8971 GB, free: 82.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01843/2.926, allocations: 8.94 MB / 0.9058 GB, free: 79.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/2.926, allocations: 3.656 kB / 0.9058 GB, free: 79.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009584/2.935, allocations: 4.048 MB / 0.9097 GB, free: 77.76 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007425/2.943, allocations: 1.013 MB / 0.9107 GB, free: 77.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04179/2.985, allocations: 16.22 MB / 0.9266 GB, free: 64.83 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01406/2.999, allocations: 5.936 MB / 0.9324 GB, free: 60.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002198/3.001, allocations: 482.6 kB / 0.9328 GB, free: 60.09 MB / 458.7 MB Notification: Performance of SimCode: time 2.09e-06/3.001, allocations: 0 / 0.9328 GB, free: 60.09 MB / 458.7 MB Notification: Performance of Templates: time 0.5721/3.573, allocations: 200.4 MB / 1.129 GB, free: 0.4961 MB / 458.7 MB