Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.17e-05/3.19e-05, allocations: 0 / 255.4 MB, free: 2.695 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0796/0.07965, allocations: 44.5 MB / 299.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3548/0.4345, allocations: 94.14 MB / 394 MB, free: 18.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.4347, allocations: 86.84 kB / 394.1 MB, free: 18.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7574/1.192, allocations: 126.2 MB / 0.5081 GB, free: 59.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.561e-06/1.192, allocations: 0 / 0.5081 GB, free: 59.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.00035/1.193, allocations: 112.8 kB / 0.5082 GB, free: 59.6 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: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.0209/1.214, allocations: 6.319 MB / 0.5144 GB, free: 58.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/1.214, allocations: 10.36 kB / 0.5144 GB, free: 58.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04255/1.256, allocations: 8.308 MB / 0.5225 GB, free: 58.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02153/1.278, allocations: 7.258 MB / 0.5296 GB, free: 57.76 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005236/1.278, allocations: 450.9 kB / 0.53 GB, free: 57.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002859/1.281, allocations: 0.5914 MB / 0.5306 GB, free: 57.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03735/1.319, allocations: 15.5 MB / 0.5457 GB, free: 54.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002893/1.319, allocations: 71.48 kB / 0.5458 GB, free: 54.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002048/1.321, allocations: 285.6 kB / 0.5461 GB, free: 54.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002752/1.324, allocations: 1.606 MB / 0.5476 GB, free: 54.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03321/1.357, allocations: 13.53 MB / 0.5608 GB, free: 54.56 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08832/1.445, allocations: 63.97 MB / 0.6233 GB, free: 24.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01776/1.463, allocations: 6.364 MB / 0.6295 GB, free: 18.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005309/1.468, allocations: 3.463 MB / 0.6329 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02812/1.497, allocations: 14.33 MB / 0.6469 GB, free: 2.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.55e-05/1.497, allocations: 60.5 kB / 0.647 GB, free: 2.254 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 7.824e-06/1.497, allocations: 3.188 kB / 0.647 GB, free: 2.254 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.3673/1.864, allocations: 30.04 MB / 0.6763 GB, free: 87.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.275e-05/1.864, allocations: 214.2 kB / 0.6765 GB, free: 86.81 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01235/1.877, allocations: 4.759 MB / 0.6812 GB, free: 86.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007268/1.877, allocations: 73.69 kB / 0.6812 GB, free: 86.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003456/1.881, allocations: 4.425 MB / 0.6855 GB, free: 84.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001703/1.883, allocations: 1.244 MB / 0.6868 GB, free: 84.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001314/1.884, allocations: 174.8 kB / 0.6869 GB, free: 84.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001001/1.885, allocations: 0.6805 MB / 0.6876 GB, free: 83.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008983/1.894, allocations: 4.454 MB / 0.6919 GB, free: 83.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01155/1.906, allocations: 9.352 MB / 0.7011 GB, free: 77.58 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01238/1.918, allocations: 6.394 MB / 0.7073 GB, free: 77.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001682/1.918, allocations: 51.06 kB / 0.7074 GB, free: 77.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05246/1.971, allocations: 18.01 MB / 0.725 GB, free: 75.51 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000135/1.971, allocations: 79.78 kB / 0.725 GB, free: 75.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001981/1.971, allocations: 174.5 kB / 0.7252 GB, free: 75.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02802/1.999, allocations: 5.625 MB / 0.7307 GB, free: 74.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009804/2.009, allocations: 2.042 MB / 0.7327 GB, free: 74.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04072/2.05, allocations: 23.6 MB / 0.7557 GB, free: 63.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009468/2.059, allocations: 0.5518 MB / 0.7563 GB, free: 63.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002045/2.061, allocations: 0.502 MB / 0.7568 GB, free: 63.21 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003204/2.065, allocations: 0.7441 MB / 0.7575 GB, free: 62.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001352/2.066, allocations: 0.5039 MB / 0.758 GB, free: 62.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03614/2.102, allocations: 12.26 MB / 0.77 GB, free: 56.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-05/2.102, allocations: 57.19 kB / 0.77 GB, free: 56.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.356e-05/2.102, allocations: 8 kB / 0.77 GB, free: 56.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.415e-05/2.102, allocations: 15.44 kB / 0.77 GB, free: 56.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05881/2.161, allocations: 23.84 MB / 0.7933 GB, free: 36.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.385e-05/2.161, allocations: 4 kB / 0.7933 GB, free: 36.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003671/2.165, allocations: 0.5692 MB / 0.7939 GB, free: 36.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02175/2.187, allocations: 4.64 MB / 0.7984 GB, free: 31.78 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007019/2.188, allocations: 56.62 kB / 0.7985 GB, free: 31.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02979/2.217, allocations: 18.91 MB / 0.8169 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.259e-05/2.217, allocations: 11.94 kB / 0.8169 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2935/2.511, allocations: 17.24 MB / 0.8338 GB, free: 76.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003888/2.515, allocations: 1.211 MB / 0.835 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001792/2.517, allocations: 51.58 kB / 0.835 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004741/2.521, allocations: 249.7 kB / 0.8352 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001114/2.523, allocations: 192.3 kB / 0.8354 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005512/2.523, allocations: 86.77 kB / 0.8355 GB, free: 76.65 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008002/2.531, allocations: 3.303 MB / 0.8387 GB, free: 76.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.069e-06/2.531, allocations: 0 / 0.8387 GB, free: 76.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01043/2.542, allocations: 1.697 MB / 0.8404 GB, free: 76.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001051/2.543, allocations: 219.6 kB / 0.8406 GB, free: 76.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01927/2.562, allocations: 10.04 MB / 0.8504 GB, free: 76.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/2.562, allocations: 3.875 kB / 0.8504 GB, free: 76.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007603/2.57, allocations: 3.855 MB / 0.8542 GB, free: 76.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004387/2.574, allocations: 0.5664 MB / 0.8547 GB, free: 76.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0304/2.605, allocations: 13.42 MB / 0.8678 GB, free: 73.74 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01013/2.615, allocations: 4.745 MB / 0.8725 GB, free: 72.16 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01046/2.625, allocations: 2.981 MB / 0.8754 GB, free: 72.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002252/2.628, allocations: 358.6 kB / 0.8757 GB, free: 72.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.965e-06/2.628, allocations: 0 / 0.8757 GB, free: 72.1 MB / 426.7 MB Notification: Performance of Templates: time 0.1718/2.799, allocations: 72.31 MB / 0.9463 GB, free: 27.31 MB / 426.7 MB