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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 1.805/1.805, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.717e-05/2.74e-05, allocations: 3.031 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08226/0.0823, allocations: 44.5 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.353/0.4353, allocations: 88.73 MB / 388.6 MB, free: 20.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.4356, allocations: 88.27 kB / 388.7 MB, free: 20.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4543/0.8899, allocations: 122.7 MB / 0.4993 GB, free: 9.004 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.891e-06/0.8899, allocations: 0 / 0.4993 GB, free: 9.004 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004376/0.8904, allocations: 123.9 kB / 0.4994 GB, free: 8.883 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: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.02389/0.9143, allocations: 6.512 MB / 0.5058 GB, free: 2.297 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.9143, allocations: 8.031 kB / 0.5058 GB, free: 2.289 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2881/1.202, allocations: 9.422 MB / 0.515 GB, free: 56.21 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02508/1.228, allocations: 8.56 MB / 0.5234 GB, free: 55.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004958/1.228, allocations: 435.1 kB / 0.5238 GB, free: 55.75 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00259/1.231, allocations: 0.58 MB / 0.5244 GB, free: 55.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03759/1.268, allocations: 14.69 MB / 0.5387 GB, free: 52.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003903/1.269, allocations: 84.33 kB / 0.5388 GB, free: 52.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002164/1.271, allocations: 272.3 kB / 0.539 GB, free: 52.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00264/1.274, allocations: 1.444 MB / 0.5404 GB, free: 52.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03285/1.307, allocations: 12.81 MB / 0.553 GB, free: 52.52 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08931/1.396, allocations: 64.65 MB / 0.6161 GB, free: 25.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02498/1.421, allocations: 7.8 MB / 0.6237 GB, free: 20.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007578/1.429, allocations: 5.151 MB / 0.6287 GB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02644/1.455, allocations: 12.99 MB / 0.6414 GB, free: 4.961 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.896e-05/1.455, allocations: 71.38 kB / 0.6415 GB, free: 4.883 MB / 410.7 MB Notification: Performance of pre-optimization done (n=340): time 8.458e-06/1.455, allocations: 0 / 0.6415 GB, free: 4.883 MB / 410.7 MB Notification: Performance of matching and sorting (n=604): time 0.5882/2.043, allocations: 79.75 MB / 0.7194 GB, free: 77.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/2.044, allocations: 270.8 kB / 0.7196 GB, free: 77.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01058/2.054, allocations: 4.703 MB / 0.7242 GB, free: 77.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001781/2.056, allocations: 116.8 kB / 0.7243 GB, free: 77.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003145/2.059, allocations: 3.791 MB / 0.728 GB, free: 75.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003438/2.063, allocations: 2.109 MB / 0.7301 GB, free: 73.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002235/2.065, allocations: 191.3 kB / 0.7303 GB, free: 73.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008575/2.066, allocations: 0.7158 MB / 0.731 GB, free: 72.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01613/2.082, allocations: 8.552 MB / 0.7393 GB, free: 69.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01886/2.101, allocations: 12.64 MB / 0.7517 GB, free: 60.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0202/2.121, allocations: 10.51 MB / 0.7619 GB, free: 57.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000125/2.121, allocations: 45.31 kB / 0.762 GB, free: 57.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1129/2.234, allocations: 39.85 MB / 0.8009 GB, free: 27.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/2.234, allocations: 64 kB / 0.801 GB, free: 27.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/2.234, allocations: 140 kB / 0.8011 GB, free: 26.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3381/2.573, allocations: 21.5 MB / 0.8221 GB, free: 68.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006758/2.579, allocations: 1.434 MB / 0.8235 GB, free: 68.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2976/2.877, allocations: 144.4 MB / 0.9645 GB, free: 1.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01286/2.89, allocations: 0.7251 MB / 0.9652 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002858/2.893, allocations: 0.537 MB / 0.9657 GB, free: 0.5078 MB / 426.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.004644/2.898, allocations: 0.7211 MB / 0.9664 GB, free: 4 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005417/2.903, allocations: 0.7393 MB / 0.9671 GB, free: 0 / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.367/3.27, allocations: 36.84 MB / 1.003 GB, free: 83.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.958e-05/3.27, allocations: 62.88 kB / 1.003 GB, free: 83.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001228/3.27, allocations: 61.56 kB / 1.003 GB, free: 83.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001025/3.271, allocations: 30.27 kB / 1.003 GB, free: 83.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1485/3.419, allocations: 57.03 MB / 1.059 GB, free: 74.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.579e-05/3.419, allocations: 0 / 1.059 GB, free: 74.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001949/3.421, allocations: 274.1 kB / 1.059 GB, free: 74.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08076/3.502, allocations: 20.72 MB / 1.079 GB, free: 64.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001887/3.504, allocations: 104.9 kB / 1.08 GB, free: 64.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5352/4.039, allocations: 132.2 MB / 1.209 GB, free: 64.36 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.826e-06/4.039, allocations: 4.562 kB / 1.209 GB, free: 64.36 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.123/4.162, allocations: 48.55 MB / 1.256 GB, free: 35.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007219/4.169, allocations: 2.398 MB / 1.258 GB, free: 33.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003093/4.173, allocations: 92 kB / 1.259 GB, free: 33.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008486/4.181, allocations: 0.4934 MB / 1.259 GB, free: 32.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004128/4.185, allocations: 0.5033 MB / 1.259 GB, free: 32.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00157/4.187, allocations: 151.9 kB / 1.26 GB, free: 32.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007768/4.195, allocations: 3.35 MB / 1.263 GB, free: 29.56 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-06/4.195, allocations: 0 / 1.263 GB, free: 29.56 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01695/4.212, allocations: 3.44 MB / 1.266 GB, free: 26.13 MB / 442.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.002021/4.214, allocations: 234.4 kB / 1.266 GB, free: 25.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.05062/4.264, allocations: 24.18 MB / 1.29 GB, free: 4.582 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.189e-06/4.264, allocations: 2.375 kB / 1.29 GB, free: 4.582 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2937/4.558, allocations: 14.69 MB / 1.304 GB, free: 76.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006102/4.564, allocations: 0.7 MB / 1.305 GB, free: 76.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05096/4.615, allocations: 21.81 MB / 1.326 GB, free: 73.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01177/4.627, allocations: 5.313 MB / 1.332 GB, free: 73.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001639/4.629, allocations: 348.7 kB / 1.332 GB, free: 73 MB / 442.7 MB Notification: Performance of SimCode: time 2.434e-06/4.629, allocations: 0 / 1.332 GB, free: 73 MB / 442.7 MB Notification: Performance of Templates: time 0.5985/5.227, allocations: 227.3 MB / 1.554 GB, free: 39.61 MB / 442.7 MB