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.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.737/1.737, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.081e-05/3.097e-05, allocations: 4 kB / 255.4 MB, free: 2.691 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07833/0.07838, allocations: 44.5 MB / 299.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4129/0.4913, allocations: 88.74 MB / 388.6 MB, free: 20.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.4916, allocations: 85.7 kB / 388.7 MB, free: 20.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4476/0.9392, allocations: 122.6 MB / 0.4994 GB, free: 8.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.9392, allocations: 4 kB / 0.4994 GB, free: 8.516 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004448/0.9397, allocations: 127.9 kB / 0.4995 GB, free: 8.391 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.02393/0.9636, allocations: 6.5 MB / 0.5058 GB, free: 1.816 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.9637, allocations: 16.03 kB / 0.5059 GB, free: 1.801 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2938/1.257, allocations: 9.424 MB / 0.5151 GB, free: 57.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02896/1.287, allocations: 8.559 MB / 0.5234 GB, free: 57.03 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000491/1.287, allocations: 431.6 kB / 0.5238 GB, free: 57.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002471/1.29, allocations: 0.5818 MB / 0.5244 GB, free: 57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03472/1.324, allocations: 14.62 MB / 0.5387 GB, free: 53.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003128/1.325, allocations: 82.38 kB / 0.5388 GB, free: 53.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001469/1.326, allocations: 276 kB / 0.539 GB, free: 53.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002274/1.328, allocations: 1.438 MB / 0.5404 GB, free: 53.86 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09211/1.421, allocations: 12.59 MB / 0.5527 GB, free: 53.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0949/1.515, allocations: 64.65 MB / 0.6159 GB, free: 26.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03219/1.548, allocations: 7.78 MB / 0.6235 GB, free: 22.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007224/1.555, allocations: 5.147 MB / 0.6285 GB, free: 17.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02482/1.58, allocations: 12.98 MB / 0.6412 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.178e-05/1.58, allocations: 76.69 kB / 0.6412 GB, free: 6.527 MB / 410.7 MB Notification: Performance of pre-optimization done (n=340): time 8.213e-06/1.58, allocations: 3.938 kB / 0.6412 GB, free: 6.523 MB / 410.7 MB Notification: Performance of matching and sorting (n=604): time 0.5613/2.141, allocations: 79.73 MB / 0.7191 GB, free: 78.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.926e-05/2.141, allocations: 267.3 kB / 0.7194 GB, free: 78.67 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01073/2.152, allocations: 4.702 MB / 0.724 GB, free: 78.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001727/2.154, allocations: 117.2 kB / 0.7241 GB, free: 78.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003385/2.157, allocations: 4.005 MB / 0.728 GB, free: 76.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003383/2.161, allocations: 2.111 MB / 0.73 GB, free: 74.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002097/2.163, allocations: 188 kB / 0.7302 GB, free: 74.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007741/2.164, allocations: 0.7094 MB / 0.7309 GB, free: 74.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02174/2.186, allocations: 8.557 MB / 0.7393 GB, free: 70.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03133/2.217, allocations: 12.59 MB / 0.7516 GB, free: 62.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02106/2.238, allocations: 10.5 MB / 0.7618 GB, free: 58.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001286/2.238, allocations: 41.28 kB / 0.7619 GB, free: 58.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1126/2.351, allocations: 39.69 MB / 0.8006 GB, free: 29.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001138/2.351, allocations: 64 kB / 0.8007 GB, free: 29.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001551/2.351, allocations: 136 kB / 0.8008 GB, free: 29.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.336/2.687, allocations: 21.51 MB / 0.8218 GB, free: 70.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007191/2.694, allocations: 1.431 MB / 0.8232 GB, free: 70.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2905/2.985, allocations: 144.4 MB / 0.9642 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01299/2.998, allocations: 0.7213 MB / 0.9649 GB, free: 2.875 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002963/3.001, allocations: 0.5339 MB / 0.9655 GB, free: 2.406 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 51 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 765 * 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.00459/3.006, allocations: 0.7223 MB / 0.9662 GB, free: 1.898 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002634/3.008, allocations: 0.5898 MB / 0.9668 GB, free: 1.348 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3754/3.384, allocations: 36.83 MB / 1.003 GB, free: 84.89 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.332e-05/3.384, allocations: 58.41 kB / 1.003 GB, free: 84.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001258/3.384, allocations: 65.28 kB / 1.003 GB, free: 84.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001076/3.384, allocations: 30.72 kB / 1.003 GB, free: 84.89 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1476/3.532, allocations: 57.03 MB / 1.059 GB, free: 75.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.57e-05/3.532, allocations: 7.062 kB / 1.059 GB, free: 75.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001826/3.534, allocations: 271.1 kB / 1.059 GB, free: 75.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1358/3.669, allocations: 20.72 MB / 1.079 GB, free: 66.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00186/3.671, allocations: 100.8 kB / 1.079 GB, free: 66.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5163/4.188, allocations: 132.2 MB / 1.208 GB, free: 65.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/4.188, allocations: 5.422 kB / 1.208 GB, free: 65.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1197/4.307, allocations: 48.55 MB / 1.256 GB, free: 36.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00697/4.314, allocations: 2.393 MB / 1.258 GB, free: 34.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002931/4.317, allocations: 102 kB / 1.258 GB, free: 34.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008391/4.326, allocations: 0.4897 MB / 1.259 GB, free: 33.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00397/4.33, allocations: 0.5088 MB / 1.259 GB, free: 33.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001628/4.332, allocations: 139.3 kB / 1.259 GB, free: 33.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007434/4.339, allocations: 3.359 MB / 1.263 GB, free: 30.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.307e-06/4.339, allocations: 0 / 1.263 GB, free: 30.41 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01686/4.356, allocations: 3.436 MB / 1.266 GB, free: 26.98 MB / 442.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.002/4.358, allocations: 241.5 kB / 1.266 GB, free: 26.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.05079/4.409, allocations: 23.77 MB / 1.289 GB, free: 5.754 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.512e-06/4.409, allocations: 0 / 1.289 GB, free: 5.754 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.288/4.697, allocations: 14.43 MB / 1.303 GB, free: 75.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005581/4.702, allocations: 0.7053 MB / 1.304 GB, free: 75.49 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.045/4.747, allocations: 21.05 MB / 1.325 GB, free: 73.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009686/4.757, allocations: 5.314 MB / 1.33 GB, free: 72.29 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007486/4.765, allocations: 2.082 MB / 1.332 GB, free: 72.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/4.766, allocations: 300 kB / 1.332 GB, free: 72.22 MB / 442.7 MB Notification: Performance of SimCode: time 1.54e-06/4.766, allocations: 1.875 kB / 1.332 GB, free: 72.22 MB / 442.7 MB Notification: Performance of Templates: time 0.7346/5.501, allocations: 221.1 MB / 1.548 GB, free: 33.43 MB / 442.7 MB