Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.247/2.247, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.077e-05/5.085e-05, allocations: 7.984 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4626/0.4627, allocations: 54.85 MB / 359.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1996/0.6624, allocations: 105.6 MB / 465.5 MB, free: 7.199 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.6627, allocations: 80.55 kB / 465.6 MB, free: 7.121 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9504/1.613, allocations: 135.8 MB / 0.5873 GB, free: 97.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.613, allocations: 0 / 0.5873 GB, free: 97.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006421/1.614, allocations: 136 kB / 0.5874 GB, free: 97.7 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03146/1.645, allocations: 7.047 MB / 0.5943 GB, free: 93.24 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/1.645, allocations: 7.5 kB / 0.5943 GB, free: 93.24 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005403/1.651, allocations: 1.139 MB / 0.5954 GB, free: 92.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05579/1.707, allocations: 7.566 MB / 0.6028 GB, free: 86.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04324/1.75, allocations: 9.794 MB / 0.6123 GB, free: 76.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008209/1.751, allocations: 486.9 kB / 0.6128 GB, free: 76.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004588/1.755, allocations: 0.6537 MB / 0.6134 GB, free: 75.79 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05818/1.814, allocations: 16.48 MB / 0.6295 GB, free: 57.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005444/1.814, allocations: 99.08 kB / 0.6296 GB, free: 57.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003457/1.818, allocations: 314.3 kB / 0.6299 GB, free: 57.63 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00373/1.822, allocations: 1.574 MB / 0.6315 GB, free: 56.05 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04424/1.866, allocations: 13.22 MB / 0.6444 GB, free: 42.82 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5036/2.369, allocations: 74.23 MB / 0.7169 GB, free: 57.83 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04254/2.412, allocations: 7.626 MB / 0.7243 GB, free: 57.14 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009955/2.422, allocations: 3.917 MB / 0.7281 GB, free: 57.09 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0489/2.471, allocations: 18.63 MB / 0.7463 GB, free: 52.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.556e-05/2.471, allocations: 70.28 kB / 0.7464 GB, free: 52.62 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 8.577e-06/2.471, allocations: 0 / 0.7464 GB, free: 52.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=361): time 0.26/2.731, allocations: 40.4 MB / 0.7859 GB, free: 42.02 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/2.731, allocations: 280.4 kB / 0.7861 GB, free: 41.73 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0142/2.746, allocations: 5.295 MB / 0.7913 GB, free: 38.53 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001055/2.747, allocations: 82.25 kB / 0.7914 GB, free: 38.45 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004177/2.751, allocations: 4.547 MB / 0.7958 GB, free: 34.31 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002293/2.753, allocations: 1.331 MB / 0.7971 GB, free: 33.13 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001671/2.755, allocations: 185 kB / 0.7973 GB, free: 32.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007624/2.756, allocations: 0.6922 MB / 0.798 GB, free: 32.36 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009844/2.766, allocations: 3.668 MB / 0.8015 GB, free: 29.05 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0134/2.779, allocations: 8.785 MB / 0.8101 GB, free: 18.46 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01335/2.793, allocations: 5.574 MB / 0.8156 GB, free: 13.87 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000191/2.793, allocations: 52 kB / 0.8156 GB, free: 13.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.05699/2.85, allocations: 15.65 MB / 0.8309 GB, free: 1.512 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000144/2.85, allocations: 84 kB / 0.831 GB, free: 1.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002795/2.85, allocations: 182.9 kB / 0.8312 GB, free: 1.254 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02483/2.875, allocations: 4.111 MB / 0.8352 GB, free: 13.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0142/2.889, allocations: 2.035 MB / 0.8372 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06254/2.952, allocations: 21.76 MB / 0.8584 GB, free: 5.629 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01229/2.964, allocations: 0.5545 MB / 0.8589 GB, free: 5.074 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002682/2.967, allocations: 0.5283 MB / 0.8595 GB, free: 4.547 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 (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.004219/2.971, allocations: 0.8047 MB / 0.8602 GB, free: 3.734 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001969/2.973, allocations: 0.5747 MB / 0.8608 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04325/3.017, allocations: 9.645 MB / 0.8702 GB, free: 9.453 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.755e-05/3.017, allocations: 36 kB / 0.8703 GB, free: 9.418 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.705e-05/3.017, allocations: 27.94 kB / 0.8703 GB, free: 9.391 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/3.017, allocations: 15.94 kB / 0.8703 GB, free: 9.375 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07727/3.094, allocations: 19.03 MB / 0.8889 GB, free: 6.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-05/3.094, allocations: 4 kB / 0.8889 GB, free: 6.227 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005471/3.1, allocations: 0.4915 MB / 0.8894 GB, free: 5.734 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02365/3.124, allocations: 3.61 MB / 0.8929 GB, free: 2.113 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001078/3.125, allocations: 70.73 kB / 0.893 GB, free: 2.047 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4238/3.549, allocations: 18.7 MB / 0.9112 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/3.549, allocations: 0 / 0.9112 GB, free: 168.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05322/3.602, allocations: 14.05 MB / 0.9249 GB, free: 167.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004998/3.607, allocations: 1.114 MB / 0.926 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002469/3.609, allocations: 56.25 kB / 0.9261 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007098/3.617, allocations: 241.5 kB / 0.9263 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001715/3.618, allocations: 214.4 kB / 0.9265 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006492/3.619, allocations: 96.09 kB / 0.9266 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01205/3.631, allocations: 3.701 MB / 0.9302 GB, free: 167.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.22e-07/3.631, allocations: 0 / 0.9302 GB, free: 167.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01335/3.644, allocations: 1.84 MB / 0.932 GB, free: 167.4 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 (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.04962/3.694, allocations: 14.9 MB / 0.9466 GB, free: 165.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02414/3.718, allocations: 9.131 MB / 0.9555 GB, free: 162.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/3.718, allocations: 3.5 kB / 0.9555 GB, free: 162.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009773/3.728, allocations: 3.615 MB / 0.959 GB, free: 161.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007275/3.736, allocations: 0.7181 MB / 0.9597 GB, free: 160.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05474/3.79, allocations: 16 MB / 0.9754 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01248/3.803, allocations: 4.999 MB / 0.9802 GB, free: 153.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008444/3.811, allocations: 3.318 MB / 0.9835 GB, free: 150.9 MB / 0.5417 GB Notification: Performance of SimCode: time 1.683e-06/3.811, allocations: 5.719 kB / 0.9835 GB, free: 150.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.696/9.508, allocations: 185.2 MB / 1.164 GB, free: 156.2 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat