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 1.944/1.944, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.542e-05/4.573e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1053, allocations: 48.69 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4567/0.562, allocations: 76.16 MB / 398 MB, free: 13.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.5624, allocations: 67.22 kB / 398.1 MB, free: 13.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02802/0.5905, allocations: 4.707 MB / 402.8 MB, free: 8.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5905, allocations: 0 / 402.8 MB, free: 8.891 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.731e-05/0.5906, allocations: 4 kB / 402.8 MB, free: 8.887 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.00142/0.592, allocations: 0.5217 MB / 403.3 MB, free: 8.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/0.5921, allocations: 9.125 kB / 403.3 MB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001266/0.5922, allocations: 62.53 kB / 403.4 MB, free: 8.242 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.5924, allocations: 31.62 kB / 403.4 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005639/0.5929, allocations: 262.4 kB / 403.7 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/0.593, allocations: 16.56 kB / 403.7 MB, free: 7.898 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-05/0.5931, allocations: 28 kB / 403.7 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008229/0.5939, allocations: 248.9 kB / 403.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.245e-05/0.594, allocations: 11.91 kB / 404 MB, free: 7.594 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.746e-05/0.5941, allocations: 4 kB / 404 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.257e-05/0.5941, allocations: 8 kB / 404 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006007/0.5947, allocations: 143.8 kB / 404.1 MB, free: 7.441 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.598, allocations: 1.313 MB / 405.4 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006892/0.5987, allocations: 222.5 kB / 405.6 MB, free: 5.766 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.599, allocations: 83.44 kB / 405.7 MB, free: 5.672 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.5991, allocations: 4 kB / 405.7 MB, free: 5.668 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.5991, allocations: 38.5 kB / 405.8 MB, free: 5.621 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 4.308e-06/0.5991, allocations: 0 / 405.8 MB, free: 5.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.003897/0.6031, allocations: 1.397 MB / 407.2 MB, free: 4.016 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.6032, allocations: 140.5 kB / 407.3 MB, free: 3.848 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/0.6036, allocations: 193 kB / 407.5 MB, free: 3.656 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.6037, allocations: 37.7 kB / 407.5 MB, free: 3.613 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.6039, allocations: 230.8 kB / 407.8 MB, free: 3.387 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.6041, allocations: 122.2 kB / 407.9 MB, free: 3.266 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.6041, allocations: 4 kB / 407.9 MB, free: 3.262 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.6044, allocations: 330.8 kB / 408.2 MB, free: 2.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/0.6047, allocations: 72.86 kB / 408.3 MB, free: 2.859 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.6052, allocations: 196.7 kB / 408.5 MB, free: 2.605 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.6056, allocations: 112 kB / 408.6 MB, free: 2.496 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.6057, allocations: 8 kB / 408.6 MB, free: 2.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00193/0.6076, allocations: 297.1 kB / 408.9 MB, free: 2.191 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.6077, allocations: 8 kB / 408.9 MB, free: 2.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.6077, allocations: 4 kB / 408.9 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.412e-05/0.6077, allocations: 8.406 kB / 408.9 MB, free: 2.172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.6088, allocations: 111.8 kB / 409 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-05/0.6088, allocations: 11.98 kB / 409 MB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005756/0.6094, allocations: 32.02 kB / 409 MB, free: 2.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/0.6095, allocations: 20 kB / 409.1 MB, free: 2 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.0001866/0.6097, allocations: 140.8 kB / 409.2 MB, free: 1.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.6099, allocations: 23.72 kB / 409.2 MB, free: 1.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001401/0.6101, allocations: 37.83 kB / 409.3 MB, free: 1.793 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.6101, allocations: 4 kB / 409.3 MB, free: 1.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.6101, allocations: 288 / 409.3 MB, free: 1.789 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.6102, allocations: 3.984 kB / 409.3 MB, free: 1.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.6125, allocations: 0.927 MB / 410.2 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.6125, allocations: 8.062 kB / 410.2 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/0.6138, allocations: 83.88 kB / 410.3 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-05/0.6138, allocations: 4 kB / 410.3 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.358e-05/0.6139, allocations: 11.95 kB / 410.3 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.296e-05/0.6139, allocations: 3.938 kB / 410.3 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.355e-06/0.614, allocations: 4 kB / 410.3 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.6158, allocations: 0.7064 MB / 411 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003391/0.6162, allocations: 120.8 kB / 411.1 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.6163, allocations: 8 kB / 411.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009299/0.6173, allocations: 28.2 kB / 411.2 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.6174, allocations: 23.92 kB / 411.2 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.576e-05/0.6175, allocations: 16 kB / 411.2 MB, free: 15.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004315/0.618, allocations: 157.4 kB / 411.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.618, allocations: 3.938 kB / 411.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001815/0.6198, allocations: 68 kB / 411.4 MB, free: 15.48 MB / 346.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.002181/0.6221, allocations: 1.599 MB / 413 MB, free: 13.83 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001001/0.6231, allocations: 212.9 kB / 413.2 MB, free: 13.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.6231, allocations: 0 / 413.2 MB, free: 13.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004509/0.6236, allocations: 100.6 kB / 413.3 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001108/0.6247, allocations: 44.67 kB / 413.4 MB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/0.628, allocations: 0.8249 MB / 414.2 MB, free: 12.6 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006039/0.6286, allocations: 0.7838 MB / 415 MB, free: 11.78 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003228/0.629, allocations: 95.41 kB / 415.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of SimCode: time 1.322e-06/0.629, allocations: 0 / 415.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.435/3.064, allocations: 4.424 MB / 419.5 MB, free: 7.262 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