Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForce,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_CutForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.959/1.959, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.791e-05/3.794e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4586/0.5658, allocations: 91.95 MB / 413.8 MB, free: 13.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.5662, allocations: 75.95 kB / 413.9 MB, free: 13.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.005/1.572, allocations: 159.1 MB / 0.5595 GB, free: 87.33 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.964e-06/1.572, allocations: 0 / 0.5595 GB, free: 87.33 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004574/1.572, allocations: 157.6 kB / 0.5596 GB, free: 87.32 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: 2796 * Number of variables: 2796 Notification: Performance of Generate backend data structure: time 0.03537/1.608, allocations: 7.752 MB / 0.5672 GB, free: 83.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/1.608, allocations: 10.72 kB / 0.5672 GB, free: 83.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007784/1.615, allocations: 1.394 MB / 0.5686 GB, free: 82.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04276/1.658, allocations: 3.62 MB / 0.5721 GB, free: 80.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03842/1.697, allocations: 9.544 MB / 0.5814 GB, free: 74.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008062/1.698, allocations: 0.599 MB / 0.582 GB, free: 74.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00466/1.702, allocations: 0.8028 MB / 0.5828 GB, free: 73.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05992/1.762, allocations: 18.68 MB / 0.601 GB, free: 53.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000519/1.763, allocations: 87.16 kB / 0.6011 GB, free: 53.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004144/1.767, allocations: 382 kB / 0.6015 GB, free: 53.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004658/1.772, allocations: 1.781 MB / 0.6032 GB, free: 51.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04673/1.818, allocations: 14.49 MB / 0.6174 GB, free: 36.83 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4937/2.312, allocations: 79 MB / 0.6945 GB, free: 25.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02955/2.342, allocations: 6.025 MB / 0.7004 GB, free: 25.26 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006273/2.348, allocations: 2.39 MB / 0.7027 GB, free: 25.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03441/2.383, allocations: 10.99 MB / 0.7135 GB, free: 22.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.562e-05/2.383, allocations: 57.12 kB / 0.7135 GB, free: 21.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=238): time 7.394e-06/2.383, allocations: 0 / 0.7135 GB, free: 21.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=262): time 0.07094/2.454, allocations: 14.76 MB / 0.7279 GB, free: 17.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/2.454, allocations: 158.6 kB / 0.7281 GB, free: 17.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01489/2.469, allocations: 5.72 MB / 0.7337 GB, free: 16.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005731/2.469, allocations: 64.16 kB / 0.7337 GB, free: 16.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004722/2.474, allocations: 5.355 MB / 0.739 GB, free: 13.06 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00152/2.476, allocations: 1.014 MB / 0.74 GB, free: 12.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00114/2.477, allocations: 176.4 kB / 0.7401 GB, free: 12.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000839/2.478, allocations: 0.6804 MB / 0.7408 GB, free: 11.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006541/2.484, allocations: 2.373 MB / 0.7431 GB, free: 10.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01047/2.495, allocations: 7.966 MB / 0.7509 GB, free: 2.641 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/2.505, allocations: 4.285 MB / 0.7551 GB, free: 1.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002207/2.505, allocations: 61.72 kB / 0.7551 GB, free: 1.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.02723/2.533, allocations: 9.798 MB / 0.7647 GB, free: 14.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001634/2.533, allocations: 88.62 kB / 0.7648 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003599/2.533, allocations: 201.7 kB / 0.765 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000353/2.534, allocations: 291.7 kB / 0.7653 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0144/2.548, allocations: 2.184 MB / 0.7674 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004498/2.549, allocations: 395.1 kB / 0.7678 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0121/2.561, allocations: 0.6081 MB / 0.7684 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002289/2.563, allocations: 0.537 MB / 0.7689 GB, free: 13.72 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * Number of states: 0 () * Number of discrete variables: 57 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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 (1128): * Single equations (assignments): 1125 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003765/2.567, allocations: 0.8067 MB / 0.7697 GB, free: 13.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001792/2.569, allocations: 0.5764 MB / 0.7702 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008499/2.577, allocations: 2.743 MB / 0.7729 GB, free: 11.69 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.145e-05/2.577, allocations: 27.84 kB / 0.7729 GB, free: 11.69 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/2.577, allocations: 2.812 kB / 0.7729 GB, free: 11.69 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.316e-05/2.577, allocations: 21.97 kB / 0.773 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06957/2.647, allocations: 26.4 MB / 0.7988 GB, free: 7.094 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001847/2.647, allocations: 59.28 kB / 0.7988 GB, free: 7.039 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004063/2.651, allocations: 0.5187 MB / 0.7993 GB, free: 6.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001288/2.651, allocations: 76 kB / 0.7994 GB, free: 6.516 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006479/2.652, allocations: 119.3 kB / 0.7995 GB, free: 6.402 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001217/2.652, allocations: 109.3 kB / 0.7996 GB, free: 6.305 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.339e-05/2.652, allocations: 83.62 kB / 0.7997 GB, free: 6.223 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/2.668, allocations: 14.53 MB / 0.8139 GB, free: 5.836 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00269/2.67, allocations: 0.681 MB / 0.8145 GB, free: 5.16 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002174/2.673, allocations: 122.5 kB / 0.8147 GB, free: 5.055 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005932/2.679, allocations: 201.7 kB / 0.8148 GB, free: 4.898 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001079/2.68, allocations: 352.8 kB / 0.8152 GB, free: 4.613 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004374/2.68, allocations: 143.4 kB / 0.8153 GB, free: 4.477 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01277/2.693, allocations: 4.016 MB / 0.8192 GB, free: 0.9531 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.92e-07/2.693, allocations: 0 / 0.8192 GB, free: 0.9531 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01702/2.71, allocations: 1.753 MB / 0.821 GB, free: 0 / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 240 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 267 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3483/3.058, allocations: 25.07 MB / 0.8454 GB, free: 122.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0154/3.074, allocations: 5.741 MB / 0.851 GB, free: 122.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.088e-05/3.074, allocations: 9.031 kB / 0.851 GB, free: 122.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003899/3.078, allocations: 1.451 MB / 0.8525 GB, free: 122.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00816/3.086, allocations: 0.8595 MB / 0.8533 GB, free: 122.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06017/3.146, allocations: 17.39 MB / 0.8703 GB, free: 117.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01534/3.162, allocations: 5.734 MB / 0.8759 GB, free: 116.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008992/3.171, allocations: 3.733 MB / 0.8795 GB, free: 115.8 MB / 490.7 MB Notification: Performance of SimCode: time 2.244e-06/3.171, allocations: 0.5469 kB / 0.8795 GB, free: 115.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.376/8.547, allocations: 139 MB / 1.015 GB, free: 106.6 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutForce_res.mat does not exist to compare? outputFormat=mat