Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.61e-05/3.624e-05, allocations: 4 kB / 255.5 MB, free: 2.582 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09634, allocations: 44.51 MB / 300 MB, free: 6.023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5475/0.6439, allocations: 156.2 MB / 456.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/0.6443, allocations: 99.92 kB / 456.3 MB, free: 3.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.915/2.56, allocations: 397 MB / 0.8333 GB, free: 9.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.405e-06/2.56, allocations: 3.938 kB / 0.8334 GB, free: 9.426 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001265/2.561, allocations: 299.6 kB / 0.8336 GB, free: 9.137 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: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.7504/3.311, allocations: 11.31 MB / 0.8447 GB, free: 20.64 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.313e-05/3.311, allocations: 11.12 kB / 0.8447 GB, free: 20.64 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01026/3.322, allocations: 1.817 MB / 0.8465 GB, free: 20.51 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05555/3.377, allocations: 6.423 MB / 0.8527 GB, free: 19.86 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03716/3.415, allocations: 9.65 MB / 0.8622 GB, free: 19.3 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001609/3.416, allocations: 0.9454 MB / 0.8631 GB, free: 19.27 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006679/3.423, allocations: 1.237 MB / 0.8643 GB, free: 19.27 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07062/3.494, allocations: 20.5 MB / 0.8843 GB, free: 17.79 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009115/3.495, allocations: 24.28 kB / 0.8843 GB, free: 17.79 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005956/3.501, allocations: 0.5329 MB / 0.8849 GB, free: 17.79 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001526/3.502, allocations: 0.8474 MB / 0.8857 GB, free: 17.76 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0577/3.56, allocations: 18.47 MB / 0.9037 GB, free: 17.7 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1767/3.737, allocations: 65.86 MB / 0.968 GB, free: 3.094 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0641/3.801, allocations: 46.07 MB / 1.013 GB, free: 7.25 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02149/3.822, allocations: 7.78 MB / 1.021 GB, free: 132 kB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4399/4.262, allocations: 23.8 MB / 1.044 GB, free: 84.71 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001108/4.262, allocations: 103.8 kB / 1.044 GB, free: 84.66 MB / 490.8 MB Notification: Performance of pre-optimization done (n=771): time 1.246e-05/4.263, allocations: 0 / 1.044 GB, free: 84.66 MB / 490.8 MB Notification: Performance of matching and sorting (n=813): time 0.1112/4.374, allocations: 27.03 MB / 1.07 GB, free: 82.34 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001937/4.374, allocations: 123.2 kB / 1.07 GB, free: 82.27 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01512/4.389, allocations: 3.768 MB / 1.074 GB, free: 81.87 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002574/4.392, allocations: 132.8 kB / 1.074 GB, free: 81.84 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006276/4.398, allocations: 5.086 MB / 1.079 GB, free: 79.18 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005954/4.404, allocations: 2.702 MB / 1.082 GB, free: 77.44 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002735/4.407, allocations: 167.5 kB / 1.082 GB, free: 77.44 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001455/4.409, allocations: 0.6717 MB / 1.083 GB, free: 77.11 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01966/4.428, allocations: 5.081 MB / 1.088 GB, free: 77.09 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02317/4.451, allocations: 7.5 MB / 1.095 GB, free: 72.99 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0245/4.476, allocations: 6.447 MB / 1.101 GB, free: 70.44 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001818/4.476, allocations: 23.44 kB / 1.101 GB, free: 70.44 MB / 490.8 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.06484/4.541, allocations: 15.48 MB / 1.116 GB, free: 64.46 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/4.541, allocations: 37.47 kB / 1.116 GB, free: 64.46 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/4.542, allocations: 75.03 kB / 1.117 GB, free: 64.46 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01932/4.561, allocations: 4.107 MB / 1.121 GB, free: 63.22 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01813/4.579, allocations: 1.665 MB / 1.122 GB, free: 63.17 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02885/4.608, allocations: 12.2 MB / 1.134 GB, free: 55.27 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01509/4.623, allocations: 454 kB / 1.135 GB, free: 55.11 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003329/4.627, allocations: 397.2 kB / 1.135 GB, free: 55.04 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 814 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0061/4.633, allocations: 0.5905 MB / 1.135 GB, free: 54.64 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004635/4.637, allocations: 0.6016 MB / 1.136 GB, free: 54.32 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06253/4.7, allocations: 14.38 MB / 1.15 GB, free: 45.34 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004016/4.7, allocations: 196.5 kB / 1.15 GB, free: 45.17 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-05/4.701, allocations: 0 / 1.15 GB, free: 45.17 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001998/4.701, allocations: 39.2 kB / 1.15 GB, free: 45.16 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1118/4.813, allocations: 28.81 MB / 1.178 GB, free: 21.08 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001359/4.813, allocations: 4.5 kB / 1.178 GB, free: 21.08 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01275/4.826, allocations: 1.057 MB / 1.179 GB, free: 20.27 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01312/4.839, allocations: 3.976 MB / 1.183 GB, free: 16.93 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002016/4.841, allocations: 178.5 kB / 1.184 GB, free: 16.78 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4147/5.256, allocations: 12.36 MB / 1.196 GB, free: 74.7 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/5.256, allocations: 6 kB / 1.196 GB, free: 74.7 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06083/5.317, allocations: 21.78 MB / 1.217 GB, free: 73.39 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007177/5.324, allocations: 1.774 MB / 1.219 GB, free: 73.29 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003396/5.327, allocations: 129.6 kB / 1.219 GB, free: 73.29 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008462/5.336, allocations: 328.8 kB / 1.219 GB, free: 73.29 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00304/5.339, allocations: 0.577 MB / 1.22 GB, free: 73.28 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002006/5.341, allocations: 222 kB / 1.22 GB, free: 73.28 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.008205/5.349, allocations: 2.805 MB / 1.223 GB, free: 73.07 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.474e-06/5.349, allocations: 0 / 1.223 GB, free: 73.07 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01433/5.364, allocations: 2.214 MB / 1.225 GB, free: 73.07 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (551): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.05747/5.421, allocations: 23.85 MB / 1.248 GB, free: 70.45 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03427/5.455, allocations: 12.84 MB / 1.261 GB, free: 69.8 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/5.455, allocations: 0 / 1.261 GB, free: 69.8 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0206/5.476, allocations: 6.686 MB / 1.267 GB, free: 67.2 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01289/5.489, allocations: 1.27 MB / 1.268 GB, free: 66.85 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08796/5.577, allocations: 25.71 MB / 1.293 GB, free: 57.04 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0199/5.597, allocations: 8.074 MB / 1.301 GB, free: 53.46 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01288/5.61, allocations: 2.008 MB / 1.303 GB, free: 52.09 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01148/5.621, allocations: 4.719 MB / 1.308 GB, free: 47.7 MB / 490.8 MB Notification: Performance of SimCode: time 2.124e-06/5.622, allocations: 7.094 kB / 1.308 GB, free: 47.7 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8915/6.513, allocations: 211.8 MB / 1.515 GB, free: 3.66 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003315/6.513, allocations: 246.6 kB / 1.515 GB, free: 3.324 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/17.55, allocations: 0 / 1.515 GB, free: 3.324 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat