Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.179e-05/3.193e-05, allocations: 4 kB / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08457/0.08462, allocations: 47.59 MB / 316.9 MB, free: 6.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3516/0.4363, allocations: 94.25 MB / 411.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.4366, allocations: 88.08 kB / 411.3 MB, free: 10.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7739/1.21, allocations: 123.4 MB / 0.5222 GB, free: 82.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.211, allocations: 1.5 kB / 0.5222 GB, free: 82.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004382/1.211, allocations: 122.7 kB / 0.5223 GB, free: 82.98 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02279/1.234, allocations: 6.513 MB / 0.5287 GB, free: 80.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/1.234, allocations: 12.94 kB / 0.5287 GB, free: 80.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04839/1.282, allocations: 9.427 MB / 0.5379 GB, free: 80.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03418/1.316, allocations: 8.58 MB / 0.5463 GB, free: 79.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008383/1.317, allocations: 436.5 kB / 0.5467 GB, free: 79.37 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004219/1.322, allocations: 0.5783 MB / 0.5472 GB, free: 79.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06438/1.386, allocations: 14.64 MB / 0.5615 GB, free: 76.22 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003517/1.386, allocations: 88.31 kB / 0.5616 GB, free: 76.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001865/1.388, allocations: 272 kB / 0.5619 GB, free: 76.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002514/1.391, allocations: 1.445 MB / 0.5633 GB, free: 76.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03253/1.423, allocations: 12.61 MB / 0.5756 GB, free: 75.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08464/1.508, allocations: 64.74 MB / 0.6388 GB, free: 22.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02381/1.532, allocations: 7.77 MB / 0.6464 GB, free: 15.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007288/1.539, allocations: 5.164 MB / 0.6515 GB, free: 11.17 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02466/1.564, allocations: 12.98 MB / 0.6641 GB, free: 168 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.945e-05/1.564, allocations: 67.95 kB / 0.6642 GB, free: 92 kB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 8.447e-06/1.564, allocations: 0 / 0.6642 GB, free: 92 kB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.6221/2.186, allocations: 79.82 MB / 0.7422 GB, free: 86.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.539e-05/2.186, allocations: 268 kB / 0.7424 GB, free: 86.62 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009728/2.196, allocations: 4.726 MB / 0.747 GB, free: 85.01 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001591/2.198, allocations: 114.7 kB / 0.7471 GB, free: 84.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003204/2.201, allocations: 4.018 MB / 0.7511 GB, free: 82.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003173/2.204, allocations: 2.111 MB / 0.7531 GB, free: 80.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001587/2.206, allocations: 192 kB / 0.7533 GB, free: 80.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006107/2.206, allocations: 0.7154 MB / 0.754 GB, free: 80.06 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01608/2.222, allocations: 8.558 MB / 0.7624 GB, free: 76.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01836/2.241, allocations: 12.6 MB / 0.7747 GB, free: 65.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01845/2.259, allocations: 10.52 MB / 0.7849 GB, free: 56.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/2.26, allocations: 40 kB / 0.785 GB, free: 56.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1116/2.371, allocations: 39.71 MB / 0.8238 GB, free: 19.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/2.371, allocations: 67.95 kB / 0.8238 GB, free: 19.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001459/2.372, allocations: 140.9 kB / 0.824 GB, free: 19.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3495/2.721, allocations: 21.5 MB / 0.845 GB, free: 76.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006654/2.728, allocations: 1.442 MB / 0.8464 GB, free: 76.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2905/3.018, allocations: 144.4 MB / 0.9874 GB, free: 2.762 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01313/3.031, allocations: 0.7305 MB / 0.9881 GB, free: 2.258 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002859/3.034, allocations: 0.5284 MB / 0.9886 GB, free: 1.789 MB / 442.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.004389/3.039, allocations: 0.7263 MB / 0.9893 GB, free: 1.281 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002476/3.041, allocations: 0.6053 MB / 0.9899 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3817/3.423, allocations: 36.46 MB / 1.026 GB, free: 91.47 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.321e-05/3.423, allocations: 63.77 kB / 1.026 GB, free: 91.47 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001309/3.423, allocations: 64.94 kB / 1.026 GB, free: 91.47 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001086/3.423, allocations: 31.03 kB / 1.026 GB, free: 91.47 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.147/3.57, allocations: 57.02 MB / 1.081 GB, free: 81.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.546e-05/3.571, allocations: 0 / 1.081 GB, free: 81.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/3.573, allocations: 278.2 kB / 1.082 GB, free: 81.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07828/3.651, allocations: 20.72 MB / 1.102 GB, free: 70.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001823/3.653, allocations: 100 kB / 1.102 GB, free: 70.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5322/4.185, allocations: 132.2 MB / 1.231 GB, free: 76 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/4.185, allocations: 3.875 kB / 1.231 GB, free: 76 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1206/4.306, allocations: 48.55 MB / 1.279 GB, free: 49.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00724/4.313, allocations: 2.407 MB / 1.281 GB, free: 47.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002983/4.316, allocations: 96 kB / 1.281 GB, free: 47.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008551/4.325, allocations: 0.4933 MB / 1.281 GB, free: 46.73 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004056/4.329, allocations: 0.5039 MB / 1.282 GB, free: 46.42 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001504/4.33, allocations: 144.4 kB / 1.282 GB, free: 46.29 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007732/4.338, allocations: 3.371 MB / 1.285 GB, free: 43.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.509e-06/4.338, allocations: 0 / 1.285 GB, free: 43.32 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01612/4.354, allocations: 3.442 MB / 1.289 GB, free: 39.89 MB / 458.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.001919/4.356, allocations: 240.7 kB / 1.289 GB, free: 39.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04701/4.403, allocations: 23.77 MB / 1.312 GB, free: 18.66 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.383e-06/4.403, allocations: 1.438 kB / 1.312 GB, free: 18.66 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03002/4.433, allocations: 13.36 MB / 1.325 GB, free: 6.793 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005607/4.439, allocations: 0.7136 MB / 1.326 GB, free: 6.188 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3119/4.751, allocations: 21.07 MB / 1.346 GB, free: 78.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01106/4.762, allocations: 5.321 MB / 1.352 GB, free: 77.72 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00761/4.769, allocations: 2.086 MB / 1.354 GB, free: 77.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001326/4.771, allocations: 301.2 kB / 1.354 GB, free: 77.65 MB / 458.7 MB Notification: Performance of SimCode: time 1.674e-06/4.771, allocations: 0 / 1.354 GB, free: 77.65 MB / 458.7 MB Notification: Performance of Templates: time 0.6964/5.467, allocations: 221.3 MB / 1.57 GB, free: 82.62 MB / 474.7 MB