Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestSpeed",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.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.527e-05/2.539e-05, allocations: 4 kB / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1024, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3915/0.494, allocations: 75.73 MB / 392 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.4942, allocations: 58.78 kB / 392.1 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02219/0.5164, allocations: 4.665 MB / 396.8 MB, free: 12.92 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.5165, allocations: 0 / 396.8 MB, free: 12.92 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.276e-05/0.5166, allocations: 15.83 kB / 396.8 MB, free: 12.91 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001143/0.5177, allocations: 0.514 MB / 397.3 MB, free: 12.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.5178, allocations: 16.03 kB / 397.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.5179, allocations: 35.61 kB / 397.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.5183, allocations: 251.6 kB / 397.6 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.5184, allocations: 8 kB / 397.6 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.606e-05/0.5185, allocations: 19.88 kB / 397.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003962/0.5189, allocations: 121.3 kB / 397.7 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004802/0.5194, allocations: 223.6 kB / 397.9 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.049e-05/0.5194, allocations: 3.906 kB / 397.9 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.5194, allocations: 4 kB / 397.9 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.5195, allocations: 4 kB / 398 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.5217, allocations: 1.25 MB / 399.2 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004304/0.5222, allocations: 210.7 kB / 399.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.5224, allocations: 78.14 kB / 399.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.5224, allocations: 3.938 kB / 399.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.5225, allocations: 42.45 kB / 399.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 5.39e-06/0.5225, allocations: 0 / 399.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002756/0.5253, allocations: 1.341 MB / 400.9 MB, free: 8.738 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.583e-05/0.5254, allocations: 136 kB / 401 MB, free: 8.578 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.5257, allocations: 191.9 kB / 401.2 MB, free: 8.414 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.026e-05/0.5257, allocations: 33.64 kB / 401.2 MB, free: 8.375 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.5259, allocations: 231.2 kB / 401.4 MB, free: 8.168 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.526, allocations: 108.1 kB / 401.6 MB, free: 8.074 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.526, allocations: 4 kB / 401.6 MB, free: 8.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.5262, allocations: 321.6 kB / 401.9 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.5264, allocations: 74.17 kB / 401.9 MB, free: 7.707 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.5267, allocations: 191.2 kB / 402.1 MB, free: 7.492 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002594/0.5269, allocations: 100.2 kB / 402.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.527, allocations: 0 / 402.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007379/0.5277, allocations: 283.9 kB / 402.5 MB, free: 7.188 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.5278, allocations: 12.06 kB / 402.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.5278, allocations: 4 kB / 402.5 MB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-05/0.5278, allocations: 8 kB / 402.5 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008283/0.5287, allocations: 106.7 kB / 402.6 MB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.5287, allocations: 8 kB / 402.6 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004277/0.5292, allocations: 23.98 kB / 402.7 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.573e-05/0.5292, allocations: 23.48 kB / 402.7 MB, free: 7.012 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.0001506/0.5294, allocations: 120.8 kB / 402.8 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006281/0.53, allocations: 218.8 kB / 403 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.5302, allocations: 23.72 kB / 403 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.5303, allocations: 29.09 kB / 403.1 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.5303, allocations: 7.984 kB / 403.1 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.5303, allocations: 0 / 403.1 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.5304, allocations: 8 kB / 403.1 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.5323, allocations: 0.8587 MB / 403.9 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.5323, allocations: 4 kB / 404 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000769/0.5331, allocations: 87.31 kB / 404 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-05/0.5331, allocations: 4.234 kB / 404 MB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.5332, allocations: 8.016 kB / 404 MB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.276e-06/0.5332, allocations: 4 kB / 404.1 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5332, allocations: 0 / 404.1 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009632/0.5342, allocations: 0.6949 MB / 404.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.5344, allocations: 115.1 kB / 404.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.619e-05/0.5345, allocations: 4 kB / 404.9 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000513/0.535, allocations: 31.34 kB / 404.9 MB, free: 4.934 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.5351, allocations: 31.17 kB / 404.9 MB, free: 4.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.989e-05/0.5352, allocations: 4 kB / 404.9 MB, free: 4.902 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001939/0.5354, allocations: 151.6 kB / 405.1 MB, free: 4.777 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5354, allocations: 0 / 405.1 MB, free: 4.777 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007882/0.5362, allocations: 52.25 kB / 405.1 MB, free: 4.727 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.001411/0.5376, allocations: 1.573 MB / 406.7 MB, free: 3.184 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000587/0.5382, allocations: 193.6 kB / 406.9 MB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.5382, allocations: 0 / 406.9 MB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002442/0.5385, allocations: 102.2 kB / 407 MB, free: 2.969 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006995/0.5392, allocations: 35.11 kB / 407 MB, free: 2.941 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.5417, allocations: 0.7932 MB / 407.8 MB, free: 2.129 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.5421, allocations: 0.7838 MB / 408.6 MB, free: 1.312 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002591/0.5424, allocations: 92.72 kB / 408.7 MB, free: 1.277 MB / 330.7 MB Notification: Performance of SimCode: time 1.312e-06/0.5424, allocations: 0 / 408.7 MB, free: 1.277 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.397/2.94, allocations: 4.411 MB / 413.1 MB, free: 12.92 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat