Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.693/1.693, allocations: 171.2 MB / 183.3 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.922e-05/2.929e-05, allocations: 0 / 225.1 MB, free: 2.254 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2778, allocations: 38.77 MB / 263.9 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4139/0.6918, allocations: 109.6 MB / 373.5 MB, free: 49.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.6921, allocations: 88.86 kB / 373.6 MB, free: 49.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4067/1.099, allocations: 113.1 MB / 486.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.099, allocations: 0 / 486.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006047/1.1, allocations: 135.9 kB / 486.8 MB, free: 11.49 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.02131/1.121, allocations: 4.834 MB / 491.6 MB, free: 6.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/1.121, allocations: 12.02 kB / 491.6 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002868/1.124, allocations: 0.683 MB / 492.3 MB, free: 5.879 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005294/1.129, allocations: 0.7701 MB / 493.1 MB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/1.142, allocations: 3.616 MB / 496.7 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006116/1.143, allocations: 378 kB / 497 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002191/1.145, allocations: 0.492 MB / 497.5 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02257/1.167, allocations: 6.482 MB / 0.4922 GB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002968/1.168, allocations: 15.84 kB / 0.4922 GB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/1.169, allocations: 212 kB / 0.4924 GB, free: 9.633 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003281/1.17, allocations: 217.9 kB / 0.4926 GB, free: 9.418 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0179/1.188, allocations: 5.068 MB / 0.4976 GB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3108/1.498, allocations: 20.46 MB / 0.5175 GB, free: 44.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006634/1.505, allocations: 4.621 MB / 0.5221 GB, free: 42.19 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004797/1.51, allocations: 2.106 MB / 0.5241 GB, free: 42.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005129/1.51, allocations: 155.3 kB / 0.5243 GB, free: 42.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.614e-05/1.511, allocations: 57.62 kB / 0.5243 GB, free: 42.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=235): time 5.841e-06/1.511, allocations: 2.844 kB / 0.5243 GB, free: 42.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=278): time 0.03655/1.547, allocations: 11.03 MB / 0.5351 GB, free: 40.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/1.547, allocations: 80.38 kB / 0.5352 GB, free: 40.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005494/1.553, allocations: 2.501 MB / 0.5376 GB, free: 40.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005885/1.553, allocations: 73.64 kB / 0.5377 GB, free: 40.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/1.555, allocations: 2.202 MB / 0.5398 GB, free: 39.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00121/1.556, allocations: 0.943 MB / 0.5408 GB, free: 38.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002766/1.557, allocations: 63.25 kB / 0.5408 GB, free: 38.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/1.557, allocations: 428 kB / 0.5412 GB, free: 38.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003166/1.56, allocations: 1.429 MB / 0.5426 GB, free: 38.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003611/1.564, allocations: 2.142 MB / 0.5447 GB, free: 37.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004183/1.568, allocations: 1.804 MB / 0.5465 GB, free: 37.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.601e-05/1.568, allocations: 7.469 kB / 0.5465 GB, free: 37.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01212/1.58, allocations: 4.956 MB / 0.5513 GB, free: 37.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.12e-05/1.58, allocations: 13.69 kB / 0.5513 GB, free: 37.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.953e-05/1.58, allocations: 21 kB / 0.5513 GB, free: 37.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003476/1.584, allocations: 0.9557 MB / 0.5523 GB, free: 37.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005052/1.589, allocations: 0.6709 MB / 0.5529 GB, free: 37.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01809/1.607, allocations: 12.86 MB / 0.5655 GB, free: 29.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004196/1.611, allocations: 148.9 kB / 0.5656 GB, free: 29.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006231/1.612, allocations: 120.1 kB / 0.5658 GB, free: 29.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (333): * Single equations (assignments): 325 * 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: 5 * 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: 5 {(2,100.0%) 12,(1,100.0%) 1,(4,100.0%) 29,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000766/1.612, allocations: 295.2 kB / 0.566 GB, free: 29.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001289/1.614, allocations: 332.7 kB / 0.5664 GB, free: 29.03 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/1.625, allocations: 4.754 MB / 0.571 GB, free: 26.9 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.132e-05/1.625, allocations: 30.8 kB / 0.571 GB, free: 26.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.2e-05/1.625, allocations: 10.88 kB / 0.571 GB, free: 26.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-05/1.625, allocations: 14.16 kB / 0.571 GB, free: 26.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02914/1.655, allocations: 10.91 MB / 0.5817 GB, free: 22.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-05/1.655, allocations: 6.594 kB / 0.5817 GB, free: 22.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00349/1.658, allocations: 435.5 kB / 0.5821 GB, free: 22.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004366/1.663, allocations: 1.099 MB / 0.5832 GB, free: 21.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004247/1.663, allocations: 72.69 kB / 0.5833 GB, free: 21.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0237/1.687, allocations: 18.26 MB / 0.6011 GB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.186e-06/1.687, allocations: 5.125 kB / 0.6011 GB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01513/1.702, allocations: 7.327 MB / 0.6083 GB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002573/1.705, allocations: 0.7393 MB / 0.609 GB, free: 2.598 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007334/1.705, allocations: 66.94 kB / 0.609 GB, free: 2.539 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002913/1.708, allocations: 141.2 kB / 0.6092 GB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006732/1.709, allocations: 221.6 kB / 0.6094 GB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002462/1.709, allocations: 79.66 kB / 0.6095 GB, free: 2.227 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004059/1.713, allocations: 1.909 MB / 0.6113 GB, free: 0.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.713, allocations: 4 kB / 0.6113 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.009758/1.723, allocations: 1.303 MB / 0.6126 GB, free: 0 / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.port_n.Phi.re,aimcM.stator.port_n.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.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 (208): * Single equations (assignments): 199 * 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 {(5,92.0%) 27,(2,100.0%) 12,(1,100.0%) 7,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(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.01999/1.743, allocations: 9.537 MB / 0.6219 GB, free: 6.992 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.012/1.755, allocations: 4.724 MB / 0.6265 GB, free: 2.523 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.755, allocations: 0 / 0.6265 GB, free: 2.523 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00897/1.764, allocations: 3.38 MB / 0.6298 GB, free: 15.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006544/1.771, allocations: 0.8433 MB / 0.6307 GB, free: 14.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03/1.801, allocations: 9.922 MB / 0.6404 GB, free: 5.996 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006081/1.807, allocations: 3.551 MB / 0.6438 GB, free: 3.297 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004453/1.811, allocations: 0.7348 MB / 0.6445 GB, free: 2.785 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004761/1.816, allocations: 1.897 MB / 0.6464 GB, free: 1.027 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/1.816, allocations: 0 / 0.6464 GB, free: 1.027 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.479/2.295, allocations: 90.76 MB / 0.735 GB, free: 48.01 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/2.295, allocations: 183.6 kB / 0.7352 GB, free: 47.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.493/7.788, allocations: 0 / 0.7352 GB, free: 47.79 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat