Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.974e-05, allocations: 4 kB / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.08985, allocations: 50.42 MB / 342.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3977/0.4876, allocations: 101.6 MB / 444.2 MB, free: 8.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4879, allocations: 84.02 kB / 444.3 MB, free: 8.781 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7947/1.283, allocations: 128.5 MB / 0.5594 GB, free: 94.81 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.32e-06/1.283, allocations: 3.906 kB / 0.5594 GB, free: 94.81 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003487/1.283, allocations: 121.8 kB / 0.5595 GB, free: 94.81 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.02087/1.304, allocations: 6.319 MB / 0.5657 GB, free: 92.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/1.304, allocations: 7.875 kB / 0.5657 GB, free: 92.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04429/1.348, allocations: 8.319 MB / 0.5738 GB, free: 91.94 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02111/1.369, allocations: 6.954 MB / 0.5806 GB, free: 91.12 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005389/1.37, allocations: 453.4 kB / 0.581 GB, free: 91.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004097/1.374, allocations: 0.5939 MB / 0.5816 GB, free: 91.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0396/1.414, allocations: 15.53 MB / 0.5968 GB, free: 84.87 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003172/1.414, allocations: 71.89 kB / 0.5968 GB, free: 84.83 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002549/1.417, allocations: 295.1 kB / 0.5971 GB, free: 84.67 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002772/1.42, allocations: 1.612 MB / 0.5987 GB, free: 84.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03144/1.451, allocations: 13.53 MB / 0.6119 GB, free: 74.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08068/1.532, allocations: 64.03 MB / 0.6744 GB, free: 10.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01675/1.549, allocations: 6.357 MB / 0.6806 GB, free: 3.574 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005368/1.554, allocations: 3.473 MB / 0.684 GB, free: 92 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2938/1.848, allocations: 14.28 MB / 0.698 GB, free: 83.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/1.848, allocations: 62.31 kB / 0.698 GB, free: 83.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 8.124e-06/1.848, allocations: 0 / 0.698 GB, free: 83.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.115/1.963, allocations: 29.56 MB / 0.7269 GB, free: 80.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/1.963, allocations: 211.9 kB / 0.7271 GB, free: 80.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01005/1.973, allocations: 4.774 MB / 0.7318 GB, free: 78.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007192/1.974, allocations: 70.77 kB / 0.7318 GB, free: 78.41 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003038/1.977, allocations: 4.298 MB / 0.736 GB, free: 75.07 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001699/1.979, allocations: 1.247 MB / 0.7372 GB, free: 74.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009852/1.98, allocations: 170.8 kB / 0.7374 GB, free: 74.03 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006562/1.98, allocations: 0.6916 MB / 0.7381 GB, free: 73.56 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009224/1.99, allocations: 4.457 MB / 0.7424 GB, free: 71.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0116/2.001, allocations: 9.373 MB / 0.7516 GB, free: 63.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/2.013, allocations: 6.403 MB / 0.7578 GB, free: 61.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001552/2.013, allocations: 49.56 kB / 0.7579 GB, free: 61.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.05149/2.065, allocations: 17.87 MB / 0.7753 GB, free: 54.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001461/2.065, allocations: 80.94 kB / 0.7754 GB, free: 54.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002066/2.065, allocations: 173.1 kB / 0.7756 GB, free: 53.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02576/2.091, allocations: 5.636 MB / 0.7811 GB, free: 50.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00956/2.101, allocations: 2.05 MB / 0.7831 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03697/2.138, allocations: 23.62 MB / 0.8062 GB, free: 28.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009894/2.148, allocations: 0.5409 MB / 0.8067 GB, free: 27.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002038/2.15, allocations: 0.5026 MB / 0.8072 GB, free: 27.11 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.002999/2.153, allocations: 0.7542 MB / 0.8079 GB, free: 26.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001255/2.154, allocations: 0.497 MB / 0.8084 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0366/2.191, allocations: 12.27 MB / 0.8204 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000108/2.191, allocations: 58.02 kB / 0.8204 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.703e-05/2.191, allocations: 11.5 kB / 0.8205 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.013e-05/2.191, allocations: 15.95 kB / 0.8205 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06545/2.256, allocations: 23.82 MB / 0.8437 GB, free: 6.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.902e-05/2.256, allocations: 7.984 kB / 0.8437 GB, free: 6.242 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004201/2.261, allocations: 0.5655 MB / 0.8443 GB, free: 5.676 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3036/2.564, allocations: 4.639 MB / 0.8488 GB, free: 89.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007492/2.565, allocations: 59.91 kB / 0.8489 GB, free: 89.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03464/2.6, allocations: 18.93 MB / 0.8674 GB, free: 86.43 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-05/2.6, allocations: 5.75 kB / 0.8674 GB, free: 86.43 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04234/2.642, allocations: 17.27 MB / 0.8842 GB, free: 82.54 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001503/2.644, allocations: 0.5273 MB / 0.8847 GB, free: 82.42 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001626/2.645, allocations: 61.73 kB / 0.8848 GB, free: 82.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00433/2.65, allocations: 243.5 kB / 0.885 GB, free: 82.35 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/2.651, allocations: 196 kB / 0.8852 GB, free: 82.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005339/2.651, allocations: 82.69 kB / 0.8853 GB, free: 82.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007974/2.659, allocations: 3.307 MB / 0.8885 GB, free: 81.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.234e-06/2.659, allocations: 3.562 kB / 0.8885 GB, free: 81.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01027/2.67, allocations: 1.706 MB / 0.8902 GB, free: 81 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.001018/2.671, allocations: 212.2 kB / 0.8904 GB, free: 80.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01937/2.69, allocations: 10.06 MB / 0.9002 GB, free: 77.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/2.69, allocations: 3.125 kB / 0.9002 GB, free: 77.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007465/2.698, allocations: 3.875 MB / 0.904 GB, free: 75.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004293/2.702, allocations: 0.5686 MB / 0.9046 GB, free: 75.63 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03221/2.734, allocations: 14.13 MB / 0.9184 GB, free: 70.32 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01031/2.745, allocations: 4.751 MB / 0.923 GB, free: 68.74 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002577/2.747, allocations: 414.5 kB / 0.9234 GB, free: 68.72 MB / 458.7 MB Notification: Performance of SimCode: time 1.825e-06/2.747, allocations: 7.406 kB / 0.9234 GB, free: 68.72 MB / 458.7 MB Notification: Performance of Templates: time 0.4875/3.235, allocations: 141 MB / 1.061 GB, free: 105.3 MB / 474.7 MB