Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.984/1.984, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.541e-05/3.558e-05, allocations: 5.25 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.09685, allocations: 44.51 MB / 300 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4631/0.56, allocations: 107.8 MB / 407.8 MB, free: 9.977 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.5604, allocations: 92.3 kB / 407.9 MB, free: 9.961 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9024/1.463, allocations: 159.2 MB / 0.5539 GB, free: 55.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.463, allocations: 4 kB / 0.5539 GB, free: 55.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007157/1.464, allocations: 170.4 kB / 0.554 GB, free: 55.25 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.02863/1.492, allocations: 6.403 MB / 0.5603 GB, free: 53.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/1.492, allocations: 7.594 kB / 0.5603 GB, free: 53.02 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004153/1.496, allocations: 0.9509 MB / 0.5612 GB, free: 52.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01278/1.509, allocations: 1.514 MB / 0.5627 GB, free: 52.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02087/1.53, allocations: 5.701 MB / 0.5683 GB, free: 51.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007095/1.531, allocations: 0.508 MB / 0.5688 GB, free: 51.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003148/1.534, allocations: 0.6808 MB / 0.5694 GB, free: 51.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03101/1.565, allocations: 8.935 MB / 0.5781 GB, free: 50.94 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004968/1.566, allocations: 16.12 kB / 0.5782 GB, free: 50.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002918/1.569, allocations: 293.4 kB / 0.5784 GB, free: 50.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004155/1.569, allocations: 325.8 kB / 0.5787 GB, free: 50.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02402/1.593, allocations: 7.217 MB / 0.5858 GB, free: 50.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07738/1.671, allocations: 28.78 MB / 0.6139 GB, free: 36.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02193/1.693, allocations: 16.34 MB / 0.6299 GB, free: 21.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007154/1.7, allocations: 2.846 MB / 0.6326 GB, free: 20.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02399/1.724, allocations: 7.689 MB / 0.6401 GB, free: 16.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.14e-05/1.724, allocations: 67.53 kB / 0.6402 GB, free: 16.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=251): time 5.58e-06/1.724, allocations: 0 / 0.6402 GB, free: 16.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=257): time 0.02208/1.746, allocations: 7.692 MB / 0.6477 GB, free: 10.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/1.746, allocations: 81.39 kB / 0.6478 GB, free: 10.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007493/1.754, allocations: 2.9 MB / 0.6506 GB, free: 8.234 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005752/1.754, allocations: 69.7 kB / 0.6507 GB, free: 8.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00246/1.757, allocations: 3.028 MB / 0.6537 GB, free: 5.465 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001199/1.758, allocations: 0.8921 MB / 0.6545 GB, free: 4.664 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003219/1.758, allocations: 68 kB / 0.6546 GB, free: 4.598 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002189/1.759, allocations: 442.1 kB / 0.655 GB, free: 4.199 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003237/1.762, allocations: 1.285 MB / 0.6563 GB, free: 3.012 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00417/1.766, allocations: 2.287 MB / 0.6585 GB, free: 428 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/1.776, allocations: 2.071 MB / 0.6605 GB, free: 15.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.956e-05/1.777, allocations: 12 kB / 0.6605 GB, free: 15.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.01377/1.79, allocations: 4.381 MB / 0.6648 GB, free: 11.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.973e-05/1.79, allocations: 20 kB / 0.6648 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.494e-05/1.79, allocations: 35.8 kB / 0.6649 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/1.792, allocations: 400.2 kB / 0.6652 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006383/1.799, allocations: 0.7837 MB / 0.666 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/1.809, allocations: 7.305 MB / 0.6731 GB, free: 3.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004847/1.813, allocations: 168.2 kB / 0.6733 GB, free: 3.055 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008393/1.814, allocations: 155.6 kB / 0.6735 GB, free: 2.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 397 * 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.0009242/1.815, allocations: 311.4 kB / 0.6738 GB, free: 2.602 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001241/1.817, allocations: 367.5 kB / 0.6741 GB, free: 2.238 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3626/2.179, allocations: 4.14 MB / 0.6781 GB, free: 64.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.257e-05/2.179, allocations: 26.25 kB / 0.6782 GB, free: 64.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.261e-05/2.179, allocations: 15.52 kB / 0.6782 GB, free: 64.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001178/2.179, allocations: 19.66 kB / 0.6782 GB, free: 64.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03137/2.211, allocations: 9.608 MB / 0.6876 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-05/2.211, allocations: 3.406 kB / 0.6876 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003815/2.215, allocations: 395.2 kB / 0.688 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003951/2.219, allocations: 0.8434 MB / 0.6888 GB, free: 63.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006074/2.219, allocations: 74.41 kB / 0.6889 GB, free: 63.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02234/2.242, allocations: 15.97 MB / 0.7045 GB, free: 54.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/2.242, allocations: 9.625 kB / 0.7045 GB, free: 54.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/2.256, allocations: 6.053 MB / 0.7104 GB, free: 53.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/2.259, allocations: 0.741 MB / 0.7111 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001402/2.261, allocations: 63.67 kB / 0.7112 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004128/2.265, allocations: 142.6 kB / 0.7113 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009091/2.266, allocations: 203.6 kB / 0.7115 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003093/2.266, allocations: 72.81 kB / 0.7116 GB, free: 53.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005933/2.272, allocations: 2.198 MB / 0.7137 GB, free: 53.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.062e-06/2.272, allocations: 0 / 0.7137 GB, free: 53.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007031/2.279, allocations: 1.184 MB / 0.7149 GB, free: 53.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (191): * Single equations (assignments): 184 * 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.01591/2.295, allocations: 7.931 MB / 0.7226 GB, free: 51.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008372/2.304, allocations: 3.791 MB / 0.7263 GB, free: 50.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/2.304, allocations: 0 / 0.7263 GB, free: 50.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006247/2.31, allocations: 2.666 MB / 0.7289 GB, free: 49.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007027/2.317, allocations: 0.9186 MB / 0.7298 GB, free: 49.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03629/2.353, allocations: 11.6 MB / 0.7411 GB, free: 47.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008418/2.362, allocations: 4.332 MB / 0.7454 GB, free: 45.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005371/2.367, allocations: 0.8253 MB / 0.7462 GB, free: 45.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00576/2.373, allocations: 2.526 MB / 0.7486 GB, free: 43.23 MB / 426.7 MB Notification: Performance of SimCode: time 2.114e-06/2.373, allocations: 0 / 0.7486 GB, free: 43.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5643/2.937, allocations: 99.21 MB / 0.8455 GB, free: 57.66 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002752/2.938, allocations: 213.1 kB / 0.8457 GB, free: 57.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.682/9.619, allocations: 7.016 kB / 0.8457 GB, free: 57.43 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat