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_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 194.9 MB / 211.2 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.587e-05/2.586e-05, allocations: 0 / 258.8 MB, free: 8.512 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4098/0.4098, allocations: 44.51 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.1005/0.5104, allocations: 57.77 MB / 361.1 MB, free: 3.742 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03997/0.5505, allocations: 12.91 MB / 374 MB, free: 6.797 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0143/0.5648, allocations: 315.2 kB / 374.3 MB, free: 6.488 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01096/0.5759, allocations: 3.017 MB / 377.3 MB, free: 3.457 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03254/0.6085, allocations: 8.239 MB / 385.5 MB, free: 11.2 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006604/0.6151, allocations: 1.232 MB / 386.8 MB, free: 9.961 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.05279/0.668, allocations: 17.74 MB / 404.5 MB, free: 8.203 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0124/0.6804, allocations: 5.731 MB / 410.2 MB, free: 2.434 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004044/0.6845, allocations: 1.488 MB / 411.7 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005607/0.6902, allocations: 2.494 MB / 414.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004196/0.6944, allocations: 1.167 MB / 415.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002151/0.6967, allocations: 228 kB / 415.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004806/0.7015, allocations: 2.692 MB / 418.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.7043, allocations: 456 kB / 418.7 MB, free: 9.906 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0152/0.7196, allocations: 8.912 MB / 427.7 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.7196, allocations: 0 / 427.7 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.077e-06/0.7197, allocations: 0 / 427.7 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004699/0.7201, allocations: 0 / 427.7 MB, free: 0.9727 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.2832/1.003, allocations: 6.84 MB / 434.5 MB, free: 109 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/1.003, allocations: 7.844 kB / 434.5 MB, free: 109 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3858/1.389, allocations: 19.39 MB / 453.9 MB, free: 91.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01998/1.409, allocations: 6.203 MB / 460.1 MB, free: 85.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004977/1.41, allocations: 364.1 kB / 460.5 MB, free: 85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002703/1.413, allocations: 0.5153 MB / 461 MB, free: 84.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04489/1.458, allocations: 16.38 MB / 477.3 MB, free: 67.26 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003491/1.458, allocations: 75.36 kB / 477.4 MB, free: 67.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002076/1.46, allocations: 246 kB / 477.7 MB, free: 67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006343/1.466, allocations: 2.809 MB / 480.5 MB, free: 64.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04321/1.51, allocations: 13.68 MB / 494.2 MB, free: 50.5 MB / 362.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.1129/1.623, allocations: 64.43 MB / 0.5455 GB, free: 480 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0408/1.664, allocations: 7.856 MB / 0.5532 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05273/1.716, allocations: 18.93 MB / 0.5717 GB, free: 4.902 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.135e-05/1.716, allocations: 64.5 kB / 0.5717 GB, free: 4.832 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 7.374e-06/1.716, allocations: 0 / 0.5717 GB, free: 4.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=367): time 0.6241/2.341, allocations: 53.04 MB / 0.6235 GB, free: 112.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/2.341, allocations: 269.8 kB / 0.6238 GB, free: 112 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01211/2.353, allocations: 5.867 MB / 0.6295 GB, free: 106.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009341/2.354, allocations: 83.03 kB / 0.6296 GB, free: 106.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004308/2.358, allocations: 4.53 MB / 0.634 GB, free: 101.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002606/2.361, allocations: 1.347 MB / 0.6353 GB, free: 100.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001173/2.362, allocations: 193.3 kB / 0.6355 GB, free: 100 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006704/2.363, allocations: 0.6954 MB / 0.6362 GB, free: 99.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01354/2.376, allocations: 3.91 MB / 0.64 GB, free: 95.38 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01744/2.394, allocations: 9.103 MB / 0.6489 GB, free: 83.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.018/2.412, allocations: 5.774 MB / 0.6545 GB, free: 77.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001597/2.412, allocations: 52 kB / 0.6546 GB, free: 77.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.06107/2.473, allocations: 16.66 MB / 0.6708 GB, free: 61.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/2.473, allocations: 84 kB / 0.6709 GB, free: 61.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002287/2.474, allocations: 184 kB / 0.6711 GB, free: 60.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02212/2.496, allocations: 4.167 MB / 0.6752 GB, free: 56.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01271/2.508, allocations: 2.051 MB / 0.6772 GB, free: 54.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0558/2.564, allocations: 23.86 MB / 0.7005 GB, free: 30.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01074/2.575, allocations: 0.515 MB / 0.701 GB, free: 30.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001981/2.577, allocations: 0.5321 MB / 0.7015 GB, free: 29.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1083): * Single equations (assignments): 1078 * 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,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007935/2.585, allocations: 3.063 MB / 0.7045 GB, free: 26.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001828/2.587, allocations: 0.5785 MB / 0.705 GB, free: 25.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03874/2.626, allocations: 10.07 MB / 0.7149 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.265e-05/2.626, allocations: 39.98 kB / 0.7149 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.5e-05/2.626, allocations: 16 kB / 0.7149 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.489e-05/2.626, allocations: 19.94 kB / 0.715 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3418/2.968, allocations: 19.76 MB / 0.7343 GB, free: 123.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-05/2.968, allocations: 0 / 0.7343 GB, free: 123.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006037/2.974, allocations: 0.5369 MB / 0.7348 GB, free: 123.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02976/3.004, allocations: 3.647 MB / 0.7383 GB, free: 122.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001221/3.005, allocations: 66.58 kB / 0.7384 GB, free: 122.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.071/3.076, allocations: 20.72 MB / 0.7586 GB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/3.076, allocations: 9.031 kB / 0.7586 GB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06351/3.14, allocations: 14.77 MB / 0.7731 GB, free: 97.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005897/3.146, allocations: 1.162 MB / 0.7742 GB, free: 96.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002391/3.148, allocations: 61.2 kB / 0.7743 GB, free: 96.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006409/3.155, allocations: 205 kB / 0.7745 GB, free: 96.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00147/3.156, allocations: 225.7 kB / 0.7747 GB, free: 96.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006205/3.157, allocations: 100.9 kB / 0.7748 GB, free: 96.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00977/3.167, allocations: 4.159 MB / 0.7788 GB, free: 92.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/3.167, allocations: 0 / 0.7788 GB, free: 92.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01132/3.178, allocations: 1.874 MB / 0.7807 GB, free: 90.19 MB / 410.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%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001509/3.18, allocations: 239.8 kB / 0.7809 GB, free: 89.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02327/3.203, allocations: 9.968 MB / 0.7906 GB, free: 80.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/3.203, allocations: 4 kB / 0.7906 GB, free: 80.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009573/3.213, allocations: 3.935 MB / 0.7945 GB, free: 76.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006225/3.219, allocations: 0.7163 MB / 0.7952 GB, free: 75.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04463/3.263, allocations: 19.3 MB / 0.814 GB, free: 56.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01072/3.274, allocations: 5.015 MB / 0.8189 GB, free: 51.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00291/3.277, allocations: 455.4 kB / 0.8194 GB, free: 50.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.964e-06/3.277, allocations: 0 / 0.8194 GB, free: 50.89 MB / 410.7 MB Notification: Performance of Templates: time 0.564/3.841, allocations: 147 MB / 0.963 GB, free: 56.18 MB / 426.7 MB