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 2.183/2.183, allocations: 209.4 MB / 216.9 MB, free: 6.734 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.335e-05, allocations: 6.109 kB / 267.6 MB, free: 5.402 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1319, allocations: 48.7 MB / 316.3 MB, free: 4.609 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4302/0.5621, allocations: 96.57 MB / 412.9 MB, free: 12.03 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002969/0.5625, allocations: 82.31 kB / 413 MB, free: 11.99 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.7135/1.276, allocations: 89.13 MB / 0.4903 GB, free: 86.23 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.124e-06/1.276, allocations: 0 / 0.4903 GB, free: 86.23 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0002943/1.276, allocations: 82.19 kB / 0.4904 GB, free: 86.23 MB / 410.8 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.0181/1.294, allocations: 4.159 MB / 0.4945 GB, free: 84.44 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/1.295, allocations: 10.09 kB / 0.4945 GB, free: 84.44 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03345/1.328, allocations: 4.438 MB / 0.4988 GB, free: 84.14 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01884/1.347, allocations: 4.724 MB / 0.5034 GB, free: 83.55 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003641/1.347, allocations: 148.6 kB / 0.5036 GB, free: 83.55 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002643/1.35, allocations: 270.4 kB / 0.5038 GB, free: 83.55 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01607/1.366, allocations: 6.301 MB / 0.51 GB, free: 83.53 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02646/1.393, allocations: 9.719 MB / 0.5195 GB, free: 80.84 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002858/1.393, allocations: 57.61 kB / 0.5195 GB, free: 80.84 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002158/1.395, allocations: 32.53 kB / 0.5195 GB, free: 80.84 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002209/1.397, allocations: 0.9922 MB / 0.5205 GB, free: 80.83 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06447/1.462, allocations: 44.72 MB / 0.5642 GB, free: 47.96 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004881/1.467, allocations: 2.707 MB / 0.5668 GB, free: 46.48 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002919/1.47, allocations: 1.543 MB / 0.5683 GB, free: 45.83 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005406/1.47, allocations: 340.9 kB / 0.5687 GB, free: 45.53 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.766e-05/1.47, allocations: 55.38 kB / 0.5687 GB, free: 45.48 MB / 410.8 MB Notification: Performance of pre-optimization done (n=176): time 5.961e-06/1.47, allocations: 0 / 0.5687 GB, free: 45.48 MB / 410.8 MB Notification: Performance of matching and sorting (n=194): time 0.03319/1.504, allocations: 12.36 MB / 0.5808 GB, free: 39.46 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.967e-05/1.504, allocations: 209.2 kB / 0.581 GB, free: 39.21 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005647/1.509, allocations: 2.974 MB / 0.5839 GB, free: 36.6 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005121/1.51, allocations: 33.7 kB / 0.5839 GB, free: 36.56 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002584/1.513, allocations: 3.26 MB / 0.5871 GB, free: 33.59 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001189/1.514, allocations: 0.7191 MB / 0.5878 GB, free: 32.94 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007029/1.515, allocations: 0 / 0.5878 GB, free: 32.94 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0004181/1.515, allocations: 0.5757 MB / 0.5884 GB, free: 32.43 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004226/1.519, allocations: 1.935 MB / 0.5903 GB, free: 30.71 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007397/1.527, allocations: 5.766 MB / 0.5959 GB, free: 23.33 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007485/1.534, allocations: 3.296 MB / 0.5991 GB, free: 20.53 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001338/1.534, allocations: 40 kB / 0.5992 GB, free: 20.49 MB / 410.8 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.01821/1.553, allocations: 6.953 MB / 0.6059 GB, free: 14.41 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.37e-05/1.553, allocations: 64 kB / 0.606 GB, free: 14.35 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001462/1.553, allocations: 136 kB / 0.6061 GB, free: 14.22 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/1.554, allocations: 397.4 kB / 0.6065 GB, free: 13.88 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008944/1.563, allocations: 1.487 MB / 0.608 GB, free: 12.58 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004442/1.568, allocations: 2.905 MB / 0.6108 GB, free: 9.832 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006539/1.574, allocations: 233 kB / 0.611 GB, free: 9.637 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001191/1.575, allocations: 395.3 kB / 0.6114 GB, free: 9.262 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (780): * Single equations (assignments): 776 * 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.001045/1.577, allocations: 446.9 kB / 0.6118 GB, free: 8.824 MB / 410.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006328/1.583, allocations: 2.783 MB / 0.6145 GB, free: 6.398 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007305/1.584, allocations: 319.9 kB / 0.6148 GB, free: 6.082 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006028/1.59, allocations: 2.485 MB / 0.6173 GB, free: 4.027 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-05/1.59, allocations: 20 kB / 0.6173 GB, free: 4.008 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/1.59, allocations: 4 kB / 0.6173 GB, free: 4.004 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.908e-05/1.59, allocations: 14.5 kB / 0.6173 GB, free: 4 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02048/1.61, allocations: 6.611 MB / 0.6238 GB, free: 14.69 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/1.61, allocations: 4 kB / 0.6238 GB, free: 14.68 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003518/1.614, allocations: 343.5 kB / 0.6241 GB, free: 14.35 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009306/1.615, allocations: 181.8 kB / 0.6243 GB, free: 14.17 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003106/1.615, allocations: 19.97 kB / 0.6243 GB, free: 14.15 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004369/1.62, allocations: 2.441 MB / 0.6267 GB, free: 11.6 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.62, allocations: 4.031 kB / 0.6267 GB, free: 11.6 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0118/1.631, allocations: 5.006 MB / 0.6316 GB, free: 6.547 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002245/1.634, allocations: 0.6021 MB / 0.6322 GB, free: 5.922 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007631/1.635, allocations: 3.375 kB / 0.6322 GB, free: 5.922 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002446/1.637, allocations: 91.94 kB / 0.6322 GB, free: 5.832 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005351/1.638, allocations: 133 kB / 0.6324 GB, free: 5.703 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00024/1.638, allocations: 59.97 kB / 0.6324 GB, free: 5.645 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.004594/1.642, allocations: 1.972 MB / 0.6344 GB, free: 3.684 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.102e-06/1.642, allocations: 4 kB / 0.6344 GB, free: 3.68 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.007588/1.65, allocations: 0.8554 MB / 0.6352 GB, free: 2.824 MB / 426.8 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.3147/1.965, allocations: 5.795 MB / 0.6409 GB, free: 90.04 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.0124/1.977, allocations: 4.67 MB / 0.6454 GB, free: 89.92 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.977, allocations: 0 / 0.6454 GB, free: 89.92 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003905/1.981, allocations: 1.485 MB / 0.6469 GB, free: 89.82 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002898/1.984, allocations: 299.9 kB / 0.6472 GB, free: 89.8 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0359/2.02, allocations: 9.447 MB / 0.6564 GB, free: 88.15 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008631/2.029, allocations: 3.545 MB / 0.6598 GB, free: 87.35 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00556/2.034, allocations: 2.035 MB / 0.6618 GB, free: 87.34 MB / 426.8 MB Notification: Performance of SimCode: time 2.234e-06/2.034, allocations: 0 / 0.6618 GB, free: 87.34 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.325/6.36, allocations: 100.9 MB / 0.7603 GB, free: 26.17 MB / 426.8 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