Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.973/1.973, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.724e-05/2.73e-05, allocations: 4 kB / 292.2 MB, free: 8.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08688/0.08693, allocations: 50.41 MB / 342.6 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3793/0.4662, allocations: 96 MB / 438.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000242/0.4665, allocations: 87.08 kB / 438.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.717/1.183, allocations: 124.8 MB / 0.5503 GB, free: 93.09 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.386e-06/1.184, allocations: 0 / 0.5503 GB, free: 93.09 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003874/1.184, allocations: 122.8 kB / 0.5504 GB, free: 93.09 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.02166/1.206, allocations: 6.488 MB / 0.5567 GB, free: 90.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/1.206, allocations: 10.28 kB / 0.5567 GB, free: 90.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04961/1.255, allocations: 9.432 MB / 0.566 GB, free: 90.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02293/1.278, allocations: 8.091 MB / 0.5739 GB, free: 89.42 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004693/1.279, allocations: 436.6 kB / 0.5743 GB, free: 89.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002565/1.281, allocations: 0.5806 MB / 0.5748 GB, free: 89.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03672/1.318, allocations: 14.64 MB / 0.5891 GB, free: 84.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000354/1.319, allocations: 89.3 kB / 0.5892 GB, free: 84.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002018/1.321, allocations: 274.8 kB / 0.5895 GB, free: 84.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002523/1.323, allocations: 1.445 MB / 0.5909 GB, free: 84.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03273/1.356, allocations: 12.6 MB / 0.6032 GB, free: 79.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08099/1.437, allocations: 64.65 MB / 0.6663 GB, free: 17.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02399/1.461, allocations: 7.787 MB / 0.6739 GB, free: 9.152 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00729/1.468, allocations: 5.158 MB / 0.679 GB, free: 3.992 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02674/1.495, allocations: 12.93 MB / 0.6916 GB, free: 6.988 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.82e-05/1.495, allocations: 76.7 kB / 0.6917 GB, free: 6.902 MB / 458.7 MB Notification: Performance of pre-optimization done (n=340): time 8.876e-06/1.495, allocations: 0 / 0.6917 GB, free: 6.902 MB / 458.7 MB Notification: Performance of matching and sorting (n=604): time 0.5873/2.082, allocations: 79.58 MB / 0.7694 GB, free: 92.59 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/2.083, allocations: 272.7 kB / 0.7697 GB, free: 92.33 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00859/2.091, allocations: 4.68 MB / 0.7742 GB, free: 90.74 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001596/2.093, allocations: 119.8 kB / 0.7743 GB, free: 90.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002832/2.096, allocations: 4.001 MB / 0.7782 GB, free: 87.45 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002968/2.099, allocations: 2.111 MB / 0.7803 GB, free: 85.56 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/2.1, allocations: 189.9 kB / 0.7805 GB, free: 85.38 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005183/2.101, allocations: 0.7125 MB / 0.7812 GB, free: 84.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01475/2.115, allocations: 8.559 MB / 0.7895 GB, free: 77.01 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.017/2.132, allocations: 12.6 MB / 0.8018 GB, free: 63.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01808/2.151, allocations: 10.52 MB / 0.8121 GB, free: 53.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.464e-05/2.151, allocations: 36 kB / 0.8122 GB, free: 53.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1077/2.258, allocations: 39.72 MB / 0.8509 GB, free: 13.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/2.259, allocations: 63.95 kB / 0.851 GB, free: 13.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001498/2.259, allocations: 144.2 kB / 0.8511 GB, free: 13.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3655/2.624, allocations: 21.5 MB / 0.8721 GB, free: 85.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006649/2.631, allocations: 1.44 MB / 0.8735 GB, free: 85.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2873/2.918, allocations: 144.4 MB / 1.015 GB, free: 6.277 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01279/2.931, allocations: 0.7224 MB / 1.015 GB, free: 5.652 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002911/2.934, allocations: 0.5295 MB / 1.016 GB, free: 5.125 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.004278/2.938, allocations: 0.7316 MB / 1.017 GB, free: 4.609 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002258/2.941, allocations: 0.5952 MB / 1.017 GB, free: 4.039 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.396/3.337, allocations: 36.12 MB / 1.052 GB, free: 98.58 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.429e-05/3.337, allocations: 58.67 kB / 1.052 GB, free: 98.58 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001316/3.337, allocations: 64.56 kB / 1.052 GB, free: 98.58 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001015/3.337, allocations: 26.53 kB / 1.053 GB, free: 98.58 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1462/3.483, allocations: 57.02 MB / 1.108 GB, free: 88.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.209e-05/3.483, allocations: 2.25 kB / 1.108 GB, free: 88.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/3.485, allocations: 274 kB / 1.108 GB, free: 88.05 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07939/3.565, allocations: 20.72 MB / 1.129 GB, free: 77.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001741/3.567, allocations: 96.55 kB / 1.129 GB, free: 77.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5262/4.093, allocations: 132.2 MB / 1.258 GB, free: 85.15 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.019e-06/4.093, allocations: 7.219 kB / 1.258 GB, free: 85.15 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.122/4.215, allocations: 48.53 MB / 1.305 GB, free: 63.53 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/4.217, allocations: 0.615 MB / 1.306 GB, free: 62.92 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002891/4.22, allocations: 100.8 kB / 1.306 GB, free: 62.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008221/4.228, allocations: 0.4895 MB / 1.307 GB, free: 62.54 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003927/4.232, allocations: 0.5135 MB / 1.307 GB, free: 62.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001545/4.233, allocations: 139.1 kB / 1.307 GB, free: 62.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007465/4.241, allocations: 3.332 MB / 1.31 GB, free: 59.16 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.105e-06/4.241, allocations: 2.312 kB / 1.31 GB, free: 59.16 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01631/4.257, allocations: 3.435 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.001966/4.259, allocations: 248.2 kB / 1.314 GB, free: 55.53 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04579/4.305, allocations: 23.76 MB / 1.337 GB, free: 34.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.873e-06/4.305, allocations: 2.031 kB / 1.337 GB, free: 34.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02873/4.334, allocations: 13.37 MB / 1.35 GB, free: 22.54 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005466/4.339, allocations: 0.7041 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.04514/4.385, allocations: 21.02 MB / 1.371 GB, free: 1.559 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3382/4.723, allocations: 5.292 MB / 1.377 GB, free: 100.6 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01442/4.737, allocations: 2.088 MB / 1.379 GB, free: 100.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002337/4.74, allocations: 301.4 kB / 1.379 GB, free: 100.5 MB / 490.7 MB Notification: Performance of SimCode: time 2.949e-06/4.74, allocations: 0 / 1.379 GB, free: 100.5 MB / 490.7 MB Notification: Performance of Templates: time 0.7523/5.492, allocations: 221.2 MB / 1.595 GB, free: 102.5 MB / 0.4948 GB