Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.066e-05, allocations: 3.984 kB / 292.2 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08774, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4258/0.5136, allocations: 98.28 MB / 440.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.5139, allocations: 83.14 kB / 440.9 MB, free: 12.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8246/1.339, allocations: 163.2 MB / 0.59 GB, free: 91.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.511e-06/1.339, allocations: 0 / 0.59 GB, free: 91.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006217/1.339, allocations: 163.4 kB / 0.5901 GB, free: 91.83 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.02518/1.364, allocations: 7.856 MB / 0.5978 GB, free: 87.91 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/1.365, allocations: 10.94 kB / 0.5978 GB, free: 87.91 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08207/1.447, allocations: 16.49 MB / 0.6139 GB, free: 75.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03406/1.481, allocations: 12.53 MB / 0.6261 GB, free: 63.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000583/1.481, allocations: 0.5297 MB / 0.6267 GB, free: 62.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002913/1.484, allocations: 0.7267 MB / 0.6274 GB, free: 62.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03944/1.524, allocations: 16.19 MB / 0.6432 GB, free: 44.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004741/1.524, allocations: 107 kB / 0.6433 GB, free: 44.69 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002037/1.526, allocations: 338 kB / 0.6436 GB, free: 44.4 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002416/1.529, allocations: 1.485 MB / 0.645 GB, free: 42.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03148/1.56, allocations: 12.48 MB / 0.6572 GB, free: 30.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3654/1.926, allocations: 73.27 MB / 0.7288 GB, free: 37.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02561/1.951, allocations: 7.406 MB / 0.736 GB, free: 37.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005928/1.957, allocations: 3.96 MB / 0.7399 GB, free: 37.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02077/1.978, allocations: 11.52 MB / 0.7511 GB, free: 35.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/1.978, allocations: 62.59 kB / 0.7512 GB, free: 35.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 7.39e-06/1.978, allocations: 3.375 kB / 0.7512 GB, free: 35.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.1629/2.141, allocations: 37.51 MB / 0.7878 GB, free: 26.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/2.141, allocations: 400 kB / 0.7882 GB, free: 26.08 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01386/2.155, allocations: 6.117 MB / 0.7942 GB, free: 24.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006846/2.156, allocations: 79.77 kB / 0.7943 GB, free: 23.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004309/2.16, allocations: 5.228 MB / 0.7994 GB, free: 19.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001658/2.162, allocations: 1.25 MB / 0.8006 GB, free: 19.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008923/2.163, allocations: 164.7 kB / 0.8007 GB, free: 18.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005319/2.163, allocations: 0.6534 MB / 0.8014 GB, free: 18.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007597/2.171, allocations: 3.726 MB / 0.805 GB, free: 16.46 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00966/2.181, allocations: 8.351 MB / 0.8132 GB, free: 6.402 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009915/2.191, allocations: 5.48 MB / 0.8185 GB, free: 1.789 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/2.191, allocations: 44 kB / 0.8186 GB, free: 1.746 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.04726/2.238, allocations: 16.27 MB / 0.8345 GB, free: 5.094 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/2.238, allocations: 76 kB / 0.8345 GB, free: 5.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002228/2.238, allocations: 160 kB / 0.8347 GB, free: 4.863 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02122/2.26, allocations: 5.492 MB / 0.84 GB, free: 1.043 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008135/2.268, allocations: 1.801 MB / 0.8418 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05682/2.325, allocations: 28.03 MB / 0.8692 GB, free: 3.188 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009656/2.334, allocations: 0.5188 MB / 0.8697 GB, free: 2.668 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002039/2.337, allocations: 483.5 kB / 0.8702 GB, free: 2.203 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (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 (947): * Single equations (assignments): 941 * 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%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002521/2.339, allocations: 0.7387 MB / 0.8709 GB, free: 1.457 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001787/2.341, allocations: 0.663 MB / 0.8715 GB, free: 0.7891 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3535/2.694, allocations: 10.89 MB / 0.8822 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.061e-05/2.695, allocations: 34.75 kB / 0.8822 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.027e-05/2.695, allocations: 19.16 kB / 0.8822 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.313e-05/2.695, allocations: 20.11 kB / 0.8822 GB, free: 120.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05402/2.749, allocations: 23.87 MB / 0.9055 GB, free: 117.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.493e-05/2.749, allocations: 6.938 kB / 0.9055 GB, free: 117.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002799/2.752, allocations: 449.3 kB / 0.906 GB, free: 117.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02115/2.773, allocations: 5.077 MB / 0.9109 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006435/2.773, allocations: 65.72 kB / 0.911 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04636/2.82, allocations: 26.74 MB / 0.9371 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.805e-06/2.82, allocations: 12.11 kB / 0.9371 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03614/2.856, allocations: 16.76 MB / 0.9535 GB, free: 97.63 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002307/2.858, allocations: 0.6675 MB / 0.9541 GB, free: 97.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002129/2.861, allocations: 67.48 kB / 0.9542 GB, free: 97.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00512/2.866, allocations: 249.2 kB / 0.9544 GB, free: 97.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00114/2.867, allocations: 249 kB / 0.9547 GB, free: 97.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004349/2.867, allocations: 86.72 kB / 0.9548 GB, free: 97.36 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01049/2.878, allocations: 4.404 MB / 0.9591 GB, free: 94.92 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.768e-06/2.878, allocations: 0 / 0.9591 GB, free: 94.92 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01072/2.889, allocations: 1.968 MB / 0.961 GB, free: 92.97 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009808/2.89, allocations: 226.5 kB / 0.9612 GB, free: 92.79 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01865/2.908, allocations: 9.695 MB / 0.9707 GB, free: 84.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/2.908, allocations: 2.062 kB / 0.9707 GB, free: 84.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009103/2.918, allocations: 4.356 MB / 0.9749 GB, free: 80.43 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006351/2.924, allocations: 0.9854 MB / 0.9759 GB, free: 79.62 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03785/2.962, allocations: 15.64 MB / 0.9912 GB, free: 65.76 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01191/2.974, allocations: 5.689 MB / 0.9967 GB, free: 61.63 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009729/2.984, allocations: 2.639 MB / 0.9993 GB, free: 59.36 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001803/2.985, allocations: 391.4 kB / 0.9997 GB, free: 58.98 MB / 490.7 MB Notification: Performance of SimCode: time 1.924e-06/2.985, allocations: 0 / 0.9997 GB, free: 58.98 MB / 490.7 MB Notification: Performance of Templates: time 0.4994/3.485, allocations: 82.86 MB / 1.081 GB, free: 100.4 MB / 490.7 MB