Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.89/1.89, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.758e-05/2.775e-05, allocations: 0 / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09434/0.09439, allocations: 44.5 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.531/0.6255, allocations: 99.34 MB / 399.3 MB, free: 12.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.6258, allocations: 84.11 kB / 399.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2313/0.8572, allocations: 44.51 MB / 443.9 MB, free: 6.078 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.8572, allocations: 4 kB / 443.9 MB, free: 6.074 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000425/0.8577, allocations: 55.94 kB / 444 MB, free: 6.02 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.01154/0.8692, allocations: 2.181 MB / 446.1 MB, free: 3.926 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.189e-05/0.8693, allocations: 8.031 kB / 446.1 MB, free: 3.918 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001941/0.8713, allocations: 295.8 kB / 446.4 MB, free: 3.746 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002582/0.8739, allocations: 296.8 kB / 446.7 MB, free: 3.453 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00825/0.8822, allocations: 1.549 MB / 448.3 MB, free: 2.246 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003722/0.8826, allocations: 145.3 kB / 448.4 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/0.884, allocations: 211.6 kB / 448.6 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/0.8974, allocations: 2.621 MB / 451.2 MB, free: 188 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000208/0.8976, allocations: 7.938 kB / 451.3 MB, free: 180 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007623/0.8984, allocations: 88.84 kB / 451.3 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002446/0.8987, allocations: 86.19 kB / 451.4 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01053/0.9093, allocations: 2.113 MB / 453.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03528/0.9446, allocations: 8.441 MB / 462 MB, free: 5.668 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003491/0.9481, allocations: 1.761 MB / 463.7 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002658/0.9508, allocations: 0.9595 MB / 464.7 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004098/0.9513, allocations: 137.7 kB / 464.8 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.017e-05/0.9513, allocations: 47.55 kB / 464.9 MB, free: 2.625 MB / 346.7 MB Notification: Performance of pre-optimization done (n=107): time 3.627e-06/0.9513, allocations: 0 / 464.9 MB, free: 2.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.01934/0.9707, allocations: 5.248 MB / 470.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.9708, allocations: 68.39 kB / 470.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/0.974, allocations: 1.297 MB / 471.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000308/0.9743, allocations: 45.7 kB / 471.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.9753, allocations: 0.9307 MB / 472.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005818/0.9759, allocations: 421.3 kB / 472.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.976, allocations: 28 kB / 472.9 MB, free: 10.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.9763, allocations: 366.8 kB / 473.3 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001837/0.9781, allocations: 0.7067 MB / 474 MB, free: 9.441 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002072/0.9802, allocations: 0.9838 MB / 475 MB, free: 8.332 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002103/0.9823, allocations: 0.8442 MB / 475.8 MB, free: 7.488 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.9824, allocations: 4 kB / 475.8 MB, free: 7.484 MB / 362.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005863/0.9882, allocations: 2.147 MB / 477.9 MB, free: 5.316 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.9883, allocations: 8 kB / 478 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.9883, allocations: 8 kB / 478 MB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/0.99, allocations: 407.4 kB / 478.4 MB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002753/0.9928, allocations: 347.5 kB / 478.7 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008113/1.001, allocations: 4.629 MB / 483.3 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/1.003, allocations: 95.88 kB / 483.4 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/1.003, allocations: 56 kB / 483.5 MB, free: 15.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004225/1.004, allocations: 188.5 kB / 483.7 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004018/1.004, allocations: 162 kB / 483.8 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005861/1.01, allocations: 2.098 MB / 485.9 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.655e-05/1.01, allocations: 12 kB / 485.9 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/1.01, allocations: 4 kB / 485.9 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/1.01, allocations: 11.97 kB / 485.9 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0148/1.025, allocations: 4.524 MB / 490.5 MB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/1.025, allocations: 3.938 kB / 490.5 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002754/1.028, allocations: 236 kB / 490.7 MB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003174/1.031, allocations: 466.9 kB / 491.2 MB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002078/1.031, allocations: 35.92 kB / 491.2 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01308/1.044, allocations: 6.16 MB / 497.4 MB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-05/1.044, allocations: 7.984 kB / 497.4 MB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/1.055, allocations: 3.293 MB / 0.4889 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/1.057, allocations: 403 kB / 0.4893 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005075/1.058, allocations: 32 kB / 0.4893 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.06, allocations: 75.92 kB / 0.4894 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005225/1.06, allocations: 112.8 kB / 0.4895 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/1.061, allocations: 39.98 kB / 0.4896 GB, free: 12.99 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003257/1.064, allocations: 1.003 MB / 0.4905 GB, free: 11.99 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.064, allocations: 0 / 0.4905 GB, free: 11.99 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003268/1.067, allocations: 488 kB / 0.491 GB, free: 11.51 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01227/1.08, allocations: 4.776 MB / 0.4957 GB, free: 6.648 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00718/1.087, allocations: 2.161 MB / 0.4978 GB, free: 4.422 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.495e-06/1.087, allocations: 1.875 kB / 0.4978 GB, free: 4.422 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004876/1.092, allocations: 1.444 MB / 0.4992 GB, free: 2.922 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004397/1.096, allocations: 421.4 kB / 0.4996 GB, free: 2.508 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/1.108, allocations: 4.313 MB / 0.5038 GB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00241/1.111, allocations: 1.842 MB / 0.5056 GB, free: 12.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/1.113, allocations: 0.8 MB / 0.5064 GB, free: 11.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/1.113, allocations: 0 / 0.5064 GB, free: 11.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.668/4.781, allocations: 78.31 MB / 0.5829 GB, free: 83.72 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat