Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.368e-05/3.381e-05, allocations: 0 / 292.3 MB, free: 8.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 50.42 MB / 342.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5921/0.7091, allocations: 159.1 MB / 0.4901 GB, free: 15.86 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003855/0.7095, allocations: 107.5 kB / 0.4902 GB, free: 15.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.29/3, allocations: 387.4 MB / 0.8685 GB, free: 32.71 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.375e-06/3, allocations: 0 / 0.8685 GB, free: 32.71 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001544/3.001, allocations: 279.3 kB / 0.8688 GB, free: 32.71 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.06/3.061, allocations: 11.15 MB / 0.8797 GB, free: 30.54 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/3.061, allocations: 9.812 kB / 0.8797 GB, free: 30.54 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009995/3.071, allocations: 1.914 MB / 0.8816 GB, free: 30.39 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03987/3.111, allocations: 4.562 MB / 0.886 GB, free: 29.72 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03354/3.145, allocations: 9.744 MB / 0.8955 GB, free: 28.55 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001178/3.146, allocations: 0.8804 MB / 0.8964 GB, free: 28.53 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005272/3.151, allocations: 1.154 MB / 0.8975 GB, free: 28.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05894/3.21, allocations: 18.18 MB / 0.9153 GB, free: 27.09 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007611/3.211, allocations: 26.48 kB / 0.9153 GB, free: 27.08 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004809/3.216, allocations: 0.4996 MB / 0.9158 GB, free: 27.08 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001282/3.217, allocations: 0.7968 MB / 0.9166 GB, free: 27.05 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04881/3.266, allocations: 15.4 MB / 0.9316 GB, free: 26.99 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1453/3.412, allocations: 61.25 MB / 0.9914 GB, free: 1.309 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04565/3.457, allocations: 29.56 MB / 1.02 GB, free: 7.215 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01046/3.468, allocations: 3.994 MB / 1.024 GB, free: 5.648 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02966/3.498, allocations: 9.978 MB / 1.034 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.242e-05/3.498, allocations: 77.81 kB / 1.034 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=410): time 7.404e-06/3.498, allocations: 3.281 kB / 1.034 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=420): time 0.0463/3.544, allocations: 15.17 MB / 1.049 GB, free: 1.094 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/3.544, allocations: 120.4 kB / 1.049 GB, free: 0.957 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4377/3.982, allocations: 5.258 MB / 1.054 GB, free: 78.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009934/3.983, allocations: 95.8 kB / 1.054 GB, free: 78.92 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005516/3.988, allocations: 5.344 MB / 1.059 GB, free: 77.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002393/3.991, allocations: 1.449 MB / 1.061 GB, free: 76.89 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00099/3.992, allocations: 130 kB / 1.061 GB, free: 76.89 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000689/3.993, allocations: 0.5648 MB / 1.061 GB, free: 76.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008231/4.001, allocations: 2.81 MB / 1.064 GB, free: 76.56 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01086/4.012, allocations: 5.244 MB / 1.069 GB, free: 73.57 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/4.023, allocations: 4.021 MB / 1.073 GB, free: 73.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001718/4.023, allocations: 24.11 kB / 1.073 GB, free: 73.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.03035/4.053, allocations: 9.381 MB / 1.082 GB, free: 72.93 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/4.053, allocations: 41.17 kB / 1.082 GB, free: 72.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/4.054, allocations: 82.91 kB / 1.083 GB, free: 72.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005383/4.059, allocations: 1.129 MB / 1.084 GB, free: 72.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01076/4.07, allocations: 1.457 MB / 1.085 GB, free: 72.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02214/4.092, allocations: 12.47 MB / 1.097 GB, free: 67.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008792/4.101, allocations: 360.7 kB / 1.098 GB, free: 67.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001361/4.102, allocations: 322.8 kB / 1.098 GB, free: 67.53 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 759 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001411/4.104, allocations: 0.5154 MB / 1.098 GB, free: 67.37 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00173/4.105, allocations: 0.5334 MB / 1.099 GB, free: 67.09 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01906/4.124, allocations: 7.066 MB / 1.106 GB, free: 66.57 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0107/4.135, allocations: 4.218 MB / 1.11 GB, free: 66.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.746e-05/4.135, allocations: 16.97 kB / 1.11 GB, free: 66.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.223e-05/4.135, allocations: 21.23 kB / 1.11 GB, free: 66.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04536/4.181, allocations: 17.03 MB / 1.127 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-05/4.181, allocations: 7.75 kB / 1.127 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005902/4.187, allocations: 0.6874 MB / 1.127 GB, free: 65.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005425/4.192, allocations: 1.18 MB / 1.128 GB, free: 65.15 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006505/4.193, allocations: 101.4 kB / 1.129 GB, free: 65.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02476/4.218, allocations: 16.03 MB / 1.144 GB, free: 57.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/4.218, allocations: 14.17 kB / 1.144 GB, free: 57.12 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02437/4.242, allocations: 10.83 MB / 1.155 GB, free: 54.15 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004386/4.247, allocations: 1.141 MB / 1.156 GB, free: 53.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001556/4.248, allocations: 80.28 kB / 1.156 GB, free: 53.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005976/4.254, allocations: 229.2 kB / 1.156 GB, free: 53.32 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001543/4.256, allocations: 313.9 kB / 1.157 GB, free: 53.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000595/4.256, allocations: 123 kB / 1.157 GB, free: 53.25 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00912/4.265, allocations: 3.369 MB / 1.16 GB, free: 51.95 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.152e-06/4.265, allocations: 7.062 kB / 1.16 GB, free: 51.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01242/4.278, allocations: 2.034 MB / 1.162 GB, free: 51.74 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (357): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 1,(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02817/4.306, allocations: 13.22 MB / 1.175 GB, free: 44.65 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01915/4.325, allocations: 7.428 MB / 1.182 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/4.325, allocations: 3.188 kB / 1.182 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01032/4.336, allocations: 3.971 MB / 1.186 GB, free: 39.74 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0124/4.348, allocations: 1.312 MB / 1.187 GB, free: 39.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08026/4.429, allocations: 20.67 MB / 1.207 GB, free: 21.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02108/4.45, allocations: 7.581 MB / 1.215 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01308/4.463, allocations: 1.994 MB / 1.217 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01026/4.473, allocations: 4.399 MB / 1.221 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of SimCode: time 1.413e-06/4.473, allocations: 5.125 kB / 1.221 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8075/5.281, allocations: 161.5 MB / 1.379 GB, free: 18.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002568/5.281, allocations: 225 kB / 1.379 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.982/14.26, allocations: 0 / 1.379 GB, free: 17.84 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat