Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.659e-05/2.667e-05, allocations: 4 kB / 292.1 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.08903, allocations: 50.42 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3821/0.4711, allocations: 101.6 MB / 444.1 MB, free: 8.945 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.4714, allocations: 90.58 kB / 444.2 MB, free: 8.902 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7309/1.202, allocations: 128.5 MB / 0.5593 GB, free: 94.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.999e-06/1.202, allocations: 0 / 0.5593 GB, free: 94.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003166/1.203, allocations: 114.8 kB / 0.5594 GB, free: 94.92 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01978/1.223, allocations: 6.327 MB / 0.5656 GB, free: 92.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/1.223, allocations: 7.375 kB / 0.5656 GB, free: 92.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04324/1.266, allocations: 8.318 MB / 0.5737 GB, free: 92.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02106/1.287, allocations: 6.965 MB / 0.5805 GB, free: 91.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000485/1.287, allocations: 446.9 kB / 0.581 GB, free: 91.22 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002693/1.29, allocations: 0.586 MB / 0.5815 GB, free: 91.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03574/1.326, allocations: 15.53 MB / 0.5967 GB, free: 84.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002506/1.326, allocations: 71.88 kB / 0.5968 GB, free: 84.87 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001621/1.328, allocations: 289.8 kB / 0.5971 GB, free: 84.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002535/1.33, allocations: 1.614 MB / 0.5986 GB, free: 84.42 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03032/1.361, allocations: 13.54 MB / 0.6119 GB, free: 73.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07767/1.438, allocations: 64.02 MB / 0.6744 GB, free: 10.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01639/1.455, allocations: 6.37 MB / 0.6806 GB, free: 3.465 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2656/1.721, allocations: 3.468 MB / 0.684 GB, free: 87.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03032/1.751, allocations: 14.28 MB / 0.6979 GB, free: 83.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.099e-05/1.751, allocations: 58.22 kB / 0.698 GB, free: 83.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 8.838e-06/1.751, allocations: 5.406 kB / 0.698 GB, free: 83.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.1156/1.867, allocations: 29.56 MB / 0.7268 GB, free: 80.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.458e-05/1.867, allocations: 217.6 kB / 0.7271 GB, free: 80.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0091/1.876, allocations: 4.77 MB / 0.7317 GB, free: 78.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006877/1.877, allocations: 73.97 kB / 0.7318 GB, free: 78.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003406/1.88, allocations: 4.43 MB / 0.7361 GB, free: 74.99 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001822/1.882, allocations: 1.244 MB / 0.7373 GB, free: 74.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0011/1.883, allocations: 174.3 kB / 0.7375 GB, free: 73.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008578/1.884, allocations: 0.6772 MB / 0.7382 GB, free: 73.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008639/1.893, allocations: 4.464 MB / 0.7425 GB, free: 71.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01156/1.904, allocations: 9.377 MB / 0.7517 GB, free: 63.59 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/1.916, allocations: 6.4 MB / 0.7579 GB, free: 61.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001388/1.916, allocations: 49.19 kB / 0.758 GB, free: 61.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.0508/1.967, allocations: 18.04 MB / 0.7756 GB, free: 53.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001286/1.967, allocations: 80 kB / 0.7757 GB, free: 53.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001877/1.967, allocations: 172 kB / 0.7758 GB, free: 53.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02581/1.993, allocations: 5.628 MB / 0.7813 GB, free: 50.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009084/2.002, allocations: 2.049 MB / 0.7833 GB, free: 48.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03601/2.038, allocations: 23.64 MB / 0.8064 GB, free: 27.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009312/2.047, allocations: 0.5399 MB / 0.8069 GB, free: 27.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001905/2.049, allocations: 0.5076 MB / 0.8074 GB, free: 26.81 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (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.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 (1060): * Single equations (assignments): 1052 * 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.002095/2.052, allocations: 0.745 MB / 0.8082 GB, free: 26.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001204/2.053, allocations: 0.4975 MB / 0.8086 GB, free: 25.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03519/2.088, allocations: 12.27 MB / 0.8206 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001011/2.088, allocations: 53.33 kB / 0.8207 GB, free: 14.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.347e-05/2.088, allocations: 8 kB / 0.8207 GB, free: 14.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-05/2.088, allocations: 19.94 kB / 0.8207 GB, free: 14.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06385/2.152, allocations: 23.83 MB / 0.844 GB, free: 5.914 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.085e-05/2.152, allocations: 9.078 kB / 0.844 GB, free: 5.906 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003963/2.156, allocations: 0.5763 MB / 0.8445 GB, free: 5.332 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3034/2.46, allocations: 4.635 MB / 0.8491 GB, free: 89.26 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007782/2.46, allocations: 58.77 kB / 0.8491 GB, free: 89.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03394/2.494, allocations: 18.92 MB / 0.8676 GB, free: 86.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.296e-05/2.494, allocations: 11.34 kB / 0.8676 GB, free: 86.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04214/2.537, allocations: 17.26 MB / 0.8845 GB, free: 82.67 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/2.538, allocations: 0.5269 MB / 0.885 GB, free: 82.55 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/2.539, allocations: 56.62 kB / 0.885 GB, free: 82.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004172/2.544, allocations: 252.2 kB / 0.8853 GB, free: 82.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000979/2.545, allocations: 192 kB / 0.8855 GB, free: 82.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004479/2.545, allocations: 85.75 kB / 0.8855 GB, free: 82.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007189/2.552, allocations: 3.309 MB / 0.8888 GB, free: 81.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.312e-06/2.552, allocations: 0 / 0.8888 GB, free: 81.32 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009981/2.562, allocations: 1.706 MB / 0.8904 GB, free: 81.14 MB / 458.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.001019/2.563, allocations: 215.3 kB / 0.8906 GB, free: 81.01 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01881/2.582, allocations: 10.06 MB / 0.9005 GB, free: 77.61 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.755e-06/2.582, allocations: 0 / 0.9005 GB, free: 77.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007361/2.59, allocations: 3.865 MB / 0.9042 GB, free: 76.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003781/2.593, allocations: 0.5745 MB / 0.9048 GB, free: 75.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02913/2.623, allocations: 13.43 MB / 0.9179 GB, free: 70.87 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009667/2.632, allocations: 4.742 MB / 0.9226 GB, free: 69.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01046/2.643, allocations: 2.984 MB / 0.9255 GB, free: 69.25 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002262/2.645, allocations: 355.2 kB / 0.9258 GB, free: 69.23 MB / 458.7 MB Notification: Performance of SimCode: time 1.858e-06/2.645, allocations: 0 / 0.9258 GB, free: 69.23 MB / 458.7 MB Notification: Performance of Templates: time 0.1685/2.814, allocations: 72.46 MB / 0.9966 GB, free: 10.9 MB / 458.7 MB