Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.977/1.977, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.885e-05/3.894e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.466/0.5708, allocations: 98.82 MB / 420.7 MB, free: 7.062 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003496/0.5712, allocations: 74.5 kB / 420.7 MB, free: 6.992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8763/1.447, allocations: 135.6 MB / 0.5434 GB, free: 91.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.426e-06/1.448, allocations: 0 / 0.5434 GB, free: 91.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000651/1.448, allocations: 136 kB / 0.5435 GB, free: 91.05 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.05093/1.499, allocations: 7.04 MB / 0.5504 GB, free: 88.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/1.499, allocations: 6.719 kB / 0.5504 GB, free: 88.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006801/1.506, allocations: 1.139 MB / 0.5515 GB, free: 88.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0688/1.575, allocations: 7.561 MB / 0.5589 GB, free: 87.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03554/1.611, allocations: 9.786 MB / 0.5684 GB, free: 84.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006937/1.611, allocations: 490.5 kB / 0.5689 GB, free: 84.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003885/1.615, allocations: 0.6608 MB / 0.5695 GB, free: 83.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05304/1.668, allocations: 16.47 MB / 0.5856 GB, free: 68.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000555/1.669, allocations: 99.11 kB / 0.5857 GB, free: 68.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003516/1.672, allocations: 316.8 kB / 0.586 GB, free: 68.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003682/1.676, allocations: 1.579 MB / 0.5875 GB, free: 66.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04421/1.72, allocations: 13.22 MB / 0.6005 GB, free: 53.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4768/2.197, allocations: 74.21 MB / 0.6729 GB, free: 36.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04196/2.239, allocations: 7.618 MB / 0.6804 GB, free: 36.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009271/2.249, allocations: 3.915 MB / 0.6842 GB, free: 36.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0473/2.296, allocations: 18.62 MB / 0.7024 GB, free: 30.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.625e-05/2.296, allocations: 66.66 kB / 0.7024 GB, free: 30.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.674e-06/2.296, allocations: 0 / 0.7024 GB, free: 30.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=361): time 0.2361/2.532, allocations: 40.4 MB / 0.7419 GB, free: 20.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/2.532, allocations: 273.3 kB / 0.7422 GB, free: 19.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01423/2.547, allocations: 5.294 MB / 0.7473 GB, free: 18.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001037/2.548, allocations: 85.22 kB / 0.7474 GB, free: 18.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004269/2.552, allocations: 4.557 MB / 0.7519 GB, free: 14.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002261/2.554, allocations: 1.332 MB / 0.7532 GB, free: 13.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001658/2.556, allocations: 180 kB / 0.7533 GB, free: 13.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008223/2.557, allocations: 0.7024 MB / 0.754 GB, free: 12.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009558/2.567, allocations: 3.657 MB / 0.7576 GB, free: 9.121 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01364/2.58, allocations: 8.786 MB / 0.7662 GB, free: 14.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01494/2.595, allocations: 5.566 MB / 0.7716 GB, free: 9.863 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000227/2.596, allocations: 52 kB / 0.7717 GB, free: 9.812 MB / 442.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.06154/2.657, allocations: 15.66 MB / 0.7869 GB, free: 13.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000191/2.657, allocations: 91.17 kB / 0.787 GB, free: 13.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003497/2.658, allocations: 180 kB / 0.7872 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02517/2.683, allocations: 4.103 MB / 0.7912 GB, free: 9.758 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01427/2.697, allocations: 2.031 MB / 0.7932 GB, free: 7.723 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06214/2.759, allocations: 21.75 MB / 0.8144 GB, free: 1.715 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01254/2.772, allocations: 0.5462 MB / 0.815 GB, free: 1.168 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002742/2.775, allocations: 0.5312 MB / 0.8155 GB, free: 0.6367 MB / 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 (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.004069/2.779, allocations: 0.8022 MB / 0.8163 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001979/2.781, allocations: 0.5746 MB / 0.8168 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04434/2.825, allocations: 9.668 MB / 0.8263 GB, free: 5.523 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.546e-05/2.825, allocations: 36 kB / 0.8263 GB, free: 5.488 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.784e-05/2.826, allocations: 16 kB / 0.8263 GB, free: 5.473 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001056/2.826, allocations: 19.94 kB / 0.8263 GB, free: 5.453 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4617/3.287, allocations: 19.01 MB / 0.8449 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.79e-05/3.287, allocations: 1.25 kB / 0.8449 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005557/3.293, allocations: 0.5 MB / 0.8454 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02323/3.316, allocations: 3.609 MB / 0.8489 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001073/3.317, allocations: 63.28 kB / 0.849 GB, free: 132.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04731/3.365, allocations: 18.72 MB / 0.8673 GB, free: 129.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/3.365, allocations: 6.406 kB / 0.8673 GB, free: 129.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04788/3.413, allocations: 14.04 MB / 0.881 GB, free: 124.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004883/3.418, allocations: 1.116 MB / 0.8821 GB, free: 124.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002426/3.42, allocations: 54.66 kB / 0.8821 GB, free: 124.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006996/3.427, allocations: 244.2 kB / 0.8824 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001563/3.429, allocations: 220.2 kB / 0.8826 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007679/3.43, allocations: 91.41 kB / 0.8827 GB, free: 124.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01052/3.44, allocations: 3.704 MB / 0.8863 GB, free: 122.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.31e-07/3.44, allocations: 2.094 kB / 0.8863 GB, free: 122.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01378/3.454, allocations: 1.84 MB / 0.8881 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 (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.04848/3.502, allocations: 14.91 MB / 0.9026 GB, free: 117.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02203/3.525, allocations: 9.136 MB / 0.9116 GB, free: 113.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/3.525, allocations: 4 kB / 0.9116 GB, free: 113.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009087/3.534, allocations: 3.624 MB / 0.9151 GB, free: 110.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006492/3.54, allocations: 0.7124 MB / 0.9158 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05138/3.592, allocations: 15.99 MB / 0.9314 GB, free: 96.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01157/3.603, allocations: 5.003 MB / 0.9363 GB, free: 92.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007969/3.611, allocations: 3.316 MB / 0.9395 GB, free: 89.63 MB / 490.7 MB Notification: Performance of SimCode: time 1.933e-06/3.611, allocations: 0 / 0.9395 GB, free: 89.63 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.931/9.542, allocations: 185.1 MB / 1.12 GB, free: 58.29 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat