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_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.348e-05/2.352e-05, allocations: 0 / 255.4 MB, free: 2.688 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08313/0.08318, allocations: 44.5 MB / 299.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3439/0.4271, allocations: 92.16 MB / 392 MB, free: 19.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.4274, allocations: 87.59 kB / 392.1 MB, free: 19.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8307/1.258, allocations: 165.2 MB / 0.5443 GB, free: 52.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.32e-06/1.258, allocations: 3.281 kB / 0.5443 GB, free: 52.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006014/1.259, allocations: 166.7 kB / 0.5444 GB, free: 52.25 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.02456/1.283, allocations: 8.183 MB / 0.5524 GB, free: 49.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/1.283, allocations: 9.406 kB / 0.5524 GB, free: 49.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07906/1.363, allocations: 16.56 MB / 0.5686 GB, free: 48.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03546/1.398, allocations: 13.75 MB / 0.582 GB, free: 47.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005698/1.399, allocations: 0.5537 MB / 0.5826 GB, free: 47.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002798/1.401, allocations: 0.7576 MB / 0.5833 GB, free: 47.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0478/1.449, allocations: 16.73 MB / 0.5997 GB, free: 40.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004998/1.45, allocations: 116.4 kB / 0.5998 GB, free: 40.36 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002013/1.452, allocations: 347.8 kB / 0.6001 GB, free: 40.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00234/1.454, allocations: 1.536 MB / 0.6016 GB, free: 38.78 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04843/1.503, allocations: 12.89 MB / 0.6142 GB, free: 27.63 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.483/1.986, allocations: 74.75 MB / 0.6872 GB, free: 33.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02271/2.008, allocations: 6.998 MB / 0.694 GB, free: 32.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008105/2.017, allocations: 3.923 MB / 0.6979 GB, free: 32.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02612/2.043, allocations: 11.93 MB / 0.7095 GB, free: 30.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/2.043, allocations: 66.47 kB / 0.7096 GB, free: 30.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 7.237e-06/2.043, allocations: 0 / 0.7096 GB, free: 30.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=366): time 0.1545/2.197, allocations: 35.29 MB / 0.744 GB, free: 25.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/2.198, allocations: 408.2 kB / 0.7444 GB, free: 24.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01275/2.21, allocations: 6.349 MB / 0.7506 GB, free: 23.42 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007029/2.211, allocations: 83.92 kB / 0.7507 GB, free: 23.35 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004218/2.215, allocations: 5.437 MB / 0.756 GB, free: 19.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001595/2.217, allocations: 1.342 MB / 0.7573 GB, free: 18.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008573/2.218, allocations: 175.7 kB / 0.7575 GB, free: 18.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006151/2.219, allocations: 0.667 MB / 0.7581 GB, free: 17.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006691/2.225, allocations: 3.47 MB / 0.7615 GB, free: 16.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00964/2.235, allocations: 8.266 MB / 0.7696 GB, free: 8.898 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009564/2.244, allocations: 5.301 MB / 0.7748 GB, free: 7.266 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001314/2.245, allocations: 48.12 kB / 0.7748 GB, free: 7.266 MB / 426.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04147/2.286, allocations: 14.46 MB / 0.7889 GB, free: 13.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001558/2.286, allocations: 80.31 kB / 0.789 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002571/2.287, allocations: 168 kB / 0.7892 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01507/2.302, allocations: 3.731 MB / 0.7928 GB, free: 10.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008567/2.31, allocations: 1.857 MB / 0.7946 GB, free: 8.527 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05132/2.362, allocations: 23.96 MB / 0.818 GB, free: 3.992 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009558/2.371, allocations: 0.4887 MB / 0.8185 GB, free: 3.566 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002073/2.373, allocations: 0.4983 MB / 0.819 GB, free: 3.082 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.002557/2.376, allocations: 0.7675 MB / 0.8198 GB, free: 2.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001933/2.378, allocations: 0.6866 MB / 0.8204 GB, free: 1.625 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3408/2.719, allocations: 9.294 MB / 0.8295 GB, free: 96.94 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/2.719, allocations: 39.91 kB / 0.8295 GB, free: 96.94 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.979e-05/2.719, allocations: 19.22 kB / 0.8296 GB, free: 96.94 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-05/2.719, allocations: 16.81 kB / 0.8296 GB, free: 96.94 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08314/2.802, allocations: 19.43 MB / 0.8485 GB, free: 95.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.828e-05/2.802, allocations: 10.94 kB / 0.8486 GB, free: 95.62 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005048/2.807, allocations: 453.5 kB / 0.849 GB, free: 95.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.022/2.83, allocations: 3.488 MB / 0.8524 GB, free: 95.57 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007597/2.83, allocations: 66.52 kB / 0.8525 GB, free: 95.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04014/2.87, allocations: 23.08 MB / 0.875 GB, free: 89.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/2.871, allocations: 13.45 kB / 0.875 GB, free: 89.83 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0335/2.904, allocations: 14.93 MB / 0.8896 GB, free: 83.19 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003924/2.908, allocations: 1.224 MB / 0.8908 GB, free: 82.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001924/2.91, allocations: 75.08 kB / 0.8909 GB, free: 82.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004804/2.915, allocations: 217.4 kB / 0.8911 GB, free: 82.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001186/2.916, allocations: 264.7 kB / 0.8913 GB, free: 82.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004641/2.917, allocations: 106.7 kB / 0.8914 GB, free: 82.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01281/2.929, allocations: 4.566 MB / 0.8959 GB, free: 81.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.453e-06/2.929, allocations: 0 / 0.8959 GB, free: 81.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01496/2.944, allocations: 2.008 MB / 0.8978 GB, free: 80.98 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.0009888/2.945, allocations: 234.2 kB / 0.8981 GB, free: 80.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01704/2.962, allocations: 8.943 MB / 0.9068 GB, free: 77.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/2.963, allocations: 3.562 kB / 0.9068 GB, free: 77.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008487/2.971, allocations: 4.055 MB / 0.9108 GB, free: 76.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00656/2.978, allocations: 1.009 MB / 0.9117 GB, free: 75.74 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03662/3.014, allocations: 15.32 MB / 0.9267 GB, free: 63.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01378/3.028, allocations: 5.933 MB / 0.9325 GB, free: 58.86 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0182/3.046, allocations: 2.786 MB / 0.9352 GB, free: 57.25 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002978/3.049, allocations: 416.8 kB / 0.9356 GB, free: 56.86 MB / 458.7 MB Notification: Performance of SimCode: time 2.599e-06/3.049, allocations: 3.281 kB / 0.9356 GB, free: 56.86 MB / 458.7 MB Notification: Performance of Templates: time 0.6306/3.68, allocations: 82.47 MB / 1.016 GB, free: 75.62 MB / 458.7 MB