Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.314/2.314, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.858e-05/3.863e-05, allocations: 4.938 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3972/0.3973, allocations: 54.85 MB / 359.9 MB, free: 2.691 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1757/0.573, allocations: 81.8 MB / 441.7 MB, free: 15.19 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.5733, allocations: 63.97 kB / 441.7 MB, free: 15.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02573/0.5991, allocations: 5.766 MB / 447.5 MB, free: 9.387 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.369e-06/0.5991, allocations: 4 kB / 447.5 MB, free: 9.383 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.5992, allocations: 4 kB / 447.5 MB, free: 9.379 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001235/0.6004, allocations: 0.5571 MB / 448.1 MB, free: 8.777 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.6005, allocations: 8.031 kB / 448.1 MB, free: 8.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.6006, allocations: 86.02 kB / 448.1 MB, free: 8.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.6007, allocations: 43.53 kB / 448.2 MB, free: 8.637 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.6011, allocations: 251.3 kB / 448.4 MB, free: 8.348 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.581e-05/0.6012, allocations: 28.78 kB / 448.5 MB, free: 8.316 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.936e-05/0.6013, allocations: 55.83 kB / 448.5 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008319/0.6021, allocations: 370.6 kB / 448.9 MB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.976e-05/0.6022, allocations: 7.891 kB / 448.9 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.651e-05/0.6022, allocations: 16 kB / 448.9 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.6023, allocations: 12 kB / 448.9 MB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005528/0.6028, allocations: 187.9 kB / 449.1 MB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003416/0.6063, allocations: 1.716 MB / 450.8 MB, free: 5.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005676/0.6069, allocations: 242.4 kB / 451 MB, free: 5.523 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.6071, allocations: 82.12 kB / 451.1 MB, free: 5.422 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.191e-05/0.6071, allocations: 4.562 kB / 451.1 MB, free: 5.418 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.6072, allocations: 46.5 kB / 451.2 MB, free: 5.363 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.246e-06/0.6072, allocations: 0 / 451.2 MB, free: 5.363 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.000664/0.6079, allocations: 185.1 kB / 451.4 MB, free: 5.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.608, allocations: 217.6 kB / 451.6 MB, free: 4.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003751/0.6084, allocations: 239.4 kB / 451.8 MB, free: 4.668 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/0.6084, allocations: 34.73 kB / 451.8 MB, free: 4.629 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.6087, allocations: 289.7 kB / 452.1 MB, free: 4.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.6088, allocations: 118.5 kB / 452.2 MB, free: 4.223 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.6088, allocations: 11.94 kB / 452.2 MB, free: 4.211 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.609, allocations: 334.8 kB / 452.6 MB, free: 3.875 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.6093, allocations: 85.56 kB / 452.7 MB, free: 3.793 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005293/0.6098, allocations: 404.6 kB / 453.1 MB, free: 3.238 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003876/0.6102, allocations: 155.8 kB / 453.2 MB, free: 3.086 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.6102, allocations: 4 kB / 453.2 MB, free: 3.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001133/0.6114, allocations: 465.2 kB / 453.7 MB, free: 2.621 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.6114, allocations: 12 kB / 453.7 MB, free: 2.609 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/0.6115, allocations: 17.69 kB / 453.7 MB, free: 2.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.81e-05/0.6115, allocations: 16 kB / 453.7 MB, free: 2.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008849/0.6124, allocations: 159.7 kB / 453.9 MB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.321e-05/0.6125, allocations: 23.89 kB / 453.9 MB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.613, allocations: 67.36 kB / 454 MB, free: 2.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.603e-05/0.613, allocations: 32 kB / 454 MB, free: 2.305 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * 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.0001708/0.6132, allocations: 144.7 kB / 454.1 MB, free: 2.156 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.6134, allocations: 31.62 kB / 454.2 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.6135, allocations: 41.91 kB / 454.2 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.6136, allocations: 4 kB / 454.2 MB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.6136, allocations: 0 / 454.2 MB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.6136, allocations: 7.953 kB / 454.2 MB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.6156, allocations: 0.6437 MB / 454.9 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.6156, allocations: 4.062 kB / 454.9 MB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009534/0.6166, allocations: 95.94 kB / 455 MB, free: 1.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.6166, allocations: 4 kB / 455 MB, free: 1.266 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.6166, allocations: 8.938 kB / 455 MB, free: 1.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.009e-05/0.6167, allocations: 7.953 kB / 455 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.6167, allocations: 4 kB / 455 MB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009209/0.6176, allocations: 0.903 MB / 455.9 MB, free: 268 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.6177, allocations: 108.8 kB / 456 MB, free: 140 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.693e-05/0.6178, allocations: 8 kB / 456 MB, free: 132 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005074/0.6183, allocations: 15.98 kB / 456 MB, free: 116 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.73e-05/0.6184, allocations: 23.92 kB / 456 MB, free: 92 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.6185, allocations: 11.98 kB / 456 MB, free: 80 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002663/0.6187, allocations: 183.1 kB / 456.2 MB, free: 15.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6188, allocations: 0.8438 kB / 456.2 MB, free: 15.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001077/0.6198, allocations: 103.8 kB / 456.3 MB, free: 15.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * Array equations: 0 * 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.001494/0.6213, allocations: 1.993 MB / 458.3 MB, free: 13.74 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007003/0.6221, allocations: 242.2 kB / 458.6 MB, free: 13.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.6221, allocations: 3.938 kB / 458.6 MB, free: 13.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001975/0.6223, allocations: 79.86 kB / 458.6 MB, free: 13.42 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009739/0.6233, allocations: 72.03 kB / 458.7 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.6275, allocations: 1.651 MB / 460.4 MB, free: 11.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000547/0.6281, allocations: 0.8033 MB / 461.2 MB, free: 10.81 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.6284, allocations: 119.4 kB / 461.3 MB, free: 10.69 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6284, allocations: 4 kB / 461.3 MB, free: 10.69 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.426/3.054, allocations: 5.502 MB / 466.8 MB, free: 5.188 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat