Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.604/1.604, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.944e-05/2.947e-05, allocations: 4 kB / 225.1 MB, free: 2.125 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2514, allocations: 38.76 MB / 263.9 MB, free: 9.793 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4105/0.662, allocations: 106.9 MB / 370.8 MB, free: 48.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.6624, allocations: 85.2 kB / 370.9 MB, free: 48.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8959/1.558, allocations: 181.3 MB / 0.5393 GB, free: 45.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/1.558, allocations: 0 / 0.5393 GB, free: 45.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008664/1.559, allocations: 204.1 kB / 0.5395 GB, free: 45.18 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.03155/1.591, allocations: 7.602 MB / 0.5469 GB, free: 42.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/1.591, allocations: 10.62 kB / 0.5469 GB, free: 42.62 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004194/1.595, allocations: 1.101 MB / 0.548 GB, free: 42.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009254/1.604, allocations: 1.352 MB / 0.5493 GB, free: 42.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01921/1.624, allocations: 5.847 MB / 0.555 GB, free: 41.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007358/1.624, allocations: 0.5983 MB / 0.5556 GB, free: 41.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003223/1.628, allocations: 0.7927 MB / 0.5564 GB, free: 41.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03333/1.661, allocations: 10.16 MB / 0.5663 GB, free: 40.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003924/1.661, allocations: 12.94 kB / 0.5663 GB, free: 40.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002592/1.664, allocations: 354.1 kB / 0.5666 GB, free: 40.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000369/1.664, allocations: 334.3 kB / 0.567 GB, free: 40.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02453/1.689, allocations: 7.727 MB / 0.5745 GB, free: 40.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1029/1.792, allocations: 33.09 MB / 0.6068 GB, free: 23.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00921/1.801, allocations: 5.956 MB / 0.6126 GB, free: 18.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007085/1.808, allocations: 2.783 MB / 0.6154 GB, free: 17.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004376/1.809, allocations: 38.94 kB / 0.6154 GB, free: 17.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.683e-05/1.809, allocations: 64.06 kB / 0.6155 GB, free: 17.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=295): time 6.261e-06/1.809, allocations: 0 / 0.6155 GB, free: 17.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=353): time 0.03872/1.848, allocations: 11.62 MB / 0.6268 GB, free: 7.602 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.652e-05/1.848, allocations: 86.17 kB / 0.6269 GB, free: 7.504 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0106/1.858, allocations: 3.742 MB / 0.6305 GB, free: 4.125 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007879/1.859, allocations: 85.7 kB / 0.6306 GB, free: 4.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004253/1.864, allocations: 3.637 MB / 0.6342 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2804/2.144, allocations: 1.185 MB / 0.6353 GB, free: 42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004531/2.144, allocations: 82.91 kB / 0.6354 GB, free: 42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003491/2.145, allocations: 472.6 kB / 0.6359 GB, free: 41.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004694/2.15, allocations: 1.721 MB / 0.6375 GB, free: 41.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005633/2.155, allocations: 2.973 MB / 0.6404 GB, free: 40.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005673/2.161, allocations: 2.284 MB / 0.6427 GB, free: 40.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.659e-05/2.161, allocations: 13.19 kB / 0.6427 GB, free: 40.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=541) (initialization): time 0.01709/2.178, allocations: 6.136 MB / 0.6487 GB, free: 39.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.743e-05/2.178, allocations: 24.25 kB / 0.6487 GB, free: 39.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.883e-05/2.178, allocations: 43.47 kB / 0.6487 GB, free: 39.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003683/2.182, allocations: 0.9193 MB / 0.6496 GB, free: 39.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007099/2.189, allocations: 0.9521 MB / 0.6506 GB, free: 39.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/2.209, allocations: 12.27 MB / 0.6625 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00607/2.215, allocations: 235.2 kB / 0.6628 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009261/2.216, allocations: 178.9 kB / 0.6629 GB, free: 34.47 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 179 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (469): * Single equations (assignments): 461 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(4,93.8%) 19,(1,100.0%) 5,(4,93.8%) 19,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009574/2.217, allocations: 367.3 kB / 0.6633 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/2.218, allocations: 474.2 kB / 0.6637 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0138/2.232, allocations: 5.25 MB / 0.6689 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.111e-05/2.232, allocations: 35.78 kB / 0.6689 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.58e-05/2.232, allocations: 11.41 kB / 0.6689 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.133e-05/2.232, allocations: 18.66 kB / 0.6689 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03785/2.27, allocations: 14.31 MB / 0.6829 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.744e-05/2.27, allocations: 13.62 kB / 0.6829 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004691/2.275, allocations: 0.5613 MB / 0.6835 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00439/2.279, allocations: 1.075 MB / 0.6845 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006074/2.28, allocations: 85.48 kB / 0.6846 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02461/2.305, allocations: 15.72 MB / 0.7 GB, free: 23.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.338e-05/2.305, allocations: 19.94 kB / 0.7 GB, free: 23.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01858/2.323, allocations: 9.304 MB / 0.7091 GB, free: 17.94 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003665/2.327, allocations: 0.9697 MB / 0.71 GB, free: 17.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001606/2.329, allocations: 76.19 kB / 0.7101 GB, free: 17.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005082/2.334, allocations: 205.6 kB / 0.7103 GB, free: 17.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001178/2.335, allocations: 295.4 kB / 0.7106 GB, free: 17.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003419/2.335, allocations: 107.9 kB / 0.7107 GB, free: 17.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007077/2.343, allocations: 2.846 MB / 0.7134 GB, free: 16.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.41e-07/2.343, allocations: 0 / 0.7134 GB, free: 16.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007787/2.35, allocations: 1.457 MB / 0.7149 GB, free: 15.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.port_n.Phi.re,smeeM.stator.port_n.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.port_n.Phi.re,smee3.stator.port_n.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (263): * Single equations (assignments): 256 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 19,(4,93.8%) 32,(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02067/2.371, allocations: 12.63 MB / 0.7272 GB, free: 7.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01341/2.385, allocations: 5.457 MB / 0.7325 GB, free: 5.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.755e-05/2.385, allocations: 6.344 kB / 0.7325 GB, free: 5.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009572/2.394, allocations: 3.677 MB / 0.7361 GB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008602/2.403, allocations: 1.064 MB / 0.7372 GB, free: 2.848 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04435/2.447, allocations: 14.13 MB / 0.751 GB, free: 9.332 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009835/2.457, allocations: 5.133 MB / 0.756 GB, free: 5.535 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.005951/2.463, allocations: 0.9258 MB / 0.7569 GB, free: 4.902 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007342/2.47, allocations: 3.136 MB / 0.7599 GB, free: 1.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.322e-06/2.471, allocations: 0 / 0.7599 GB, free: 1.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6048/3.075, allocations: 123.6 MB / 0.8806 GB, free: 47.82 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002644/3.076, allocations: 209.7 kB / 0.8808 GB, free: 47.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.076/10.15, allocations: 1.969 kB / 0.8808 GB, free: 47.59 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat