Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 235 MB / 247.6 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.241e-05/4.226e-05, allocations: 4.938 kB / 305 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4115/0.4116, allocations: 54.85 MB / 359.9 MB, free: 2.598 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.25/0.6616, allocations: 95.95 MB / 455.8 MB, free: 1.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.662, allocations: 75.97 kB / 455.9 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2384/0.9004, allocations: 56.89 MB / 0.5007 GB, free: 7.727 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.9005, allocations: 0 / 0.5007 GB, free: 7.727 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001596/0.9007, allocations: 59.98 kB / 0.5008 GB, free: 7.668 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1092 * Number of variables: 1092 Notification: Performance of Generate backend data structure: time 0.01007/0.9108, allocations: 2.661 MB / 0.5034 GB, free: 4.949 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/0.9108, allocations: 12.03 kB / 0.5034 GB, free: 4.938 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002471/0.9133, allocations: 0.5605 MB / 0.504 GB, free: 4.367 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01419/0.9276, allocations: 1.829 MB / 0.5057 GB, free: 2.531 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006482/0.9341, allocations: 1.743 MB / 0.5074 GB, free: 0.7383 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003577/0.9345, allocations: 229.9 kB / 0.5077 GB, free: 0.5117 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001877/0.9364, allocations: 291.9 kB / 0.5079 GB, free: 232 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0217/0.9582, allocations: 6.716 MB / 0.5145 GB, free: 9.121 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001368/0.9583, allocations: 19.81 kB / 0.5145 GB, free: 9.102 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001259/0.9596, allocations: 135.9 kB / 0.5147 GB, free: 8.969 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001558/0.9612, allocations: 0.6962 MB / 0.5153 GB, free: 8.266 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01861/0.9798, allocations: 5.771 MB / 0.521 GB, free: 2.488 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4664/1.446, allocations: 23.82 MB / 0.5442 GB, free: 103.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/1.457, allocations: 2.161 MB / 0.5463 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002839/1.46, allocations: 0.7969 MB / 0.5471 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01755/1.478, allocations: 4.005 MB / 0.551 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.358e-05/1.478, allocations: 42.28 kB / 0.5511 GB, free: 101.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=96): time 5.981e-06/1.478, allocations: 0 / 0.5511 GB, free: 101.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.01306/1.491, allocations: 1.759 MB / 0.5528 GB, free: 101.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/1.491, allocations: 60.31 kB / 0.5528 GB, free: 101.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005747/1.497, allocations: 1.779 MB / 0.5546 GB, free: 100.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002306/1.497, allocations: 36.05 kB / 0.5546 GB, free: 100.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00222/1.5, allocations: 2.02 MB / 0.5566 GB, free: 99.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007357/1.5, allocations: 374.1 kB / 0.5569 GB, free: 99.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003875/1.501, allocations: 63.31 kB / 0.557 GB, free: 99.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000337/1.501, allocations: 448 kB / 0.5574 GB, free: 99.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003416/1.504, allocations: 0.925 MB / 0.5583 GB, free: 99.06 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004803/1.509, allocations: 2.862 MB / 0.5611 GB, free: 96.14 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005092/1.515, allocations: 1.669 MB / 0.5628 GB, free: 95.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/1.515, allocations: 19.62 kB / 0.5628 GB, free: 95.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.011/1.526, allocations: 3.465 MB / 0.5662 GB, free: 94.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.392e-05/1.526, allocations: 35.09 kB / 0.5662 GB, free: 94.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.678e-05/1.526, allocations: 69.16 kB / 0.5663 GB, free: 94.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001357/1.526, allocations: 103.6 kB / 0.5664 GB, free: 94.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004492/1.531, allocations: 0.7252 MB / 0.5671 GB, free: 94.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001472/1.531, allocations: 139.6 kB / 0.5672 GB, free: 94.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/1.534, allocations: 442.8 kB / 0.5676 GB, free: 94.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007565/1.535, allocations: 202.6 kB / 0.5678 GB, free: 94.22 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 317 * Number of states: 0 () * Number of discrete variables: 21 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (395): * Single equations (assignments): 392 * 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.0006861/1.536, allocations: 352.6 kB / 0.5682 GB, free: 93.92 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004004/1.536, allocations: 167.2 kB / 0.5683 GB, free: 93.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002976/1.539, allocations: 1.214 MB / 0.5695 GB, free: 93.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.92e-05/1.539, allocations: 13.27 kB / 0.5695 GB, free: 93.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/1.54, allocations: 0 / 0.5695 GB, free: 93.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/1.54, allocations: 7.797 kB / 0.5695 GB, free: 93.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01327/1.553, allocations: 4.99 MB / 0.5744 GB, free: 91.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-05/1.553, allocations: 15.06 kB / 0.5744 GB, free: 91.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/1.554, allocations: 143.4 kB / 0.5745 GB, free: 91.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.41e-05/1.554, allocations: 15 kB / 0.5746 GB, free: 91.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.659e-05/1.554, allocations: 24.88 kB / 0.5746 GB, free: 91.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.901e-05/1.554, allocations: 21.88 kB / 0.5746 GB, free: 91.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/1.554, allocations: 15.78 kB / 0.5746 GB, free: 91.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00293/1.557, allocations: 2.291 MB / 0.5769 GB, free: 89.31 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006498/1.558, allocations: 277.1 kB / 0.5771 GB, free: 89.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/1.558, allocations: 26.59 kB / 0.5771 GB, free: 89.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/1.559, allocations: 42.55 kB / 0.5772 GB, free: 89.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/1.56, allocations: 82.72 kB / 0.5773 GB, free: 89.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/1.56, allocations: 40.53 kB / 0.5773 GB, free: 89.03 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003071/1.563, allocations: 1.301 MB / 0.5786 GB, free: 88.52 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.523e-06/1.563, allocations: 0 / 0.5786 GB, free: 88.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004215/1.567, allocations: 0.7625 MB / 0.5793 GB, free: 88.29 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 73 * 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.00388/1.571, allocations: 5.549 MB / 0.5847 GB, free: 83.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004817/1.576, allocations: 2.094 MB / 0.5868 GB, free: 82.62 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.624e-05/1.576, allocations: 4.094 kB / 0.5868 GB, free: 82.62 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/1.577, allocations: 0.5339 MB / 0.5873 GB, free: 82.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/1.579, allocations: 249.7 kB / 0.5875 GB, free: 82.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01715/1.596, allocations: 5.911 MB / 0.5933 GB, free: 79.89 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004281/1.601, allocations: 2.506 MB / 0.5958 GB, free: 78.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002548/1.603, allocations: 1.189 MB / 0.5969 GB, free: 77.84 MB / 458.7 MB Notification: Performance of SimCode: time 1.713e-06/1.603, allocations: 0 / 0.5969 GB, free: 77.84 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.403/5.006, allocations: 48.41 MB / 0.6442 GB, free: 38.25 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat does not exist to compare? outputFormat=mat