Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.013e-05/4.016e-05, allocations: 4 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1001, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4255/0.5257, allocations: 93.91 MB / 393.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.526, allocations: 83.39 kB / 393.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1107/0.6367, allocations: 28.55 MB / 422.5 MB, free: 3.258 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6367, allocations: 0 / 422.5 MB, free: 3.258 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.541e-05/0.6368, allocations: 23.31 kB / 422.5 MB, free: 3.254 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002554/0.6394, allocations: 1.138 MB / 423.7 MB, free: 2.469 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.6394, allocations: 15.36 kB / 423.7 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002554/0.6397, allocations: 144.2 kB / 423.8 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009911/0.6407, allocations: 197.3 kB / 424 MB, free: 2.316 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002439/0.6432, allocations: 0.806 MB / 424.8 MB, free: 1.875 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.924e-05/0.6433, allocations: 70.59 kB / 424.9 MB, free: 1.871 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001958/0.6435, allocations: 92.81 kB / 425 MB, free: 1.871 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002172/0.6457, allocations: 0.8952 MB / 425.9 MB, free: 1.656 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.06e-05/0.6458, allocations: 6.906 kB / 425.9 MB, free: 1.652 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.6459, allocations: 46.69 kB / 425.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.434e-05/0.6459, allocations: 23.25 kB / 425.9 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.6476, allocations: 0.5859 MB / 426.5 MB, free: 1.625 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009487/0.6571, allocations: 3.939 MB / 430.5 MB, free: 15.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008729/0.658, allocations: 427.5 kB / 430.9 MB, free: 15.1 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007053/0.6587, allocations: 256 kB / 431.1 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.66e-05/0.6588, allocations: 3.875 kB / 431.1 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.6588, allocations: 41.38 kB / 431.2 MB, free: 15.03 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.196e-06/0.6588, allocations: 0 / 431.2 MB, free: 15.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.003183/0.662, allocations: 1.219 MB / 432.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.6621, allocations: 92.61 kB / 432.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001321/0.6635, allocations: 0.7006 MB / 433.2 MB, free: 14.15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.6635, allocations: 32.39 kB / 433.2 MB, free: 14.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005013/0.6641, allocations: 0.5687 MB / 433.8 MB, free: 13.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.6643, allocations: 169.4 kB / 434 MB, free: 13.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.347e-05/0.6643, allocations: 14.38 kB / 434 MB, free: 13.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.6645, allocations: 345.6 kB / 434.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00039/0.6649, allocations: 152.6 kB / 434.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006631/0.6656, allocations: 448.7 kB / 434.9 MB, free: 12.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005484/0.6661, allocations: 233 kB / 435.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.6662, allocations: 3.875 kB / 435.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001757/0.6679, allocations: 0.6886 MB / 435.8 MB, free: 12.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.668, allocations: 8 kB / 435.8 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.523e-05/0.668, allocations: 15.94 kB / 435.8 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004697/0.6685, allocations: 95.73 kB / 435.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.6696, allocations: 170.6 kB / 436.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00347/0.673, allocations: 2.98 MB / 439.1 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.6742, allocations: 46.08 kB / 439.1 MB, free: 9.152 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.462e-05/0.6743, allocations: 34.94 kB / 439.2 MB, free: 9.125 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002177/0.6745, allocations: 154.5 kB / 439.3 MB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001909/0.6747, allocations: 90.88 kB / 439.4 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.6762, allocations: 0.502 MB / 439.9 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.6763, allocations: 12.03 kB / 439.9 MB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.6763, allocations: 0 / 439.9 MB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.6763, allocations: 4 kB / 439.9 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003297/0.6796, allocations: 1.436 MB / 441.3 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.6796, allocations: 4 kB / 441.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006783/0.6803, allocations: 83.67 kB / 441.4 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003946/0.6807, allocations: 85.72 kB / 441.5 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.161e-05/0.6808, allocations: 10.56 kB / 441.5 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003436/0.6842, allocations: 2.972 MB / 444.5 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.6843, allocations: 4.031 kB / 444.5 MB, free: 4.254 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/0.6863, allocations: 0.8793 MB / 445.4 MB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/0.6868, allocations: 201.8 kB / 445.6 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.687, allocations: 14.06 kB / 445.6 MB, free: 3.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000775/0.6878, allocations: 30.61 kB / 445.6 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.6879, allocations: 42.45 kB / 445.7 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-05/0.688, allocations: 23.38 kB / 445.7 MB, free: 3.215 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001125/0.6891, allocations: 0.5319 MB / 446.2 MB, free: 2.836 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.92e-07/0.6892, allocations: 0 / 446.2 MB, free: 2.836 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001469/0.6906, allocations: 249.1 kB / 446.5 MB, free: 2.617 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00296/0.6936, allocations: 2.097 MB / 448.6 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.6953, allocations: 0.6546 MB / 449.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.6953, allocations: 0 / 449.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009339/0.6963, allocations: 435 kB / 449.6 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.6981, allocations: 207.7 kB / 449.8 MB, free: 15.28 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.7028, allocations: 1.489 MB / 451.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008569/0.7037, allocations: 1.032 MB / 452.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008161/0.7045, allocations: 391.3 kB / 452.7 MB, free: 12.28 MB / 346.7 MB Notification: Performance of SimCode: time 1.353e-06/0.7046, allocations: 0 / 452.7 MB, free: 12.28 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.351/4.056, allocations: 25.81 MB / 478.6 MB, free: 2.48 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat