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.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.648/1.648, allocations: 171.2 MB / 183.3 MB, free: 12.06 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.903e-05/2.9e-05, allocations: 7.984 kB / 225 MB, free: 2.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2119, allocations: 38.76 MB / 263.8 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1266/0.3386, allocations: 83.02 MB / 346.8 MB, free: 6.68 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.3389, allocations: 83.95 kB / 346.9 MB, free: 6.598 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6009/0.9398, allocations: 122.4 MB / 469.3 MB, free: 4.078 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.156e-06/0.9399, allocations: 0 / 469.3 MB, free: 4.078 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003791/0.9403, allocations: 124 kB / 469.4 MB, free: 3.957 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2049 * Number of variables: 2049 Notification: Performance of Generate backend data structure: time 0.02118/0.9615, allocations: 6.504 MB / 475.9 MB, free: 13.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.9615, allocations: 8.031 kB / 475.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04882/1.01, allocations: 9.423 MB / 485.3 MB, free: 3.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02672/1.037, allocations: 8.556 MB / 493.9 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006488/1.038, allocations: 427.3 kB / 494.3 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002712/1.041, allocations: 0.5738 MB / 494.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2951/1.336, allocations: 14.61 MB / 0.4975 GB, free: 49.76 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004332/1.336, allocations: 81.7 kB / 0.4976 GB, free: 49.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002104/1.338, allocations: 276.1 kB / 0.4979 GB, free: 49.76 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002531/1.341, allocations: 1.432 MB / 0.4993 GB, free: 49.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03715/1.378, allocations: 12.59 MB / 0.5116 GB, free: 49.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08437/1.462, allocations: 64.57 MB / 0.5746 GB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02529/1.488, allocations: 7.775 MB / 0.5822 GB, free: 8.043 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007839/1.496, allocations: 5.151 MB / 0.5872 GB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02488/1.521, allocations: 12.99 MB / 0.5999 GB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.464e-05/1.521, allocations: 68.81 kB / 0.6 GB, free: 13.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=340): time 7.913e-06/1.521, allocations: 0 / 0.6 GB, free: 13.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=604): time 0.5278/2.049, allocations: 79.86 MB / 0.678 GB, free: 76.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.889e-05/2.049, allocations: 267.1 kB / 0.6782 GB, free: 76.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01078/2.059, allocations: 4.714 MB / 0.6828 GB, free: 75.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001632/2.061, allocations: 121.1 kB / 0.6829 GB, free: 75.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003261/2.064, allocations: 3.994 MB / 0.6868 GB, free: 72.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003253/2.068, allocations: 2.11 MB / 0.6889 GB, free: 70.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001873/2.07, allocations: 186 kB / 0.6891 GB, free: 70.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006861/2.07, allocations: 0.711 MB / 0.6898 GB, free: 70.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01642/2.087, allocations: 8.554 MB / 0.6981 GB, free: 67.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01848/2.105, allocations: 12.58 MB / 0.7104 GB, free: 58.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01928/2.125, allocations: 10.51 MB / 0.7207 GB, free: 51.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/2.125, allocations: 36 kB / 0.7207 GB, free: 51.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1096/2.234, allocations: 39.7 MB / 0.7595 GB, free: 18.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001115/2.235, allocations: 67.98 kB / 0.7596 GB, free: 18.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001545/2.235, allocations: 136 kB / 0.7597 GB, free: 18.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.312/2.547, allocations: 21.51 MB / 0.7807 GB, free: 70.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006146/2.553, allocations: 1.43 MB / 0.7821 GB, free: 70.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.527/3.08, allocations: 144.4 MB / 0.9231 GB, free: 73.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01255/3.093, allocations: 0.7272 MB / 0.9238 GB, free: 73.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002815/3.096, allocations: 0.5237 MB / 0.9243 GB, free: 73.48 MB / 394.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.004297/3.1, allocations: 0.7313 MB / 0.9251 GB, free: 73.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002222/3.102, allocations: 0.5894 MB / 0.9256 GB, free: 73.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1034/3.206, allocations: 36.12 MB / 0.9609 GB, free: 71.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.102e-05/3.206, allocations: 61.25 kB / 0.961 GB, free: 71.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001264/3.206, allocations: 61.25 kB / 0.961 GB, free: 71.78 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001139/3.206, allocations: 33.2 kB / 0.9611 GB, free: 71.78 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1403/3.346, allocations: 57.02 MB / 1.017 GB, free: 38.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-05/3.346, allocations: 4 kB / 1.017 GB, free: 38.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/3.348, allocations: 277.1 kB / 1.017 GB, free: 37.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07517/3.423, allocations: 20.71 MB / 1.037 GB, free: 17.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001786/3.425, allocations: 99.98 kB / 1.037 GB, free: 17.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6065/4.032, allocations: 132.2 MB / 1.166 GB, free: 24.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/4.032, allocations: 0 / 1.166 GB, free: 24.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3551/4.387, allocations: 48.9 MB / 1.214 GB, free: 71.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007164/4.394, allocations: 2.406 MB / 1.217 GB, free: 71.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002785/4.397, allocations: 98.11 kB / 1.217 GB, free: 71.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008084/4.405, allocations: 0.4921 MB / 1.217 GB, free: 71.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00389/4.409, allocations: 0.507 MB / 1.218 GB, free: 71.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001518/4.411, allocations: 141 kB / 1.218 GB, free: 71.32 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007996/4.419, allocations: 3.356 MB / 1.221 GB, free: 71.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.709e-06/4.419, allocations: 0 / 1.221 GB, free: 71.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01587/4.435, allocations: 3.44 MB / 1.224 GB, free: 71.12 MB / 394.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.001883/4.436, allocations: 240.9 kB / 1.225 GB, free: 71.04 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.04996/4.486, allocations: 23.76 MB / 1.248 GB, free: 68.44 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.61e-06/4.486, allocations: 3.75 kB / 1.248 GB, free: 68.44 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04704/4.534, allocations: 13.36 MB / 1.261 GB, free: 62.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008998/4.543, allocations: 0.7173 MB / 1.262 GB, free: 62.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06814/4.611, allocations: 21.04 MB / 1.282 GB, free: 45.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01712/4.628, allocations: 5.306 MB / 1.287 GB, free: 42.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.01413/4.642, allocations: 2.086 MB / 1.289 GB, free: 40.83 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002333/4.645, allocations: 298.9 kB / 1.29 GB, free: 40.55 MB / 394.7 MB Notification: Performance of SimCode: time 3.072e-06/4.645, allocations: 0 / 1.29 GB, free: 40.55 MB / 394.7 MB Notification: Performance of Templates: time 0.9472/5.592, allocations: 221.1 MB / 1.506 GB, free: 78.74 MB / 426.7 MB