Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 2.062/2.062, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.136e-05/3.147e-05, allocations: 6.031 kB / 292.7 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09164/0.09169, allocations: 50.41 MB / 343.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3839/0.4756, allocations: 96.02 MB / 439.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.4759, allocations: 93.5 kB / 439.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7154/1.191, allocations: 124.8 MB / 0.5508 GB, free: 93.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.712e-06/1.191, allocations: 3.875 kB / 0.5508 GB, free: 93.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004016/1.192, allocations: 117.9 kB / 0.5509 GB, free: 93.04 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02132/1.213, allocations: 6.486 MB / 0.5573 GB, free: 90.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/1.213, allocations: 12.08 kB / 0.5573 GB, free: 90.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04862/1.262, allocations: 9.423 MB / 0.5665 GB, free: 90.24 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02345/1.285, allocations: 8.091 MB / 0.5744 GB, free: 89.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005097/1.286, allocations: 436.1 kB / 0.5748 GB, free: 89.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002601/1.289, allocations: 0.5737 MB / 0.5753 GB, free: 89.35 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03661/1.325, allocations: 14.65 MB / 0.5897 GB, free: 84.7 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000355/1.326, allocations: 88.58 kB / 0.5897 GB, free: 84.69 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001959/1.328, allocations: 275.2 kB / 0.59 GB, free: 84.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002497/1.33, allocations: 1.44 MB / 0.5914 GB, free: 84.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03254/1.363, allocations: 12.6 MB / 0.6037 GB, free: 79.49 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08029/1.443, allocations: 64.66 MB / 0.6669 GB, free: 17.08 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0238/1.467, allocations: 7.777 MB / 0.6745 GB, free: 9.164 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007212/1.474, allocations: 5.152 MB / 0.6795 GB, free: 4.004 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02675/1.501, allocations: 12.94 MB / 0.6921 GB, free: 6.992 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.399e-05/1.501, allocations: 68.77 kB / 0.6922 GB, free: 6.914 MB / 458.7 MB Notification: Performance of pre-optimization done (n=340): time 8.132e-06/1.501, allocations: 0 / 0.6922 GB, free: 6.914 MB / 458.7 MB Notification: Performance of matching and sorting (n=604): time 0.5833/2.084, allocations: 79.58 MB / 0.7699 GB, free: 92.51 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.872e-05/2.084, allocations: 274.8 kB / 0.7702 GB, free: 92.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009971/2.094, allocations: 4.676 MB / 0.7747 GB, free: 90.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001768/2.096, allocations: 116.1 kB / 0.7749 GB, free: 90.56 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003233/2.1, allocations: 3.995 MB / 0.7788 GB, free: 87.38 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00321/2.103, allocations: 2.115 MB / 0.7808 GB, free: 85.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001875/2.105, allocations: 188 kB / 0.781 GB, free: 85.31 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006572/2.105, allocations: 0.7237 MB / 0.7817 GB, free: 84.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01509/2.12, allocations: 8.556 MB / 0.7901 GB, free: 76.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0176/2.138, allocations: 12.61 MB / 0.8024 GB, free: 63.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01851/2.157, allocations: 10.51 MB / 0.8126 GB, free: 53.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/2.157, allocations: 40 kB / 0.8127 GB, free: 53.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.11/2.267, allocations: 39.72 MB / 0.8515 GB, free: 13.86 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001097/2.267, allocations: 71.89 kB / 0.8515 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/2.267, allocations: 140.7 kB / 0.8517 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3653/2.632, allocations: 21.51 MB / 0.8727 GB, free: 85.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006622/2.639, allocations: 1.438 MB / 0.8741 GB, free: 85.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2781/2.917, allocations: 144.4 MB / 1.015 GB, free: 6.242 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01235/2.93, allocations: 0.7254 MB / 1.016 GB, free: 5.629 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002747/2.932, allocations: 0.5271 MB / 1.016 GB, free: 5.102 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (775): * Single equations (assignments): 768 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.00373/2.936, allocations: 0.7384 MB / 1.017 GB, free: 4.586 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002033/2.938, allocations: 0.5891 MB / 1.018 GB, free: 4.004 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3898/3.328, allocations: 36.12 MB / 1.053 GB, free: 98.69 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.627e-05/3.328, allocations: 61.41 kB / 1.053 GB, free: 98.69 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001267/3.328, allocations: 66.16 kB / 1.053 GB, free: 98.69 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/3.328, allocations: 30 kB / 1.053 GB, free: 98.69 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1473/3.476, allocations: 57.01 MB / 1.109 GB, free: 88.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.135e-05/3.476, allocations: 0 / 1.109 GB, free: 88.13 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001988/3.478, allocations: 271.3 kB / 1.109 GB, free: 88.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08023/3.558, allocations: 20.72 MB / 1.129 GB, free: 77.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001742/3.56, allocations: 100.8 kB / 1.129 GB, free: 77.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5714/4.131, allocations: 132.2 MB / 1.258 GB, free: 85.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.314e-06/4.131, allocations: 2.344 kB / 1.258 GB, free: 85.21 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1202/4.252, allocations: 48.53 MB / 1.306 GB, free: 63.54 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/4.253, allocations: 0.6153 MB / 1.306 GB, free: 62.92 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002835/4.256, allocations: 96 kB / 1.307 GB, free: 62.83 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008033/4.264, allocations: 0.4914 MB / 1.307 GB, free: 62.54 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003804/4.268, allocations: 0.5122 MB / 1.308 GB, free: 62.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001463/4.27, allocations: 140.9 kB / 1.308 GB, free: 62.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006952/4.277, allocations: 3.33 MB / 1.311 GB, free: 59.17 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.242e-06/4.277, allocations: 0 / 1.311 GB, free: 59.17 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01573/4.292, allocations: 3.436 MB / 1.314 GB, free: 55.74 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.001959/4.294, allocations: 243 kB / 1.314 GB, free: 55.53 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04682/4.341, allocations: 23.77 MB / 1.338 GB, free: 34.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.349e-06/4.341, allocations: 4 kB / 1.338 GB, free: 34.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02895/4.37, allocations: 13.37 MB / 1.351 GB, free: 22.55 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005617/4.376, allocations: 0.7079 MB / 1.351 GB, free: 21.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04324/4.419, allocations: 21.01 MB / 1.372 GB, free: 1.578 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3117/4.731, allocations: 5.296 MB / 1.377 GB, free: 100.1 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01523/4.746, allocations: 2.087 MB / 1.379 GB, free: 100.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002474/4.749, allocations: 300.6 kB / 1.379 GB, free: 100.1 MB / 490.7 MB Notification: Performance of SimCode: time 2.754e-06/4.749, allocations: 2.531 kB / 1.379 GB, free: 100.1 MB / 490.7 MB Notification: Performance of Templates: time 0.7301/5.479, allocations: 221.2 MB / 1.595 GB, free: 101.9 MB / 0.4948 GB