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.011/2.011, allocations: 209.4 MB / 216.9 MB, free: 6.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.907e-05, allocations: 7.984 kB / 267.6 MB, free: 5.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 48.69 MB / 316.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4661/0.568, allocations: 95.45 MB / 411.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.5684, allocations: 80.83 kB / 411.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7232/1.292, allocations: 95.17 MB / 0.4951 GB, free: 83.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.292, allocations: 0 / 0.4951 GB, free: 83.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003558/1.292, allocations: 106.6 kB / 0.4952 GB, free: 83.79 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: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.03238/1.324, allocations: 5.506 MB / 0.5006 GB, free: 81.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/1.324, allocations: 12.41 kB / 0.5006 GB, free: 81.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0185/1.343, allocations: 2.317 MB / 0.5029 GB, free: 81.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01809/1.361, allocations: 4.954 MB / 0.5077 GB, free: 80.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003324/1.362, allocations: 170.4 kB / 0.5079 GB, free: 80.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002753/1.364, allocations: 304.7 kB / 0.5082 GB, free: 80.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02036/1.385, allocations: 7.813 MB / 0.5158 GB, free: 80.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02902/1.414, allocations: 11.47 MB / 0.527 GB, free: 77.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002792/1.414, allocations: 64.31 kB / 0.5271 GB, free: 77.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00186/1.416, allocations: 32.5 kB / 0.5271 GB, free: 77.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/1.419, allocations: 1.215 MB / 0.5283 GB, free: 77.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08595/1.505, allocations: 53.55 MB / 0.5806 GB, free: 39.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007806/1.512, allocations: 4.467 MB / 0.5849 GB, free: 35.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005767/1.518, allocations: 3.218 MB / 0.5881 GB, free: 33.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002285/1.521, allocations: 1.005 MB / 0.5891 GB, free: 32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/1.521, allocations: 66.84 kB / 0.5891 GB, free: 31.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 5.851e-06/1.521, allocations: 4 kB / 0.5891 GB, free: 31.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.07983/1.601, allocations: 22.92 MB / 0.6115 GB, free: 12.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/1.601, allocations: 150.5 kB / 0.6117 GB, free: 11.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007455/1.608, allocations: 3.286 MB / 0.6149 GB, free: 8.934 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007758/1.609, allocations: 25.7 kB / 0.6149 GB, free: 8.902 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002798/1.612, allocations: 3.566 MB / 0.6184 GB, free: 5.285 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001595/1.613, allocations: 0.925 MB / 0.6193 GB, free: 4.348 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009872/1.614, allocations: 0 / 0.6193 GB, free: 4.348 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005183/1.615, allocations: 0.6123 MB / 0.6199 GB, free: 3.727 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00667/1.622, allocations: 2.876 MB / 0.6227 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01189/1.634, allocations: 6.932 MB / 0.6294 GB, free: 7.891 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01122/1.645, allocations: 4.396 MB / 0.6337 GB, free: 3.492 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001532/1.645, allocations: 47.95 kB / 0.6338 GB, free: 3.445 MB / 426.7 MB Notification: Performance of matching and sorting (n=921) (initialization): time 0.3392/1.984, allocations: 9.863 MB / 0.6434 GB, free: 86.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/1.984, allocations: 70.72 kB / 0.6435 GB, free: 86.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003283/1.985, allocations: 144.6 kB / 0.6436 GB, free: 86.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005632/1.99, allocations: 1.141 MB / 0.6447 GB, free: 86.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01306/2.004, allocations: 1.762 MB / 0.6465 GB, free: 86.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/2.016, allocations: 5.616 MB / 0.6519 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008696/2.024, allocations: 292.2 kB / 0.6522 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00214/2.026, allocations: 441.3 kB / 0.6526 GB, free: 85.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * 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 (882): * Single equations (assignments): 878 * 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.002665/2.029, allocations: 479.9 kB / 0.6531 GB, free: 85.58 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01517/2.044, allocations: 5.484 MB / 0.6585 GB, free: 85.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001573/2.046, allocations: 371.1 kB / 0.6588 GB, free: 85.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/2.061, allocations: 5.363 MB / 0.664 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.03e-05/2.062, allocations: 28.94 kB / 0.6641 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/2.062, allocations: 6.656 kB / 0.6641 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.64e-05/2.062, allocations: 15.77 kB / 0.6641 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03129/2.093, allocations: 11.15 MB / 0.675 GB, free: 83.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-05/2.093, allocations: 3.594 kB / 0.675 GB, free: 83.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005544/2.099, allocations: 0.5203 MB / 0.6755 GB, free: 83.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004368/2.103, allocations: 0.9268 MB / 0.6764 GB, free: 83.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007035/2.104, allocations: 21.66 kB / 0.6764 GB, free: 83.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/2.114, allocations: 5.335 MB / 0.6816 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.17e-05/2.114, allocations: 6.438 kB / 0.6816 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02184/2.136, allocations: 9.577 MB / 0.691 GB, free: 76.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003392/2.139, allocations: 0.8509 MB / 0.6918 GB, free: 76.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001605/2.141, allocations: 6.641 kB / 0.6918 GB, free: 76.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004576/2.145, allocations: 155.9 kB / 0.692 GB, free: 76.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009687/2.146, allocations: 154.6 kB / 0.6921 GB, free: 76.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003257/2.147, allocations: 72.59 kB / 0.6922 GB, free: 76.31 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005082/2.152, allocations: 2.19 MB / 0.6943 GB, free: 75.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.012e-06/2.152, allocations: 0 / 0.6943 GB, free: 75.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008769/2.161, allocations: 1.088 MB / 0.6954 GB, free: 75.51 MB / 426.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.02295/2.184, allocations: 10.93 MB / 0.7061 GB, free: 70.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0162/2.2, allocations: 6.896 MB / 0.7128 GB, free: 66.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/2.2, allocations: 3.938 kB / 0.7128 GB, free: 66.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006352/2.206, allocations: 2.65 MB / 0.7154 GB, free: 63.74 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004046/2.21, allocations: 354.4 kB / 0.7157 GB, free: 63.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04041/2.251, allocations: 12.01 MB / 0.7275 GB, free: 53.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008652/2.26, allocations: 3.901 MB / 0.7313 GB, free: 50.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006636/2.266, allocations: 2.347 MB / 0.7336 GB, free: 48.24 MB / 426.7 MB Notification: Performance of SimCode: time 1.352e-06/2.266, allocations: 3.5 kB / 0.7336 GB, free: 48.24 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.066/7.333, allocations: 117.6 MB / 0.8484 GB, free: 87.84 MB / 442.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