Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.347e-05/3.358e-05, allocations: 4 kB / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 44.52 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5673/0.6692, allocations: 151.8 MB / 451.8 MB, free: 8.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003754/0.6696, allocations: 99.39 kB / 451.9 MB, free: 8.695 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.835/2.504, allocations: 389.6 MB / 0.8218 GB, free: 24.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.595e-06/2.504, allocations: 0 / 0.8218 GB, free: 24.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001071/2.505, allocations: 283.6 kB / 0.8221 GB, free: 24.62 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.05389/2.559, allocations: 11.23 MB / 0.833 GB, free: 13.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.134e-05/2.559, allocations: 12.03 kB / 0.8331 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01037/2.57, allocations: 1.935 MB / 0.8349 GB, free: 11.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05296/2.623, allocations: 5.213 MB / 0.84 GB, free: 6.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4265/3.049, allocations: 9.624 MB / 0.8494 GB, free: 27.08 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002208/3.052, allocations: 0.8972 MB / 0.8503 GB, free: 27.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00689/3.059, allocations: 1.174 MB / 0.8515 GB, free: 27.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06849/3.127, allocations: 19.33 MB / 0.8703 GB, free: 25.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007716/3.128, allocations: 23.89 kB / 0.8704 GB, free: 25.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005328/3.133, allocations: 0.5046 MB / 0.8708 GB, free: 25.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00129/3.135, allocations: 0.7735 MB / 0.8716 GB, free: 25.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05535/3.19, allocations: 17.07 MB / 0.8883 GB, free: 25.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1714/3.362, allocations: 63.2 MB / 0.95 GB, free: 0.5078 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04182/3.403, allocations: 22.25 MB / 0.9717 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02703/3.431, allocations: 7.729 MB / 0.9793 GB, free: 15.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07529/3.506, allocations: 22.99 MB / 1.002 GB, free: 13.95 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001234/3.506, allocations: 107.6 kB / 1.002 GB, free: 13.83 MB / 474.7 MB Notification: Performance of pre-optimization done (n=746): time 1.27e-05/3.506, allocations: 2.625 kB / 1.002 GB, free: 13.83 MB / 474.7 MB Notification: Performance of matching and sorting (n=756): time 0.46/3.966, allocations: 26 MB / 1.027 GB, free: 69.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/3.966, allocations: 146.5 kB / 1.027 GB, free: 69.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01246/3.979, allocations: 3.864 MB / 1.031 GB, free: 69.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001822/3.981, allocations: 132 kB / 1.031 GB, free: 69.05 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004883/3.986, allocations: 4.756 MB / 1.036 GB, free: 66.84 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004199/3.99, allocations: 2.513 MB / 1.038 GB, free: 65.22 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001924/3.992, allocations: 144.7 kB / 1.038 GB, free: 65.22 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009795/3.993, allocations: 0.6347 MB / 1.039 GB, free: 64.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01335/4.006, allocations: 4.714 MB / 1.044 GB, free: 64.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01525/4.021, allocations: 6.573 MB / 1.05 GB, free: 62.87 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01572/4.037, allocations: 5.879 MB / 1.056 GB, free: 62.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001285/4.037, allocations: 14.66 kB / 1.056 GB, free: 62.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=1042) (initialization): time 0.04259/4.08, allocations: 14.21 MB / 1.07 GB, free: 62.01 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.455e-05/4.08, allocations: 31.09 kB / 1.07 GB, free: 62.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001372/4.08, allocations: 50.94 kB / 1.07 GB, free: 62.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01172/4.092, allocations: 3.347 MB / 1.073 GB, free: 61.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01173/4.104, allocations: 1.483 MB / 1.075 GB, free: 61.92 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0193/4.123, allocations: 13.83 MB / 1.088 GB, free: 54.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009724/4.133, allocations: 398.2 kB / 1.088 GB, free: 54.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002417/4.135, allocations: 347.6 kB / 1.089 GB, free: 54.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (785): * Single equations (assignments): 720 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.004155/4.14, allocations: 0.5143 MB / 1.089 GB, free: 54.73 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003412/4.143, allocations: 0.5879 MB / 1.09 GB, free: 54.43 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04317/4.186, allocations: 13.45 MB / 1.103 GB, free: 52.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02822/4.215, allocations: 10.31 MB / 1.113 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.366e-05/4.215, allocations: 5.281 kB / 1.113 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001847/4.215, allocations: 42 kB / 1.113 GB, free: 48.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.079/4.294, allocations: 27.91 MB / 1.14 GB, free: 35.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-05/4.294, allocations: 4.562 kB / 1.14 GB, free: 35.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008628/4.303, allocations: 0.9435 MB / 1.141 GB, free: 35.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01203/4.315, allocations: 3.45 MB / 1.145 GB, free: 34.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001963/4.317, allocations: 170.3 kB / 1.145 GB, free: 34.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02468/4.341, allocations: 18.21 MB / 1.163 GB, free: 16.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/4.342, allocations: 10.06 kB / 1.163 GB, free: 16.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4505/4.792, allocations: 21.29 MB / 1.183 GB, free: 64.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007358/4.799, allocations: 1.73 MB / 1.185 GB, free: 64.51 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003644/4.803, allocations: 119.2 kB / 1.185 GB, free: 64.51 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008425/4.812, allocations: 316 kB / 1.186 GB, free: 64.51 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003073/4.815, allocations: 0.5512 MB / 1.186 GB, free: 64.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002048/4.817, allocations: 204.2 kB / 1.186 GB, free: 64.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009795/4.827, allocations: 2.896 MB / 1.189 GB, free: 64.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.21e-07/4.827, allocations: 1.344 kB / 1.189 GB, free: 64.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01485/4.842, allocations: 2.152 MB / 1.191 GB, free: 64.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (504): * Single equations (assignments): 438 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.05923/4.901, allocations: 22.92 MB / 1.214 GB, free: 61.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03334/4.934, allocations: 11.98 MB / 1.225 GB, free: 60.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/4.934, allocations: 0 / 1.225 GB, free: 60.48 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01915/4.954, allocations: 6.567 MB / 1.232 GB, free: 59.77 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0129/4.966, allocations: 1.314 MB / 1.233 GB, free: 59.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08281/5.049, allocations: 24.75 MB / 1.257 GB, free: 55.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01926/5.069, allocations: 7.769 MB / 1.265 GB, free: 54.85 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01291/5.082, allocations: 1.806 MB / 1.266 GB, free: 54.65 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0117/5.093, allocations: 4.433 MB / 1.271 GB, free: 52.04 MB / 474.7 MB Notification: Performance of SimCode: time 2.494e-06/5.093, allocations: 0 / 1.271 GB, free: 52.04 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8642/5.958, allocations: 204 MB / 1.47 GB, free: 28.75 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002968/5.958, allocations: 243.3 kB / 1.47 GB, free: 28.44 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/16.41, allocations: 3.75 kB / 1.47 GB, free: 28.44 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat