Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.373/2.373, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.993e-05/4.016e-05, allocations: 8 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.3999, allocations: 54.85 MB / 359.9 MB, free: 2.699 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2602/0.6602, allocations: 105.8 MB / 465.6 MB, free: 7.184 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.6605, allocations: 76.55 kB / 465.7 MB, free: 7.109 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9128/1.573, allocations: 135.7 MB / 0.5873 GB, free: 97.77 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.265e-06/1.573, allocations: 0 / 0.5873 GB, free: 97.77 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004861/1.574, allocations: 131.7 kB / 0.5875 GB, free: 97.77 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.03001/1.604, allocations: 7.055 MB / 0.5944 GB, free: 93.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/1.604, allocations: 7.781 kB / 0.5944 GB, free: 93.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005491/1.609, allocations: 1.14 MB / 0.5955 GB, free: 92.55 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05716/1.667, allocations: 7.565 MB / 0.6029 GB, free: 86.72 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03382/1.701, allocations: 9.803 MB / 0.6124 GB, free: 76.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005406/1.701, allocations: 486.5 kB / 0.6129 GB, free: 76.53 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003691/1.705, allocations: 0.6497 MB / 0.6135 GB, free: 75.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04941/1.754, allocations: 16.48 MB / 0.6296 GB, free: 58.11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004702/1.755, allocations: 103 kB / 0.6297 GB, free: 58.01 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002429/1.757, allocations: 314 kB / 0.63 GB, free: 57.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003337/1.761, allocations: 1.583 MB / 0.6316 GB, free: 56.16 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04355/1.804, allocations: 13.23 MB / 0.6445 GB, free: 42.91 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5104/2.315, allocations: 74.32 MB / 0.7171 GB, free: 58.02 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04091/2.356, allocations: 7.661 MB / 0.7246 GB, free: 57.34 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009334/2.365, allocations: 3.977 MB / 0.7284 GB, free: 57.29 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04804/2.413, allocations: 18.71 MB / 0.7467 GB, free: 52.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.288e-05/2.413, allocations: 65.84 kB / 0.7468 GB, free: 52.75 MB / 474.7 MB Notification: Performance of pre-optimization done (n=286): time 7.644e-06/2.413, allocations: 0 / 0.7468 GB, free: 52.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=367): time 0.2318/2.645, allocations: 40.3 MB / 0.7861 GB, free: 42.03 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/2.645, allocations: 271.6 kB / 0.7864 GB, free: 41.74 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01393/2.659, allocations: 5.294 MB / 0.7916 GB, free: 38.49 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00107/2.66, allocations: 81.7 kB / 0.7916 GB, free: 38.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004147/2.664, allocations: 4.556 MB / 0.7961 GB, free: 34.27 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002351/2.667, allocations: 1.352 MB / 0.7974 GB, free: 33.07 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001627/2.669, allocations: 187 kB / 0.7976 GB, free: 32.89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007981/2.669, allocations: 0.6951 MB / 0.7983 GB, free: 32.29 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009571/2.679, allocations: 3.689 MB / 0.8019 GB, free: 28.96 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01292/2.692, allocations: 8.815 MB / 0.8105 GB, free: 18.34 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/2.705, allocations: 5.598 MB / 0.8159 GB, free: 13.79 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001947/2.705, allocations: 52 kB / 0.816 GB, free: 13.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05535/2.76, allocations: 15.68 MB / 0.8313 GB, free: 1.402 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/2.761, allocations: 84 kB / 0.8314 GB, free: 1.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002809/2.761, allocations: 180 kB / 0.8316 GB, free: 1.145 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02394/2.785, allocations: 4.099 MB / 0.8356 GB, free: 13.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01426/2.799, allocations: 2.039 MB / 0.8375 GB, free: 11.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06091/2.86, allocations: 21.74 MB / 0.8588 GB, free: 5.527 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0119/2.872, allocations: 0.5491 MB / 0.8593 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002493/2.875, allocations: 0.5361 MB / 0.8598 GB, free: 4.445 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.003975/2.879, allocations: 0.8011 MB / 0.8606 GB, free: 3.637 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002064/2.881, allocations: 0.5669 MB / 0.8612 GB, free: 3.062 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04174/2.923, allocations: 9.679 MB / 0.8706 GB, free: 9.324 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.512e-05/2.923, allocations: 40.7 kB / 0.8707 GB, free: 9.285 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-05/2.923, allocations: 16 kB / 0.8707 GB, free: 9.27 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.743e-05/2.923, allocations: 15.94 kB / 0.8707 GB, free: 9.254 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07317/2.996, allocations: 19.1 MB / 0.8893 GB, free: 6.039 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.725e-05/2.996, allocations: 0 / 0.8893 GB, free: 6.039 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005495/3.002, allocations: 0.5071 MB / 0.8898 GB, free: 5.531 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02265/3.024, allocations: 3.555 MB / 0.8933 GB, free: 1.969 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001102/3.026, allocations: 67.34 kB / 0.8934 GB, free: 1.906 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4148/3.44, allocations: 18.72 MB / 0.9117 GB, free: 168.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/3.44, allocations: 0 / 0.9117 GB, free: 168.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05124/3.492, allocations: 14.13 MB / 0.9255 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006472/3.498, allocations: 1.117 MB / 0.9265 GB, free: 167.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003806/3.502, allocations: 59.67 kB / 0.9266 GB, free: 167.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008712/3.511, allocations: 226.1 kB / 0.9268 GB, free: 167.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001585/3.512, allocations: 224.7 kB / 0.927 GB, free: 167.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006253/3.513, allocations: 95.5 kB / 0.9271 GB, free: 167.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01117/3.524, allocations: 3.707 MB / 0.9307 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.72e-07/3.524, allocations: 2.438 kB / 0.9307 GB, free: 167.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01262/3.537, allocations: 1.848 MB / 0.9326 GB, free: 167.6 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.04624/3.583, allocations: 14.97 MB / 0.9472 GB, free: 165.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02244/3.606, allocations: 9.227 MB / 0.9562 GB, free: 162.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/3.606, allocations: 2.969 kB / 0.9562 GB, free: 162.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009739/3.616, allocations: 3.661 MB / 0.9598 GB, free: 161 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006555/3.622, allocations: 0.7094 MB / 0.9605 GB, free: 160.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0525/3.675, allocations: 16.04 MB / 0.9761 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01184/3.687, allocations: 5.021 MB / 0.981 GB, free: 153.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007804/3.694, allocations: 3.325 MB / 0.9843 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of SimCode: time 2.855e-06/3.695, allocations: 0 / 0.9843 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.002/9.696, allocations: 185.6 MB / 1.166 GB, free: 156.1 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat