Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.439e-05/3.452e-05, allocations: 4 kB / 292.2 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 50.41 MB / 342.7 MB, free: 5.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4826/0.5887, allocations: 110.4 MB / 453 MB, free: 15.86 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/0.5891, allocations: 87.41 kB / 453.1 MB, free: 15.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2346/0.8237, allocations: 53.16 MB / 0.4944 GB, free: 14.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.37e-06/0.8238, allocations: 0 / 0.4944 GB, free: 14.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000396/0.8242, allocations: 83.88 kB / 0.4945 GB, free: 14.52 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01006/0.8343, allocations: 2.597 MB / 0.497 GB, free: 11.87 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.679e-05/0.8344, allocations: 12.03 kB / 0.497 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001276/0.8356, allocations: 362.8 kB / 0.4974 GB, free: 11.49 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001507/0.8372, allocations: 348 kB / 0.4977 GB, free: 11.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006852/0.844, allocations: 1.912 MB / 0.4996 GB, free: 9.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002656/0.8444, allocations: 185 kB / 0.4998 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009342/0.8453, allocations: 251.9 kB / 0.5 GB, free: 8.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00948/0.8548, allocations: 3.161 MB / 0.5031 GB, free: 5.445 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001205/0.855, allocations: 12.19 kB / 0.5031 GB, free: 5.434 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000465/0.8555, allocations: 108 kB / 0.5032 GB, free: 5.328 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002036/0.8557, allocations: 116.9 kB / 0.5033 GB, free: 5.211 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009325/0.865, allocations: 2.485 MB / 0.5058 GB, free: 2.719 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03093/0.896, allocations: 10.48 MB / 0.516 GB, free: 7.891 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003521/0.8996, allocations: 1.409 MB / 0.5174 GB, free: 6.414 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/0.9018, allocations: 0.7534 MB / 0.5181 GB, free: 5.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005476/0.9024, allocations: 219.1 kB / 0.5183 GB, free: 5.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.385e-05/0.9025, allocations: 43.56 kB / 0.5183 GB, free: 5.359 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 4.438e-06/0.9025, allocations: 0 / 0.5183 GB, free: 5.359 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.336/1.239, allocations: 6.161 MB / 0.5244 GB, free: 109.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/1.239, allocations: 68.27 kB / 0.5244 GB, free: 109.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006271/1.245, allocations: 1.531 MB / 0.5259 GB, free: 109.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000402/1.245, allocations: 48.7 kB / 0.526 GB, free: 109.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001659/1.247, allocations: 1.267 MB / 0.5272 GB, free: 109.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009259/1.248, allocations: 456.2 kB / 0.5276 GB, free: 108.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/1.248, allocations: 38.78 kB / 0.5277 GB, free: 108.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002232/1.249, allocations: 371.2 kB / 0.528 GB, free: 108.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003068/1.252, allocations: 0.7751 MB / 0.5288 GB, free: 108.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003617/1.255, allocations: 1.274 MB / 0.53 GB, free: 108 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003925/1.259, allocations: 1.001 MB / 0.531 GB, free: 107.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.444e-05/1.259, allocations: 5.844 kB / 0.531 GB, free: 107.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.01035/1.27, allocations: 2.44 MB / 0.5334 GB, free: 107.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.036e-05/1.27, allocations: 18.06 kB / 0.5334 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.839e-05/1.27, allocations: 16.19 kB / 0.5334 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/1.271, allocations: 243.9 kB / 0.5337 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005017/1.277, allocations: 443.6 kB / 0.5341 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004642/1.281, allocations: 2.995 MB / 0.537 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003978/1.285, allocations: 128.9 kB / 0.5371 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004125/1.286, allocations: 72.7 kB / 0.5372 GB, free: 105.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006288/1.286, allocations: 208.7 kB / 0.5374 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007819/1.287, allocations: 187.9 kB / 0.5376 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005517/1.293, allocations: 2.101 MB / 0.5396 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/1.293, allocations: 13.38 kB / 0.5396 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/1.293, allocations: 13.64 kB / 0.5397 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.609e-05/1.293, allocations: 7.828 kB / 0.5397 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01306/1.306, allocations: 4.823 MB / 0.5444 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/1.306, allocations: 2.75 kB / 0.5444 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00235/1.308, allocations: 290.1 kB / 0.5447 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008842/1.309, allocations: 206.9 kB / 0.5449 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000161/1.309, allocations: 27.89 kB / 0.5449 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002773/1.312, allocations: 2.971 MB / 0.5478 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/1.312, allocations: 7.281 kB / 0.5478 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006671/1.319, allocations: 3.359 MB / 0.5511 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/1.32, allocations: 442.1 kB / 0.5515 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003946/1.321, allocations: 26.62 kB / 0.5515 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001745/1.322, allocations: 97.64 kB / 0.5516 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002446/1.323, allocations: 98.19 kB / 0.5517 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/1.323, allocations: 36.14 kB / 0.5517 GB, free: 101.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002377/1.325, allocations: 1.172 MB / 0.5529 GB, free: 101 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.325, allocations: 0 / 0.5529 GB, free: 101 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002696/1.328, allocations: 0.5272 MB / 0.5534 GB, free: 101 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007454/1.335, allocations: 4.816 MB / 0.5581 GB, free: 98.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005024/1.341, allocations: 2.318 MB / 0.5604 GB, free: 97.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.341, allocations: 4 kB / 0.5604 GB, free: 97.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002636/1.343, allocations: 1.342 MB / 0.5617 GB, free: 96.81 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003392/1.347, allocations: 445.4 kB / 0.5621 GB, free: 96.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/1.36, allocations: 4.622 MB / 0.5666 GB, free: 94.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003369/1.364, allocations: 2.07 MB / 0.5686 GB, free: 93.95 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003995/1.368, allocations: 0.5119 MB / 0.5691 GB, free: 93.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003167/1.371, allocations: 0.9809 MB / 0.5701 GB, free: 93.11 MB / 442.7 MB Notification: Performance of SimCode: time 2.063e-06/1.371, allocations: 0 / 0.5701 GB, free: 93.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1125/1.484, allocations: 47.73 MB / 0.6167 GB, free: 69.29 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002228/1.484, allocations: 203.6 kB / 0.6169 GB, free: 69.07 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.146/5.629, allocations: 4 kB / 0.6169 GB, free: 69.06 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat