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.034/2.034, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/2.967e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3013, allocations: 44.5 MB / 294.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1675/0.4688, allocations: 93.24 MB / 387.4 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003149/0.4692, allocations: 83.95 kB / 387.5 MB, free: 4.547 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1261/0.5953, allocations: 28.15 MB / 415.7 MB, free: 8.215 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5954, allocations: 0 / 415.7 MB, free: 8.215 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.068e-05/0.5955, allocations: 24 kB / 415.7 MB, free: 8.191 MB / 362.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.003175/0.5987, allocations: 1.137 MB / 416.8 MB, free: 7.004 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/0.5988, allocations: 8.031 kB / 416.8 MB, free: 6.996 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/0.6, allocations: 194.3 kB / 417 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002658/0.6027, allocations: 0.8056 MB / 417.8 MB, free: 5.957 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.069e-05/0.6028, allocations: 32 kB / 417.9 MB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00021/0.6031, allocations: 56 kB / 417.9 MB, free: 5.871 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001866/0.6049, allocations: 0.539 MB / 418.5 MB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002289/0.6073, allocations: 0.7591 MB / 419.2 MB, free: 4.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.389e-05/0.6074, allocations: 7.844 kB / 419.2 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.6075, allocations: 4 kB / 419.2 MB, free: 4.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.009e-05/0.6075, allocations: 24 kB / 419.3 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008762/0.6163, allocations: 3.766 MB / 423 MB, free: 0.543 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009593/0.6173, allocations: 416.5 kB / 423.4 MB, free: 108 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.307/0.9243, allocations: 232.1 kB / 423.7 MB, free: 97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-05/0.9245, allocations: 7.156 kB / 423.7 MB, free: 97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.9245, allocations: 37.41 kB / 423.7 MB, free: 96.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 3.637e-06/0.9245, allocations: 0 / 423.7 MB, free: 96.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.005026/0.9296, allocations: 1.133 MB / 424.8 MB, free: 96.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.9297, allocations: 83.27 kB / 424.9 MB, free: 96.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002097/0.9318, allocations: 0.5927 MB / 425.5 MB, free: 96.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.932, allocations: 26.92 kB / 425.5 MB, free: 96.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006152/0.9326, allocations: 0.5888 MB / 426.1 MB, free: 96.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002712/0.9329, allocations: 168 kB / 426.3 MB, free: 95.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.654e-05/0.933, allocations: 0 / 426.3 MB, free: 95.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.9331, allocations: 339.4 kB / 426.6 MB, free: 95.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006198/0.9337, allocations: 145 kB / 426.8 MB, free: 95.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009284/0.9347, allocations: 431.1 kB / 427.2 MB, free: 95.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009177/0.9356, allocations: 221.4 kB / 427.4 MB, free: 95.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/0.9357, allocations: 3.781 kB / 427.4 MB, free: 95.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002776/0.9385, allocations: 0.6261 MB / 428 MB, free: 95.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.367e-05/0.9386, allocations: 8.656 kB / 428 MB, free: 95.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-05/0.9386, allocations: 11.03 kB / 428 MB, free: 95.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006373/0.9393, allocations: 93.62 kB / 428.1 MB, free: 95.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.9409, allocations: 170.8 kB / 428.3 MB, free: 95.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004255/0.9451, allocations: 2.868 MB / 431.2 MB, free: 92.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.9468, allocations: 30.22 kB / 431.2 MB, free: 92.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.947, allocations: 32.84 kB / 431.2 MB, free: 92.71 MB / 362.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.0002582/0.9473, allocations: 136.9 kB / 431.4 MB, free: 92.6 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001738/0.949, allocations: 446.2 kB / 431.8 MB, free: 92.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/0.9494, allocations: 83.33 kB / 431.9 MB, free: 92.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/0.9513, allocations: 455.7 kB / 432.3 MB, free: 92.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.9513, allocations: 5.375 kB / 432.3 MB, free: 92.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.9514, allocations: 1.312 kB / 432.3 MB, free: 92.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.9514, allocations: 0 / 432.3 MB, free: 92.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004638/0.956, allocations: 1.29 MB / 433.6 MB, free: 92.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.9561, allocations: 1.656 kB / 433.6 MB, free: 92.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009103/0.957, allocations: 83.17 kB / 433.7 MB, free: 92.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005455/0.9576, allocations: 83.61 kB / 433.8 MB, free: 92.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.9577, allocations: 2.875 kB / 433.8 MB, free: 92.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003892/0.9616, allocations: 2.874 MB / 436.7 MB, free: 89.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.928e-06/0.9617, allocations: 1.5 kB / 436.7 MB, free: 89.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002621/0.9643, allocations: 0.8199 MB / 437.5 MB, free: 89.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000635/0.965, allocations: 195.3 kB / 437.7 MB, free: 89.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002799/0.9653, allocations: 2.781 kB / 437.7 MB, free: 89.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.9664, allocations: 32.34 kB / 437.7 MB, free: 89.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.9666, allocations: 37.03 kB / 437.7 MB, free: 89.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.676e-05/0.9667, allocations: 20.61 kB / 437.8 MB, free: 89.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001346/0.9681, allocations: 453.7 kB / 438.2 MB, free: 88.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.9681, allocations: 0 / 438.2 MB, free: 88.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002535/0.9707, allocations: 196.5 kB / 438.4 MB, free: 88.92 MB / 362.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.003398/0.9741, allocations: 2.008 MB / 440.4 MB, free: 87.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002124/0.9763, allocations: 0.6418 MB / 441.1 MB, free: 87.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.9763, allocations: 0 / 441.1 MB, free: 87.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.9775, allocations: 433.5 kB / 441.5 MB, free: 87.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002363/0.9799, allocations: 177.4 kB / 441.7 MB, free: 87.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006986/0.9869, allocations: 1.415 MB / 443.1 MB, free: 86.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008677/0.9879, allocations: 1.042 MB / 444.1 MB, free: 85.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.989, allocations: 393.1 kB / 444.5 MB, free: 85.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.493e-06/0.989, allocations: 0 / 444.5 MB, free: 85.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.243/4.232, allocations: 25.06 MB / 469.5 MB, free: 76.53 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