Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,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_analytic") Notification: Performance of loadModel(Modelica): time 1.904/1.904, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.708e-05/2.725e-05, allocations: 4 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08064/0.08069, allocations: 44.5 MB / 299.9 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3706/0.4514, allocations: 103.8 MB / 403.7 MB, free: 16.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.4517, allocations: 89.86 kB / 403.8 MB, free: 16.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9129/1.365, allocations: 182.4 MB / 0.5724 GB, free: 56.28 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.004e-06/1.365, allocations: 0 / 0.5724 GB, free: 56.28 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.001145/1.366, allocations: 184.7 kB / 0.5726 GB, free: 56.27 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.05105/1.417, allocations: 9.155 MB / 0.5815 GB, free: 52.92 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/1.417, allocations: 14.78 kB / 0.5815 GB, free: 52.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08957/1.507, allocations: 16.64 MB / 0.5978 GB, free: 50.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03823/1.545, allocations: 14.59 MB / 0.612 GB, free: 36.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000665/1.546, allocations: 0.6269 MB / 0.6126 GB, free: 35.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003564/1.549, allocations: 0.8586 MB / 0.6135 GB, free: 35.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04949/1.599, allocations: 19.13 MB / 0.6322 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005753/1.599, allocations: 119 kB / 0.6323 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002946/1.602, allocations: 392.4 kB / 0.6326 GB, free: 14.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002623/1.605, allocations: 1.594 MB / 0.6342 GB, free: 12.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03933/1.644, allocations: 15.09 MB / 0.6489 GB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3842/2.028, allocations: 80.56 MB / 0.7276 GB, free: 47.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0282/2.057, allocations: 7.797 MB / 0.7352 GB, free: 46.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006732/2.063, allocations: 4.01 MB / 0.7391 GB, free: 46.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/2.091, allocations: 14.1 MB / 0.7529 GB, free: 38.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.473e-05/2.091, allocations: 71.84 kB / 0.753 GB, free: 38.74 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 9.14e-06/2.091, allocations: 0 / 0.753 GB, free: 38.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.1699/2.261, allocations: 38.04 MB / 0.7901 GB, free: 28.51 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/2.261, allocations: 413.6 kB / 0.7905 GB, free: 28.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01569/2.277, allocations: 6.568 MB / 0.7969 GB, free: 23.58 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008247/2.278, allocations: 88.89 kB / 0.797 GB, free: 23.49 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004335/2.282, allocations: 5.49 MB / 0.8024 GB, free: 18.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001866/2.284, allocations: 1.487 MB / 0.8038 GB, free: 17.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009878/2.285, allocations: 184 kB / 0.804 GB, free: 17.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007184/2.286, allocations: 0.7049 MB / 0.8047 GB, free: 16.42 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008295/2.294, allocations: 4.095 MB / 0.8087 GB, free: 12.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0143/2.308, allocations: 9.056 MB / 0.8175 GB, free: 1.863 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2848/2.593, allocations: 6.453 MB / 0.8238 GB, free: 89.79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001647/2.593, allocations: 50.58 kB / 0.8239 GB, free: 89.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04626/2.64, allocations: 16.24 MB / 0.8397 GB, free: 89.24 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001554/2.64, allocations: 79.38 kB / 0.8398 GB, free: 89.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002468/2.64, allocations: 177.2 kB / 0.84 GB, free: 89.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02027/2.66, allocations: 4.698 MB / 0.8446 GB, free: 89.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008835/2.669, allocations: 1.96 MB / 0.8465 GB, free: 89.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05001/2.719, allocations: 25.12 MB / 0.871 GB, free: 82.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01042/2.73, allocations: 0.537 MB / 0.8716 GB, free: 82.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002041/2.732, allocations: 0.5183 MB / 0.8721 GB, free: 82.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00264/2.735, allocations: 0.7937 MB / 0.8728 GB, free: 81.82 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001653/2.736, allocations: 0.7084 MB / 0.8735 GB, free: 81.82 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0299/2.766, allocations: 10.86 MB / 0.8841 GB, free: 77.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.535e-05/2.766, allocations: 45.94 kB / 0.8842 GB, free: 77.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.688e-05/2.766, allocations: 22.56 kB / 0.8842 GB, free: 77.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.765e-05/2.766, allocations: 18.14 kB / 0.8842 GB, free: 77.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06278/2.829, allocations: 23.7 MB / 0.9074 GB, free: 68.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-05/2.829, allocations: 4 kB / 0.9074 GB, free: 68.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003278/2.833, allocations: 0.525 MB / 0.9079 GB, free: 68.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01751/2.85, allocations: 4.144 MB / 0.9119 GB, free: 65.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009069/2.851, allocations: 74.53 kB / 0.912 GB, free: 65.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04164/2.893, allocations: 21.83 MB / 0.9333 GB, free: 46.76 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-05/2.893, allocations: 11.94 kB / 0.9333 GB, free: 46.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03627/2.929, allocations: 17.51 MB / 0.9504 GB, free: 31.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00464/2.934, allocations: 1.368 MB / 0.9518 GB, free: 29.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002159/2.936, allocations: 77.25 kB / 0.9518 GB, free: 29.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005597/2.942, allocations: 250.6 kB / 0.9521 GB, free: 29.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001419/2.943, allocations: 281 kB / 0.9523 GB, free: 29.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005389/2.944, allocations: 122.8 kB / 0.9525 GB, free: 29.42 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01194/2.956, allocations: 4.729 MB / 0.9571 GB, free: 25.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.825e-06/2.956, allocations: 0 / 0.9571 GB, free: 25.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01269/2.968, allocations: 2.197 MB / 0.9592 GB, free: 23.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001262/2.97, allocations: 275.8 kB / 0.9595 GB, free: 22.84 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02012/2.99, allocations: 10.13 MB / 0.9694 GB, free: 12.81 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/2.99, allocations: 0.9375 kB / 0.9694 GB, free: 12.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008711/2.999, allocations: 4.285 MB / 0.9736 GB, free: 8.516 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006964/3.006, allocations: 1.056 MB / 0.9746 GB, free: 7.504 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3226/3.328, allocations: 18.91 MB / 0.9931 GB, free: 83.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01612/3.345, allocations: 6.567 MB / 0.9995 GB, free: 82.65 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002524/3.347, allocations: 498 kB / 1 GB, free: 82.64 MB / 442.7 MB Notification: Performance of SimCode: time 1.865e-06/3.347, allocations: 0.7656 kB / 1 GB, free: 82.64 MB / 442.7 MB Notification: Performance of Templates: time 0.5089/3.856, allocations: 152.5 MB / 1.149 GB, free: 97.16 MB / 458.7 MB