Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.293/2.293, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.896e-05/3.946e-05, allocations: 4 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.386, allocations: 54.86 MB / 359.9 MB, free: 2.312 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1839/0.57, allocations: 99.76 MB / 459.6 MB, free: 13.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.5703, allocations: 76.89 kB / 459.7 MB, free: 13.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3422/0.9126, allocations: 76.34 MB / 0.5235 GB, free: 200 kB / 458.7 MB Notification: Performance of FrontEnd: time 1.234e-05/0.9126, allocations: 4 kB / 0.5235 GB, free: 196 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002551/0.9129, allocations: 71.94 kB / 0.5236 GB, free: 124 kB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1315 * Number of variables: 1315 Notification: Performance of Generate backend data structure: time 0.3235/1.236, allocations: 3.577 MB / 0.527 GB, free: 104.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/1.236, allocations: 7.969 kB / 0.5271 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003343/1.24, allocations: 0.6704 MB / 0.5277 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03426/1.274, allocations: 4.323 MB / 0.5319 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01904/1.293, allocations: 4.466 MB / 0.5363 GB, free: 103.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000485/1.294, allocations: 271.2 kB / 0.5365 GB, free: 103.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002098/1.296, allocations: 363.5 kB / 0.5369 GB, free: 103.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02748/1.323, allocations: 9.038 MB / 0.5457 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000366/1.324, allocations: 58.72 kB / 0.5458 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001775/1.326, allocations: 180.3 kB / 0.5459 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002213/1.328, allocations: 0.8849 MB / 0.5468 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0214/1.349, allocations: 7.036 MB / 0.5537 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05821/1.408, allocations: 44.06 MB / 0.5967 GB, free: 66.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0149/1.423, allocations: 3.463 MB / 0.6001 GB, free: 65.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003401/1.426, allocations: 1.585 MB / 0.6016 GB, free: 64.81 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01716/1.443, allocations: 7.196 MB / 0.6087 GB, free: 60.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/1.443, allocations: 56.67 kB / 0.6087 GB, free: 60.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=150): time 5.791e-06/1.443, allocations: 2.188 kB / 0.6087 GB, free: 60.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=184): time 0.09927/1.543, allocations: 17.04 MB / 0.6254 GB, free: 52.56 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/1.543, allocations: 208.7 kB / 0.6256 GB, free: 52.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009432/1.552, allocations: 3.271 MB / 0.6288 GB, free: 49.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005455/1.553, allocations: 58.88 kB / 0.6288 GB, free: 49.37 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003085/1.556, allocations: 2.763 MB / 0.6315 GB, free: 46.86 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001413/1.557, allocations: 0.7014 MB / 0.6322 GB, free: 46.24 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008425/1.558, allocations: 116 kB / 0.6323 GB, free: 46.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005303/1.559, allocations: 0.5531 MB / 0.6328 GB, free: 45.63 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006827/1.566, allocations: 1.939 MB / 0.6347 GB, free: 43.88 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009746/1.575, allocations: 5.435 MB / 0.64 GB, free: 36.96 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00984/1.585, allocations: 3.243 MB / 0.6432 GB, free: 34.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001396/1.586, allocations: 36 kB / 0.6433 GB, free: 34.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.03699/1.623, allocations: 8.484 MB / 0.6515 GB, free: 26.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001469/1.623, allocations: 60 kB / 0.6516 GB, free: 26.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000229/1.623, allocations: 124.8 kB / 0.6517 GB, free: 26.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01294/1.636, allocations: 1.548 MB / 0.6532 GB, free: 25.67 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01006/1.646, allocations: 1.281 MB / 0.6545 GB, free: 24.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0299/1.676, allocations: 8.948 MB / 0.6632 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009476/1.686, allocations: 315.5 kB / 0.6635 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/1.687, allocations: 363.7 kB / 0.6639 GB, free: 14.84 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * Number of states: 0 () * Number of discrete variables: 33 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (691): * Single equations (assignments): 687 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001717/1.689, allocations: 0.5399 MB / 0.6644 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/1.69, allocations: 335.4 kB / 0.6647 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01689/1.707, allocations: 3.801 MB / 0.6684 GB, free: 10.15 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.912e-05/1.707, allocations: 23.83 kB / 0.6684 GB, free: 10.13 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/1.707, allocations: 8 kB / 0.6685 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-05/1.707, allocations: 7.969 kB / 0.6685 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02655/1.734, allocations: 7.998 MB / 0.6763 GB, free: 2.094 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.441e-05/1.734, allocations: 3.953 kB / 0.6763 GB, free: 2.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002483/1.736, allocations: 239.7 kB / 0.6765 GB, free: 1.855 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008375/1.745, allocations: 1.232 MB / 0.6777 GB, free: 0.6211 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004305/1.745, allocations: 32 kB / 0.6777 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/1.766, allocations: 7.279 MB / 0.6848 GB, free: 9.184 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.766, allocations: 0 / 0.6848 GB, free: 9.184 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02121/1.787, allocations: 6.156 MB / 0.6909 GB, free: 2.992 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002531/1.79, allocations: 0.6021 MB / 0.6914 GB, free: 2.367 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001176/1.791, allocations: 28 kB / 0.6915 GB, free: 2.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003312/1.794, allocations: 95.84 kB / 0.6916 GB, free: 2.246 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006306/1.795, allocations: 105.1 kB / 0.6917 GB, free: 2.145 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/1.795, allocations: 56.05 kB / 0.6917 GB, free: 2.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006239/1.801, allocations: 2.261 MB / 0.6939 GB, free: 15.84 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.801, allocations: 3.938 kB / 0.6939 GB, free: 15.84 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007345/1.809, allocations: 0.9725 MB / 0.6949 GB, free: 14.87 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02207/1.831, allocations: 6.981 MB / 0.7017 GB, free: 7.848 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0121/1.843, allocations: 4.705 MB / 0.7063 GB, free: 3.16 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/1.843, allocations: 0 / 0.7063 GB, free: 3.16 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003894/1.847, allocations: 1.562 MB / 0.7078 GB, free: 1.594 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003318/1.85, allocations: 361.4 kB / 0.7082 GB, free: 1.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3504/2.201, allocations: 8.391 MB / 0.7164 GB, free: 122.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00795/2.209, allocations: 3.037 MB / 0.7193 GB, free: 121.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004283/2.213, allocations: 1.684 MB / 0.721 GB, free: 121.7 MB / 490.7 MB Notification: Performance of SimCode: time 2.285e-06/2.213, allocations: 1.125 kB / 0.721 GB, free: 121.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.281/6.495, allocations: 88.51 MB / 0.8074 GB, free: 81.12 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat