Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.851e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 50.42 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.4075/0.5163, allocations: 60.25 MB / 405.2 MB, free: 3.117 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04049/0.5569, allocations: 13.34 MB / 418.6 MB, free: 2.738 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01757/0.5745, allocations: 329.6 kB / 418.9 MB, free: 2.738 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0117/0.5862, allocations: 3.085 MB / 422 MB, free: 2.273 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03605/0.6223, allocations: 8.567 MB / 430.6 MB, free: 15.38 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007167/0.6295, allocations: 1.217 MB / 431.8 MB, free: 15.01 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.1231/0.7527, allocations: 48.19 MB / 480 MB, free: 12.57 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01353/0.7662, allocations: 5.732 MB / 485.7 MB, free: 6.98 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004447/0.7707, allocations: 1.487 MB / 487.2 MB, free: 5.539 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005961/0.7768, allocations: 2.493 MB / 489.7 MB, free: 3.07 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00473/0.7815, allocations: 1.13 MB / 490.8 MB, free: 1.941 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002255/0.7839, allocations: 227.9 kB / 491 MB, free: 1.719 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005077/0.789, allocations: 2.673 MB / 493.7 MB, free: 15.05 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002945/0.792, allocations: 456 kB / 494.1 MB, free: 14.61 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01493/0.8069, allocations: 8.861 MB / 0.4912 GB, free: 6.008 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.807, allocations: 0 / 0.4912 GB, free: 6.008 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.807, allocations: 0 / 0.4912 GB, free: 6.008 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004501/0.8075, allocations: 0 / 0.4912 GB, free: 6.008 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02478/0.8323, allocations: 6.75 MB / 0.4978 GB, free: 15.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.8323, allocations: 12.03 kB / 0.4978 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3599/1.192, allocations: 19.39 MB / 0.5167 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02093/1.213, allocations: 5.568 MB / 0.5222 GB, free: 6.195 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005967/1.214, allocations: 373.2 kB / 0.5225 GB, free: 5.883 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002763/1.217, allocations: 0.5073 MB / 0.523 GB, free: 5.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05157/1.268, allocations: 16.35 MB / 0.539 GB, free: 4.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004209/1.269, allocations: 75.31 kB / 0.5391 GB, free: 4.105 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002286/1.271, allocations: 238.5 kB / 0.5393 GB, free: 3.926 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008776/1.28, allocations: 2.927 MB / 0.5422 GB, free: 1.008 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05665/1.337, allocations: 13.69 MB / 0.5555 GB, free: 3.301 MB / 458.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.484/1.821, allocations: 64.43 MB / 0.6184 GB, free: 133.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03791/1.859, allocations: 7.871 MB / 0.6261 GB, free: 131.3 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04599/1.905, allocations: 18.89 MB / 0.6446 GB, free: 118.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.134e-05/1.905, allocations: 71.34 kB / 0.6446 GB, free: 118.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 6.863e-06/1.905, allocations: 3.969 kB / 0.6447 GB, free: 118.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=370): time 0.3109/2.216, allocations: 51.56 MB / 0.695 GB, free: 67.41 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/2.216, allocations: 277.8 kB / 0.6953 GB, free: 67.08 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01285/2.229, allocations: 5.835 MB / 0.701 GB, free: 61.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001033/2.23, allocations: 82.41 kB / 0.701 GB, free: 61.16 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003958/2.234, allocations: 4.545 MB / 0.7055 GB, free: 56.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002209/2.236, allocations: 1.358 MB / 0.7068 GB, free: 55.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001377/2.238, allocations: 184.9 kB / 0.707 GB, free: 55.09 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000808/2.238, allocations: 0.6994 MB / 0.7077 GB, free: 54.38 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009992/2.248, allocations: 3.879 MB / 0.7115 GB, free: 50.49 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/2.262, allocations: 9.091 MB / 0.7203 GB, free: 38.83 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01339/2.275, allocations: 5.753 MB / 0.726 GB, free: 33.06 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001474/2.275, allocations: 56 kB / 0.726 GB, free: 33 MB / 474.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.05229/2.328, allocations: 16.09 MB / 0.7417 GB, free: 16.87 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001324/2.328, allocations: 84 kB / 0.7418 GB, free: 16.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000253/2.328, allocations: 184 kB / 0.742 GB, free: 16.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02228/2.35, allocations: 4.084 MB / 0.746 GB, free: 12.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01292/2.363, allocations: 2.055 MB / 0.748 GB, free: 10.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3736/2.737, allocations: 22.67 MB / 0.7701 GB, free: 153 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/2.748, allocations: 0.5025 MB / 0.7706 GB, free: 152.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002139/2.75, allocations: 0.5306 MB / 0.7711 GB, free: 152.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1088): * Single equations (assignments): 1083 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008479/2.758, allocations: 3.074 MB / 0.7741 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001642/2.76, allocations: 0.5726 MB / 0.7747 GB, free: 151.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03699/2.797, allocations: 9.811 MB / 0.7843 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.457e-05/2.797, allocations: 37.5 kB / 0.7843 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.194e-05/2.797, allocations: 19.12 kB / 0.7843 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-05/2.797, allocations: 26.02 kB / 0.7843 GB, free: 148.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06413/2.861, allocations: 19.58 MB / 0.8035 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.723e-05/2.862, allocations: 0 / 0.8035 GB, free: 138.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005372/2.867, allocations: 0.5402 MB / 0.804 GB, free: 138.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0213/2.888, allocations: 3.63 MB / 0.8075 GB, free: 134.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009577/2.889, allocations: 64.53 kB / 0.8076 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04799/2.937, allocations: 20.59 MB / 0.8277 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/2.937, allocations: 1.312 kB / 0.8277 GB, free: 113.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04542/2.983, allocations: 14.56 MB / 0.8419 GB, free: 99.37 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002131/2.985, allocations: 0.6068 MB / 0.8425 GB, free: 98.74 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002853/2.988, allocations: 61.91 kB / 0.8426 GB, free: 98.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006326/2.994, allocations: 211.2 kB / 0.8428 GB, free: 98.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001422/2.996, allocations: 222.1 kB / 0.843 GB, free: 98.26 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000509/2.996, allocations: 97.81 kB / 0.8431 GB, free: 98.17 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00944/3.006, allocations: 4.135 MB / 0.8471 GB, free: 94.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.232e-06/3.006, allocations: 0 / 0.8471 GB, free: 94.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0112/3.017, allocations: 1.871 MB / 0.849 GB, free: 92.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 265 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001511/3.019, allocations: 250.8 kB / 0.8492 GB, free: 91.93 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02371/3.042, allocations: 9.925 MB / 0.8589 GB, free: 82.05 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/3.042, allocations: 4 kB / 0.8589 GB, free: 82.05 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009655/3.052, allocations: 3.926 MB / 0.8627 GB, free: 78.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00604/3.058, allocations: 0.7272 MB / 0.8634 GB, free: 77.38 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04343/3.102, allocations: 19.28 MB / 0.8823 GB, free: 58.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01038/3.112, allocations: 4.995 MB / 0.8871 GB, free: 53.21 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002723/3.115, allocations: 455.4 kB / 0.8876 GB, free: 52.76 MB / 474.7 MB Notification: Performance of SimCode: time 2.595e-06/3.115, allocations: 0 / 0.8876 GB, free: 52.76 MB / 474.7 MB Notification: Performance of Templates: time 0.5934/3.708, allocations: 146.5 MB / 1.031 GB, free: 65.42 MB / 474.7 MB