Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.863/1.863, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.521e-05/5.506e-05, allocations: 7.375 kB / 273.1 MB, free: 0.6602 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.123, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4677/0.5907, allocations: 98.92 MB / 420.7 MB, free: 7.004 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.591, allocations: 75.95 kB / 420.8 MB, free: 6.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8706/1.462, allocations: 135.6 MB / 0.5434 GB, free: 91.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.066e-06/1.462, allocations: 7.844 kB / 0.5434 GB, free: 91.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005104/1.462, allocations: 133 kB / 0.5435 GB, free: 91.08 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.03015/1.492, allocations: 7.037 MB / 0.5504 GB, free: 88.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/1.493, allocations: 12.28 kB / 0.5504 GB, free: 88.45 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005569/1.498, allocations: 1.139 MB / 0.5515 GB, free: 88.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05627/1.554, allocations: 7.558 MB / 0.5589 GB, free: 87.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0373/1.592, allocations: 9.789 MB / 0.5685 GB, free: 84.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007198/1.593, allocations: 490.1 kB / 0.5689 GB, free: 84.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004082/1.597, allocations: 0.6502 MB / 0.5696 GB, free: 84.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.054/1.651, allocations: 16.57 MB / 0.5858 GB, free: 68.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006189/1.651, allocations: 99.11 kB / 0.5859 GB, free: 68.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0036/1.655, allocations: 318.4 kB / 0.5862 GB, free: 68.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003808/1.659, allocations: 1.576 MB / 0.5877 GB, free: 66.83 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04473/1.704, allocations: 13.5 MB / 0.6009 GB, free: 53.31 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5039/2.208, allocations: 74.3 MB / 0.6734 GB, free: 36.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0396/2.247, allocations: 7.688 MB / 0.6809 GB, free: 35.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00912/2.256, allocations: 3.978 MB / 0.6848 GB, free: 35.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04593/2.302, allocations: 18.7 MB / 0.7031 GB, free: 30.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.769e-05/2.303, allocations: 70.09 kB / 0.7032 GB, free: 30.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.123e-06/2.303, allocations: 0 / 0.7032 GB, free: 30.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.2281/2.531, allocations: 40.31 MB / 0.7425 GB, free: 20.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/2.531, allocations: 269.3 kB / 0.7428 GB, free: 19.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01355/2.544, allocations: 5.294 MB / 0.748 GB, free: 17.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001022/2.545, allocations: 82.08 kB / 0.748 GB, free: 17.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004284/2.55, allocations: 4.557 MB / 0.7525 GB, free: 13.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002253/2.552, allocations: 1.347 MB / 0.7538 GB, free: 12.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/2.554, allocations: 184 kB / 0.754 GB, free: 12.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007493/2.554, allocations: 0.7021 MB / 0.7547 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00952/2.564, allocations: 3.691 MB / 0.7583 GB, free: 8.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01355/2.577, allocations: 8.869 MB / 0.7669 GB, free: 13.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01945/2.597, allocations: 5.598 MB / 0.7724 GB, free: 9.168 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002736/2.597, allocations: 54.91 kB / 0.7724 GB, free: 9.117 MB / 442.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.07669/2.674, allocations: 16.21 MB / 0.7883 GB, free: 12.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001914/2.674, allocations: 84 kB / 0.7884 GB, free: 12.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003737/2.675, allocations: 180 kB / 0.7885 GB, free: 12.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02414/2.699, allocations: 4.078 MB / 0.7925 GB, free: 8.781 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01542/2.714, allocations: 2.039 MB / 0.7945 GB, free: 6.738 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06173/2.776, allocations: 21.72 MB / 0.8157 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/2.788, allocations: 0.5462 MB / 0.8162 GB, free: 220 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003027/2.791, allocations: 0.5373 MB / 0.8168 GB, free: 15.68 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 (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.00442/2.795, allocations: 0.8017 MB / 0.8175 GB, free: 14.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00245/2.798, allocations: 0.5746 MB / 0.8181 GB, free: 14.29 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0521/2.85, allocations: 9.676 MB / 0.8276 GB, free: 4.559 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-05/2.85, allocations: 36 kB / 0.8276 GB, free: 4.523 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.563e-05/2.85, allocations: 16 kB / 0.8276 GB, free: 4.508 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001302/2.85, allocations: 27.86 kB / 0.8276 GB, free: 4.48 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4203/3.271, allocations: 19.1 MB / 0.8463 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.749e-05/3.271, allocations: 1.312 kB / 0.8463 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005501/3.276, allocations: 0.5082 MB / 0.8468 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02278/3.299, allocations: 3.557 MB / 0.8503 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00102/3.3, allocations: 64.7 kB / 0.8503 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05801/3.358, allocations: 18.72 MB / 0.8686 GB, free: 128.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/3.358, allocations: 0 / 0.8686 GB, free: 128.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05635/3.415, allocations: 14.12 MB / 0.8824 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004776/3.42, allocations: 1.121 MB / 0.8835 GB, free: 123.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001921/3.421, allocations: 58.84 kB / 0.8835 GB, free: 123.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0063/3.428, allocations: 232.7 kB / 0.8838 GB, free: 123.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001535/3.429, allocations: 222.9 kB / 0.884 GB, free: 123.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004245/3.43, allocations: 90.19 kB / 0.8841 GB, free: 123.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0101/3.44, allocations: 3.708 MB / 0.8877 GB, free: 122.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.01e-07/3.44, allocations: 0 / 0.8877 GB, free: 122.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01178/3.452, allocations: 1.848 MB / 0.8895 GB, free: 122.2 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 (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.04652/3.498, allocations: 14.99 MB / 0.9041 GB, free: 116.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02254/3.521, allocations: 9.522 MB / 0.9134 GB, free: 112.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.485e-06/3.521, allocations: 0 / 0.9134 GB, free: 112.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008978/3.53, allocations: 3.717 MB / 0.9171 GB, free: 109.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006301/3.536, allocations: 0.7289 MB / 0.9178 GB, free: 108.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04866/3.585, allocations: 16.04 MB / 0.9334 GB, free: 95.06 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01068/3.596, allocations: 5.004 MB / 0.9383 GB, free: 91.42 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007521/3.603, allocations: 3.327 MB / 0.9416 GB, free: 88.34 MB / 490.7 MB Notification: Performance of SimCode: time 1.322e-06/3.603, allocations: 2.969 kB / 0.9416 GB, free: 88.34 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.751/9.354, allocations: 186.9 MB / 1.124 GB, free: 55.7 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat