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.837/1.837, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.103e-05/3.128e-05, allocations: 0 / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0943/0.09436, allocations: 44.51 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4828/0.5772, allocations: 107.8 MB / 407.8 MB, free: 10.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/0.5775, allocations: 83.92 kB / 407.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8826/1.46, allocations: 159.2 MB / 0.5538 GB, free: 55.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.46, allocations: 0 / 0.5538 GB, free: 55.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00064/1.461, allocations: 169.7 kB / 0.554 GB, free: 55.53 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.02785/1.489, allocations: 6.412 MB / 0.5602 GB, free: 53.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/1.489, allocations: 11.12 kB / 0.5603 GB, free: 53.3 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003898/1.493, allocations: 0.9471 MB / 0.5612 GB, free: 53.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01255/1.505, allocations: 1.517 MB / 0.5627 GB, free: 52.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02028/1.526, allocations: 5.703 MB / 0.5682 GB, free: 51.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006765/1.526, allocations: 0.513 MB / 0.5687 GB, free: 51.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003658/1.53, allocations: 0.6818 MB / 0.5694 GB, free: 51.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04063/1.571, allocations: 9.021 MB / 0.5782 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004632/1.571, allocations: 7.656 kB / 0.5782 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00315/1.574, allocations: 290.7 kB / 0.5785 GB, free: 51.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005287/1.575, allocations: 323.7 kB / 0.5788 GB, free: 51.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03416/1.609, allocations: 7.301 MB / 0.5859 GB, free: 51.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09153/1.701, allocations: 28.79 MB / 0.614 GB, free: 36.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02126/1.722, allocations: 16.36 MB / 0.63 GB, free: 21.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007212/1.729, allocations: 2.851 MB / 0.6328 GB, free: 20.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02187/1.751, allocations: 7.686 MB / 0.6403 GB, free: 16.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.994e-05/1.751, allocations: 67.78 kB / 0.6404 GB, free: 16.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=251): time 4.969e-06/1.751, allocations: 0 / 0.6404 GB, free: 16.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=257): time 0.01958/1.771, allocations: 7.689 MB / 0.6479 GB, free: 10.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/1.771, allocations: 81.39 kB / 0.648 GB, free: 10.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006382/1.777, allocations: 2.905 MB / 0.6508 GB, free: 8.184 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005374/1.778, allocations: 69.7 kB / 0.6509 GB, free: 8.109 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/1.78, allocations: 3.033 MB / 0.6538 GB, free: 5.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001091/1.781, allocations: 0.8892 MB / 0.6547 GB, free: 4.609 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/1.782, allocations: 68 kB / 0.6548 GB, free: 4.543 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/1.782, allocations: 433.9 kB / 0.6552 GB, free: 4.152 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003011/1.785, allocations: 1.286 MB / 0.6564 GB, free: 2.961 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003688/1.789, allocations: 2.303 MB / 0.6587 GB, free: 356 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/1.799, allocations: 2.109 MB / 0.6607 GB, free: 15.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.711e-05/1.8, allocations: 8 kB / 0.6607 GB, free: 15.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.01381/1.813, allocations: 4.476 MB / 0.6651 GB, free: 11.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.314e-05/1.814, allocations: 20 kB / 0.6651 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-05/1.814, allocations: 32 kB / 0.6652 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001638/1.815, allocations: 395.8 kB / 0.6655 GB, free: 11.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006363/1.822, allocations: 0.784 MB / 0.6663 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/1.832, allocations: 7.334 MB / 0.6735 GB, free: 3.098 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004673/1.837, allocations: 160.2 kB / 0.6736 GB, free: 2.961 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007687/1.838, allocations: 143.4 kB / 0.6738 GB, free: 2.824 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.0008934/1.839, allocations: 318.6 kB / 0.6741 GB, free: 2.512 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001241/1.84, allocations: 363.5 kB / 0.6744 GB, free: 2.152 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3339/2.174, allocations: 4.186 MB / 0.6785 GB, free: 65.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-05/2.174, allocations: 24.78 kB / 0.6785 GB, free: 65.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.901e-05/2.174, allocations: 15.73 kB / 0.6785 GB, free: 65.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.994e-05/2.174, allocations: 13.06 kB / 0.6786 GB, free: 65.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02932/2.203, allocations: 9.619 MB / 0.6879 GB, free: 64.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/2.203, allocations: 6.562 kB / 0.688 GB, free: 64.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004368/2.208, allocations: 389.7 kB / 0.6883 GB, free: 64.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006527/2.214, allocations: 0.851 MB / 0.6892 GB, free: 64.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009642/2.215, allocations: 71.64 kB / 0.6892 GB, free: 64.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02377/2.239, allocations: 15.98 MB / 0.7048 GB, free: 55.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/2.239, allocations: 3.844 kB / 0.7048 GB, free: 55.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/2.254, allocations: 6.055 MB / 0.7107 GB, free: 54.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002871/2.257, allocations: 0.7396 MB / 0.7115 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/2.258, allocations: 60.38 kB / 0.7115 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003729/2.262, allocations: 138.5 kB / 0.7117 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008206/2.263, allocations: 207 kB / 0.7119 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002702/2.263, allocations: 78.72 kB / 0.7119 GB, free: 54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005368/2.268, allocations: 2.198 MB / 0.7141 GB, free: 53.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.92e-07/2.268, allocations: 0 / 0.7141 GB, free: 53.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007129/2.276, allocations: 1.185 MB / 0.7152 GB, free: 53.84 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.01542/2.291, allocations: 7.915 MB / 0.723 GB, free: 51.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008855/2.3, allocations: 3.879 MB / 0.7268 GB, free: 50.69 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/2.3, allocations: 6.938 kB / 0.7268 GB, free: 50.69 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006548/2.307, allocations: 2.739 MB / 0.7294 GB, free: 49.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007434/2.314, allocations: 0.9249 MB / 0.7303 GB, free: 49.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03411/2.348, allocations: 11.62 MB / 0.7417 GB, free: 47.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006864/2.355, allocations: 4.325 MB / 0.7459 GB, free: 45.47 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005002/2.36, allocations: 0.829 MB / 0.7467 GB, free: 45.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005245/2.365, allocations: 2.523 MB / 0.7492 GB, free: 43.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/2.365, allocations: 0 / 0.7492 GB, free: 43.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5707/2.936, allocations: 99.68 MB / 0.8465 GB, free: 58.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002814/2.937, allocations: 200 kB / 0.8467 GB, free: 58.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.339/9.276, allocations: 3.953 kB / 0.8467 GB, free: 58.17 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