Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.949/1.949, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.657e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.0991, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4309/0.53, allocations: 92.07 MB / 413.9 MB, free: 13.83 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.5304, allocations: 71.97 kB / 414 MB, free: 13.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9901/1.52, allocations: 166.2 MB / 0.5666 GB, free: 84.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.521, allocations: 0 / 0.5666 GB, free: 84.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004668/1.521, allocations: 161.4 kB / 0.5668 GB, free: 84.73 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: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.03111/1.552, allocations: 7.978 MB / 0.5745 GB, free: 79.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/1.552, allocations: 13.84 kB / 0.5746 GB, free: 79.57 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006989/1.559, allocations: 1.461 MB / 0.576 GB, free: 78.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03201/1.591, allocations: 3.669 MB / 0.5796 GB, free: 76.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03242/1.624, allocations: 9.686 MB / 0.589 GB, free: 67.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008156/1.625, allocations: 0.6264 MB / 0.5896 GB, free: 67.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004853/1.63, allocations: 0.825 MB / 0.5904 GB, free: 66.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0582/1.688, allocations: 19.37 MB / 0.6094 GB, free: 45.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005017/1.688, allocations: 95.11 kB / 0.6095 GB, free: 45.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00382/1.692, allocations: 408.9 kB / 0.6098 GB, free: 45.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004594/1.697, allocations: 1.864 MB / 0.6117 GB, free: 43.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0475/1.744, allocations: 15.03 MB / 0.6263 GB, free: 28.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4571/2.201, allocations: 81.52 MB / 0.706 GB, free: 37.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03907/2.241, allocations: 5.926 MB / 0.7117 GB, free: 36.72 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008214/2.249, allocations: 2.474 MB / 0.7142 GB, free: 36.69 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04138/2.29, allocations: 11.33 MB / 0.7252 GB, free: 33.47 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.733e-05/2.29, allocations: 64.72 kB / 0.7253 GB, free: 33.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=250): time 6.413e-06/2.29, allocations: 2.844 kB / 0.7253 GB, free: 33.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=274): time 0.07306/2.363, allocations: 14.99 MB / 0.7399 GB, free: 28.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.689e-05/2.364, allocations: 162.7 kB / 0.7401 GB, free: 28.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01418/2.378, allocations: 5.837 MB / 0.7458 GB, free: 27.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005878/2.378, allocations: 64.73 kB / 0.7458 GB, free: 27.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004737/2.383, allocations: 5.566 MB / 0.7513 GB, free: 23.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001534/2.385, allocations: 1.055 MB / 0.7523 GB, free: 23.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001052/2.386, allocations: 183.8 kB / 0.7525 GB, free: 22.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007128/2.387, allocations: 0.6961 MB / 0.7532 GB, free: 22.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006502/2.393, allocations: 2.48 MB / 0.7556 GB, free: 21.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01101/2.404, allocations: 8.243 MB / 0.7636 GB, free: 13.01 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/2.415, allocations: 4.467 MB / 0.768 GB, free: 11.67 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002279/2.415, allocations: 59.94 kB / 0.7681 GB, free: 11.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.0282/2.444, allocations: 10.19 MB / 0.778 GB, free: 8.375 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001542/2.444, allocations: 94.72 kB / 0.7781 GB, free: 8.375 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000283/2.444, allocations: 203.6 kB / 0.7783 GB, free: 8.375 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003371/2.445, allocations: 302.1 kB / 0.7786 GB, free: 8.375 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01438/2.459, allocations: 2.253 MB / 0.7808 GB, free: 8.102 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004795/2.459, allocations: 403.2 kB / 0.7812 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01225/2.472, allocations: 0.6195 MB / 0.7818 GB, free: 7.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002259/2.474, allocations: 0.55 MB / 0.7823 GB, free: 7.766 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 940 * 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],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[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],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[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],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1168): * Single equations (assignments): 1165 * 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.003701/2.478, allocations: 0.8228 MB / 0.7831 GB, free: 7.098 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001634/2.479, allocations: 0.6029 MB / 0.7837 GB, free: 6.758 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009209/2.489, allocations: 2.923 MB / 0.7866 GB, free: 5.625 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.794e-05/2.489, allocations: 28.44 kB / 0.7866 GB, free: 5.625 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/2.489, allocations: 10.53 kB / 0.7866 GB, free: 5.625 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-05/2.489, allocations: 11.86 kB / 0.7866 GB, free: 5.625 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07108/2.56, allocations: 24.82 MB / 0.8108 GB, free: 1.434 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000354/2.56, allocations: 64 kB / 0.8109 GB, free: 1.371 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006197/2.567, allocations: 0.5987 MB / 0.8115 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002062/2.567, allocations: 88 kB / 0.8116 GB, free: 0.7578 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007721/2.568, allocations: 132 kB / 0.8117 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000199/2.568, allocations: 123.9 kB / 0.8118 GB, free: 0.5234 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001459/2.568, allocations: 99.56 kB / 0.8119 GB, free: 436 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3778/2.946, allocations: 17.05 MB / 0.8286 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002943/2.949, allocations: 0.7149 MB / 0.8293 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002632/2.952, allocations: 145.8 kB / 0.8294 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006645/2.958, allocations: 209.2 kB / 0.8296 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001311/2.96, allocations: 412.9 kB / 0.83 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006267/2.96, allocations: 171 kB / 0.8302 GB, free: 112.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0136/2.974, allocations: 4.089 MB / 0.8341 GB, free: 112.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.433e-06/2.974, allocations: 3.875 kB / 0.8342 GB, free: 112.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01307/2.987, allocations: 1.545 MB / 0.8357 GB, free: 112.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 280 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 315 * 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.01745/3.005, allocations: 28.87 MB / 0.8639 GB, free: 85.53 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01545/3.02, allocations: 6.015 MB / 0.8697 GB, free: 85.45 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.85e-05/3.02, allocations: 15.12 kB / 0.8697 GB, free: 85.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003754/3.024, allocations: 1.585 MB / 0.8713 GB, free: 85.26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008269/3.032, allocations: 0.9057 MB / 0.8722 GB, free: 85.22 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05772/3.09, allocations: 18.39 MB / 0.8901 GB, free: 79.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01542/3.106, allocations: 5.953 MB / 0.8959 GB, free: 79.07 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00921/3.115, allocations: 3.931 MB / 0.8998 GB, free: 76.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.843e-06/3.115, allocations: 0 / 0.8998 GB, free: 76.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.777/8.892, allocations: 144.2 MB / 1.041 GB, free: 110.8 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat