Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadModel(Modelica): time 2.082/2.082, allocations: 224.8 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.299e-05/3.326e-05, allocations: 5.406 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1197, allocations: 50.42 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.4039/0.5236, allocations: 61.97 MB / 407 MB, free: 3.09 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07695/0.6007, allocations: 13.59 MB / 420.5 MB, free: 2.699 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02928/0.63, allocations: 342 kB / 420.9 MB, free: 2.699 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01571/0.6458, allocations: 3.221 MB / 424.1 MB, free: 1.891 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04844/0.6943, allocations: 8.867 MB / 433 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007747/0.7021, allocations: 0.9557 MB / 433.9 MB, free: 14.63 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.256/0.9582, allocations: 70.39 MB / 0.4925 GB, free: 4.594 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01292/0.9711, allocations: 5.939 MB / 0.4983 GB, free: 14.81 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003817/0.975, allocations: 1.322 MB / 0.4996 GB, free: 13.54 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005027/0.9801, allocations: 2.077 MB / 0.5016 GB, free: 11.48 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004113/0.9842, allocations: 1.04 MB / 0.5026 GB, free: 10.45 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001739/0.986, allocations: 199.9 kB / 0.5028 GB, free: 10.25 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004181/0.9902, allocations: 2.326 MB / 0.5051 GB, free: 7.934 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00243/0.9927, allocations: 416 kB / 0.5055 GB, free: 7.527 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01338/1.006, allocations: 8.12 MB / 0.5134 GB, free: 15.64 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/1.006, allocations: 0 / 0.5134 GB, free: 15.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.236e-06/1.006, allocations: 0 / 0.5134 GB, free: 15.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003758/1.007, allocations: 0 / 0.5134 GB, free: 15.64 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02404/1.031, allocations: 6.345 MB / 0.5196 GB, free: 9.262 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/1.031, allocations: 8.031 kB / 0.5196 GB, free: 9.254 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1774/1.208, allocations: 16.71 MB / 0.5359 GB, free: 8.512 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01802/1.226, allocations: 5.037 MB / 0.5409 GB, free: 3.449 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005334/1.227, allocations: 336.5 kB / 0.5412 GB, free: 3.164 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002624/1.229, allocations: 475 kB / 0.5416 GB, free: 2.746 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04612/1.276, allocations: 14.67 MB / 0.556 GB, free: 3.285 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00039/1.276, allocations: 67.42 kB / 0.556 GB, free: 3.219 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002173/1.278, allocations: 213.2 kB / 0.5562 GB, free: 3.055 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01035/1.289, allocations: 2.828 MB / 0.559 GB, free: 244 kB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3631/1.652, allocations: 13.23 MB / 0.5719 GB, free: 161.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09848/1.75, allocations: 58.43 MB / 0.629 GB, free: 107.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.031/1.781, allocations: 8.009 MB / 0.6368 GB, free: 99.69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03067/1.812, allocations: 12.8 MB / 0.6493 GB, free: 86.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.967e-05/1.812, allocations: 69.78 kB / 0.6494 GB, free: 86.76 MB / 458.7 MB Notification: Performance of pre-optimization done (n=326): time 7.795e-06/1.812, allocations: 0 / 0.6494 GB, free: 86.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=572): time 4.094/5.906, allocations: 409.1 MB / 1.049 GB, free: 23.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/5.906, allocations: 261.7 kB / 1.049 GB, free: 22.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01193/5.918, allocations: 5.247 MB / 1.054 GB, free: 17.68 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002381/5.921, allocations: 113.7 kB / 1.054 GB, free: 17.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3079/6.229, allocations: 3.808 MB / 1.058 GB, free: 144.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004855/6.234, allocations: 2.001 MB / 1.06 GB, free: 142.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002902/6.237, allocations: 184.6 kB / 1.06 GB, free: 142.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009285/6.237, allocations: 0.7072 MB / 1.061 GB, free: 142.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02702/6.265, allocations: 10.84 MB / 1.071 GB, free: 138.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0287/6.293, allocations: 14.91 MB / 1.086 GB, free: 129.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02839/6.322, allocations: 12.67 MB / 1.098 GB, free: 123.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001516/6.322, allocations: 39.66 kB / 1.098 GB, free: 123.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.9659/7.288, allocations: 140.1 MB / 1.235 GB, free: 126.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000113/7.288, allocations: 61.75 kB / 1.235 GB, free: 126.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002341/7.288, allocations: 139.4 kB / 1.235 GB, free: 126.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1542/7.442, allocations: 34.67 MB / 1.269 GB, free: 116.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008917/7.451, allocations: 1.489 MB / 1.271 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.8277/8.279, allocations: 197.5 MB / 1.464 GB, free: 83.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02245/8.302, allocations: 1.718 MB / 1.465 GB, free: 82.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00325/8.305, allocations: 0.528 MB / 1.466 GB, free: 82.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (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.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 (783): * Single equations (assignments): 776 * 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 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01063/8.316, allocations: 3.041 MB / 1.469 GB, free: 79.91 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003603/8.319, allocations: 0.5832 MB / 1.469 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.964/9.283, allocations: 136.4 MB / 1.603 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001087/9.284, allocations: 61.59 kB / 1.603 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000149/9.284, allocations: 58.34 kB / 1.603 GB, free: 106.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001233/9.284, allocations: 27.89 kB / 1.603 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.179/10.46, allocations: 206.2 MB / 1.804 GB, free: 94.44 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001244/10.46, allocations: 8 kB / 1.804 GB, free: 94.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003337/10.47, allocations: 324.4 kB / 1.804 GB, free: 94.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1593/10.63, allocations: 33.75 MB / 1.837 GB, free: 65.39 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002447/10.63, allocations: 99.98 kB / 1.837 GB, free: 65.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.793/11.42, allocations: 180.6 MB / 2.014 GB, free: 55.47 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/11.42, allocations: 11.84 kB / 2.014 GB, free: 55.46 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.05/12.47, allocations: 153.1 MB / 2.163 GB, free: 71.07 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001968/12.47, allocations: 0.6548 MB / 2.164 GB, free: 70.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004668/12.48, allocations: 99.39 kB / 2.164 GB, free: 70.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01807/12.5, allocations: 1.482 MB / 2.165 GB, free: 69.14 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005353/12.5, allocations: 0.4902 MB / 2.166 GB, free: 68.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002189/12.5, allocations: 141.8 kB / 2.166 GB, free: 68.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009112/12.51, allocations: 3.785 MB / 2.17 GB, free: 64.76 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.001e-06/12.51, allocations: 0 / 2.17 GB, free: 64.76 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01993/12.53, allocations: 3.822 MB / 2.173 GB, free: 60.95 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * 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 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.003142/12.54, allocations: 264.7 kB / 2.174 GB, free: 60.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1011/12.64, allocations: 33.33 MB / 2.206 GB, free: 27.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/12.64, allocations: 4 kB / 2.206 GB, free: 27.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.4008/13.04, allocations: 20.47 MB / 2.226 GB, free: 134.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009858/13.05, allocations: 0.7046 MB / 2.227 GB, free: 134.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09597/13.14, allocations: 30.26 MB / 2.256 GB, free: 128.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01646/13.16, allocations: 5.236 MB / 2.262 GB, free: 127.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0029/13.16, allocations: 365.8 kB / 2.262 GB, free: 127.2 MB / 474.7 MB Notification: Performance of SimCode: time 2.344e-06/13.16, allocations: 0 / 2.262 GB, free: 127.2 MB / 474.7 MB Notification: Performance of Templates: time 0.7698/13.93, allocations: 242.6 MB / 2.499 GB, free: 54.54 MB / 474.7 MB