Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadModel(Modelica): time 1.842/1.842, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.562e-05/3.58e-05, allocations: 3.281 kB / 255.4 MB, free: 3.203 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08064/0.08072, allocations: 44.5 MB / 299.9 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3592/0.44, allocations: 97.7 MB / 397.6 MB, free: 18.29 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.4403, allocations: 89.48 kB / 397.6 MB, free: 18.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4169/0.8572, allocations: 110.4 MB / 0.4961 GB, free: 12.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.713e-06/0.8572, allocations: 3.938 kB / 0.4961 GB, free: 12.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003816/0.8576, allocations: 100 kB / 0.4962 GB, free: 12.13 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: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.0174/0.875, allocations: 4.913 MB / 0.501 GB, free: 7.148 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.8751, allocations: 11.97 kB / 0.501 GB, free: 7.137 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03955/0.9147, allocations: 6.904 MB / 0.5078 GB, free: 220 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2672/1.182, allocations: 6.737 MB / 0.5144 GB, free: 65.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005426/1.183, allocations: 392.6 kB / 0.5147 GB, free: 65.85 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002354/1.185, allocations: 0.5103 MB / 0.5152 GB, free: 65.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03265/1.218, allocations: 12.48 MB / 0.5274 GB, free: 63.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002781/1.218, allocations: 68 kB / 0.5275 GB, free: 63.27 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001626/1.22, allocations: 239.4 kB / 0.5277 GB, free: 63.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001805/1.221, allocations: 1.042 MB / 0.5287 GB, free: 63.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04669/1.268, allocations: 10.19 MB / 0.5387 GB, free: 63.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1175/1.386, allocations: 50.11 MB / 0.5876 GB, free: 29.87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01758/1.403, allocations: 4.749 MB / 0.5923 GB, free: 28.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00334/1.407, allocations: 1.878 MB / 0.5941 GB, free: 27.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01417/1.421, allocations: 7.05 MB / 0.601 GB, free: 23.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/1.421, allocations: 57.27 kB / 0.601 GB, free: 23.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 7.922e-06/1.421, allocations: 3.531 kB / 0.601 GB, free: 23.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=224): time 0.07765/1.499, allocations: 17.08 MB / 0.6177 GB, free: 15.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/1.499, allocations: 201.9 kB / 0.6179 GB, free: 15.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007754/1.507, allocations: 3.87 MB / 0.6217 GB, free: 11.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003887/1.507, allocations: 61.7 kB / 0.6217 GB, free: 11.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002292/1.509, allocations: 3.439 MB / 0.6251 GB, free: 8.773 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009569/1.51, allocations: 0.8327 MB / 0.6259 GB, free: 8.039 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005915/1.511, allocations: 134.3 kB / 0.626 GB, free: 7.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000375/1.511, allocations: 0.5763 MB / 0.6266 GB, free: 7.402 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004147/1.515, allocations: 2.107 MB / 0.6287 GB, free: 5.488 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006849/1.522, allocations: 5.803 MB / 0.6343 GB, free: 14.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007514/1.53, allocations: 3.504 MB / 0.6378 GB, free: 11.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001266/1.53, allocations: 36 kB / 0.6378 GB, free: 11.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02253/1.553, allocations: 8.145 MB / 0.6457 GB, free: 4.094 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/1.553, allocations: 65 kB / 0.6458 GB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000222/1.553, allocations: 132 kB / 0.6459 GB, free: 3.906 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004398/1.557, allocations: 1.022 MB / 0.6469 GB, free: 3.129 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006581/1.564, allocations: 1.422 MB / 0.6483 GB, free: 1.883 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01397/1.578, allocations: 6.872 MB / 0.655 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006395/1.585, allocations: 331.4 kB / 0.6553 GB, free: 11.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001388/1.586, allocations: 382.6 kB / 0.6557 GB, free: 11.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 764 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001638/1.588, allocations: 0.5946 MB / 0.6563 GB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/1.589, allocations: 406.7 kB / 0.6567 GB, free: 10.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009808/1.599, allocations: 3.601 MB / 0.6602 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-05/1.599, allocations: 24 kB / 0.6602 GB, free: 7.164 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.451e-05/1.599, allocations: 11.94 kB / 0.6602 GB, free: 7.156 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.056e-05/1.599, allocations: 17.88 kB / 0.6602 GB, free: 7.148 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2705/1.869, allocations: 9.941 MB / 0.67 GB, free: 85.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.079e-05/1.869, allocations: 3.906 kB / 0.67 GB, free: 85.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002294/1.872, allocations: 351 kB / 0.6703 GB, free: 85.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003987/1.876, allocations: 0.7896 MB / 0.6711 GB, free: 85.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003949/1.876, allocations: 46.81 kB / 0.6711 GB, free: 85.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/1.887, allocations: 5.582 MB / 0.6766 GB, free: 84.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/1.887, allocations: 13.2 kB / 0.6766 GB, free: 84.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/1.901, allocations: 6.935 MB / 0.6833 GB, free: 83.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002221/1.903, allocations: 0.7067 MB / 0.684 GB, free: 82.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001074/1.904, allocations: 41.12 kB / 0.6841 GB, free: 82.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002629/1.907, allocations: 100.1 kB / 0.6842 GB, free: 82.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005042/1.908, allocations: 151.2 kB / 0.6843 GB, free: 82.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002226/1.908, allocations: 67.91 kB / 0.6844 GB, free: 82.94 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00624/1.914, allocations: 2.723 MB / 0.687 GB, free: 82.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.252e-06/1.914, allocations: 0 / 0.687 GB, free: 82.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007765/1.922, allocations: 1.171 MB / 0.6882 GB, free: 82.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008135/1.923, allocations: 226.1 kB / 0.6884 GB, free: 82.65 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009898/1.933, allocations: 5.101 MB / 0.6934 GB, free: 82.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.389e-06/1.933, allocations: 0 / 0.6934 GB, free: 82.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003411/1.936, allocations: 1.73 MB / 0.6951 GB, free: 82.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003719/1.94, allocations: 0.5052 MB / 0.6956 GB, free: 82.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02358/1.964, allocations: 9.562 MB / 0.7049 GB, free: 80.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00734/1.971, allocations: 3.975 MB / 0.7088 GB, free: 79.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/1.972, allocations: 316.4 kB / 0.7091 GB, free: 79.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.851e-06/1.972, allocations: 0 / 0.7091 GB, free: 79.59 MB / 426.7 MB Notification: Performance of Templates: time 0.1265/2.099, allocations: 85.38 MB / 0.7925 GB, free: 33.39 MB / 426.7 MB