Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.881/1.881, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.638e-05/3.655e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.438/0.5428, allocations: 96.98 MB / 418.8 MB, free: 8.828 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.5432, allocations: 78.55 kB / 418.9 MB, free: 8.754 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7639/1.307, allocations: 91.1 MB / 0.498 GB, free: 93.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.455e-06/1.307, allocations: 1.469 kB / 0.498 GB, free: 93.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002731/1.307, allocations: 84.12 kB / 0.4981 GB, free: 93.27 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: 1641 * Number of variables: 1641 Notification: Performance of Generate backend data structure: time 0.0178/1.325, allocations: 4.157 MB / 0.5022 GB, free: 91.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/1.325, allocations: 10.2 kB / 0.5022 GB, free: 91.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004197/1.329, allocations: 0.8286 MB / 0.503 GB, free: 91.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03455/1.364, allocations: 4.434 MB / 0.5073 GB, free: 91.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01939/1.384, allocations: 4.73 MB / 0.5119 GB, free: 90.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000666/1.384, allocations: 349.3 kB / 0.5123 GB, free: 90.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002793/1.387, allocations: 460.2 kB / 0.5127 GB, free: 90.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03094/1.418, allocations: 10.55 MB / 0.523 GB, free: 88.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003539/1.418, allocations: 64.08 kB / 0.5231 GB, free: 88.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002206/1.421, allocations: 225.7 kB / 0.5233 GB, free: 88.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002223/1.423, allocations: 0.9883 MB / 0.5243 GB, free: 88.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02349/1.446, allocations: 8.443 MB / 0.5325 GB, free: 88.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0695/1.516, allocations: 46.87 MB / 0.5783 GB, free: 53.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008836/1.525, allocations: 2.927 MB / 0.5811 GB, free: 52.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003421/1.528, allocations: 1.579 MB / 0.5827 GB, free: 51.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006022/1.529, allocations: 350.7 kB / 0.583 GB, free: 51.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.013e-05/1.529, allocations: 49.33 kB / 0.5831 GB, free: 51.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=176): time 8.997e-06/1.529, allocations: 0 / 0.5831 GB, free: 51.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=194): time 0.03974/1.569, allocations: 11.29 MB / 0.5941 GB, free: 46.06 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/1.569, allocations: 198.6 kB / 0.5943 GB, free: 45.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008125/1.577, allocations: 3.362 MB / 0.5975 GB, free: 44.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004776/1.578, allocations: 54.98 kB / 0.5976 GB, free: 44.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002665/1.58, allocations: 3.155 MB / 0.6007 GB, free: 42.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00122/1.582, allocations: 0.7363 MB / 0.6014 GB, free: 41.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008259/1.583, allocations: 118.6 kB / 0.6015 GB, free: 41.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005675/1.583, allocations: 0.5628 MB / 0.6021 GB, free: 40.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005135/1.588, allocations: 1.999 MB / 0.604 GB, free: 39.12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007487/1.596, allocations: 5.644 MB / 0.6095 GB, free: 31.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007343/1.603, allocations: 3.332 MB / 0.6128 GB, free: 29.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001174/1.603, allocations: 36 kB / 0.6128 GB, free: 29.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.0201/1.624, allocations: 7.508 MB / 0.6201 GB, free: 22.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001255/1.624, allocations: 60 kB / 0.6202 GB, free: 22.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002201/1.624, allocations: 128.9 kB / 0.6203 GB, free: 22.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/1.625, allocations: 382.7 kB / 0.6207 GB, free: 21.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009277/1.635, allocations: 1.428 MB / 0.6221 GB, free: 20.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004951/1.64, allocations: 2.99 MB / 0.625 GB, free: 17.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006917/1.647, allocations: 350.6 kB / 0.6253 GB, free: 17.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/1.648, allocations: 374.7 kB / 0.6257 GB, free: 17.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 590 * Number of states: 0 () * Number of discrete variables: 27 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (744): * Single equations (assignments): 740 * 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%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002058/1.65, allocations: 0.5588 MB / 0.6262 GB, free: 16.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009521/1.651, allocations: 343.5 kB / 0.6266 GB, free: 16.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007515/1.659, allocations: 2.623 MB / 0.6291 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-05/1.659, allocations: 24 kB / 0.6292 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/1.659, allocations: 0 / 0.6292 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.24e-05/1.659, allocations: 10.89 kB / 0.6292 GB, free: 14.07 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02288/1.682, allocations: 7.462 MB / 0.6365 GB, free: 7.984 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-05/1.682, allocations: 0 / 0.6365 GB, free: 7.984 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003513/1.685, allocations: 347.6 kB / 0.6368 GB, free: 7.707 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009377/1.686, allocations: 188.7 kB / 0.637 GB, free: 7.562 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004401/1.687, allocations: 35.61 kB / 0.637 GB, free: 7.531 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004064/1.691, allocations: 2.539 MB / 0.6395 GB, free: 5.082 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.691, allocations: 3.953 kB / 0.6395 GB, free: 5.078 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01178/1.703, allocations: 5.162 MB / 0.6445 GB, free: 500 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003236/1.706, allocations: 0.6624 MB / 0.6452 GB, free: 0 / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001386/1.708, allocations: 46.56 kB / 0.6452 GB, free: 0 / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004051/1.712, allocations: 151.6 kB / 0.6454 GB, free: 0 / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001244/1.713, allocations: 159.5 kB / 0.6455 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003404/1.713, allocations: 55.47 kB / 0.6456 GB, free: 15.92 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006597/1.72, allocations: 2.327 MB / 0.6478 GB, free: 13.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.72, allocations: 0 / 0.6478 GB, free: 13.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00737/1.727, allocations: 0.9882 MB / 0.6488 GB, free: 12.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 160 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01479/1.742, allocations: 5.984 MB / 0.6546 GB, free: 7.141 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01353/1.756, allocations: 4.877 MB / 0.6594 GB, free: 2.273 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/1.756, allocations: 4 kB / 0.6594 GB, free: 2.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004387/1.76, allocations: 1.525 MB / 0.6609 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003715/1.764, allocations: 404.3 kB / 0.6613 GB, free: 364 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3337/2.098, allocations: 9.645 MB / 0.6707 GB, free: 97.08 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01012/2.108, allocations: 3.545 MB / 0.6742 GB, free: 96.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005783/2.114, allocations: 2.05 MB / 0.6762 GB, free: 96.28 MB / 442.7 MB Notification: Performance of SimCode: time 1.884e-06/2.114, allocations: 2.531 kB / 0.6762 GB, free: 96.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.389/6.503, allocations: 103.1 MB / 0.7768 GB, free: 43.02 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat does not exist to compare? outputFormat=mat