Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.699/1.699, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.965e-05/1.973e-05, allocations: 0 / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2507, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1768/0.4275, allocations: 97.66 MB / 356 MB, free: 12.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.4279, allocations: 83.95 kB / 356.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4053/0.8333, allocations: 48.17 MB / 404.2 MB, free: 71.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.8333, allocations: 0 / 404.2 MB, free: 71.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002062/0.8335, allocations: 62.84 kB / 404.3 MB, free: 71.69 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.006278/0.8398, allocations: 2.433 MB / 406.7 MB, free: 69.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.8399, allocations: 8.031 kB / 406.7 MB, free: 69.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001204/0.8411, allocations: 328.3 kB / 407.1 MB, free: 68.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00446/0.8456, allocations: 1.709 MB / 408.8 MB, free: 67.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.249e-05/0.8457, allocations: 64 kB / 408.8 MB, free: 67.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003859/0.8461, allocations: 123.9 kB / 408.9 MB, free: 66.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004542/0.8506, allocations: 1.937 MB / 410.9 MB, free: 65.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004834/0.8555, allocations: 2.292 MB / 413.2 MB, free: 62.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-05/0.8556, allocations: 0 / 413.2 MB, free: 62.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.8558, allocations: 4 kB / 413.2 MB, free: 62.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/0.856, allocations: 87.83 kB / 413.3 MB, free: 62.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01712/0.8731, allocations: 7.889 MB / 421.2 MB, free: 54.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003282/0.8764, allocations: 1.519 MB / 422.7 MB, free: 52.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/0.878, allocations: 0.8553 MB / 423.5 MB, free: 52.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000391/0.8784, allocations: 141.3 kB / 423.7 MB, free: 51.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.8785, allocations: 43.88 kB / 423.7 MB, free: 51.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=115): time 3.677e-06/0.8785, allocations: 0 / 423.7 MB, free: 51.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=131): time 0.01246/0.891, allocations: 4.784 MB / 428.5 MB, free: 47.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.891, allocations: 64.72 kB / 428.6 MB, free: 46.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003057/0.8941, allocations: 1.625 MB / 430.2 MB, free: 45.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001582/0.8943, allocations: 29.7 kB / 430.2 MB, free: 45.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006771/0.895, allocations: 1.016 MB / 431.2 MB, free: 44.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003854/0.8954, allocations: 437.4 kB / 431.7 MB, free: 43.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.8955, allocations: 0 / 431.7 MB, free: 43.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.8956, allocations: 370.8 kB / 432 MB, free: 43.47 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.897, allocations: 0.6833 MB / 432.7 MB, free: 42.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.8985, allocations: 0.924 MB / 433.6 MB, free: 41.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/0.9002, allocations: 0.8299 MB / 434.5 MB, free: 40.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.9003, allocations: 0 / 434.5 MB, free: 40.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006091/0.9064, allocations: 2.449 MB / 436.9 MB, free: 38.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.131e-05/0.9064, allocations: 33.7 kB / 436.9 MB, free: 38.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/0.9065, allocations: 7.938 kB / 436.9 MB, free: 38.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003274/0.9097, allocations: 0.8307 MB / 437.8 MB, free: 37.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/0.9117, allocations: 267.6 kB / 438 MB, free: 37.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01541/0.9271, allocations: 8.885 MB / 446.9 MB, free: 28.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/0.9291, allocations: 75.95 kB / 447 MB, free: 28.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001619/0.9293, allocations: 55.98 kB / 447.1 MB, free: 28.08 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000324/0.9296, allocations: 132.6 kB / 447.2 MB, free: 27.95 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005201/0.9349, allocations: 2.169 MB / 449.3 MB, free: 25.76 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004034/0.9353, allocations: 193.6 kB / 449.5 MB, free: 25.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005709/0.941, allocations: 2.332 MB / 451.9 MB, free: 23.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/0.941, allocations: 12 kB / 451.9 MB, free: 23.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.9411, allocations: 8 kB / 451.9 MB, free: 23.19 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/0.9411, allocations: 11.92 kB / 451.9 MB, free: 23.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.9519, allocations: 4.581 MB / 456.5 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-05/0.952, allocations: 8.031 kB / 456.5 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/0.9538, allocations: 207.7 kB / 456.7 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002867/0.9567, allocations: 0.6941 MB / 457.4 MB, free: 17.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.9568, allocations: 15.98 kB / 457.4 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/0.9684, allocations: 8.146 MB / 465.5 MB, free: 9.129 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.9684, allocations: 4.031 kB / 465.6 MB, free: 9.125 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00727/0.9757, allocations: 3.414 MB / 469 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.9769, allocations: 466.6 kB / 469.4 MB, free: 5.164 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003982/0.9773, allocations: 4 kB / 469.4 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001525/0.9788, allocations: 71.89 kB / 469.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003707/0.9792, allocations: 109.1 kB / 469.6 MB, free: 4.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/0.9794, allocations: 39.92 kB / 469.6 MB, free: 4.945 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002203/0.9816, allocations: 1.238 MB / 470.9 MB, free: 3.715 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.9816, allocations: 0 / 470.9 MB, free: 3.715 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002274/0.9839, allocations: 0.4999 MB / 471.4 MB, free: 3.215 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008737/0.9926, allocations: 4.616 MB / 476 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005883/0.9985, allocations: 2.332 MB / 478.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.9986, allocations: 3.938 kB / 478.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003865/1.002, allocations: 1.607 MB / 479.9 MB, free: 10.51 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/1.005, allocations: 313.8 kB / 480.2 MB, free: 10.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/1.017, allocations: 4.792 MB / 485 MB, free: 5.332 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002438/1.02, allocations: 1.985 MB / 487 MB, free: 3.312 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002136/1.022, allocations: 0.9171 MB / 487.9 MB, free: 2.395 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/1.022, allocations: 0 / 487.9 MB, free: 2.395 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.037/5.059, allocations: 72.05 MB / 0.5469 GB, free: 67.42 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat does not exist to compare? outputFormat=mat