Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.249/2.249, allocations: 235 MB / 247.2 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.375e-05/3.377e-05, allocations: 4 kB / 305 MB, free: 5.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.4121, allocations: 54.86 MB / 359.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1835/0.5957, allocations: 103.8 MB / 463.7 MB, free: 9.105 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.596, allocations: 71.97 kB / 463.8 MB, free: 9.035 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7189/1.315, allocations: 91.08 MB / 0.5418 GB, free: 103.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.315, allocations: 3.344 kB / 0.5418 GB, free: 103.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003129/1.315, allocations: 89.16 kB / 0.5419 GB, free: 103.8 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: 1642 * Number of variables: 1642 Notification: Performance of Generate backend data structure: time 0.01782/1.333, allocations: 4.136 MB / 0.546 GB, free: 102 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/1.333, allocations: 9.156 kB / 0.546 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004053/1.337, allocations: 0.8292 MB / 0.5468 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03343/1.371, allocations: 4.436 MB / 0.5511 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01793/1.389, allocations: 4.73 MB / 0.5557 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004346/1.389, allocations: 357.8 kB / 0.5561 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002659/1.392, allocations: 462.9 kB / 0.5565 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02878/1.421, allocations: 10.5 MB / 0.5668 GB, free: 97.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002928/1.421, allocations: 59.41 kB / 0.5668 GB, free: 97.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002468/1.424, allocations: 225.9 kB / 0.567 GB, free: 97.26 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002272/1.426, allocations: 0.9924 MB / 0.568 GB, free: 97.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02388/1.45, allocations: 8.26 MB / 0.5761 GB, free: 94.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06788/1.518, allocations: 46.88 MB / 0.6219 GB, free: 58.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008652/1.527, allocations: 2.912 MB / 0.6247 GB, free: 56.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003364/1.53, allocations: 1.581 MB / 0.6262 GB, free: 54.93 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006015/1.531, allocations: 339.8 kB / 0.6266 GB, free: 54.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.545e-05/1.531, allocations: 55.78 kB / 0.6266 GB, free: 54.51 MB / 458.7 MB Notification: Performance of pre-optimization done (n=176): time 6.622e-06/1.531, allocations: 0 / 0.6266 GB, free: 54.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=194): time 0.03951/1.57, allocations: 11.27 MB / 0.6376 GB, free: 44.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/1.57, allocations: 204.5 kB / 0.6378 GB, free: 44.22 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007805/1.578, allocations: 3.34 MB / 0.6411 GB, free: 41.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005178/1.579, allocations: 49.7 kB / 0.6411 GB, free: 41.21 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002829/1.582, allocations: 3.222 MB / 0.6443 GB, free: 38.33 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001196/1.583, allocations: 0.7356 MB / 0.645 GB, free: 37.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008033/1.584, allocations: 123.8 kB / 0.6451 GB, free: 37.56 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004585/1.584, allocations: 0.5571 MB / 0.6457 GB, free: 37.07 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005384/1.59, allocations: 1.992 MB / 0.6476 GB, free: 35.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007712/1.597, allocations: 5.612 MB / 0.6531 GB, free: 27.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007406/1.605, allocations: 3.327 MB / 0.6563 GB, free: 24.44 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001196/1.605, allocations: 36 kB / 0.6564 GB, free: 24.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02/1.625, allocations: 7.251 MB / 0.6634 GB, free: 17.15 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.625, allocations: 70.73 kB / 0.6635 GB, free: 17.08 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/1.625, allocations: 132 kB / 0.6636 GB, free: 16.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/1.627, allocations: 385.3 kB / 0.664 GB, free: 16.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009273/1.636, allocations: 1.419 MB / 0.6654 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004775/1.641, allocations: 2.999 MB / 0.6683 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006886/1.648, allocations: 359.2 kB / 0.6687 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/1.649, allocations: 368 kB / 0.669 GB, free: 11.32 MB / 458.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.00255/1.652, allocations: 0.551 MB / 0.6696 GB, free: 10.76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009151/1.653, allocations: 339.6 kB / 0.6699 GB, free: 10.42 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007887/1.661, allocations: 2.624 MB / 0.6724 GB, free: 7.785 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.663e-05/1.661, allocations: 24 kB / 0.6725 GB, free: 7.762 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/1.661, allocations: 0 / 0.6725 GB, free: 7.762 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.392e-05/1.661, allocations: 15.91 kB / 0.6725 GB, free: 7.746 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02332/1.684, allocations: 7.437 MB / 0.6797 GB, free: 284 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/1.684, allocations: 4 kB / 0.6797 GB, free: 280 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003505/1.688, allocations: 351.5 kB / 0.6801 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009824/1.689, allocations: 184.7 kB / 0.6803 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004217/1.689, allocations: 35.97 kB / 0.6803 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004633/1.694, allocations: 2.556 MB / 0.6828 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/1.694, allocations: 0 / 0.6828 GB, free: 13.03 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01302/1.707, allocations: 5.15 MB / 0.6878 GB, free: 7.844 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002523/1.71, allocations: 0.6253 MB / 0.6884 GB, free: 7.195 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00095/1.711, allocations: 32 kB / 0.6885 GB, free: 7.164 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003096/1.714, allocations: 115.9 kB / 0.6886 GB, free: 7.051 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006595/1.715, allocations: 140.7 kB / 0.6887 GB, free: 6.914 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002316/1.715, allocations: 47.98 kB / 0.6888 GB, free: 6.867 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006656/1.721, allocations: 2.318 MB / 0.691 GB, free: 4.566 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.31e-07/1.722, allocations: 0 / 0.691 GB, free: 4.566 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007926/1.729, allocations: 0.9999 MB / 0.692 GB, free: 3.566 MB / 474.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.01458/1.744, allocations: 5.964 MB / 0.6978 GB, free: 13.56 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01268/1.757, allocations: 4.689 MB / 0.7024 GB, free: 8.891 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.757, allocations: 0 / 0.7024 GB, free: 8.891 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004013/1.761, allocations: 1.51 MB / 0.7039 GB, free: 7.375 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003478/1.764, allocations: 392.9 kB / 0.7042 GB, free: 7.004 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3573/2.122, allocations: 9.142 MB / 0.7132 GB, free: 120.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009931/2.132, allocations: 3.538 MB / 0.7166 GB, free: 120.1 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01046/2.142, allocations: 1.946 MB / 0.7185 GB, free: 120 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005225/2.148, allocations: 2.001 MB / 0.7205 GB, free: 120 MB / 490.7 MB Notification: Performance of SimCode: time 1.983e-06/2.148, allocations: 0 / 0.7205 GB, free: 120 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1751/2.323, allocations: 74.3 MB / 0.793 GB, free: 93.65 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000249/2.323, allocations: 189.6 kB / 0.7932 GB, free: 93.41 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.263/7.586, allocations: 0 / 0.7932 GB, free: 93.41 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat does not exist to compare? outputFormat=mat