Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.966e-05/2.959e-05, allocations: 4 kB / 292.8 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 50.4 MB / 343.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4675/0.5707, allocations: 115.8 MB / 459 MB, free: 10.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00035/0.5711, allocations: 102.3 kB / 459.1 MB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8355/1.407, allocations: 159.9 MB / 0.6046 GB, free: 82.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.365e-06/1.407, allocations: 0 / 0.6046 GB, free: 82.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006057/1.407, allocations: 171.7 kB / 0.6047 GB, free: 82.63 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02654/1.434, allocations: 6.463 MB / 0.611 GB, free: 78.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/1.434, allocations: 11.22 kB / 0.611 GB, free: 78.61 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003547/1.438, allocations: 0.9523 MB / 0.612 GB, free: 77.91 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01375/1.451, allocations: 1.516 MB / 0.6135 GB, free: 77.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02718/1.479, allocations: 5.736 MB / 0.6191 GB, free: 71.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008396/1.479, allocations: 0.5206 MB / 0.6196 GB, free: 71.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003428/1.483, allocations: 0.6861 MB / 0.6202 GB, free: 70.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03745/1.52, allocations: 8.947 MB / 0.629 GB, free: 61.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003824/1.521, allocations: 11.89 kB / 0.629 GB, free: 61.37 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002512/1.523, allocations: 297 kB / 0.6293 GB, free: 61.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005122/1.524, allocations: 322.2 kB / 0.6296 GB, free: 60.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02325/1.547, allocations: 7.241 MB / 0.6366 GB, free: 53.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07257/1.62, allocations: 28.85 MB / 0.6648 GB, free: 24.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02077/1.641, allocations: 16.39 MB / 0.6808 GB, free: 6.016 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007009/1.648, allocations: 2.896 MB / 0.6836 GB, free: 3.109 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3407/1.988, allocations: 7.762 MB / 0.6912 GB, free: 76.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.902e-05/1.988, allocations: 70.03 kB / 0.6913 GB, free: 76.36 MB / 442.7 MB Notification: Performance of pre-optimization done (n=256): time 5.751e-06/1.989, allocations: 1.375 kB / 0.6913 GB, free: 76.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=262): time 0.02489/2.013, allocations: 7.809 MB / 0.6989 GB, free: 75.03 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/2.014, allocations: 78.06 kB / 0.699 GB, free: 74.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009109/2.023, allocations: 2.911 MB / 0.7018 GB, free: 74.71 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006226/2.023, allocations: 71.42 kB / 0.7019 GB, free: 74.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003186/2.027, allocations: 3.043 MB / 0.7049 GB, free: 73.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00142/2.028, allocations: 0.9019 MB / 0.7058 GB, free: 72.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003839/2.028, allocations: 68.53 kB / 0.7058 GB, free: 72.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002474/2.029, allocations: 441.4 kB / 0.7062 GB, free: 72.49 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003762/2.032, allocations: 1.312 MB / 0.7075 GB, free: 72.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004435/2.037, allocations: 2.293 MB / 0.7098 GB, free: 71.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004335/2.041, allocations: 1.762 MB / 0.7115 GB, free: 71.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.894e-05/2.041, allocations: 7.344 kB / 0.7115 GB, free: 71.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01166/2.053, allocations: 4.426 MB / 0.7158 GB, free: 70.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/2.053, allocations: 17.41 kB / 0.7158 GB, free: 70.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-05/2.053, allocations: 32.53 kB / 0.7159 GB, free: 70.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001465/2.055, allocations: 396 kB / 0.7162 GB, free: 70.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005935/2.061, allocations: 0.7833 MB / 0.717 GB, free: 70.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008158/2.069, allocations: 7.33 MB / 0.7242 GB, free: 65.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005057/2.074, allocations: 170.5 kB / 0.7243 GB, free: 65.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008385/2.075, allocations: 147 kB / 0.7245 GB, free: 65.56 MB / 442.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 (406): * Single equations (assignments): 400 * 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: 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008597/2.076, allocations: 309.6 kB / 0.7248 GB, free: 65.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/2.077, allocations: 368.6 kB / 0.7251 GB, free: 65.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/2.088, allocations: 4.073 MB / 0.7291 GB, free: 64.78 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.51e-05/2.088, allocations: 25.91 kB / 0.7291 GB, free: 64.78 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.142e-05/2.088, allocations: 12.19 kB / 0.7291 GB, free: 64.78 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.422e-05/2.089, allocations: 15.09 kB / 0.7291 GB, free: 64.78 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02779/2.116, allocations: 9.682 MB / 0.7386 GB, free: 62.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-05/2.116, allocations: 9.391 kB / 0.7386 GB, free: 62.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003739/2.12, allocations: 407.5 kB / 0.739 GB, free: 62.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003623/2.124, allocations: 0.848 MB / 0.7398 GB, free: 62.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004575/2.124, allocations: 75.47 kB / 0.7399 GB, free: 62.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02126/2.146, allocations: 16.01 MB / 0.7555 GB, free: 49.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/2.146, allocations: 9.359 kB / 0.7555 GB, free: 49.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01319/2.159, allocations: 6.081 MB / 0.7615 GB, free: 46.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002756/2.162, allocations: 0.7465 MB / 0.7622 GB, free: 46.04 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/2.163, allocations: 58.72 kB / 0.7623 GB, free: 46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003731/2.167, allocations: 151.8 kB / 0.7624 GB, free: 45.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007168/2.167, allocations: 193.2 kB / 0.7626 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002674/2.168, allocations: 80.89 kB / 0.7627 GB, free: 45.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005324/2.173, allocations: 2.208 MB / 0.7648 GB, free: 45.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.21e-07/2.173, allocations: 0 / 0.7648 GB, free: 45.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007374/2.18, allocations: 1.189 MB / 0.766 GB, free: 44.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (194): * Single equations (assignments): 187 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01547/2.196, allocations: 7.867 MB / 0.7737 GB, free: 40.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008936/2.205, allocations: 3.845 MB / 0.7774 GB, free: 38.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/2.205, allocations: 4.062 kB / 0.7774 GB, free: 38.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006361/2.211, allocations: 2.702 MB / 0.7801 GB, free: 37.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006855/2.218, allocations: 0.9172 MB / 0.781 GB, free: 36.85 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03119/2.249, allocations: 11.59 MB / 0.7923 GB, free: 27.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006458/2.256, allocations: 4.348 MB / 0.7965 GB, free: 23.98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005049/2.261, allocations: 0.8249 MB / 0.7973 GB, free: 23.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005163/2.266, allocations: 2.532 MB / 0.7998 GB, free: 21.06 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/2.266, allocations: 0 / 0.7998 GB, free: 21.06 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6125/2.879, allocations: 99.9 MB / 0.8974 GB, free: 89.55 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002465/2.879, allocations: 247.7 kB / 0.8976 GB, free: 89.22 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.061/8.94, allocations: 2.641 kB / 0.8976 GB, free: 89.22 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat