Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.122/2.122, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.46e-05/4.47e-05, allocations: 8 kB / 269.5 MB, free: 6.293 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 47.57 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5415/0.6479, allocations: 135.7 MB / 452.7 MB, free: 1.062 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/0.6483, allocations: 87.27 kB / 452.8 MB, free: 1.016 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8626/1.511, allocations: 131.1 MB / 0.5702 GB, free: 90.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.511, allocations: 0 / 0.5702 GB, free: 90.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000601/1.512, allocations: 144.6 kB / 0.5703 GB, free: 90.17 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02256/1.534, allocations: 5.425 MB / 0.5756 GB, free: 88.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/1.534, allocations: 9.656 kB / 0.5756 GB, free: 88.05 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002762/1.537, allocations: 0.7686 MB / 0.5764 GB, free: 87.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00871/1.546, allocations: 1.151 MB / 0.5775 GB, free: 87.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01846/1.564, allocations: 4.904 MB / 0.5823 GB, free: 84.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005696/1.565, allocations: 430.8 kB / 0.5827 GB, free: 84.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002398/1.567, allocations: 0.5509 MB / 0.5833 GB, free: 84.44 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02343/1.591, allocations: 6.987 MB / 0.5901 GB, free: 81.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002756/1.591, allocations: 11.69 kB / 0.5901 GB, free: 81.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001587/1.593, allocations: 241.1 kB / 0.5903 GB, free: 81 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003056/1.593, allocations: 247.1 kB / 0.5906 GB, free: 80.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01841/1.611, allocations: 5.541 MB / 0.596 GB, free: 76.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06191/1.673, allocations: 23.92 MB / 0.6193 GB, free: 54.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01175/1.685, allocations: 8.609 MB / 0.6277 GB, free: 44.79 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005708/1.691, allocations: 2.233 MB / 0.6299 GB, free: 42.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01957/1.711, allocations: 6.969 MB / 0.6367 GB, free: 35.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/1.711, allocations: 60.56 kB / 0.6368 GB, free: 35.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=237): time 5.711e-06/1.711, allocations: 0 / 0.6368 GB, free: 35.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=288): time 0.04692/1.758, allocations: 12.16 MB / 0.6487 GB, free: 23.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/1.758, allocations: 81.64 kB / 0.6487 GB, free: 23.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006855/1.765, allocations: 2.941 MB / 0.6516 GB, free: 20.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006428/1.765, allocations: 73.7 kB / 0.6517 GB, free: 20.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002126/1.767, allocations: 2.669 MB / 0.6543 GB, free: 17.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001275/1.769, allocations: 0.9918 MB / 0.6552 GB, free: 16.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003479/1.769, allocations: 72 kB / 0.6553 GB, free: 16.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002246/1.769, allocations: 453.9 kB / 0.6557 GB, free: 15.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003833/1.773, allocations: 1.472 MB / 0.6572 GB, free: 14.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00457/1.778, allocations: 2.629 MB / 0.6598 GB, free: 11.24 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004831/1.783, allocations: 1.95 MB / 0.6617 GB, free: 9.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.661e-05/1.783, allocations: 12 kB / 0.6617 GB, free: 9.258 MB / 426.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.01342/1.796, allocations: 5.298 MB / 0.6668 GB, free: 3.883 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/1.796, allocations: 23.98 kB / 0.6669 GB, free: 3.859 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.965e-05/1.796, allocations: 40 kB / 0.6669 GB, free: 3.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003379/1.8, allocations: 0.8593 MB / 0.6677 GB, free: 2.945 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006119/1.806, allocations: 0.8658 MB / 0.6686 GB, free: 2.078 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3459/2.152, allocations: 9.759 MB / 0.6781 GB, free: 77.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005582/2.157, allocations: 243.8 kB / 0.6784 GB, free: 77.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00058/2.158, allocations: 171 kB / 0.6785 GB, free: 77.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008899/2.159, allocations: 331.2 kB / 0.6788 GB, free: 77.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/2.16, allocations: 391.2 kB / 0.6792 GB, free: 77.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01343/2.174, allocations: 4.545 MB / 0.6836 GB, free: 76.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.005e-05/2.174, allocations: 27.75 kB / 0.6837 GB, free: 76.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-05/2.174, allocations: 10.25 kB / 0.6837 GB, free: 76.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.245e-05/2.174, allocations: 14.84 kB / 0.6837 GB, free: 76.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02592/2.2, allocations: 9.984 MB / 0.6934 GB, free: 75.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.009913/2.21, allocations: 3.821 MB / 0.6972 GB, free: 75.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004437/2.214, allocations: 0.5038 MB / 0.6977 GB, free: 75.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004203/2.218, allocations: 0.9699 MB / 0.6986 GB, free: 75.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005049/2.219, allocations: 73.73 kB / 0.6987 GB, free: 75.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02154/2.24, allocations: 14.75 MB / 0.7131 GB, free: 65.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/2.241, allocations: 10.31 kB / 0.7131 GB, free: 65.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0166/2.257, allocations: 7.043 MB / 0.72 GB, free: 61.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003098/2.26, allocations: 0.7845 MB / 0.7207 GB, free: 61.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001319/2.262, allocations: 57.19 kB / 0.7208 GB, free: 61.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004397/2.266, allocations: 197.5 kB / 0.721 GB, free: 61.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009082/2.267, allocations: 212.1 kB / 0.7212 GB, free: 61.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003037/2.267, allocations: 86.05 kB / 0.7213 GB, free: 61.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005486/2.273, allocations: 2.219 MB / 0.7234 GB, free: 60.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.072e-06/2.273, allocations: 2.719 kB / 0.7234 GB, free: 60.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007529/2.28, allocations: 1.2 MB / 0.7246 GB, free: 60.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01914/2.3, allocations: 9.041 MB / 0.7334 GB, free: 55.26 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01181/2.311, allocations: 4.561 MB / 0.7379 GB, free: 53.24 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/2.312, allocations: 3.172 kB / 0.7379 GB, free: 53.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007778/2.319, allocations: 2.905 MB / 0.7407 GB, free: 51.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007148/2.327, allocations: 0.8237 MB / 0.7415 GB, free: 51.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03128/2.358, allocations: 9.967 MB / 0.7513 GB, free: 47.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006456/2.364, allocations: 3.625 MB / 0.7548 GB, free: 46.16 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005394/2.37, allocations: 0.831 MB / 0.7556 GB, free: 46.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004967/2.375, allocations: 2.233 MB / 0.7578 GB, free: 44.05 MB / 426.7 MB Notification: Performance of SimCode: time 1.543e-06/2.375, allocations: 0 / 0.7578 GB, free: 44.05 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6192/2.994, allocations: 97.51 MB / 0.853 GB, free: 92.33 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002818/2.994, allocations: 197.8 kB / 0.8532 GB, free: 92.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/10.02, allocations: 3.125 kB / 0.8532 GB, free: 92.1 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat