Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.838/1.838, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.385e-05/3.394e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09085, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4535/0.5444, allocations: 117.1 MB / 417 MB, free: 7.18 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.5447, allocations: 89.7 kB / 417.1 MB, free: 7.168 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7294/1.274, allocations: 117.6 MB / 0.5222 GB, free: 61.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/1.274, allocations: 0 / 0.5222 GB, free: 61.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005815/1.275, allocations: 136 kB / 0.5223 GB, free: 61.35 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.02249/1.297, allocations: 4.916 MB / 0.5271 GB, free: 59.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/1.297, allocations: 10.16 kB / 0.5271 GB, free: 59.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003247/1.301, allocations: 0.7036 MB / 0.5278 GB, free: 59.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008382/1.309, allocations: 0.9962 MB / 0.5288 GB, free: 59.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01827/1.327, allocations: 4.606 MB / 0.5333 GB, free: 58.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006383/1.328, allocations: 384 kB / 0.5336 GB, free: 58.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002367/1.33, allocations: 0.5076 MB / 0.5341 GB, free: 58.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02236/1.353, allocations: 6.661 MB / 0.5406 GB, free: 58.15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002902/1.353, allocations: 13.34 kB / 0.5407 GB, free: 58.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001631/1.355, allocations: 224.8 kB / 0.5409 GB, free: 58.14 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002913/1.355, allocations: 228.1 kB / 0.5411 GB, free: 58.13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01679/1.372, allocations: 5.367 MB / 0.5463 GB, free: 58.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05598/1.428, allocations: 21.43 MB / 0.5673 GB, free: 53.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/1.44, allocations: 8.631 MB / 0.5757 GB, free: 48.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005653/1.446, allocations: 2.211 MB / 0.5778 GB, free: 47.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01839/1.464, allocations: 6.187 MB / 0.5839 GB, free: 44.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.568e-05/1.465, allocations: 59.53 kB / 0.5839 GB, free: 44.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=220): time 5.44e-06/1.465, allocations: 0 / 0.5839 GB, free: 44.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=239): time 0.02922/1.494, allocations: 8.948 MB / 0.5927 GB, free: 40.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/1.494, allocations: 78.38 kB / 0.5928 GB, free: 40.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006659/1.501, allocations: 2.579 MB / 0.5953 GB, free: 39.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005749/1.501, allocations: 67.17 kB / 0.5953 GB, free: 39.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001761/1.503, allocations: 2.146 MB / 0.5974 GB, free: 37.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001136/1.504, allocations: 0.8108 MB / 0.5982 GB, free: 37.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002893/1.504, allocations: 62.12 kB / 0.5983 GB, free: 37.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/1.505, allocations: 429.8 kB / 0.5987 GB, free: 36.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003021/1.508, allocations: 1.296 MB / 0.6 GB, free: 36.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004242/1.512, allocations: 2.033 MB / 0.6019 GB, free: 34.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006228/1.518, allocations: 1.644 MB / 0.6036 GB, free: 34.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.132e-05/1.518, allocations: 13.95 kB / 0.6036 GB, free: 34.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=365) (initialization): time 0.02225/1.541, allocations: 4.26 MB / 0.6077 GB, free: 32.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.746e-05/1.541, allocations: 16.44 kB / 0.6077 GB, free: 32.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.387e-05/1.541, allocations: 22.41 kB / 0.6078 GB, free: 32.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01263/1.554, allocations: 0.7568 MB / 0.6085 GB, free: 32.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01567/1.569, allocations: 0.641 MB / 0.6091 GB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03988/1.609, allocations: 13.34 MB / 0.6222 GB, free: 21.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006403/1.616, allocations: 159.6 kB / 0.6223 GB, free: 21.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009479/1.617, allocations: 117.9 kB / 0.6224 GB, free: 21.13 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (322): * Single equations (assignments): 312 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 7 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001155/1.618, allocations: 283.6 kB / 0.6227 GB, free: 20.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/1.619, allocations: 319.7 kB / 0.623 GB, free: 20.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01414/1.633, allocations: 4.115 MB / 0.627 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.211e-05/1.634, allocations: 32.08 kB / 0.627 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.643e-05/1.634, allocations: 7.312 kB / 0.627 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.458e-05/1.634, allocations: 13.88 kB / 0.6271 GB, free: 18.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0257/1.659, allocations: 9.024 MB / 0.6359 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.004e-05/1.659, allocations: 7.297 kB / 0.6359 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003385/1.663, allocations: 384.5 kB / 0.6362 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004092/1.667, allocations: 0.921 MB / 0.6371 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005984/1.668, allocations: 70.64 kB / 0.6372 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02087/1.689, allocations: 16.48 MB / 0.6533 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.689, allocations: 5.875 kB / 0.6533 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01674/1.705, allocations: 6.267 MB / 0.6594 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003105/1.708, allocations: 0.7022 MB / 0.6601 GB, free: 7.836 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001398/1.71, allocations: 59.94 kB / 0.6602 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003921/1.714, allocations: 141.2 kB / 0.6603 GB, free: 7.676 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009114/1.715, allocations: 199.2 kB / 0.6605 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003571/1.715, allocations: 71.88 kB / 0.6606 GB, free: 7.496 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005602/1.721, allocations: 1.962 MB / 0.6625 GB, free: 5.723 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.721, allocations: 4 kB / 0.6625 GB, free: 5.719 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006591/1.727, allocations: 1.016 MB / 0.6635 GB, free: 4.707 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.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 (180): * Single equations (assignments): 171 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3098/2.037, allocations: 8.169 MB / 0.6715 GB, free: 66.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01063/2.048, allocations: 4.349 MB / 0.6757 GB, free: 65.46 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/2.048, allocations: 4.344 kB / 0.6757 GB, free: 65.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007695/2.056, allocations: 2.917 MB / 0.6786 GB, free: 64.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007222/2.063, allocations: 0.8338 MB / 0.6794 GB, free: 64.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03152/2.095, allocations: 9.559 MB / 0.6887 GB, free: 62.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005304/2.1, allocations: 3.433 MB / 0.6921 GB, free: 61.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004037/2.104, allocations: 1.965 MB / 0.694 GB, free: 61.81 MB / 426.7 MB Notification: Performance of SimCode: time 1.383e-06/2.104, allocations: 0 / 0.694 GB, free: 61.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.509/7.613, allocations: 320.3 MB / 1.007 GB, free: 99.55 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat