Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.054/2.054, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.903e-05/2.91e-05, allocations: 4 kB / 292.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1243, allocations: 50.4 MB / 343.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5698/0.6942, allocations: 159.1 MB / 0.4905 GB, free: 296 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003685/0.6946, allocations: 103.5 kB / 0.4906 GB, free: 236 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.241/2.936, allocations: 387.4 MB / 0.869 GB, free: 32.86 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.114e-06/2.936, allocations: 3.156 kB / 0.869 GB, free: 32.86 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001399/2.937, allocations: 279.6 kB / 0.8693 GB, free: 32.86 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.05997/2.997, allocations: 11.15 MB / 0.8802 GB, free: 30.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/2.997, allocations: 13.25 kB / 0.8802 GB, free: 30.98 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01121/3.008, allocations: 1.908 MB / 0.882 GB, free: 30.83 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04078/3.049, allocations: 4.572 MB / 0.8865 GB, free: 30.18 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03689/3.086, allocations: 9.739 MB / 0.896 GB, free: 29.03 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001325/3.088, allocations: 0.8779 MB / 0.8969 GB, free: 29 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005919/3.094, allocations: 1.16 MB / 0.898 GB, free: 29 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06293/3.157, allocations: 18.18 MB / 0.9157 GB, free: 27.57 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000742/3.157, allocations: 26.8 kB / 0.9158 GB, free: 27.56 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005062/3.162, allocations: 0.4955 MB / 0.9163 GB, free: 27.56 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001344/3.164, allocations: 0.7995 MB / 0.917 GB, free: 27.54 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0483/3.212, allocations: 15.39 MB / 0.9321 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1571/3.369, allocations: 61.26 MB / 0.9919 GB, free: 1.652 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04676/3.416, allocations: 29.57 MB / 1.021 GB, free: 7.562 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01073/3.427, allocations: 4.003 MB / 1.025 GB, free: 5.992 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03574/3.463, allocations: 10.09 MB / 1.035 GB, free: 0 / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/3.463, allocations: 78.14 kB / 1.035 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=410): time 6.722e-06/3.463, allocations: 0 / 1.035 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=420): time 0.05121/3.514, allocations: 15.18 MB / 1.049 GB, free: 1.93 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/3.514, allocations: 127.5 kB / 1.05 GB, free: 1.789 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4411/3.955, allocations: 4.916 MB / 1.054 GB, free: 79.02 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001065/3.956, allocations: 94.7 kB / 1.054 GB, free: 78.99 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005782/3.962, allocations: 5.344 MB / 1.06 GB, free: 77.87 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002455/3.965, allocations: 1.449 MB / 1.061 GB, free: 76.96 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009124/3.966, allocations: 133.9 kB / 1.061 GB, free: 76.96 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005487/3.966, allocations: 0.5592 MB / 1.062 GB, free: 76.64 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00825/3.974, allocations: 2.812 MB / 1.064 GB, free: 76.63 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01078/3.985, allocations: 5.242 MB / 1.07 GB, free: 73.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/3.996, allocations: 4.021 MB / 1.074 GB, free: 73.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002224/3.997, allocations: 27.73 kB / 1.074 GB, free: 73.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02996/4.027, allocations: 9.373 MB / 1.083 GB, free: 73 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/4.027, allocations: 44.11 kB / 1.083 GB, free: 73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/4.027, allocations: 87.17 kB / 1.083 GB, free: 73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005341/4.032, allocations: 1.126 MB / 1.084 GB, free: 72.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01045/4.043, allocations: 1.46 MB / 1.085 GB, free: 72.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02227/4.065, allocations: 12.47 MB / 1.098 GB, free: 67.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009114/4.074, allocations: 366.1 kB / 1.098 GB, free: 67.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001699/4.076, allocations: 324.7 kB / 1.098 GB, free: 67.59 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.001561/4.078, allocations: 0.5103 MB / 1.099 GB, free: 67.43 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001806/4.079, allocations: 0.5317 MB / 1.099 GB, free: 67.16 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02092/4.1, allocations: 7.065 MB / 1.106 GB, free: 66.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01114/4.112, allocations: 4.22 MB / 1.11 GB, free: 66.47 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.294e-05/4.112, allocations: 14.97 kB / 1.11 GB, free: 66.47 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.933e-05/4.112, allocations: 22.88 kB / 1.11 GB, free: 66.47 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04523/4.157, allocations: 17.03 MB / 1.127 GB, free: 65.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.062e-05/4.157, allocations: 3.844 kB / 1.127 GB, free: 65.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005948/4.163, allocations: 0.6919 MB / 1.128 GB, free: 65.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005471/4.169, allocations: 1.185 MB / 1.129 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007454/4.169, allocations: 97.14 kB / 1.129 GB, free: 65.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02495/4.194, allocations: 16.02 MB / 1.144 GB, free: 57.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/4.194, allocations: 14.14 kB / 1.144 GB, free: 57.18 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02464/4.219, allocations: 10.84 MB / 1.155 GB, free: 54.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004394/4.223, allocations: 1.135 MB / 1.156 GB, free: 53.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001993/4.225, allocations: 86.95 kB / 1.156 GB, free: 53.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005975/4.231, allocations: 227.7 kB / 1.156 GB, free: 53.24 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001358/4.233, allocations: 304.7 kB / 1.157 GB, free: 53.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004543/4.233, allocations: 120.7 kB / 1.157 GB, free: 53.16 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008306/4.242, allocations: 3.371 MB / 1.16 GB, free: 51.87 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.42e-07/4.242, allocations: 0 / 1.16 GB, free: 51.87 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01172/4.253, allocations: 2.044 MB / 1.162 GB, free: 51.66 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.02854/4.282, allocations: 13.22 MB / 1.175 GB, free: 44.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01935/4.301, allocations: 7.425 MB / 1.182 GB, free: 41.59 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/4.302, allocations: 4.594 kB / 1.182 GB, free: 41.59 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01077/4.312, allocations: 3.989 MB / 1.186 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01173/4.324, allocations: 1.301 MB / 1.188 GB, free: 39.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06561/4.39, allocations: 20.67 MB / 1.208 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01596/4.406, allocations: 7.582 MB / 1.215 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01168/4.417, allocations: 2 MB / 1.217 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0108/4.428, allocations: 4.397 MB / 1.221 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of SimCode: time 1.213e-06/4.428, allocations: 0 / 1.221 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7791/5.207, allocations: 161.5 MB / 1.379 GB, free: 18.48 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/5.208, allocations: 228.1 kB / 1.379 GB, free: 18.22 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.54/14.75, allocations: 0 / 1.379 GB, free: 18.22 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat