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.936/1.936, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.476e-05/2.491e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2528, allocations: 44.5 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1422/0.395, allocations: 91.5 MB / 385.6 MB, free: 6.461 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.3953, allocations: 83.95 kB / 385.7 MB, free: 6.379 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8551/1.25, allocations: 161.8 MB / 0.5347 GB, free: 1.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.58e-06/1.251, allocations: 0 / 0.5347 GB, free: 1.906 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0009991/1.252, allocations: 156 kB / 0.5348 GB, free: 1.754 MB / 362.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.04253/1.294, allocations: 8.192 MB / 0.5428 GB, free: 9.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/1.294, allocations: 8.031 kB / 0.5429 GB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08817/1.382, allocations: 16.56 MB / 0.559 GB, free: 8.871 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5241/1.906, allocations: 13.73 MB / 0.5724 GB, free: 54.39 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004858/1.907, allocations: 240.9 kB / 0.5727 GB, free: 54.39 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003127/1.91, allocations: 466.3 kB / 0.5731 GB, free: 54.39 MB / 394.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02183/1.932, allocations: 9.873 MB / 0.5827 GB, free: 54.35 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0332/1.965, allocations: 14.78 MB / 0.5972 GB, free: 50.78 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006559/1.966, allocations: 119.3 kB / 0.5973 GB, free: 50.78 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002647/1.969, allocations: 42.09 kB / 0.5973 GB, free: 50.78 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002795/1.971, allocations: 1.531 MB / 0.5988 GB, free: 50.77 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0978/2.069, allocations: 72.6 MB / 0.6697 GB, free: 4.141 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00845/2.078, allocations: 5.399 MB / 0.675 GB, free: 1.496 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006053/2.084, allocations: 3.835 MB / 0.6787 GB, free: 15.87 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001854/2.086, allocations: 1.375 MB / 0.6801 GB, free: 14.6 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.368e-05/2.086, allocations: 73.55 kB / 0.6802 GB, free: 14.53 MB / 410.8 MB Notification: Performance of pre-optimization done (n=299): time 8.035e-06/2.086, allocations: 0 / 0.6802 GB, free: 14.53 MB / 410.8 MB Notification: Performance of matching and sorting (n=371): time 0.1248/2.211, allocations: 35.86 MB / 0.7152 GB, free: 2.68 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000276/2.211, allocations: 402.3 kB / 0.7156 GB, free: 2.199 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.28/2.491, allocations: 6.058 MB / 0.7215 GB, free: 82.39 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006996/2.492, allocations: 27.61 kB / 0.7215 GB, free: 82.36 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005087/2.497, allocations: 5.164 MB / 0.7265 GB, free: 81.1 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001826/2.499, allocations: 1.315 MB / 0.7278 GB, free: 80.29 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009512/2.5, allocations: 4.656 kB / 0.7278 GB, free: 80.29 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0008176/2.501, allocations: 0.686 MB / 0.7285 GB, free: 79.96 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007711/2.508, allocations: 3.347 MB / 0.7318 GB, free: 79.94 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01153/2.52, allocations: 8.291 MB / 0.7399 GB, free: 73.57 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00999/2.53, allocations: 5.193 MB / 0.7449 GB, free: 73.51 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001829/2.53, allocations: 52.3 kB / 0.745 GB, free: 73.51 MB / 426.8 MB Notification: Performance of matching and sorting (n=1166) (initialization): time 0.03959/2.57, allocations: 13.48 MB / 0.7582 GB, free: 72.99 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003012/2.57, allocations: 83.19 kB / 0.7582 GB, free: 72.99 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004458/2.571, allocations: 170.5 kB / 0.7584 GB, free: 72.99 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02965/2.6, allocations: 3.683 MB / 0.762 GB, free: 72.94 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01686/2.617, allocations: 1.911 MB / 0.7639 GB, free: 72.77 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05805/2.675, allocations: 22.22 MB / 0.7856 GB, free: 65.08 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01067/2.686, allocations: 336.2 kB / 0.7859 GB, free: 65.05 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001978/2.688, allocations: 0.5048 MB / 0.7864 GB, free: 64.98 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 (1030): * Single equations (assignments): 1024 * 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,64.1%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002569/2.691, allocations: 0.5654 MB / 0.7869 GB, free: 64.52 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001658/2.693, allocations: 0.6471 MB / 0.7876 GB, free: 64.17 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02348/2.716, allocations: 8.499 MB / 0.7959 GB, free: 61.29 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.583e-05/2.716, allocations: 41.88 kB / 0.7959 GB, free: 61.29 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.724e-05/2.716, allocations: 17.66 kB / 0.7959 GB, free: 61.29 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-05/2.716, allocations: 20.75 kB / 0.7959 GB, free: 61.29 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04876/2.765, allocations: 18.14 MB / 0.8136 GB, free: 53.57 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.029e-05/2.765, allocations: 8 kB / 0.8137 GB, free: 53.57 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003037/2.768, allocations: 457.1 kB / 0.8141 GB, free: 53.19 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01427/2.783, allocations: 3.411 MB / 0.8174 GB, free: 50.76 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007479/2.783, allocations: 12 kB / 0.8174 GB, free: 50.75 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0393/2.823, allocations: 21.55 MB / 0.8385 GB, free: 31.84 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.401e-05/2.823, allocations: 11.94 kB / 0.8385 GB, free: 31.83 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03011/2.853, allocations: 14.59 MB / 0.8527 GB, free: 18.78 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003984/2.857, allocations: 1.188 MB / 0.8539 GB, free: 17.66 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001983/2.859, allocations: 11.67 kB / 0.8539 GB, free: 17.65 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005436/2.864, allocations: 171.4 kB / 0.8541 GB, free: 17.55 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001283/2.866, allocations: 265.8 kB / 0.8543 GB, free: 17.38 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005273/2.866, allocations: 103.5 kB / 0.8544 GB, free: 17.28 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.0101/2.876, allocations: 3.929 MB / 0.8583 GB, free: 13.89 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.351e-06/2.876, allocations: 0 / 0.8583 GB, free: 13.89 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01226/2.889, allocations: 1.754 MB / 0.86 GB, free: 12.15 MB / 426.8 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 (248): * Single equations (assignments): 242 * 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,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001009/2.89, allocations: 175.6 kB / 0.8601 GB, free: 11.98 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01818/2.908, allocations: 8.969 MB / 0.8689 GB, free: 3.84 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/2.908, allocations: 4 kB / 0.8689 GB, free: 3.836 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008185/2.916, allocations: 3.936 MB / 0.8727 GB, free: 264 kB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009574/2.926, allocations: 1.115 MB / 0.8738 GB, free: 176 kB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3126/3.239, allocations: 16.07 MB / 0.8895 GB, free: 73.01 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01421/3.253, allocations: 5.936 MB / 0.8953 GB, free: 72.1 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002025/3.255, allocations: 463.3 kB / 0.8958 GB, free: 72.09 MB / 426.8 MB Notification: Performance of SimCode: time 2.199e-06/3.255, allocations: 0 / 0.8958 GB, free: 72.09 MB / 426.8 MB Notification: Performance of Templates: time 0.5785/3.833, allocations: 198.6 MB / 1.09 GB, free: 80.63 MB / 442.8 MB