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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.646/1.646, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.004e-05/3.017e-05, allocations: 6.75 kB / 225 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2228, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1328/0.3557, allocations: 86.44 MB / 350.2 MB, free: 3.289 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.356, allocations: 83.95 kB / 350.3 MB, free: 3.207 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.01/1.366, allocations: 165.2 MB / 0.5034 GB, free: 34.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.146e-06/1.366, allocations: 0 / 0.5034 GB, free: 34.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006218/1.367, allocations: 164.4 kB / 0.5036 GB, free: 34.37 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: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.02646/1.393, allocations: 8.193 MB / 0.5116 GB, free: 31.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/1.393, allocations: 9.531 kB / 0.5116 GB, free: 31.31 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08251/1.476, allocations: 16.56 MB / 0.5278 GB, free: 30.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03861/1.515, allocations: 13.76 MB / 0.5412 GB, free: 29.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000696/1.515, allocations: 0.5524 MB / 0.5417 GB, free: 29.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003183/1.519, allocations: 0.757 MB / 0.5425 GB, free: 29.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04442/1.563, allocations: 16.74 MB / 0.5588 GB, free: 25.92 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006437/1.564, allocations: 114 kB / 0.5589 GB, free: 25.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002823/1.567, allocations: 348.6 kB / 0.5592 GB, free: 25.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002818/1.569, allocations: 1.527 MB / 0.5607 GB, free: 25.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03434/1.604, allocations: 12.88 MB / 0.5733 GB, free: 21.39 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3727/1.977, allocations: 74.83 MB / 0.6464 GB, free: 21.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02497/2.002, allocations: 6.996 MB / 0.6532 GB, free: 20.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006466/2.008, allocations: 3.927 MB / 0.6571 GB, free: 20.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02344/2.032, allocations: 11.92 MB / 0.6687 GB, free: 18.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/2.032, allocations: 67.55 kB / 0.6688 GB, free: 18.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 7.649e-06/2.032, allocations: 0 / 0.6688 GB, free: 18.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=366): time 0.1618/2.193, allocations: 35.31 MB / 0.7032 GB, free: 13.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/2.194, allocations: 403.2 kB / 0.7036 GB, free: 12.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01468/2.208, allocations: 6.352 MB / 0.7098 GB, free: 12.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007297/2.209, allocations: 81.39 kB / 0.7099 GB, free: 12.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004079/2.213, allocations: 5.075 MB / 0.7149 GB, free: 9.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001677/2.215, allocations: 1.339 MB / 0.7162 GB, free: 8.777 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008273/2.216, allocations: 181.9 kB / 0.7164 GB, free: 8.641 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005202/2.216, allocations: 0.6753 MB / 0.717 GB, free: 8.168 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007352/2.224, allocations: 3.462 MB / 0.7204 GB, free: 6.941 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.011/2.235, allocations: 8.271 MB / 0.7285 GB, free: 14.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/2.246, allocations: 5.308 MB / 0.7337 GB, free: 10.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000177/2.247, allocations: 48 kB / 0.7337 GB, free: 10.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04049/2.287, allocations: 14 MB / 0.7474 GB, free: 15.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001604/2.287, allocations: 76 kB / 0.7474 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002836/2.288, allocations: 168 kB / 0.7476 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01526/2.303, allocations: 3.729 MB / 0.7512 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008869/2.312, allocations: 1.863 MB / 0.7531 GB, free: 10.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05218/2.364, allocations: 23.97 MB / 0.7765 GB, free: 5.922 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009692/2.374, allocations: 0.491 MB / 0.7769 GB, free: 5.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/2.376, allocations: 0.4945 MB / 0.7774 GB, free: 5.016 MB / 426.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.002859/2.379, allocations: 0.7688 MB / 0.7782 GB, free: 4.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001941/2.381, allocations: 0.6898 MB / 0.7789 GB, free: 3.555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2839/2.665, allocations: 9.41 MB / 0.788 GB, free: 96.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.112e-05/2.665, allocations: 37.75 kB / 0.7881 GB, free: 96.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.412e-05/2.665, allocations: 18.22 kB / 0.7881 GB, free: 96.49 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.861e-05/2.665, allocations: 20.47 kB / 0.7881 GB, free: 96.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05239/2.717, allocations: 19.42 MB / 0.8071 GB, free: 95.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.979e-05/2.717, allocations: 8.688 kB / 0.8071 GB, free: 95.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003018/2.72, allocations: 449.5 kB / 0.8075 GB, free: 95.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01394/2.734, allocations: 3.488 MB / 0.8109 GB, free: 95.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008306/2.735, allocations: 69.31 kB / 0.811 GB, free: 95.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04385/2.779, allocations: 23.08 MB / 0.8335 GB, free: 91.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.404e-05/2.779, allocations: 16.23 kB / 0.8335 GB, free: 91.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03078/2.81, allocations: 14.93 MB / 0.8481 GB, free: 84.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00449/2.814, allocations: 1.229 MB / 0.8493 GB, free: 84.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002314/2.817, allocations: 72.58 kB / 0.8494 GB, free: 84.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005252/2.822, allocations: 214.3 kB / 0.8496 GB, free: 84.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001313/2.823, allocations: 265.2 kB / 0.8499 GB, free: 84.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006691/2.824, allocations: 106.7 kB / 0.85 GB, free: 84.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01166/2.836, allocations: 4.577 MB / 0.8544 GB, free: 82.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.262e-06/2.836, allocations: 0 / 0.8544 GB, free: 82.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01218/2.848, allocations: 2 MB / 0.8564 GB, free: 82.31 MB / 426.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.001152/2.849, allocations: 238 kB / 0.8566 GB, free: 82.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01855/2.868, allocations: 8.946 MB / 0.8653 GB, free: 79.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/2.868, allocations: 0 / 0.8653 GB, free: 79.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009246/2.877, allocations: 4.054 MB / 0.8693 GB, free: 77.47 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006938/2.884, allocations: 1.015 MB / 0.8703 GB, free: 77.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04196/2.926, allocations: 16.22 MB / 0.8861 GB, free: 63.38 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0135/2.94, allocations: 5.937 MB / 0.8919 GB, free: 59.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002188/2.942, allocations: 477.4 kB / 0.8924 GB, free: 58.64 MB / 426.7 MB Notification: Performance of SimCode: time 2.865e-06/2.942, allocations: 0 / 0.8924 GB, free: 58.64 MB / 426.7 MB Notification: Performance of Templates: time 0.8219/3.764, allocations: 200.4 MB / 1.088 GB, free: 104.3 MB / 442.7 MB