Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.642/1.642, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 1.851e-05/1.854e-05, allocations: 0 / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2496, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.171/0.4207, allocations: 101.8 MB / 360.1 MB, free: 8.074 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.421, allocations: 83.95 kB / 360.2 MB, free: 7.992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9693/1.39, allocations: 158.1 MB / 0.5062 GB, free: 39.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.39, allocations: 0 / 0.5062 GB, free: 39.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006325/1.391, allocations: 179.1 kB / 0.5063 GB, free: 39.17 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: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.02591/1.417, allocations: 6.424 MB / 0.5126 GB, free: 37.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/1.417, allocations: 8.969 kB / 0.5126 GB, free: 37.03 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007216/1.424, allocations: 1.11 MB / 0.5137 GB, free: 36.63 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01406/1.438, allocations: 4.9 MB / 0.5185 GB, free: 35.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003329/1.439, allocations: 221.2 kB / 0.5187 GB, free: 35.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002098/1.441, allocations: 414.7 kB / 0.5191 GB, free: 35.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01785/1.459, allocations: 6.249 MB / 0.5252 GB, free: 35.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02291/1.482, allocations: 7.692 MB / 0.5327 GB, free: 35.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002357/1.482, allocations: 14.19 kB / 0.5327 GB, free: 35.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009556/1.483, allocations: 7.203 kB / 0.5327 GB, free: 35.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003376/1.483, allocations: 307.9 kB / 0.533 GB, free: 34.99 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05996/1.543, allocations: 26.37 MB / 0.5588 GB, free: 25.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007525/1.551, allocations: 5.266 MB / 0.5639 GB, free: 21.26 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004742/1.556, allocations: 2.304 MB / 0.5662 GB, free: 20.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000219/1.556, allocations: 35.94 kB / 0.5662 GB, free: 20.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.738e-05/1.556, allocations: 59.5 kB / 0.5663 GB, free: 20.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=270): time 1.075e-05/1.556, allocations: 0 / 0.5663 GB, free: 20.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=322): time 0.02677/1.583, allocations: 9.787 MB / 0.5758 GB, free: 15.13 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/1.583, allocations: 81.94 kB / 0.5759 GB, free: 15.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005505/1.588, allocations: 2.402 MB / 0.5782 GB, free: 12.88 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005347/1.589, allocations: 25.7 kB / 0.5783 GB, free: 12.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002557/1.591, allocations: 2.848 MB / 0.581 GB, free: 10.26 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001508/1.593, allocations: 1.054 MB / 0.5821 GB, free: 9.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002705/1.593, allocations: 0 / 0.5821 GB, free: 9.289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003067/1.594, allocations: 463.4 kB / 0.5825 GB, free: 8.875 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00347/1.597, allocations: 1.441 MB / 0.5839 GB, free: 7.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004206/1.601, allocations: 2.459 MB / 0.5863 GB, free: 4.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004458/1.606, allocations: 1.95 MB / 0.5882 GB, free: 3.141 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.903e-05/1.606, allocations: 8 kB / 0.5882 GB, free: 3.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01396/1.62, allocations: 4.99 MB / 0.5931 GB, free: 15.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.112e-05/1.62, allocations: 20 kB / 0.5931 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.372e-05/1.62, allocations: 28 kB / 0.5932 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00383/1.624, allocations: 0.9432 MB / 0.5941 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005852/1.63, allocations: 0.7867 MB / 0.5948 GB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02319/1.653, allocations: 14.54 MB / 0.609 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004492/1.657, allocations: 91.97 kB / 0.6091 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004704/1.658, allocations: 154.3 kB / 0.6093 GB, free: 15.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (409): * Single equations (assignments): 401 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 6 {(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007814/1.659, allocations: 207.8 kB / 0.6095 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01102/1.67, allocations: 4.308 MB / 0.6137 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.671, allocations: 359.6 kB / 0.614 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0118/1.683, allocations: 4.549 MB / 0.6185 GB, free: 6.629 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.201e-05/1.683, allocations: 35.95 kB / 0.6185 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/1.683, allocations: 15.81 kB / 0.6185 GB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.055e-05/1.683, allocations: 14.81 kB / 0.6185 GB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2949/1.978, allocations: 11.97 MB / 0.6302 GB, free: 61.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.449e-05/1.978, allocations: 13.03 kB / 0.6302 GB, free: 61.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003724/1.982, allocations: 474 kB / 0.6307 GB, free: 61.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004215/1.986, allocations: 1.077 MB / 0.6317 GB, free: 61.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002856/1.986, allocations: 31.48 kB / 0.6318 GB, free: 61.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0247/2.011, allocations: 17.54 MB / 0.6489 GB, free: 52.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.408e-05/2.011, allocations: 11.97 kB / 0.6489 GB, free: 52.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/2.025, allocations: 7.633 MB / 0.6564 GB, free: 50.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002462/2.027, allocations: 0.7834 MB / 0.6571 GB, free: 50.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008831/2.028, allocations: 17.86 kB / 0.6572 GB, free: 50.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/2.031, allocations: 103.2 kB / 0.6572 GB, free: 50.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006982/2.032, allocations: 251 kB / 0.6575 GB, free: 50.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/2.032, allocations: 95.56 kB / 0.6576 GB, free: 50.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003564/2.036, allocations: 1.777 MB / 0.6593 GB, free: 50.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.036, allocations: 3.688 kB / 0.6593 GB, free: 50.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006207/2.042, allocations: 1.105 MB / 0.6604 GB, free: 50.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpm3.inertiaRotor.w,smpm3.stator.port_n.Phi.re,smpm3.stator.port_n.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 234 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(4,93.8%) 18,(1,100.0%) 4,(4,93.8%) 18,(4,93.8%) 32,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01515/2.057, allocations: 10.66 MB / 0.6708 GB, free: 46.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01033/2.068, allocations: 4.904 MB / 0.6756 GB, free: 45.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/2.068, allocations: 0 / 0.6756 GB, free: 45.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007497/2.075, allocations: 3.181 MB / 0.6787 GB, free: 44.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006188/2.081, allocations: 0.7736 MB / 0.6795 GB, free: 44.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03134/2.113, allocations: 11.82 MB / 0.691 GB, free: 41.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006167/2.119, allocations: 4.346 MB / 0.6952 GB, free: 40.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005269/2.124, allocations: 2.579 MB / 0.6978 GB, free: 38.94 MB / 378.7 MB Notification: Performance of SimCode: time 1.293e-06/2.124, allocations: 0 / 0.6978 GB, free: 38.94 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.765/7.889, allocations: 358.4 MB / 1.048 GB, free: 66.06 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat