Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.02/2.02, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.242e-05/3.261e-05, allocations: 0 / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1006, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4269/0.5275, allocations: 95.86 MB / 417.7 MB, free: 9.945 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/0.5279, allocations: 83.95 kB / 417.8 MB, free: 9.863 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6999/1.228, allocations: 97.19 MB / 0.5029 GB, free: 89.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.417e-06/1.228, allocations: 2.844 kB / 0.5029 GB, free: 89.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003494/1.228, allocations: 107.4 kB / 0.503 GB, free: 89.11 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: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.03311/1.261, allocations: 5.508 MB / 0.5084 GB, free: 87.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/1.261, allocations: 8.938 kB / 0.5084 GB, free: 87.16 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004965/1.266, allocations: 0.929 MB / 0.5093 GB, free: 87.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01899/1.285, allocations: 2.321 MB / 0.5116 GB, free: 86.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02016/1.306, allocations: 4.953 MB / 0.5164 GB, free: 86.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006814/1.306, allocations: 398.6 kB / 0.5168 GB, free: 86.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003476/1.31, allocations: 0.5159 MB / 0.5173 GB, free: 86.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04221/1.352, allocations: 12.85 MB / 0.5298 GB, free: 83.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004261/1.353, allocations: 65.14 kB / 0.5299 GB, free: 83.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003106/1.356, allocations: 249.7 kB / 0.5301 GB, free: 83.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00283/1.359, allocations: 1.214 MB / 0.5313 GB, free: 83.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03535/1.394, allocations: 11.08 MB / 0.5421 GB, free: 82.67 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09307/1.487, allocations: 55.77 MB / 0.5966 GB, free: 43.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02661/1.514, allocations: 5.264 MB / 0.6017 GB, free: 41.24 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006419/1.52, allocations: 3.275 MB / 0.6049 GB, free: 38.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002328/1.523, allocations: 1.017 MB / 0.6059 GB, free: 37.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.316e-05/1.523, allocations: 55.81 kB / 0.606 GB, free: 37.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 5.761e-06/1.523, allocations: 0 / 0.606 GB, free: 37.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=255): time 0.1003/1.623, allocations: 21.95 MB / 0.6274 GB, free: 18.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/1.623, allocations: 158.5 kB / 0.6276 GB, free: 18.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009517/1.633, allocations: 3.975 MB / 0.6315 GB, free: 15.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007698/1.633, allocations: 65.53 kB / 0.6315 GB, free: 15.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002904/1.636, allocations: 3.429 MB / 0.6349 GB, free: 12.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001595/1.638, allocations: 0.9609 MB / 0.6358 GB, free: 11.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/1.639, allocations: 136 kB / 0.6359 GB, free: 11.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005854/1.64, allocations: 0.5939 MB / 0.6365 GB, free: 10.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007495/1.647, allocations: 2.969 MB / 0.6394 GB, free: 7.898 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/1.657, allocations: 6.874 MB / 0.6461 GB, free: 15.51 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/1.669, allocations: 4.461 MB / 0.6505 GB, free: 11.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/1.669, allocations: 40 kB / 0.6505 GB, free: 11.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=891) (initialization): time 0.03306/1.702, allocations: 10.57 MB / 0.6608 GB, free: 440 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000143/1.703, allocations: 67.95 kB / 0.6609 GB, free: 372 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002267/1.703, allocations: 136 kB / 0.661 GB, free: 236 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3019/2.005, allocations: 1.124 MB / 0.6621 GB, free: 93.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01228/2.017, allocations: 1.706 MB / 0.6638 GB, free: 93.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/2.03, allocations: 5.918 MB / 0.6696 GB, free: 91.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008958/2.039, allocations: 423.5 kB / 0.67 GB, free: 91.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002022/2.041, allocations: 424.3 kB / 0.6704 GB, free: 91.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * Number of states: 0 () * Number of discrete variables: 39 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (852): * Single equations (assignments): 848 * 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 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003071/2.044, allocations: 0.6237 MB / 0.671 GB, free: 91.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001256/2.046, allocations: 410.7 kB / 0.6714 GB, free: 91.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01842/2.064, allocations: 5.579 MB / 0.6768 GB, free: 91.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.902e-05/2.064, allocations: 28.25 kB / 0.6769 GB, free: 91.65 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/2.064, allocations: 2.719 kB / 0.6769 GB, free: 91.65 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.839e-05/2.064, allocations: 12.2 kB / 0.6769 GB, free: 91.65 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03602/2.1, allocations: 12.27 MB / 0.6889 GB, free: 90.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.946e-05/2.101, allocations: 3.594 kB / 0.6889 GB, free: 90.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005375/2.106, allocations: 0.5105 MB / 0.6894 GB, free: 90.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00449/2.11, allocations: 0.9338 MB / 0.6903 GB, free: 90.83 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007504/2.111, allocations: 53.83 kB / 0.6903 GB, free: 90.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/2.122, allocations: 5.644 MB / 0.6958 GB, free: 89.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/2.122, allocations: 6.312 kB / 0.6958 GB, free: 89.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02253/2.144, allocations: 9.828 MB / 0.7054 GB, free: 85.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003557/2.148, allocations: 0.9163 MB / 0.7063 GB, free: 84.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001434/2.149, allocations: 50.84 kB / 0.7064 GB, free: 84.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004631/2.154, allocations: 187.8 kB / 0.7066 GB, free: 84.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009709/2.155, allocations: 162.9 kB / 0.7067 GB, free: 84.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003313/2.155, allocations: 68.17 kB / 0.7068 GB, free: 84.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006855/2.162, allocations: 2.778 MB / 0.7095 GB, free: 83.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/2.162, allocations: 0 / 0.7095 GB, free: 83.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008551/2.171, allocations: 1.256 MB / 0.7107 GB, free: 83.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 224 * 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 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02492/2.196, allocations: 11.18 MB / 0.7217 GB, free: 78.28 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01675/2.213, allocations: 7.176 MB / 0.7287 GB, free: 76.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/2.213, allocations: 3.969 kB / 0.7287 GB, free: 76.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00682/2.22, allocations: 2.718 MB / 0.7313 GB, free: 75.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004285/2.224, allocations: 459.2 kB / 0.7318 GB, free: 74.83 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03891/2.263, allocations: 12.33 MB / 0.7438 GB, free: 69.03 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008316/2.271, allocations: 3.909 MB / 0.7476 GB, free: 66.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006377/2.278, allocations: 2.379 MB / 0.7499 GB, free: 63.92 MB / 442.7 MB Notification: Performance of SimCode: time 1.372e-06/2.278, allocations: 0 / 0.7499 GB, free: 63.92 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.036/7.313, allocations: 121.2 MB / 0.8683 GB, free: 98.78 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat does not exist to compare? outputFormat=mat