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.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.898/1.898, allocations: 205.8 MB / 218.9 MB, free: 9.258 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.75e-05/2.773e-05, allocations: 0 / 269.4 MB, free: 6.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.08851, allocations: 47.57 MB / 316.9 MB, free: 6.734 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3586/0.4472, allocations: 97.73 MB / 414.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.4475, allocations: 83.64 kB / 414.7 MB, free: 6.594 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.943/1.39, allocations: 166.6 MB / 0.5677 GB, free: 83.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.661e-06/1.391, allocations: 0 / 0.5677 GB, free: 83.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005882/1.391, allocations: 166.6 kB / 0.5679 GB, free: 83.68 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02566/1.417, allocations: 8.197 MB / 0.5759 GB, free: 80.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/1.417, allocations: 7.219 kB / 0.5759 GB, free: 80.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08467/1.502, allocations: 16.57 MB / 0.592 GB, free: 78.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03517/1.537, allocations: 13.78 MB / 0.6055 GB, free: 67.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005935/1.537, allocations: 0.5527 MB / 0.606 GB, free: 66.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003044/1.54, allocations: 0.7584 MB / 0.6068 GB, free: 65.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03982/1.58, allocations: 16.74 MB / 0.6231 GB, free: 47.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004851/1.581, allocations: 115 kB / 0.6232 GB, free: 47.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002274/1.583, allocations: 346.4 kB / 0.6236 GB, free: 47.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002435/1.586, allocations: 1.537 MB / 0.6251 GB, free: 45.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03153/1.617, allocations: 12.87 MB / 0.6376 GB, free: 33.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4066/2.024, allocations: 74.81 MB / 0.7107 GB, free: 45.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0234/2.047, allocations: 6.991 MB / 0.7175 GB, free: 44.67 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006207/2.054, allocations: 3.92 MB / 0.7213 GB, free: 44.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02325/2.077, allocations: 11.92 MB / 0.733 GB, free: 42.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.28e-05/2.077, allocations: 65.53 kB / 0.7331 GB, free: 42.13 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 8.236e-06/2.077, allocations: 3.328 kB / 0.7331 GB, free: 42.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.2765/2.353, allocations: 35.3 MB / 0.7675 GB, free: 34.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000181/2.354, allocations: 407.8 kB / 0.7679 GB, free: 34.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02665/2.38, allocations: 6.373 MB / 0.7741 GB, free: 32.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001091/2.382, allocations: 80.11 kB / 0.7742 GB, free: 32.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.008525/2.39, allocations: 5.448 MB / 0.7795 GB, free: 28.05 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003104/2.393, allocations: 1.341 MB / 0.7809 GB, free: 27.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/2.395, allocations: 170.9 kB / 0.781 GB, free: 26.92 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009207/2.396, allocations: 0.6807 MB / 0.7817 GB, free: 26.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007423/2.403, allocations: 3.463 MB / 0.7851 GB, free: 25.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00992/2.413, allocations: 8.276 MB / 0.7931 GB, free: 17.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009667/2.423, allocations: 5.296 MB / 0.7983 GB, free: 13.83 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/2.423, allocations: 48 kB / 0.7984 GB, free: 13.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.0401/2.463, allocations: 14.35 MB / 0.8124 GB, free: 2.023 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000157/2.464, allocations: 80.94 kB / 0.8125 GB, free: 1.945 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002617/2.464, allocations: 171.2 kB / 0.8126 GB, free: 1.781 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02014/2.484, allocations: 3.995 MB / 0.8165 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008506/2.493, allocations: 1.864 MB / 0.8183 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05343/2.546, allocations: 24.11 MB / 0.8419 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009664/2.556, allocations: 0.4905 MB / 0.8424 GB, free: 8.816 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00199/2.558, allocations: 0.4922 MB / 0.8428 GB, free: 8.324 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * Number of states: 0 () * Number of discrete variables: 72 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (1003): * Single equations (assignments): 997 * 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.00208/2.56, allocations: 0.7736 MB / 0.8436 GB, free: 7.543 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001848/2.562, allocations: 0.6865 MB / 0.8443 GB, free: 6.848 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3284/2.89, allocations: 8.843 MB / 0.8529 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001414/2.89, allocations: 37.03 kB / 0.8529 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.751e-05/2.891, allocations: 20.3 kB / 0.853 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001119/2.891, allocations: 17.11 kB / 0.853 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0701/2.961, allocations: 19.41 MB / 0.8719 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.086e-05/2.961, allocations: 6.594 kB / 0.8719 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002839/2.964, allocations: 454.3 kB / 0.8724 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01455/2.978, allocations: 3.47 MB / 0.8757 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008266/2.979, allocations: 69.91 kB / 0.8758 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04646/3.026, allocations: 23.08 MB / 0.8984 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.368e-05/3.026, allocations: 10.27 kB / 0.8984 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02857/3.054, allocations: 14.92 MB / 0.9129 GB, free: 96.25 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004044/3.058, allocations: 1.222 MB / 0.9141 GB, free: 95.92 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001712/3.06, allocations: 75.33 kB / 0.9142 GB, free: 95.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005285/3.065, allocations: 216.5 kB / 0.9144 GB, free: 95.83 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001235/3.067, allocations: 271.4 kB / 0.9147 GB, free: 95.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004343/3.067, allocations: 98.16 kB / 0.9148 GB, free: 95.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01041/3.078, allocations: 4.585 MB / 0.9192 GB, free: 94.24 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.124e-06/3.078, allocations: 5.906 kB / 0.9192 GB, free: 94.24 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01118/3.089, allocations: 2.009 MB / 0.9212 GB, free: 94.03 MB / 474.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 {(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.0009528/3.09, allocations: 232.6 kB / 0.9214 GB, free: 93.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01768/3.108, allocations: 8.94 MB / 0.9302 GB, free: 90.83 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/3.108, allocations: 1.969 kB / 0.9302 GB, free: 90.83 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009381/3.117, allocations: 3.978 MB / 0.934 GB, free: 89.07 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006768/3.124, allocations: 1.02 MB / 0.935 GB, free: 88.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03561/3.159, allocations: 15.35 MB / 0.95 GB, free: 76.68 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01246/3.172, allocations: 5.939 MB / 0.9558 GB, free: 72.38 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01081/3.183, allocations: 2.794 MB / 0.9586 GB, free: 70.77 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001917/3.185, allocations: 414 kB / 0.959 GB, free: 70.38 MB / 474.7 MB Notification: Performance of SimCode: time 2.013e-06/3.185, allocations: 0 / 0.959 GB, free: 70.38 MB / 474.7 MB Notification: Performance of Templates: time 0.5322/3.717, allocations: 82.58 MB / 1.04 GB, free: 100.3 MB / 474.7 MB