Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.375/2.375, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.289e-05/4.304e-05, allocations: 4 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3995, allocations: 54.85 MB / 359.9 MB, free: 2.695 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1529/0.5525, allocations: 82.52 MB / 442.4 MB, free: 14.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.5528, allocations: 63.97 kB / 442.4 MB, free: 14.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02207/0.5749, allocations: 4.704 MB / 447.1 MB, free: 9.715 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5749, allocations: 0 / 447.1 MB, free: 9.715 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.403e-05/0.575, allocations: 4 kB / 447.1 MB, free: 9.711 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00105/0.576, allocations: 0.5178 MB / 447.7 MB, free: 9.148 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.5761, allocations: 8.031 kB / 447.7 MB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.233e-05/0.5762, allocations: 58.55 kB / 447.7 MB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.995e-05/0.5763, allocations: 31.62 kB / 447.8 MB, free: 9.043 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.5767, allocations: 250.5 kB / 448 MB, free: 8.758 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.5767, allocations: 24.56 kB / 448 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.329e-05/0.5768, allocations: 32 kB / 448.1 MB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005716/0.5774, allocations: 252.8 kB / 448.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.5774, allocations: 3.906 kB / 448.3 MB, free: 8.426 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.5775, allocations: 15.95 kB / 448.3 MB, free: 8.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.5775, allocations: 11.28 kB / 448.3 MB, free: 8.402 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/0.5779, allocations: 139.9 kB / 448.5 MB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.5803, allocations: 1.306 MB / 449.8 MB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/0.5808, allocations: 218.5 kB / 450 MB, free: 6.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.581, allocations: 79.44 kB / 450.1 MB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.581, allocations: 4 kB / 450.1 MB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/0.5811, allocations: 42.5 kB / 450.1 MB, free: 6.461 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.126e-06/0.5811, allocations: 0 / 450.1 MB, free: 6.461 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002898/0.584, allocations: 1.393 MB / 451.5 MB, free: 4.863 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.5842, allocations: 140.4 kB / 451.6 MB, free: 4.695 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.5845, allocations: 197.1 kB / 451.8 MB, free: 4.492 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.5845, allocations: 29.7 kB / 451.9 MB, free: 4.457 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.5847, allocations: 234.7 kB / 452.1 MB, free: 4.227 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.5848, allocations: 118.3 kB / 452.2 MB, free: 4.109 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.694e-05/0.5848, allocations: 12 kB / 452.2 MB, free: 4.098 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.585, allocations: 322.8 kB / 452.5 MB, free: 3.773 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.5852, allocations: 72.81 kB / 452.6 MB, free: 3.703 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.5856, allocations: 204.7 kB / 452.8 MB, free: 3.445 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.5859, allocations: 113.6 kB / 452.9 MB, free: 3.336 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5859, allocations: 0 / 452.9 MB, free: 3.336 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007928/0.5867, allocations: 301.5 kB / 453.2 MB, free: 3.035 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.5867, allocations: 13.75 kB / 453.2 MB, free: 3.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.5868, allocations: 4 kB / 453.2 MB, free: 3.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/0.5868, allocations: 9.406 kB / 453.2 MB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007927/0.5876, allocations: 111.8 kB / 453.3 MB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.039e-05/0.5876, allocations: 8 kB / 453.4 MB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.588, allocations: 35.89 kB / 453.4 MB, free: 2.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.5881, allocations: 19.98 kB / 453.4 MB, free: 2.84 MB / 378.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.0001353/0.5883, allocations: 128.8 kB / 453.5 MB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.5884, allocations: 27.72 kB / 453.6 MB, free: 2.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.5885, allocations: 33.83 kB / 453.6 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.5885, allocations: 4 kB / 453.6 MB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.5885, allocations: 7.953 kB / 453.6 MB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.5886, allocations: 0 / 453.6 MB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.5905, allocations: 0.932 MB / 454.5 MB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.5905, allocations: 256 / 454.5 MB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007573/0.5913, allocations: 87.89 kB / 454.6 MB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/0.5913, allocations: 192 / 454.6 MB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.5914, allocations: 15.98 kB / 454.6 MB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-05/0.5914, allocations: 11.94 kB / 454.7 MB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.5914, allocations: 4 kB / 454.7 MB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.5925, allocations: 0.7068 MB / 455.4 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.371e-05/0.5926, allocations: 100.8 kB / 455.5 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.765e-05/0.5927, allocations: 8.062 kB / 455.5 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/0.5932, allocations: 27.98 kB / 455.5 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.725e-05/0.5933, allocations: 27.95 kB / 455.5 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.5933, allocations: 12 kB / 455.5 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000197/0.5935, allocations: 153.4 kB / 455.7 MB, free: 424 kB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5935, allocations: 0 / 455.7 MB, free: 424 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007097/0.5943, allocations: 68 kB / 455.8 MB, free: 356 kB / 378.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.001495/0.5958, allocations: 1.607 MB / 457.4 MB, free: 14.69 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006168/0.5964, allocations: 212.1 kB / 457.6 MB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5964, allocations: 0 / 457.6 MB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.5967, allocations: 99.86 kB / 457.7 MB, free: 14.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/0.5973, allocations: 39.16 kB / 457.7 MB, free: 14.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.5997, allocations: 0.8133 MB / 458.5 MB, free: 13.48 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.6001, allocations: 0.7767 MB / 459.3 MB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002446/0.6004, allocations: 95.95 kB / 459.4 MB, free: 12.57 MB / 394.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6004, allocations: 0 / 459.4 MB, free: 12.57 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.362/2.963, allocations: 4.432 MB / 463.8 MB, free: 8.145 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat