Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.826e-05/2.834e-05, allocations: 4 kB / 292.1 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08652, allocations: 50.42 MB / 342.6 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3763/0.4629, allocations: 99.9 MB / 442.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.4632, allocations: 86.83 kB / 442.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8925/1.356, allocations: 168 MB / 0.5963 GB, free: 89.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.861e-06/1.356, allocations: 0 / 0.5963 GB, free: 89.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006407/1.356, allocations: 165.9 kB / 0.5964 GB, free: 89.61 MB / 442.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.02586/1.382, allocations: 8.172 MB / 0.6044 GB, free: 84.44 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/1.382, allocations: 7.406 kB / 0.6044 GB, free: 84.44 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08429/1.467, allocations: 16.56 MB / 0.6206 GB, free: 69.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03284/1.499, allocations: 12.81 MB / 0.6331 GB, free: 56.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005225/1.5, allocations: 0.5557 MB / 0.6337 GB, free: 55.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002927/1.503, allocations: 0.76 MB / 0.6344 GB, free: 55.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04297/1.546, allocations: 16.74 MB / 0.6508 GB, free: 37.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004356/1.546, allocations: 107 kB / 0.6509 GB, free: 37.19 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001731/1.548, allocations: 349.7 kB / 0.6512 GB, free: 36.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002344/1.551, allocations: 1.535 MB / 0.6527 GB, free: 35.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03243/1.583, allocations: 12.88 MB / 0.6653 GB, free: 22.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3809/1.964, allocations: 75.15 MB / 0.7387 GB, free: 31.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05182/2.016, allocations: 7.777 MB / 0.7463 GB, free: 30.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01246/2.028, allocations: 4.086 MB / 0.7502 GB, free: 30.91 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03105/2.059, allocations: 11.88 MB / 0.7618 GB, free: 28.13 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/2.06, allocations: 73.03 kB / 0.7619 GB, free: 28.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=294): time 7.345e-06/2.06, allocations: 0 / 0.7619 GB, free: 28.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.1833/2.243, allocations: 40.41 MB / 0.8014 GB, free: 18.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/2.243, allocations: 403.9 kB / 0.8018 GB, free: 17.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01201/2.255, allocations: 6.244 MB / 0.8079 GB, free: 14.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006884/2.256, allocations: 86.41 kB / 0.8079 GB, free: 14.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003755/2.26, allocations: 5.401 MB / 0.8132 GB, free: 9.785 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001559/2.261, allocations: 1.325 MB / 0.8145 GB, free: 8.609 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006921/2.262, allocations: 168 kB / 0.8147 GB, free: 8.445 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004535/2.262, allocations: 0.6675 MB / 0.8153 GB, free: 7.871 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007009/2.269, allocations: 3.899 MB / 0.8191 GB, free: 4.336 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01149/2.281, allocations: 8.617 MB / 0.8276 GB, free: 9.938 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01193/2.293, allocations: 5.699 MB / 0.8331 GB, free: 5.137 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001167/2.293, allocations: 48 kB / 0.8332 GB, free: 5.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.04756/2.341, allocations: 16.81 MB / 0.8496 GB, free: 7.578 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001451/2.341, allocations: 79.7 kB / 0.8497 GB, free: 7.504 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002294/2.341, allocations: 168 kB / 0.8498 GB, free: 7.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02367/2.365, allocations: 5.734 MB / 0.8554 GB, free: 2.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0086/2.373, allocations: 1.848 MB / 0.8572 GB, free: 408 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3433/2.717, allocations: 29.17 MB / 0.8857 GB, free: 99.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009798/2.726, allocations: 0.5398 MB / 0.8862 GB, free: 99.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/2.728, allocations: 0.4901 MB / 0.8867 GB, free: 99.15 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 976 * 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 {(7,55.1%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002232/2.731, allocations: 0.7583 MB / 0.8875 GB, free: 98.83 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001546/2.732, allocations: 0.6775 MB / 0.8881 GB, free: 98.83 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03213/2.764, allocations: 11.5 MB / 0.8993 GB, free: 95.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.323e-05/2.764, allocations: 39.2 kB / 0.8994 GB, free: 95.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-05/2.764, allocations: 19.47 kB / 0.8994 GB, free: 95.17 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-05/2.765, allocations: 21.58 kB / 0.8994 GB, free: 95.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06258/2.827, allocations: 25.06 MB / 0.9239 GB, free: 85.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.415e-05/2.827, allocations: 7.156 kB / 0.9239 GB, free: 85.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003123/2.83, allocations: 464.8 kB / 0.9243 GB, free: 85.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02269/2.853, allocations: 5.384 MB / 0.9296 GB, free: 84.24 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007931/2.854, allocations: 66.95 kB / 0.9297 GB, free: 84.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04889/2.903, allocations: 28.05 MB / 0.9571 GB, free: 66.63 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1e-05/2.903, allocations: 14.58 kB / 0.9571 GB, free: 66.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03922/2.942, allocations: 17.63 MB / 0.9743 GB, free: 51.83 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004148/2.946, allocations: 1.307 MB / 0.9756 GB, free: 50.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001981/2.948, allocations: 67.78 kB / 0.9756 GB, free: 50.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005161/2.954, allocations: 271.6 kB / 0.9759 GB, free: 50.17 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00125/2.955, allocations: 252.5 kB / 0.9761 GB, free: 49.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004954/2.955, allocations: 88 kB / 0.9762 GB, free: 49.84 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0106/2.966, allocations: 4.496 MB / 0.9806 GB, free: 45.39 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.315e-06/2.966, allocations: 0 / 0.9806 GB, free: 45.39 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01118/2.977, allocations: 2.061 MB / 0.9826 GB, free: 43.34 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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 {(7,55.1%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009823/2.978, allocations: 224.3 kB / 0.9828 GB, free: 43.16 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02027/2.999, allocations: 10.12 MB / 0.9927 GB, free: 33.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/2.999, allocations: 3.062 kB / 0.9927 GB, free: 33.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009939/3.009, allocations: 4.615 MB / 0.9972 GB, free: 28.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006458/3.015, allocations: 0.9995 MB / 0.9982 GB, free: 27.74 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03981/3.055, allocations: 16.32 MB / 1.014 GB, free: 11.38 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0134/3.068, allocations: 5.898 MB / 1.02 GB, free: 5.492 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01046/3.079, allocations: 2.733 MB / 1.023 GB, free: 2.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001896/3.081, allocations: 411.4 kB / 1.023 GB, free: 2.527 MB / 474.7 MB Notification: Performance of SimCode: time 1.985e-06/3.081, allocations: 0 / 1.023 GB, free: 2.527 MB / 474.7 MB Notification: Performance of Templates: time 0.5087/3.589, allocations: 87.13 MB / 1.108 GB, free: 95.57 MB / 490.7 MB