Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.335/2.335, allocations: 209.4 MB / 216.5 MB, free: 6.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.415e-05/3.408e-05, allocations: 0 / 267.6 MB, free: 4.941 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1547, allocations: 48.71 MB / 316.3 MB, free: 4.145 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5433/0.698, allocations: 91.63 MB / 408 MB, free: 1.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/0.6984, allocations: 78.69 kB / 408 MB, free: 1.027 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.196/1.895, allocations: 162.4 MB / 0.557 GB, free: 72.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.895, allocations: 0 / 0.557 GB, free: 72.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004949/1.895, allocations: 158.1 kB / 0.5572 GB, free: 72.22 MB / 410.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.03294/1.928, allocations: 7.976 MB / 0.565 GB, free: 64.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/1.928, allocations: 12.03 kB / 0.565 GB, free: 64.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03154/1.96, allocations: 3.666 MB / 0.5686 GB, free: 61.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0319/1.992, allocations: 9.662 MB / 0.578 GB, free: 51.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006437/1.992, allocations: 276 kB / 0.5783 GB, free: 51.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004928/1.997, allocations: 497.3 kB / 0.5788 GB, free: 50.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.031/2.028, allocations: 11.59 MB / 0.5901 GB, free: 39.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04964/2.078, allocations: 16.97 MB / 0.6066 GB, free: 20.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000552/2.079, allocations: 95.41 kB / 0.6067 GB, free: 20.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004582/2.083, allocations: 51.95 kB / 0.6068 GB, free: 20.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004978/2.088, allocations: 1.864 MB / 0.6086 GB, free: 18.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4819/2.57, allocations: 82.11 MB / 0.6888 GB, free: 35.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009295/2.58, allocations: 3.067 MB / 0.6918 GB, free: 34.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005286/2.585, allocations: 1.489 MB / 0.6932 GB, free: 34.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000334/2.585, allocations: 47.42 kB / 0.6933 GB, free: 34.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.182e-05/2.586, allocations: 59.34 kB / 0.6933 GB, free: 34.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 9.598e-06/2.586, allocations: 0 / 0.6933 GB, free: 34.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.0623/2.648, allocations: 11.8 MB / 0.7049 GB, free: 29.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/2.648, allocations: 155.4 kB / 0.705 GB, free: 29.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01983/2.668, allocations: 5.159 MB / 0.71 GB, free: 29.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007386/2.669, allocations: 29.55 kB / 0.7101 GB, free: 29.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.008054/2.677, allocations: 5.919 MB / 0.7159 GB, free: 25.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002232/2.679, allocations: 0.9651 MB / 0.7168 GB, free: 25.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001423/2.681, allocations: 0 / 0.7168 GB, free: 25.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001207/2.682, allocations: 0.7118 MB / 0.7175 GB, free: 25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009986/2.692, allocations: 2.364 MB / 0.7198 GB, free: 24.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01593/2.708, allocations: 8.36 MB / 0.728 GB, free: 16.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0155/2.723, allocations: 4.392 MB / 0.7323 GB, free: 15.22 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007281/2.724, allocations: 62.81 kB / 0.7323 GB, free: 15.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.02849/2.753, allocations: 9.403 MB / 0.7415 GB, free: 12.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002364/2.753, allocations: 102 kB / 0.7416 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004609/2.754, allocations: 221.8 kB / 0.7418 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004076/2.754, allocations: 317.9 kB / 0.7421 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01506/2.769, allocations: 2.319 MB / 0.7444 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004298/2.77, allocations: 428.5 kB / 0.7448 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0123/2.782, allocations: 459.1 kB / 0.7452 GB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002424/2.784, allocations: 0.5767 MB / 0.7458 GB, free: 11.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 988 * 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 (1210): * Single equations (assignments): 1207 * 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.003315/2.788, allocations: 0.6301 MB / 0.7464 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007171/2.795, allocations: 2.862 MB / 0.7492 GB, free: 10.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001447/2.796, allocations: 0.5484 MB / 0.7497 GB, free: 9.762 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007254/2.804, allocations: 2.579 MB / 0.7522 GB, free: 8.785 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.372e-05/2.804, allocations: 26.34 kB / 0.7523 GB, free: 8.785 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/2.804, allocations: 3.438 kB / 0.7523 GB, free: 8.785 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.439e-05/2.804, allocations: 10.12 kB / 0.7523 GB, free: 8.785 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05051/2.854, allocations: 21.22 MB / 0.773 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.729e-05/2.855, allocations: 60 kB / 0.7731 GB, free: 10.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003811/2.858, allocations: 0.5632 MB / 0.7736 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/2.859, allocations: 80 kB / 0.7737 GB, free: 9.957 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002786/2.859, allocations: 87.12 kB / 0.7738 GB, free: 9.875 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001081/2.859, allocations: 116.9 kB / 0.7739 GB, free: 9.777 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-05/2.859, allocations: 87.62 kB / 0.774 GB, free: 9.691 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01918/2.878, allocations: 14.79 MB / 0.7884 GB, free: 8.406 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003264/2.882, allocations: 0.6534 MB / 0.789 GB, free: 7.754 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002753/2.884, allocations: 84.14 kB / 0.7891 GB, free: 7.684 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007772/2.892, allocations: 153.2 kB / 0.7893 GB, free: 7.574 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001418/2.894, allocations: 382.5 kB / 0.7896 GB, free: 7.266 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005911/2.894, allocations: 163.8 kB / 0.7898 GB, free: 7.109 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01393/2.908, allocations: 3.462 MB / 0.7932 GB, free: 4.117 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.908, allocations: 0 / 0.7932 GB, free: 4.117 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01879/2.927, allocations: 1.323 MB / 0.7945 GB, free: 2.801 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 256 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (300): * Single equations (assignments): 297 * 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.3654/3.293, allocations: 26.4 MB / 0.8203 GB, free: 108 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01563/3.308, allocations: 5.562 MB / 0.8257 GB, free: 107.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.404e-05/3.308, allocations: 12.16 kB / 0.8257 GB, free: 107.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004091/3.312, allocations: 1.403 MB / 0.8271 GB, free: 107.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007779/3.32, allocations: 0.7463 MB / 0.8278 GB, free: 107.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06023/3.381, allocations: 16.79 MB / 0.8442 GB, free: 103 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01617/3.397, allocations: 5.919 MB / 0.85 GB, free: 102.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01588/3.413, allocations: 2.951 MB / 0.8529 GB, free: 102.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009924/3.423, allocations: 3.791 MB / 0.8566 GB, free: 102 MB / 474.7 MB Notification: Performance of SimCode: time 2.174e-06/3.423, allocations: 0 / 0.8566 GB, free: 102 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2702/3.693, allocations: 112.7 MB / 0.9666 GB, free: 22.52 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/3.693, allocations: 126.1 kB / 0.9667 GB, free: 22.34 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.392/11.09, allocations: 4.031 kB / 0.9667 GB, free: 22.33 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat