Running command: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.41/2.41, allocations: 270.1 MB / 283.6 MB, free: 3.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.531e-05, allocations: 7.234 kB / 348.4 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1312, allocations: 61.88 MB / 410.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4709/0.6022, allocations: 114.6 MB / 0.5126 GB, free: 5.477 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.6025, allocations: 75.97 kB / 0.5127 GB, free: 5.402 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8261/1.429, allocations: 137.9 MB / 0.6473 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.972e-06/1.429, allocations: 3.938 kB / 0.6473 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000417/1.429, allocations: 130.5 kB / 0.6474 GB, free: 111.1 MB / 0.5105 GB 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.02263/1.452, allocations: 7.04 MB / 0.6543 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/1.452, allocations: 10.72 kB / 0.6543 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04327/1.495, allocations: 7.549 MB / 0.6617 GB, free: 108 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02805/1.523, allocations: 9.202 MB / 0.6707 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005692/1.524, allocations: 493.7 kB / 0.6711 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002883/1.527, allocations: 0.6556 MB / 0.6718 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04224/1.569, allocations: 16.5 MB / 0.6879 GB, free: 99.92 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004189/1.569, allocations: 96.97 kB / 0.688 GB, free: 99.87 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00257/1.572, allocations: 315.2 kB / 0.6883 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003013/1.575, allocations: 1.587 MB / 0.6898 GB, free: 99.41 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05625/1.631, allocations: 13.25 MB / 0.7028 GB, free: 93.2 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1056/1.737, allocations: 74.32 MB / 0.7754 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02725/1.764, allocations: 7.678 MB / 0.7829 GB, free: 12.37 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006612/1.771, allocations: 3.98 MB / 0.7867 GB, free: 8.375 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04094/1.812, allocations: 18.63 MB / 0.8049 GB, free: 5.219 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.356e-05/1.812, allocations: 68.55 kB / 0.805 GB, free: 5.145 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=287): time 7.282e-06/1.812, allocations: 4 kB / 0.805 GB, free: 5.141 MB / 0.5261 GB Notification: Performance of matching and sorting (n=370): time 0.4821/2.294, allocations: 38.72 MB / 0.8428 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/2.294, allocations: 268.7 kB / 0.8431 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01186/2.306, allocations: 5.271 MB / 0.8482 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008126/2.307, allocations: 80.41 kB / 0.8483 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003777/2.311, allocations: 4.762 MB / 0.8529 GB, free: 112 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001863/2.313, allocations: 1.356 MB / 0.8543 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001102/2.314, allocations: 187.4 kB / 0.8544 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0007031/2.315, allocations: 0.6972 MB / 0.8551 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008135/2.323, allocations: 3.668 MB / 0.8587 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01104/2.334, allocations: 8.812 MB / 0.8673 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/2.345, allocations: 5.598 MB / 0.8728 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001607/2.345, allocations: 54.36 kB / 0.8728 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.04271/2.388, allocations: 15.36 MB / 0.8878 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001431/2.388, allocations: 86.72 kB / 0.8879 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000215/2.388, allocations: 185.1 kB / 0.8881 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0173/2.406, allocations: 4.017 MB / 0.892 GB, free: 94.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009755/2.415, allocations: 2.042 MB / 0.894 GB, free: 94.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03964/2.455, allocations: 20.81 MB / 0.9143 GB, free: 80.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01028/2.465, allocations: 0.543 MB / 0.9149 GB, free: 80.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002144/2.468, allocations: 0.5278 MB / 0.9154 GB, free: 79.65 MB / 0.5261 GB 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.002874/2.471, allocations: 0.8025 MB / 0.9162 GB, free: 78.84 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/2.472, allocations: 0.5708 MB / 0.9167 GB, free: 78.27 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02684/2.499, allocations: 9.445 MB / 0.9259 GB, free: 70.98 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-05/2.499, allocations: 41.56 kB / 0.926 GB, free: 70.94 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.916e-05/2.499, allocations: 16 kB / 0.926 GB, free: 70.93 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.326e-05/2.499, allocations: 16.92 kB / 0.926 GB, free: 70.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05027/2.549, allocations: 18.94 MB / 0.9445 GB, free: 55.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.547e-05/2.549, allocations: 0 / 0.9445 GB, free: 55.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003598/2.553, allocations: 0.5121 MB / 0.945 GB, free: 55.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01512/2.568, allocations: 3.556 MB / 0.9485 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008671/2.569, allocations: 65.16 kB / 0.9485 GB, free: 52.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03471/2.604, allocations: 18.73 MB / 0.9668 GB, free: 33.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.869e-06/2.604, allocations: 4.062 kB / 0.9668 GB, free: 33.78 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03237/2.636, allocations: 13.95 MB / 0.9805 GB, free: 19.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/2.638, allocations: 0.5835 MB / 0.981 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002064/2.64, allocations: 60 kB / 0.9811 GB, free: 19.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004929/2.645, allocations: 220.3 kB / 0.9813 GB, free: 18.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001309/2.647, allocations: 218.7 kB / 0.9815 GB, free: 18.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005952/2.647, allocations: 96.61 kB / 0.9816 GB, free: 18.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.008944/2.656, allocations: 3.677 MB / 0.9852 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.334e-06/2.656, allocations: 0 / 0.9852 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0113/2.668, allocations: 1.849 MB / 0.987 GB, free: 13.03 MB / 0.5261 GB 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.001136/2.669, allocations: 232.1 kB / 0.9872 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01836/2.687, allocations: 9.191 MB / 0.9962 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.563e-06/2.687, allocations: 4 kB / 0.9962 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007558/2.695, allocations: 3.671 MB / 0.9998 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005389/2.7, allocations: 0.7216 MB / 1 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3966/3.097, allocations: 13.1 MB / 1.013 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0114/3.108, allocations: 5.002 MB / 1.018 GB, free: 119.5 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01109/3.119, allocations: 2.813 MB / 1.021 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002055/3.121, allocations: 378.6 kB / 1.021 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.993e-06/3.121, allocations: 0.7812 kB / 1.021 GB, free: 119.4 MB / 0.5417 GB Notification: Performance of Templates: time 0.2517/3.373, allocations: 73.53 MB / 1.093 GB, free: 105.1 MB / 0.5417 GB