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.837/1.837, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.925e-05/2.954e-05, allocations: 0 / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.08945, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4508/0.5403, allocations: 117.1 MB / 417 MB, free: 7.391 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.5406, allocations: 90.81 kB / 417.1 MB, free: 7.375 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7267/1.267, allocations: 117.6 MB / 0.5222 GB, free: 61.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.325e-06/1.267, allocations: 3.25 kB / 0.5222 GB, free: 61.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006064/1.268, allocations: 131.5 kB / 0.5223 GB, free: 61.45 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.02224/1.29, allocations: 4.914 MB / 0.5271 GB, free: 59.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/1.29, allocations: 14.16 kB / 0.5271 GB, free: 59.99 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003316/1.294, allocations: 0.7029 MB / 0.5278 GB, free: 59.92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008459/1.302, allocations: 0.9956 MB / 0.5288 GB, free: 59.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01827/1.32, allocations: 4.596 MB / 0.5332 GB, free: 58.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005925/1.321, allocations: 383.2 kB / 0.5336 GB, free: 58.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002328/1.323, allocations: 0.5034 MB / 0.5341 GB, free: 58.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02224/1.346, allocations: 6.725 MB / 0.5407 GB, free: 58.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000335/1.346, allocations: 11.41 kB / 0.5407 GB, free: 58.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001716/1.348, allocations: 219.2 kB / 0.5409 GB, free: 58.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002815/1.348, allocations: 228.8 kB / 0.5411 GB, free: 58.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/1.365, allocations: 5.445 MB / 0.5464 GB, free: 58.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05634/1.422, allocations: 21.44 MB / 0.5674 GB, free: 53.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01204/1.434, allocations: 8.656 MB / 0.5758 GB, free: 48.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005542/1.439, allocations: 2.208 MB / 0.578 GB, free: 47.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01804/1.457, allocations: 6.184 MB / 0.584 GB, free: 44.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/1.458, allocations: 60.03 kB / 0.5841 GB, free: 44.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=220): time 6.913e-06/1.458, allocations: 0 / 0.5841 GB, free: 44.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=239): time 0.02881/1.486, allocations: 8.955 MB / 0.5928 GB, free: 40.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/1.486, allocations: 76.38 kB / 0.5929 GB, free: 40.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006103/1.493, allocations: 2.581 MB / 0.5954 GB, free: 39.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005847/1.493, allocations: 64.86 kB / 0.5955 GB, free: 39.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/1.495, allocations: 2.145 MB / 0.5976 GB, free: 37.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00109/1.496, allocations: 0.8164 MB / 0.5984 GB, free: 37.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002775/1.496, allocations: 55.03 kB / 0.5984 GB, free: 37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/1.497, allocations: 426.8 kB / 0.5988 GB, free: 36.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003069/1.5, allocations: 1.294 MB / 0.6001 GB, free: 36.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003656/1.503, allocations: 2.047 MB / 0.6021 GB, free: 34.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003927/1.507, allocations: 1.649 MB / 0.6037 GB, free: 34.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.669e-05/1.507, allocations: 6.531 kB / 0.6037 GB, free: 34.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=365) (initialization): time 0.01121/1.519, allocations: 4.333 MB / 0.6079 GB, free: 32.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/1.519, allocations: 13.44 kB / 0.6079 GB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.15e-05/1.519, allocations: 26.92 kB / 0.608 GB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002858/1.522, allocations: 0.76 MB / 0.6087 GB, free: 32.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004802/1.526, allocations: 0.6368 MB / 0.6093 GB, free: 32.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01488/1.541, allocations: 13.35 MB / 0.6224 GB, free: 20.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004287/1.546, allocations: 160.9 kB / 0.6225 GB, free: 20.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006121/1.546, allocations: 122.8 kB / 0.6226 GB, free: 20.84 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.0007257/1.547, allocations: 276.4 kB / 0.6229 GB, free: 20.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009816/1.548, allocations: 323.2 kB / 0.6232 GB, free: 20.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01045/1.558, allocations: 4.123 MB / 0.6272 GB, free: 18.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.72e-05/1.559, allocations: 25.17 kB / 0.6273 GB, free: 18.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/1.559, allocations: 10.22 kB / 0.6273 GB, free: 18.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.257e-05/1.559, allocations: 14.62 kB / 0.6273 GB, free: 18.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02417/1.583, allocations: 9.029 MB / 0.6361 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.144e-05/1.583, allocations: 3.562 kB / 0.6361 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003418/1.586, allocations: 384.6 kB / 0.6365 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004115/1.59, allocations: 0.9336 MB / 0.6374 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005909/1.591, allocations: 65.84 kB / 0.6374 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02151/1.613, allocations: 16.5 MB / 0.6536 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/1.613, allocations: 7.281 kB / 0.6536 GB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/1.629, allocations: 6.272 MB / 0.6597 GB, free: 8.391 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00307/1.633, allocations: 0.7011 MB / 0.6604 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001394/1.634, allocations: 59.89 kB / 0.6604 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003963/1.638, allocations: 141 kB / 0.6606 GB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009958/1.639, allocations: 201.5 kB / 0.6608 GB, free: 7.457 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003266/1.639, allocations: 75.08 kB / 0.6608 GB, free: 7.395 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00578/1.645, allocations: 1.959 MB / 0.6627 GB, free: 5.625 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.282e-06/1.645, allocations: 0 / 0.6627 GB, free: 5.625 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006477/1.652, allocations: 1.011 MB / 0.6637 GB, free: 4.617 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.3104/1.962, allocations: 8.154 MB / 0.6717 GB, free: 66.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.011/1.973, allocations: 4.454 MB / 0.676 GB, free: 65.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/1.973, allocations: 1.062 kB / 0.676 GB, free: 65.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007671/1.981, allocations: 2.994 MB / 0.679 GB, free: 64.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007119/1.988, allocations: 0.8324 MB / 0.6798 GB, free: 64.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0288/2.017, allocations: 9.562 MB / 0.6891 GB, free: 62.51 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005689/2.023, allocations: 3.444 MB / 0.6925 GB, free: 61.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004558/2.027, allocations: 1.964 MB / 0.6944 GB, free: 61.68 MB / 426.7 MB Notification: Performance of SimCode: time 1.813e-06/2.027, allocations: 0 / 0.6944 GB, free: 61.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.621/7.648, allocations: 320.8 MB / 1.008 GB, free: 98.67 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