Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.04/2.04, allocations: 225.8 MB / 239.3 MB, free: 1.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.266e-05/3.275e-05, allocations: 4 kB / 292.8 MB, free: 11.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 50.4 MB / 343.2 MB, free: 8.969 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5261/0.6308, allocations: 137.3 MB / 480.4 MB, free: 1.117 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/0.6312, allocations: 91.94 kB / 480.5 MB, free: 1.066 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8349/1.466, allocations: 131.6 MB / 0.5978 GB, free: 80.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.466, allocations: 4 kB / 0.5978 GB, free: 80.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006042/1.467, allocations: 144.2 kB / 0.5979 GB, free: 80.57 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.0226/1.489, allocations: 5.426 MB / 0.6032 GB, free: 78.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/1.489, allocations: 7.469 kB / 0.6032 GB, free: 78.54 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003274/1.493, allocations: 0.7773 MB / 0.604 GB, free: 78.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009446/1.502, allocations: 1.153 MB / 0.6051 GB, free: 78.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01892/1.521, allocations: 4.909 MB / 0.6099 GB, free: 77.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005617/1.522, allocations: 422.3 kB / 0.6103 GB, free: 77.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002494/1.524, allocations: 0.5616 MB / 0.6108 GB, free: 77.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02467/1.549, allocations: 6.978 MB / 0.6177 GB, free: 76.63 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004076/1.55, allocations: 16.83 kB / 0.6177 GB, free: 76.62 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002216/1.552, allocations: 240.5 kB / 0.6179 GB, free: 76.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003327/1.552, allocations: 249.2 kB / 0.6181 GB, free: 76.61 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01895/1.571, allocations: 5.531 MB / 0.6235 GB, free: 75.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06574/1.637, allocations: 23.92 MB / 0.6469 GB, free: 62.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/1.649, allocations: 8.612 MB / 0.6553 GB, free: 53.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005783/1.655, allocations: 2.235 MB / 0.6575 GB, free: 51.74 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02114/1.676, allocations: 6.957 MB / 0.6643 GB, free: 45.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/1.676, allocations: 64.56 kB / 0.6643 GB, free: 45.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=237): time 6.292e-06/1.676, allocations: 0 / 0.6643 GB, free: 45.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=288): time 0.0496/1.726, allocations: 12.13 MB / 0.6762 GB, free: 35.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/1.726, allocations: 81.64 kB / 0.6763 GB, free: 35.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006794/1.733, allocations: 2.937 MB / 0.6791 GB, free: 32.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006527/1.734, allocations: 73.7 kB / 0.6792 GB, free: 32.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002154/1.736, allocations: 2.674 MB / 0.6818 GB, free: 30.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001261/1.737, allocations: 0.9863 MB / 0.6828 GB, free: 29.29 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004098/1.737, allocations: 76 kB / 0.6829 GB, free: 29.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000234/1.738, allocations: 452.8 kB / 0.6833 GB, free: 28.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003707/1.741, allocations: 1.48 MB / 0.6847 GB, free: 27.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004541/1.746, allocations: 2.63 MB / 0.6873 GB, free: 24.46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004777/1.751, allocations: 1.951 MB / 0.6892 GB, free: 22.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.04e-05/1.751, allocations: 8 kB / 0.6892 GB, free: 22.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.01494/1.766, allocations: 5.29 MB / 0.6944 GB, free: 17.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.06e-05/1.766, allocations: 24 kB / 0.6944 GB, free: 17.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.888e-05/1.766, allocations: 43.7 kB / 0.6944 GB, free: 17.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003666/1.77, allocations: 0.8591 MB / 0.6953 GB, free: 17.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006479/1.776, allocations: 0.8645 MB / 0.6961 GB, free: 16.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01619/1.792, allocations: 9.782 MB / 0.7057 GB, free: 6.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005759/1.798, allocations: 251.6 kB / 0.7059 GB, free: 6.234 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008701/1.799, allocations: 164 kB / 0.7061 GB, free: 6.074 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008078/1.8, allocations: 331.9 kB / 0.7064 GB, free: 5.742 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001233/1.801, allocations: 387.2 kB / 0.7068 GB, free: 5.359 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01208/1.813, allocations: 4.551 MB / 0.7112 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-05/1.813, allocations: 35.94 kB / 0.7112 GB, free: 0.6758 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.652e-05/1.813, allocations: 11.81 kB / 0.7113 GB, free: 0.668 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-05/1.814, allocations: 11.95 kB / 0.7113 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03181/1.845, allocations: 9.969 MB / 0.721 GB, free: 6.523 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0122/1.858, allocations: 3.831 MB / 0.7247 GB, free: 2.566 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004725/1.862, allocations: 499.3 kB / 0.7252 GB, free: 2.078 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004811/1.867, allocations: 0.9772 MB / 0.7262 GB, free: 1.082 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006608/1.868, allocations: 71.97 kB / 0.7262 GB, free: 1.012 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3652/2.233, allocations: 14.75 MB / 0.7406 GB, free: 81.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/2.233, allocations: 7.078 kB / 0.7407 GB, free: 81.35 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01777/2.251, allocations: 7.155 MB / 0.7476 GB, free: 79.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002922/2.254, allocations: 0.7716 MB / 0.7484 GB, free: 79.83 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/2.255, allocations: 66.52 kB / 0.7485 GB, free: 79.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004549/2.26, allocations: 190.5 kB / 0.7486 GB, free: 79.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009957/2.261, allocations: 215.5 kB / 0.7488 GB, free: 79.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003067/2.261, allocations: 83.38 kB / 0.7489 GB, free: 79.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005596/2.267, allocations: 2.217 MB / 0.7511 GB, free: 79.66 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.92e-07/2.267, allocations: 0 / 0.7511 GB, free: 79.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007018/2.274, allocations: 1.195 MB / 0.7523 GB, free: 79.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01834/2.292, allocations: 9.073 MB / 0.7611 GB, free: 76.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01109/2.304, allocations: 4.553 MB / 0.7656 GB, free: 76.13 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/2.304, allocations: 3.062 kB / 0.7656 GB, free: 76.13 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007562/2.311, allocations: 2.906 MB / 0.7684 GB, free: 75.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00702/2.318, allocations: 0.8298 MB / 0.7692 GB, free: 75.33 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0315/2.35, allocations: 9.966 MB / 0.7789 GB, free: 73.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00612/2.356, allocations: 3.618 MB / 0.7825 GB, free: 71.97 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00541/2.362, allocations: 0.8318 MB / 0.7833 GB, free: 71.86 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005068/2.367, allocations: 2.234 MB / 0.7855 GB, free: 70.02 MB / 458.7 MB Notification: Performance of SimCode: time 1.623e-06/2.367, allocations: 4 kB / 0.7855 GB, free: 70.01 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2312/2.598, allocations: 97.67 MB / 0.8809 GB, free: 5.629 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002369/2.598, allocations: 216.1 kB / 0.8811 GB, free: 5.406 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.22/9.819, allocations: 3.938 kB / 0.8811 GB, free: 5.402 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat