Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.674/1.674, allocations: 171.2 MB / 178.8 MB, free: 180 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.479e-05/2.481e-05, allocations: 7.938 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2493, allocations: 38.76 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4368/0.6862, allocations: 111.6 MB / 369.9 MB, free: 52.26 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.6865, allocations: 83.27 kB / 370 MB, free: 52.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3785/1.065, allocations: 109.3 MB / 479.3 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.065, allocations: 0 / 479.3 MB, free: 5.074 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005227/1.066, allocations: 135.8 kB / 479.5 MB, free: 4.941 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.01912/1.085, allocations: 4.752 MB / 484.2 MB, free: 120 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/1.085, allocations: 15.97 kB / 484.2 MB, free: 104 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004591/1.089, allocations: 0.7314 MB / 485 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/1.1, allocations: 3.462 MB / 488.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002743/1.101, allocations: 164 kB / 488.6 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/1.102, allocations: 295.8 kB / 488.9 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.014/1.116, allocations: 4.55 MB / 493.4 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0168/1.133, allocations: 5.556 MB / 499 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001807/1.133, allocations: 11.89 kB / 499 MB, free: 1.043 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006136/1.134, allocations: 4 kB / 499 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003263/1.134, allocations: 225.8 kB / 499.2 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3182/1.452, allocations: 19.03 MB / 0.5061 GB, free: 39.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005994/1.458, allocations: 3.891 MB / 0.5099 GB, free: 37.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003693/1.462, allocations: 1.666 MB / 0.5115 GB, free: 37.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005097/1.463, allocations: 154.3 kB / 0.5117 GB, free: 37.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.128e-05/1.463, allocations: 60.66 kB / 0.5117 GB, free: 37.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=219): time 4.448e-06/1.463, allocations: 0 / 0.5117 GB, free: 37.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=263): time 0.0265/1.489, allocations: 8.888 MB / 0.5204 GB, free: 35.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/1.489, allocations: 80.39 kB / 0.5205 GB, free: 35.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003914/1.493, allocations: 1.92 MB / 0.5224 GB, free: 35.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005454/1.494, allocations: 25.7 kB / 0.5224 GB, free: 35.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001469/1.495, allocations: 2.125 MB / 0.5245 GB, free: 34.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001099/1.496, allocations: 0.8656 MB / 0.5253 GB, free: 34.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/1.497, allocations: 0 / 0.5253 GB, free: 34.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001948/1.497, allocations: 438.2 kB / 0.5257 GB, free: 33.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/1.5, allocations: 1.29 MB / 0.527 GB, free: 33.81 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003301/1.503, allocations: 2.118 MB / 0.5291 GB, free: 32.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003662/1.507, allocations: 1.698 MB / 0.5307 GB, free: 32.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-05/1.507, allocations: 11.33 kB / 0.5307 GB, free: 32.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=400) (initialization): time 0.01102/1.518, allocations: 4.407 MB / 0.535 GB, free: 32.44 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.524e-05/1.518, allocations: 18.09 kB / 0.535 GB, free: 32.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.46e-05/1.518, allocations: 24.09 kB / 0.5351 GB, free: 32.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003732/1.522, allocations: 0.9516 MB / 0.536 GB, free: 32.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005107/1.527, allocations: 0.6814 MB / 0.5367 GB, free: 32.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01799/1.545, allocations: 12.43 MB / 0.5488 GB, free: 24.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00384/1.549, allocations: 118.6 kB / 0.5489 GB, free: 24.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005835/1.549, allocations: 129 kB / 0.549 GB, free: 24.67 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 336 * 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: 5 * 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: 5 {(6,75.0%) 22,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006641/1.55, allocations: 185.2 kB / 0.5492 GB, free: 24.54 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009396/1.559, allocations: 3.874 MB / 0.553 GB, free: 22.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/1.561, allocations: 297.2 kB / 0.5533 GB, free: 22.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/1.571, allocations: 4.118 MB / 0.5573 GB, free: 21.01 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-05/1.571, allocations: 28.47 kB / 0.5573 GB, free: 21.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.42e-05/1.571, allocations: 13.58 kB / 0.5573 GB, free: 21 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.875e-05/1.571, allocations: 11.39 kB / 0.5574 GB, free: 21 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02286/1.594, allocations: 9.066 MB / 0.5662 GB, free: 17.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-05/1.594, allocations: 3.688 kB / 0.5662 GB, free: 17.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003248/1.597, allocations: 419.8 kB / 0.5666 GB, free: 17.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004263/1.601, allocations: 1.045 MB / 0.5676 GB, free: 16.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002548/1.602, allocations: 26.72 kB / 0.5677 GB, free: 16.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02148/1.623, allocations: 15.95 MB / 0.5832 GB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.155e-05/1.623, allocations: 7.844 kB / 0.5832 GB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01308/1.636, allocations: 6.439 MB / 0.5895 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002337/1.639, allocations: 0.6563 MB / 0.5902 GB, free: 356 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001154/1.64, allocations: 16 kB / 0.5902 GB, free: 340 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003379/1.643, allocations: 113.2 kB / 0.5903 GB, free: 272 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000847/1.644, allocations: 203 kB / 0.5905 GB, free: 152 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002504/1.644, allocations: 71.7 kB / 0.5906 GB, free: 84 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003585/1.648, allocations: 1.426 MB / 0.5919 GB, free: 14.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.648, allocations: 0 / 0.5919 GB, free: 14.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005541/1.654, allocations: 0.8858 MB / 0.5928 GB, free: 13.91 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 22,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01707/1.671, allocations: 8.58 MB / 0.6012 GB, free: 5.848 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01125/1.682, allocations: 4.305 MB / 0.6054 GB, free: 1.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.682, allocations: 0 / 0.6054 GB, free: 1.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008014/1.69, allocations: 2.833 MB / 0.6082 GB, free: 15.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005528/1.696, allocations: 0.5794 MB / 0.6087 GB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02615/1.722, allocations: 8.913 MB / 0.6174 GB, free: 6.906 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00533/1.727, allocations: 3.353 MB / 0.6207 GB, free: 4.348 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004717/1.732, allocations: 1.898 MB / 0.6226 GB, free: 2.594 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/1.732, allocations: 0 / 0.6226 GB, free: 2.594 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.808/6.54, allocations: 242.6 MB / 0.8594 GB, free: 44.45 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat