Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.567/2.567, allocations: 235 MB / 247.2 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.938e-05/3.956e-05, allocations: 4 kB / 305 MB, free: 5.094 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4708/0.4709, allocations: 54.85 MB / 359.9 MB, free: 2.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1652/0.6362, allocations: 82.51 MB / 442.4 MB, free: 14.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.6365, allocations: 67.95 kB / 442.4 MB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02253/0.6591, allocations: 4.703 MB / 447.1 MB, free: 9.562 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.6591, allocations: 0 / 447.1 MB, free: 9.562 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.744e-05/0.6592, allocations: 12 kB / 447.1 MB, free: 9.551 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.001132/0.6603, allocations: 0.51 MB / 447.7 MB, free: 8.996 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/0.6604, allocations: 16.03 kB / 447.7 MB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.6605, allocations: 62.53 kB / 447.7 MB, free: 8.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.308e-05/0.6606, allocations: 31.62 kB / 447.8 MB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.6611, allocations: 253.8 kB / 448 MB, free: 8.594 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.6611, allocations: 16.56 kB / 448 MB, free: 8.578 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.388e-05/0.6612, allocations: 28 kB / 448.1 MB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000604/0.6618, allocations: 261.9 kB / 448.3 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.6619, allocations: 3.906 kB / 448.3 MB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.6619, allocations: 15.95 kB / 448.3 MB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.662, allocations: 4 kB / 448.3 MB, free: 8.246 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.6624, allocations: 143.9 kB / 448.5 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002514/0.6649, allocations: 1.306 MB / 449.8 MB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.6655, allocations: 223.7 kB / 450 MB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.6657, allocations: 83.55 kB / 450.1 MB, free: 6.348 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.783e-05/0.6658, allocations: 4 kB / 450.1 MB, free: 6.344 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/0.6658, allocations: 42.56 kB / 450.1 MB, free: 6.293 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.566e-06/0.6658, allocations: 0 / 450.1 MB, free: 6.293 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.003018/0.6689, allocations: 1.399 MB / 451.5 MB, free: 4.691 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.669, allocations: 144.5 kB / 451.7 MB, free: 4.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.6693, allocations: 189.1 kB / 451.8 MB, free: 4.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.6694, allocations: 29.7 kB / 451.9 MB, free: 4.285 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.6696, allocations: 176.2 kB / 452.1 MB, free: 4.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.6697, allocations: 122.3 kB / 452.2 MB, free: 3.988 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/0.6698, allocations: 4 kB / 452.2 MB, free: 3.984 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.6699, allocations: 346.8 kB / 452.5 MB, free: 3.637 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.6702, allocations: 68.88 kB / 452.6 MB, free: 3.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/0.6706, allocations: 213.5 kB / 452.8 MB, free: 3.305 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.6709, allocations: 100.9 kB / 452.9 MB, free: 3.207 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.6709, allocations: 0 / 452.9 MB, free: 3.207 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008899/0.6718, allocations: 335 kB / 453.2 MB, free: 2.875 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.6718, allocations: 4 kB / 453.2 MB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.6718, allocations: 8 kB / 453.2 MB, free: 2.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.275e-05/0.6719, allocations: 4 kB / 453.2 MB, free: 2.859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007992/0.6727, allocations: 120.2 kB / 453.3 MB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.6727, allocations: 4 kB / 453.4 MB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004172/0.6732, allocations: 35.97 kB / 453.4 MB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/0.6732, allocations: 19.98 kB / 453.4 MB, free: 2.684 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.0001472/0.6734, allocations: 128.8 kB / 453.5 MB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.6735, allocations: 31.62 kB / 453.6 MB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.6737, allocations: 37.83 kB / 453.6 MB, free: 2.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.6737, allocations: 5.031 kB / 453.6 MB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.6737, allocations: 7.953 kB / 453.6 MB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.6737, allocations: 0 / 453.6 MB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/0.6757, allocations: 0.9347 MB / 454.5 MB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.6757, allocations: 0 / 454.5 MB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007802/0.6765, allocations: 95.94 kB / 454.6 MB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.6765, allocations: 0 / 454.6 MB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.294e-05/0.6766, allocations: 8 kB / 454.6 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.276e-06/0.6766, allocations: 4.078 kB / 454.7 MB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.6766, allocations: 4.234 kB / 454.7 MB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.6778, allocations: 0.7106 MB / 455.4 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.6779, allocations: 100.8 kB / 455.5 MB, free: 488 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.978e-05/0.678, allocations: 8.062 kB / 455.5 MB, free: 480 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005063/0.6785, allocations: 27.97 kB / 455.5 MB, free: 452 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.6786, allocations: 23.97 kB / 455.5 MB, free: 428 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.6787, allocations: 8 kB / 455.5 MB, free: 420 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002147/0.6789, allocations: 157.4 kB / 455.7 MB, free: 260 kB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6789, allocations: 0 / 455.7 MB, free: 260 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006984/0.6796, allocations: 68.25 kB / 455.8 MB, free: 192 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.001598/0.6812, allocations: 1.611 MB / 457.4 MB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00069/0.6819, allocations: 224.3 kB / 457.6 MB, free: 14.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.682, allocations: 0 / 457.6 MB, free: 14.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.6823, allocations: 104.4 kB / 457.7 MB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006494/0.6829, allocations: 29.31 kB / 457.7 MB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.6853, allocations: 0.7889 MB / 458.5 MB, free: 13.34 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.6858, allocations: 0.7728 MB / 459.3 MB, free: 12.53 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.6861, allocations: 34.95 kB / 459.3 MB, free: 12.49 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002238/0.6863, allocations: 99.33 kB / 459.4 MB, free: 12.39 MB / 394.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6864, allocations: 4 kB / 459.4 MB, free: 12.39 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03809/0.7245, allocations: 4.736 MB / 464.1 MB, free: 7.734 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003111/0.7248, allocations: 138.4 kB / 464.3 MB, free: 7.512 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.543/3.268, allocations: 4 kB / 464.3 MB, free: 7.508 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat