Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.171e-05/4.189e-05, allocations: 8 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5352/0.6391, allocations: 98.81 MB / 420.6 MB, free: 7.102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003484/0.6395, allocations: 75.25 kB / 420.7 MB, free: 7.031 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8983/1.538, allocations: 135.6 MB / 0.5433 GB, free: 91.01 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.275e-06/1.538, allocations: 0 / 0.5433 GB, free: 91.01 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005132/1.538, allocations: 131.7 kB / 0.5434 GB, free: 91 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.03196/1.57, allocations: 7.036 MB / 0.5503 GB, free: 88.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.142e-05/1.57, allocations: 11.41 kB / 0.5503 GB, free: 88.38 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005895/1.576, allocations: 1.136 MB / 0.5514 GB, free: 88.28 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05724/1.634, allocations: 7.562 MB / 0.5588 GB, free: 87.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03712/1.671, allocations: 9.781 MB / 0.5684 GB, free: 84.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007327/1.672, allocations: 494 kB / 0.5688 GB, free: 84.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003994/1.676, allocations: 0.6555 MB / 0.5695 GB, free: 84.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05456/1.73, allocations: 16.56 MB / 0.5857 GB, free: 68.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007444/1.731, allocations: 98.86 kB / 0.5858 GB, free: 68.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00373/1.735, allocations: 318.6 kB / 0.5861 GB, free: 68.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003774/1.739, allocations: 1.575 MB / 0.5876 GB, free: 66.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04453/1.783, allocations: 13.47 MB / 0.6008 GB, free: 53.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4675/2.251, allocations: 74.22 MB / 0.6732 GB, free: 36.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04652/2.297, allocations: 7.651 MB / 0.6807 GB, free: 35.67 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009816/2.307, allocations: 3.913 MB / 0.6845 GB, free: 35.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04785/2.355, allocations: 18.61 MB / 0.7027 GB, free: 30.85 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.945e-05/2.355, allocations: 66.36 kB / 0.7028 GB, free: 30.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.524e-06/2.355, allocations: 7.062 kB / 0.7028 GB, free: 30.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=361): time 0.2337/2.589, allocations: 40.41 MB / 0.7422 GB, free: 20.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/2.589, allocations: 275.7 kB / 0.7425 GB, free: 19.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01338/2.603, allocations: 5.299 MB / 0.7477 GB, free: 18.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001054/2.604, allocations: 80.45 kB / 0.7477 GB, free: 17.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004151/2.608, allocations: 4.566 MB / 0.7522 GB, free: 14.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002231/2.61, allocations: 1.327 MB / 0.7535 GB, free: 12.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001342/2.612, allocations: 188 kB / 0.7537 GB, free: 12.74 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006575/2.612, allocations: 0.6971 MB / 0.7544 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009386/2.622, allocations: 3.652 MB / 0.7579 GB, free: 8.852 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01341/2.635, allocations: 8.835 MB / 0.7666 GB, free: 14.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01468/2.65, allocations: 5.57 MB / 0.772 GB, free: 9.535 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002008/2.65, allocations: 52 kB / 0.772 GB, free: 9.484 MB / 442.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.06204/2.712, allocations: 16.17 MB / 0.7878 GB, free: 12.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001744/2.712, allocations: 88.06 kB / 0.7879 GB, free: 12.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003364/2.713, allocations: 184 kB / 0.7881 GB, free: 12.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02511/2.738, allocations: 4.107 MB / 0.7921 GB, free: 9.086 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01429/2.752, allocations: 2.031 MB / 0.7941 GB, free: 7.051 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06158/2.814, allocations: 21.74 MB / 0.8153 GB, free: 1.062 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0121/2.826, allocations: 0.5462 MB / 0.8159 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002606/2.829, allocations: 0.5273 MB / 0.8164 GB, free: 15.98 MB / 490.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 (1077): * Single equations (assignments): 1072 * 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 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003482/2.832, allocations: 0.8004 MB / 0.8172 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001905/2.834, allocations: 0.578 MB / 0.8177 GB, free: 14.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04296/2.877, allocations: 9.663 MB / 0.8272 GB, free: 4.883 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.561e-05/2.877, allocations: 37.48 kB / 0.8272 GB, free: 4.848 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.907e-05/2.877, allocations: 20 kB / 0.8272 GB, free: 4.828 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.677e-05/2.877, allocations: 23.88 kB / 0.8272 GB, free: 4.805 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4238/3.301, allocations: 19.01 MB / 0.8458 GB, free: 132.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.925e-05/3.301, allocations: 1.156 kB / 0.8458 GB, free: 132.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005607/3.307, allocations: 0.4958 MB / 0.8463 GB, free: 132.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02352/3.331, allocations: 3.608 MB / 0.8498 GB, free: 132.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001121/3.332, allocations: 64.44 kB / 0.8499 GB, free: 132.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04686/3.379, allocations: 18.71 MB / 0.8681 GB, free: 129.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/3.379, allocations: 4.375 kB / 0.8681 GB, free: 129.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04749/3.426, allocations: 14.05 MB / 0.8819 GB, free: 124.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004869/3.431, allocations: 1.107 MB / 0.883 GB, free: 124.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002119/3.433, allocations: 60.47 kB / 0.883 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006702/3.44, allocations: 242.1 kB / 0.8832 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001591/3.442, allocations: 221.8 kB / 0.8835 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005378/3.442, allocations: 85.06 kB / 0.8835 GB, free: 124 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01036/3.453, allocations: 3.708 MB / 0.8872 GB, free: 122.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.433e-06/3.453, allocations: 0 / 0.8872 GB, free: 122.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01214/3.465, allocations: 1.841 MB / 0.889 GB, free: 122.6 MB / 490.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 (264): * Single equations (assignments): 259 * 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.04804/3.513, allocations: 14.91 MB / 0.9035 GB, free: 117.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02288/3.536, allocations: 9.427 MB / 0.9127 GB, free: 113.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.619e-06/3.536, allocations: 7.562 kB / 0.9127 GB, free: 113.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009156/3.545, allocations: 3.679 MB / 0.9163 GB, free: 110.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006712/3.552, allocations: 0.7204 MB / 0.917 GB, free: 109.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04936/3.601, allocations: 16 MB / 0.9326 GB, free: 95.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01091/3.612, allocations: 5.007 MB / 0.9375 GB, free: 92.19 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007628/3.62, allocations: 3.317 MB / 0.9408 GB, free: 89.12 MB / 490.7 MB Notification: Performance of SimCode: time 1.293e-06/3.62, allocations: 0 / 0.9408 GB, free: 89.12 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.641/9.262, allocations: 186.5 MB / 1.123 GB, free: 56.73 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat