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.95/1.95, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.658e-05/4.676e-05, allocations: 9.484 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1076, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.478/0.5857, allocations: 98.92 MB / 420.8 MB, free: 6.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.586, allocations: 74.66 kB / 420.8 MB, free: 6.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8842/1.47, allocations: 135.6 MB / 0.5434 GB, free: 90.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.47, allocations: 0 / 0.5434 GB, free: 90.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004899/1.471, allocations: 137.2 kB / 0.5436 GB, free: 90.88 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.0301/1.501, allocations: 7.044 MB / 0.5504 GB, free: 88.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/1.501, allocations: 10.91 kB / 0.5504 GB, free: 88.25 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005403/1.506, allocations: 1.14 MB / 0.5516 GB, free: 88.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05653/1.563, allocations: 7.562 MB / 0.5589 GB, free: 87.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03967/1.603, allocations: 9.791 MB / 0.5685 GB, free: 84.28 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008745/1.604, allocations: 494.5 kB / 0.569 GB, free: 84.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004487/1.608, allocations: 0.6522 MB / 0.5696 GB, free: 83.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06736/1.676, allocations: 16.48 MB / 0.5857 GB, free: 68.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006904/1.676, allocations: 99.11 kB / 0.5858 GB, free: 68.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004258/1.681, allocations: 319.2 kB / 0.5861 GB, free: 68.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005242/1.686, allocations: 1.579 MB / 0.5876 GB, free: 66.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04527/1.731, allocations: 13.24 MB / 0.6006 GB, free: 53.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4559/2.187, allocations: 74.31 MB / 0.6731 GB, free: 36.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03982/2.227, allocations: 7.656 MB / 0.6806 GB, free: 36.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008947/2.236, allocations: 3.984 MB / 0.6845 GB, free: 36.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0456/2.282, allocations: 18.7 MB / 0.7028 GB, free: 30.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.603e-05/2.282, allocations: 66.94 kB / 0.7028 GB, free: 30.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.964e-06/2.282, allocations: 1.281 kB / 0.7028 GB, free: 30.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=367): time 0.2278/2.51, allocations: 40.3 MB / 0.7422 GB, free: 20.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/2.51, allocations: 269.7 kB / 0.7424 GB, free: 19.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01264/2.523, allocations: 5.306 MB / 0.7476 GB, free: 18.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009842/2.524, allocations: 77.33 kB / 0.7477 GB, free: 18.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003985/2.528, allocations: 4.556 MB / 0.7522 GB, free: 14.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002268/2.53, allocations: 1.351 MB / 0.7535 GB, free: 12.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001576/2.532, allocations: 180 kB / 0.7536 GB, free: 12.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007432/2.532, allocations: 0.7023 MB / 0.7543 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009235/2.542, allocations: 3.686 MB / 0.7579 GB, free: 8.719 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01333/2.555, allocations: 8.817 MB / 0.7665 GB, free: 14.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/2.57, allocations: 5.598 MB / 0.772 GB, free: 9.469 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002109/2.57, allocations: 52 kB / 0.7721 GB, free: 9.418 MB / 442.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.05936/2.629, allocations: 15.68 MB / 0.7874 GB, free: 12.99 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001732/2.63, allocations: 84.94 kB / 0.7874 GB, free: 12.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003318/2.63, allocations: 180 kB / 0.7876 GB, free: 12.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02382/2.654, allocations: 4.079 MB / 0.7916 GB, free: 9.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01411/2.668, allocations: 2.047 MB / 0.7936 GB, free: 7.449 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05967/2.728, allocations: 21.72 MB / 0.8148 GB, free: 1.477 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01227/2.74, allocations: 0.554 MB / 0.8154 GB, free: 0.9219 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002759/2.743, allocations: 0.5312 MB / 0.8159 GB, free: 400 kB / 474.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.004165/2.747, allocations: 0.8003 MB / 0.8167 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00189/2.749, allocations: 0.5745 MB / 0.8172 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04175/2.791, allocations: 9.675 MB / 0.8267 GB, free: 5.27 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.359e-05/2.791, allocations: 36 kB / 0.8267 GB, free: 5.234 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.657e-05/2.791, allocations: 23.94 kB / 0.8267 GB, free: 5.211 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001/2.791, allocations: 23.88 kB / 0.8267 GB, free: 5.188 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3973/3.188, allocations: 19.09 MB / 0.8454 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-05/3.188, allocations: 3.344 kB / 0.8454 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005461/3.194, allocations: 0.5096 MB / 0.8459 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02188/3.216, allocations: 3.547 MB / 0.8494 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009948/3.217, allocations: 63.38 kB / 0.8494 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04514/3.262, allocations: 18.74 MB / 0.8677 GB, free: 129.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/3.262, allocations: 0 / 0.8677 GB, free: 129.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05099/3.313, allocations: 14.12 MB / 0.8815 GB, free: 124.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007153/3.32, allocations: 1.12 MB / 0.8826 GB, free: 124.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00328/3.324, allocations: 62.95 kB / 0.8827 GB, free: 124.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009466/3.333, allocations: 226.1 kB / 0.8829 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002247/3.336, allocations: 222.5 kB / 0.8831 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001078/3.337, allocations: 92.17 kB / 0.8832 GB, free: 124.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01532/3.352, allocations: 3.706 MB / 0.8868 GB, free: 122.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.343e-06/3.352, allocations: 0 / 0.8868 GB, free: 122.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0205/3.373, allocations: 1.844 MB / 0.8886 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 (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.06881/3.441, allocations: 14.99 MB / 0.9032 GB, free: 117.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0324/3.474, allocations: 9.22 MB / 0.9122 GB, free: 113.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/3.474, allocations: 0 / 0.9122 GB, free: 113.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0143/3.488, allocations: 3.665 MB / 0.9158 GB, free: 110.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009294/3.498, allocations: 0.728 MB / 0.9165 GB, free: 109.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07607/3.574, allocations: 16.03 MB / 0.9322 GB, free: 95.92 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01546/3.589, allocations: 5.006 MB / 0.9371 GB, free: 92.27 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01105/3.6, allocations: 3.323 MB / 0.9403 GB, free: 89.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.993e-06/3.601, allocations: 0 / 0.9403 GB, free: 89.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.988/9.588, allocations: 185.5 MB / 1.122 GB, free: 58.09 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