Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.668e-05/2.716e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.327, allocations: 44.49 MB / 294.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1689/0.496, allocations: 98.9 MB / 393.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.4963, allocations: 83.95 kB / 393.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4149/0.9112, allocations: 40.85 MB / 434 MB, free: 91.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.9113, allocations: 0 / 434 MB, free: 91.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001809/0.9115, allocations: 51.34 kB / 434.1 MB, free: 91.81 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.006207/0.9177, allocations: 1.987 MB / 436.1 MB, free: 90.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.9178, allocations: 8.859 kB / 436.1 MB, free: 90.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/0.9191, allocations: 272.6 kB / 436.4 MB, free: 90.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003867/0.923, allocations: 1.372 MB / 437.7 MB, free: 90.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.131e-05/0.9231, allocations: 61.94 kB / 437.8 MB, free: 90.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003684/0.9235, allocations: 115.4 kB / 437.9 MB, free: 90.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004533/0.928, allocations: 1.743 MB / 439.6 MB, free: 90.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004905/0.9329, allocations: 2.099 MB / 441.7 MB, free: 90.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-05/0.9331, allocations: 8.812 kB / 441.8 MB, free: 90.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002245/0.9333, allocations: 0 / 441.8 MB, free: 90.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.9334, allocations: 85.61 kB / 441.8 MB, free: 90.06 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01579/0.9492, allocations: 7.47 MB / 449.3 MB, free: 86.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002406/0.9517, allocations: 1.318 MB / 450.6 MB, free: 86.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001984/0.9537, allocations: 0.8628 MB / 451.5 MB, free: 85.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003937/0.9541, allocations: 136.1 kB / 451.6 MB, free: 85.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.9541, allocations: 45.59 kB / 451.7 MB, free: 85.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=111): time 3.586e-06/0.9541, allocations: 7.938 kB / 451.7 MB, free: 85.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=127): time 0.01159/0.9657, allocations: 4.214 MB / 455.9 MB, free: 83.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.9658, allocations: 65.91 kB / 456 MB, free: 83.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.9675, allocations: 0.8947 MB / 456.8 MB, free: 83.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001206/0.9676, allocations: 25.7 kB / 456.9 MB, free: 83.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005003/0.9681, allocations: 0.8672 MB / 457.7 MB, free: 82.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.9685, allocations: 427 kB / 458.2 MB, free: 82.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.9686, allocations: 0 / 458.2 MB, free: 82.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.9688, allocations: 366.3 kB / 458.5 MB, free: 82.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.9701, allocations: 0.6267 MB / 459.1 MB, free: 81.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.9717, allocations: 0.9315 MB / 460.1 MB, free: 81.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.9733, allocations: 0.7822 MB / 460.9 MB, free: 80.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.9734, allocations: 0 / 460.9 MB, free: 80.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.005805/0.9792, allocations: 2.05 MB / 462.9 MB, free: 80.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.9792, allocations: 10.81 kB / 462.9 MB, free: 80.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.9793, allocations: 6.906 kB / 462.9 MB, free: 80.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/0.981, allocations: 498.8 kB / 463.4 MB, free: 79.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002245/0.9833, allocations: 334.7 kB / 463.7 MB, free: 79.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008051/0.9913, allocations: 6.346 MB / 470.1 MB, free: 74.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/0.9931, allocations: 59.92 kB / 470.1 MB, free: 74.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.9933, allocations: 60.06 kB / 470.2 MB, free: 74.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 148 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003304/0.9936, allocations: 139.4 kB / 470.3 MB, free: 74.02 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004381/0.998, allocations: 1.852 MB / 472.2 MB, free: 72.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002927/0.9983, allocations: 134.3 kB / 472.3 MB, free: 72.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004719/1.003, allocations: 1.964 MB / 474.3 MB, free: 70.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/1.003, allocations: 16 kB / 474.3 MB, free: 70.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/1.003, allocations: 14.33 kB / 474.3 MB, free: 70.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/1.003, allocations: 6.703 kB / 474.3 MB, free: 70.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009165/1.012, allocations: 3.938 MB / 478.3 MB, free: 67.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/1.012, allocations: 3.562 kB / 478.3 MB, free: 67.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001801/1.014, allocations: 226.5 kB / 478.5 MB, free: 67.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002138/1.016, allocations: 0.5468 MB / 479 MB, free: 66.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/1.016, allocations: 15.7 kB / 479 MB, free: 66.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009421/1.026, allocations: 7.833 MB / 486.9 MB, free: 58.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.026, allocations: 4 kB / 486.9 MB, free: 58.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006327/1.032, allocations: 3.038 MB / 489.9 MB, free: 55.94 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009025/1.033, allocations: 351.3 kB / 490.3 MB, free: 55.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003323/1.034, allocations: 15.98 kB / 490.3 MB, free: 55.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/1.035, allocations: 55.92 kB / 490.3 MB, free: 55.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003613/1.035, allocations: 97.22 kB / 490.4 MB, free: 55.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/1.035, allocations: 43.92 kB / 490.5 MB, free: 55.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001238/1.037, allocations: 0.6806 MB / 491.1 MB, free: 54.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.037, allocations: 0 / 491.1 MB, free: 54.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001949/1.039, allocations: 408 kB / 491.5 MB, free: 54.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006842/1.045, allocations: 4.369 MB / 495.9 MB, free: 49.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004342/1.05, allocations: 2.2 MB / 498.1 MB, free: 47.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/1.05, allocations: 1.594 kB / 498.1 MB, free: 47.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002951/1.053, allocations: 1.514 MB / 499.6 MB, free: 46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003345/1.056, allocations: 303 kB / 499.9 MB, free: 45.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/1.07, allocations: 3.864 MB / 0.492 GB, free: 41.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002334/1.072, allocations: 1.674 MB / 0.4936 GB, free: 40.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00221/1.074, allocations: 0.7219 MB / 0.4943 GB, free: 39.39 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/1.074, allocations: 0 / 0.4943 GB, free: 39.39 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.961/5.036, allocations: 76.83 MB / 0.5693 GB, free: 112.4 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat