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.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 1.676/1.676, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.446e-05/3.466e-05, allocations: 7.984 kB / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2314, allocations: 38.77 MB / 263.8 MB, free: 9.836 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.3801, allocations: 98.09 MB / 361.9 MB, free: 7.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002986/0.3805, allocations: 91.89 kB / 362 MB, free: 7.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.137/1.517, allocations: 182.4 MB / 0.5316 GB, free: 32.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.329e-06/1.518, allocations: 3.375 kB / 0.5316 GB, free: 32.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006752/1.518, allocations: 179.9 kB / 0.5318 GB, free: 32.72 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.02802/1.546, allocations: 9.155 MB / 0.5407 GB, free: 29.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/1.546, allocations: 7.594 kB / 0.5407 GB, free: 29.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08376/1.63, allocations: 16.66 MB / 0.557 GB, free: 28.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03948/1.67, allocations: 14.6 MB / 0.5713 GB, free: 27.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000694/1.67, allocations: 0.6293 MB / 0.5719 GB, free: 27.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003435/1.674, allocations: 0.8506 MB / 0.5727 GB, free: 27.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04974/1.724, allocations: 19.15 MB / 0.5914 GB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005956/1.724, allocations: 113.6 kB / 0.5915 GB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002935/1.727, allocations: 389 kB / 0.5919 GB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00274/1.73, allocations: 1.596 MB / 0.5934 GB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04129/1.771, allocations: 15.19 MB / 0.6083 GB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3748/2.146, allocations: 80.54 MB / 0.6869 GB, free: 39.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02835/2.174, allocations: 7.811 MB / 0.6946 GB, free: 38.99 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006979/2.182, allocations: 3.997 MB / 0.6985 GB, free: 38.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02741/2.209, allocations: 14.11 MB / 0.7122 GB, free: 35.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.461e-05/2.209, allocations: 66.16 kB / 0.7123 GB, free: 35.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=308): time 7.944e-06/2.209, allocations: 0 / 0.7123 GB, free: 35.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=408): time 0.1674/2.377, allocations: 38.06 MB / 0.7495 GB, free: 28.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/2.377, allocations: 406.8 kB / 0.7499 GB, free: 28.49 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01532/2.392, allocations: 6.579 MB / 0.7563 GB, free: 26.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007933/2.393, allocations: 94.3 kB / 0.7564 GB, free: 26.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004723/2.398, allocations: 5.857 MB / 0.7621 GB, free: 21.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001797/2.399, allocations: 1.486 MB / 0.7635 GB, free: 20.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009278/2.4, allocations: 182 kB / 0.7637 GB, free: 20.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006809/2.401, allocations: 0.7054 MB / 0.7644 GB, free: 20.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008826/2.41, allocations: 4.095 MB / 0.7684 GB, free: 18.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01326/2.423, allocations: 9.057 MB / 0.7772 GB, free: 8.652 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01328/2.437, allocations: 6.058 MB / 0.7832 GB, free: 3.762 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001777/2.437, allocations: 48 kB / 0.7832 GB, free: 3.715 MB / 410.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.291/2.728, allocations: 16.93 MB / 0.7997 GB, free: 80.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001398/2.728, allocations: 79.5 kB / 0.7998 GB, free: 80.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002299/2.728, allocations: 174.9 kB / 0.8 GB, free: 80.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0192/2.747, allocations: 4.696 MB / 0.8046 GB, free: 79.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00865/2.756, allocations: 1.965 MB / 0.8065 GB, free: 79.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0504/2.807, allocations: 25.13 MB / 0.831 GB, free: 78.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01019/2.817, allocations: 0.5398 MB / 0.8316 GB, free: 78.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001954/2.819, allocations: 0.5094 MB / 0.8321 GB, free: 78.18 MB / 410.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.002872/2.822, allocations: 0.806 MB / 0.8328 GB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00181/2.824, allocations: 0.7084 MB / 0.8335 GB, free: 77.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0309/2.854, allocations: 10.86 MB / 0.8441 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.764e-05/2.855, allocations: 48.77 kB / 0.8442 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.378e-05/2.855, allocations: 23.31 kB / 0.8442 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-05/2.855, allocations: 17.25 kB / 0.8442 GB, free: 73.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0636/2.918, allocations: 23.69 MB / 0.8674 GB, free: 64.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.292e-05/2.918, allocations: 8.469 kB / 0.8674 GB, free: 64.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003448/2.922, allocations: 0.5184 MB / 0.8679 GB, free: 64.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01779/2.94, allocations: 4.141 MB / 0.8719 GB, free: 63.96 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008959/2.941, allocations: 75.81 kB / 0.872 GB, free: 63.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04197/2.983, allocations: 21.85 MB / 0.8933 GB, free: 45.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-05/2.983, allocations: 14.78 kB / 0.8933 GB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03635/3.019, allocations: 17.5 MB / 0.9104 GB, free: 29.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004324/3.023, allocations: 1.381 MB / 0.9118 GB, free: 28.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001966/3.025, allocations: 75.94 kB / 0.9119 GB, free: 28.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005155/3.031, allocations: 249.5 kB / 0.9121 GB, free: 28.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001328/3.032, allocations: 278.6 kB / 0.9124 GB, free: 28.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004931/3.033, allocations: 114.3 kB / 0.9125 GB, free: 27.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01128/3.044, allocations: 4.735 MB / 0.9171 GB, free: 23.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.344e-06/3.044, allocations: 0 / 0.9171 GB, free: 23.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01223/3.056, allocations: 2.192 MB / 0.9192 GB, free: 21.57 MB / 410.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.001259/3.057, allocations: 278.1 kB / 0.9195 GB, free: 21.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0202/3.078, allocations: 10.14 MB / 0.9294 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.296e-05/3.078, allocations: 0 / 0.9294 GB, free: 12.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2414/3.319, allocations: 4.278 MB / 0.9336 GB, free: 81.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006831/3.326, allocations: 1.066 MB / 0.9346 GB, free: 81.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04887/3.375, allocations: 17.87 MB / 0.9521 GB, free: 78.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01453/3.389, allocations: 6.57 MB / 0.9585 GB, free: 77.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.01194/3.401, allocations: 2.932 MB / 0.9614 GB, free: 77.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002241/3.404, allocations: 436.9 kB / 0.9618 GB, free: 77.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.747e-06/3.404, allocations: 0 / 0.9618 GB, free: 77.62 MB / 410.7 MB Notification: Performance of Templates: time 0.2675/3.671, allocations: 91.98 MB / 1.052 GB, free: 30.9 MB / 410.7 MB