Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.35/2.35, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.275e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3557, allocations: 44.5 MB / 294.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2416/0.5974, allocations: 116.2 MB / 410.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003497/0.5978, allocations: 83.95 kB / 410.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.457/2.055, allocations: 190.4 MB / 0.5869 GB, free: 38.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.555e-06/2.055, allocations: 0 / 0.5869 GB, free: 38.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0009003/2.056, allocations: 204.6 kB / 0.5871 GB, free: 38.96 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.04526/2.102, allocations: 7.896 MB / 0.5948 GB, free: 36.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.969e-05/2.102, allocations: 7.344 kB / 0.5948 GB, free: 36.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03031/2.132, allocations: 1.898 MB / 0.5966 GB, free: 35.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04472/2.177, allocations: 7.035 MB / 0.6035 GB, free: 34.74 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009265/2.178, allocations: 278.5 kB / 0.6038 GB, free: 34.74 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004808/2.183, allocations: 0.5027 MB / 0.6043 GB, free: 34.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04275/2.225, allocations: 8.191 MB / 0.6123 GB, free: 34.69 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04137/2.267, allocations: 9.639 MB / 0.6217 GB, free: 33.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005215/2.267, allocations: 6.156 kB / 0.6217 GB, free: 33.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003007/2.27, allocations: 11.73 kB / 0.6217 GB, free: 33.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005187/2.271, allocations: 371 kB / 0.622 GB, free: 33.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.104/2.375, allocations: 34.35 MB / 0.6556 GB, free: 18.99 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02757/2.403, allocations: 16.57 MB / 0.6718 GB, free: 4.168 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01069/2.413, allocations: 3.229 MB / 0.6749 GB, free: 1.547 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03533/2.449, allocations: 9.234 MB / 0.6839 GB, free: 9.688 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.649e-05/2.449, allocations: 64.88 kB / 0.684 GB, free: 9.613 MB / 410.7 MB Notification: Performance of pre-optimization done (n=295): time 7.985e-06/2.449, allocations: 0 / 0.684 GB, free: 9.613 MB / 410.7 MB Notification: Performance of matching and sorting (n=347): time 0.05454/2.503, allocations: 12.1 MB / 0.6958 GB, free: 15.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.002e-05/2.504, allocations: 86.12 kB / 0.6959 GB, free: 14.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0103/2.514, allocations: 3.14 MB / 0.699 GB, free: 12.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007876/2.515, allocations: 28.42 kB / 0.699 GB, free: 12.15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005008/2.52, allocations: 3.891 MB / 0.7028 GB, free: 8.676 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002125/2.522, allocations: 1.148 MB / 0.7039 GB, free: 7.621 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005064/2.522, allocations: 0 / 0.7039 GB, free: 7.621 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004366/2.523, allocations: 487.5 kB / 0.7044 GB, free: 7.191 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005354/2.528, allocations: 1.627 MB / 0.706 GB, free: 5.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007188/2.536, allocations: 3.038 MB / 0.7089 GB, free: 2.188 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009714/2.545, allocations: 2.538 MB / 0.7114 GB, free: 64 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.602e-05/2.545, allocations: 12 kB / 0.7114 GB, free: 52 kB / 426.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.4026/2.948, allocations: 5.928 MB / 0.7172 GB, free: 65.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.34e-05/2.948, allocations: 26.69 kB / 0.7172 GB, free: 65.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001375/2.948, allocations: 46.97 kB / 0.7173 GB, free: 65.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003831/2.952, allocations: 0.7 MB / 0.718 GB, free: 65.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009635/2.962, allocations: 1.047 MB / 0.719 GB, free: 65.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01692/2.979, allocations: 9.654 MB / 0.7284 GB, free: 60.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007084/2.986, allocations: 166.7 kB / 0.7286 GB, free: 60.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/2.987, allocations: 199.2 kB / 0.7288 GB, free: 60.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (520): * Single equations (assignments): 512 * 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 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001178/2.988, allocations: 240.2 kB / 0.729 GB, free: 60 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01705/3.005, allocations: 4.739 MB / 0.7336 GB, free: 59.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002134/3.008, allocations: 437.2 kB / 0.734 GB, free: 59.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01848/3.026, allocations: 5.009 MB / 0.7389 GB, free: 59.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.628e-05/3.026, allocations: 31.78 kB / 0.739 GB, free: 59.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-05/3.026, allocations: 10.28 kB / 0.739 GB, free: 59.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.851e-05/3.026, allocations: 16.5 kB / 0.739 GB, free: 59.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03687/3.063, allocations: 11.24 MB / 0.75 GB, free: 58.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.542e-05/3.063, allocations: 9.359 kB / 0.75 GB, free: 58.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006317/3.07, allocations: 0.6013 MB / 0.7506 GB, free: 58.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004231/3.074, allocations: 0.8837 MB / 0.7514 GB, free: 58.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006334/3.075, allocations: 39.11 kB / 0.7515 GB, free: 58.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02364/3.098, allocations: 13.45 MB / 0.7646 GB, free: 51.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.228e-05/3.098, allocations: 7.281 kB / 0.7646 GB, free: 51.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02649/3.125, allocations: 7.91 MB / 0.7723 GB, free: 50.12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005703/3.131, allocations: 0.9001 MB / 0.7732 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003057/3.134, allocations: 23.67 kB / 0.7732 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008842/3.143, allocations: 148.2 kB / 0.7734 GB, free: 49.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001965/3.145, allocations: 270.1 kB / 0.7736 GB, free: 49.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008793/3.146, allocations: 100.7 kB / 0.7737 GB, free: 49.79 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01065/3.156, allocations: 2.316 MB / 0.776 GB, free: 49.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.536e-06/3.156, allocations: 0 / 0.776 GB, free: 49.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01391/3.17, allocations: 1.33 MB / 0.7773 GB, free: 49.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.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 (270): * Single equations (assignments): 263 * 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 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03647/3.207, allocations: 9.959 MB / 0.787 GB, free: 44.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01551/3.223, allocations: 4.977 MB / 0.7919 GB, free: 41.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/3.223, allocations: 0 / 0.7919 GB, free: 41.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009669/3.232, allocations: 3.122 MB / 0.7949 GB, free: 40.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008377/3.241, allocations: 0.7499 MB / 0.7957 GB, free: 39.95 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05512/3.296, allocations: 13.77 MB / 0.8091 GB, free: 34.74 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01695/3.313, allocations: 5.201 MB / 0.8142 GB, free: 31.98 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01199/3.325, allocations: 0.9877 MB / 0.8151 GB, free: 31.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01228/3.337, allocations: 3.276 MB / 0.8183 GB, free: 28.27 MB / 426.7 MB Notification: Performance of SimCode: time 2.625e-06/3.337, allocations: 0 / 0.8183 GB, free: 28.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7513/4.089, allocations: 105.9 MB / 0.9218 GB, free: 62.85 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002318/4.089, allocations: 184.3 kB / 0.9219 GB, free: 62.66 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.484/12.57, allocations: 0 / 0.9219 GB, free: 62.66 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat