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_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.187/2.187, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.407e-05, allocations: 4 kB / 304.9 MB, free: 5.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3227, allocations: 54.86 MB / 359.8 MB, free: 2.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.161/0.4838, allocations: 105.7 MB / 465.5 MB, free: 7.227 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.4841, allocations: 75.97 kB / 465.6 MB, free: 7.152 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7666/1.251, allocations: 135.8 MB / 0.5872 GB, free: 97.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.251, allocations: 0 / 0.5872 GB, free: 97.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004193/1.251, allocations: 131.1 kB / 0.5874 GB, free: 97.81 MB / 458.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.0227/1.274, allocations: 7.046 MB / 0.5942 GB, free: 93.36 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/1.274, allocations: 7.156 kB / 0.5943 GB, free: 93.36 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04045/1.314, allocations: 7.567 MB / 0.6016 GB, free: 87.89 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02746/1.342, allocations: 9.799 MB / 0.6112 GB, free: 78.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005492/1.343, allocations: 488.6 kB / 0.6117 GB, free: 77.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002935/1.345, allocations: 0.6492 MB / 0.6123 GB, free: 77.09 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04121/1.387, allocations: 16.49 MB / 0.6284 GB, free: 59.29 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004082/1.387, allocations: 107 kB / 0.6285 GB, free: 59.18 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002492/1.39, allocations: 315.5 kB / 0.6288 GB, free: 58.91 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002881/1.393, allocations: 1.579 MB / 0.6304 GB, free: 57.33 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03356/1.426, allocations: 13.24 MB / 0.6433 GB, free: 44.08 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4113/1.838, allocations: 74.32 MB / 0.7159 GB, free: 58.11 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03165/1.869, allocations: 7.659 MB / 0.7233 GB, free: 57.44 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007336/1.877, allocations: 3.983 MB / 0.7272 GB, free: 57.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03749/1.914, allocations: 18.7 MB / 0.7455 GB, free: 52.89 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.207e-05/1.914, allocations: 68 kB / 0.7456 GB, free: 52.84 MB / 474.7 MB Notification: Performance of pre-optimization done (n=286): time 8.158e-06/1.914, allocations: 2.578 kB / 0.7456 GB, free: 52.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=367): time 0.1743/2.089, allocations: 40.3 MB / 0.7849 GB, free: 42.12 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.181e-05/2.089, allocations: 267.6 kB / 0.7852 GB, free: 41.84 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01178/2.101, allocations: 5.3 MB / 0.7904 GB, free: 38.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008247/2.101, allocations: 81.7 kB / 0.7904 GB, free: 38.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003471/2.105, allocations: 4.546 MB / 0.7949 GB, free: 34.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001797/2.107, allocations: 1.353 MB / 0.7962 GB, free: 33.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009914/2.108, allocations: 188 kB / 0.7964 GB, free: 33.08 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006503/2.108, allocations: 0.7005 MB / 0.7971 GB, free: 32.48 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007711/2.116, allocations: 3.69 MB / 0.8007 GB, free: 29.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0107/2.127, allocations: 8.816 MB / 0.8093 GB, free: 18.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/2.138, allocations: 5.598 MB / 0.8147 GB, free: 13.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/2.138, allocations: 52 kB / 0.8148 GB, free: 13.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.04182/2.18, allocations: 15.67 MB / 0.8301 GB, free: 1.598 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/2.18, allocations: 80 kB / 0.8302 GB, free: 1.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/2.18, allocations: 188.8 kB / 0.8303 GB, free: 1.336 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01658/2.197, allocations: 4.078 MB / 0.8343 GB, free: 13.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009921/2.207, allocations: 2.035 MB / 0.8363 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04867/2.255, allocations: 21.74 MB / 0.8575 GB, free: 5.812 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009952/2.265, allocations: 0.554 MB / 0.8581 GB, free: 5.258 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002241/2.268, allocations: 0.5283 MB / 0.8586 GB, free: 4.73 MB / 0.4948 GB 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.002655/2.27, allocations: 0.8051 MB / 0.8594 GB, free: 3.918 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00162/2.272, allocations: 0.5747 MB / 0.86 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03073/2.303, allocations: 9.68 MB / 0.8694 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.631e-05/2.303, allocations: 36.55 kB / 0.8694 GB, free: 9.562 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.504e-05/2.303, allocations: 16 kB / 0.8695 GB, free: 9.547 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.026e-05/2.303, allocations: 23.94 kB / 0.8695 GB, free: 9.523 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05757/2.361, allocations: 19.09 MB / 0.8881 GB, free: 6.328 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.611e-05/2.361, allocations: 0 / 0.8881 GB, free: 6.328 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00366/2.364, allocations: 0.5109 MB / 0.8886 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01594/2.38, allocations: 3.557 MB / 0.8921 GB, free: 2.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000827/2.381, allocations: 59.98 kB / 0.8921 GB, free: 2.191 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3793/2.76, allocations: 18.72 MB / 0.9104 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.787e-06/2.761, allocations: 1.75 kB / 0.9104 GB, free: 168.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0382/2.799, allocations: 14.13 MB / 0.9242 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00391/2.803, allocations: 1.118 MB / 0.9253 GB, free: 167.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00187/2.805, allocations: 59 kB / 0.9254 GB, free: 167.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004804/2.809, allocations: 230.2 kB / 0.9256 GB, free: 167.5 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001281/2.811, allocations: 225.6 kB / 0.9258 GB, free: 167.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006171/2.811, allocations: 91 kB / 0.9259 GB, free: 167.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01002/2.821, allocations: 3.705 MB / 0.9295 GB, free: 167.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.418e-06/2.821, allocations: 0 / 0.9295 GB, free: 167.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01139/2.833, allocations: 1.843 MB / 0.9313 GB, free: 167.2 MB / 0.5417 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%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001159/2.834, allocations: 226.5 kB / 0.9315 GB, free: 167.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01886/2.853, allocations: 9.223 MB / 0.9405 GB, free: 166.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/2.853, allocations: 3.125 kB / 0.9405 GB, free: 166.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007723/2.861, allocations: 3.659 MB / 0.9441 GB, free: 165.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005342/2.866, allocations: 0.7173 MB / 0.9448 GB, free: 165.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03311/2.899, allocations: 13.82 MB / 0.9583 GB, free: 160.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01038/2.91, allocations: 5.02 MB / 0.9632 GB, free: 159.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002338/2.912, allocations: 449.3 kB / 0.9636 GB, free: 159.1 MB / 0.5417 GB Notification: Performance of SimCode: time 1.786e-06/2.912, allocations: 0 / 0.9636 GB, free: 159.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.5437/3.456, allocations: 144.7 MB / 1.105 GB, free: 170.5 MB / 0.5417 GB