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.647/1.647, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.851e-05/2.866e-05, allocations: 4 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2696, allocations: 38.77 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4429/0.7126, allocations: 112.3 MB / 376.1 MB, free: 50.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.713, allocations: 85.16 kB / 376.2 MB, free: 50.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.402/1.115, allocations: 110.7 MB / 486.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.115, allocations: 0 / 486.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006068/1.116, allocations: 135.8 kB / 487.1 MB, free: 11.11 MB / 346.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.0214/1.137, allocations: 4.748 MB / 491.8 MB, free: 6.293 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/1.137, allocations: 8.031 kB / 491.8 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003183/1.14, allocations: 0.675 MB / 492.5 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005341/1.146, allocations: 0.739 MB / 493.2 MB, free: 4.855 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0129/1.159, allocations: 3.466 MB / 496.7 MB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006501/1.159, allocations: 365.9 kB / 497.1 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002242/1.162, allocations: 495.9 kB / 497.5 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02383/1.185, allocations: 6.279 MB / 0.492 GB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002563/1.186, allocations: 7.906 kB / 0.492 GB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001586/1.187, allocations: 216 kB / 0.4922 GB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003511/1.188, allocations: 221.8 kB / 0.4924 GB, free: 9.539 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/1.206, allocations: 4.846 MB / 0.4972 GB, free: 4.684 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3323/1.539, allocations: 19.98 MB / 0.5167 GB, free: 45.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006193/1.545, allocations: 3.959 MB / 0.5205 GB, free: 43.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003766/1.549, allocations: 1.729 MB / 0.5222 GB, free: 43.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004673/1.549, allocations: 151.2 kB / 0.5224 GB, free: 43.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.899e-05/1.549, allocations: 58.56 kB / 0.5224 GB, free: 43.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=215): time 6.412e-06/1.549, allocations: 0 / 0.5224 GB, free: 43.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=259): time 0.03831/1.588, allocations: 10.85 MB / 0.533 GB, free: 41.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/1.588, allocations: 81.36 kB / 0.5331 GB, free: 41.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005151/1.593, allocations: 2.377 MB / 0.5354 GB, free: 41.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005655/1.593, allocations: 68.55 kB / 0.5355 GB, free: 41.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/1.595, allocations: 2.088 MB / 0.5375 GB, free: 40.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.596, allocations: 0.8824 MB / 0.5384 GB, free: 40.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/1.596, allocations: 66.56 kB / 0.5385 GB, free: 40.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001979/1.597, allocations: 430.4 kB / 0.5389 GB, free: 39.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003112/1.6, allocations: 1.344 MB / 0.5402 GB, free: 39.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003539/1.603, allocations: 2.189 MB / 0.5423 GB, free: 39.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00382/1.607, allocations: 1.757 MB / 0.544 GB, free: 38.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.236e-05/1.607, allocations: 5.812 kB / 0.544 GB, free: 38.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01132/1.619, allocations: 4.707 MB / 0.5486 GB, free: 38.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.374e-05/1.619, allocations: 15.47 kB / 0.5486 GB, free: 38.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-05/1.619, allocations: 28.56 kB / 0.5487 GB, free: 38.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003784/1.622, allocations: 0.9698 MB / 0.5496 GB, free: 38.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004861/1.627, allocations: 0.6791 MB / 0.5503 GB, free: 38.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01883/1.646, allocations: 12.94 MB / 0.5629 GB, free: 31.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004018/1.65, allocations: 176.9 kB / 0.5631 GB, free: 31.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004913/1.651, allocations: 132.6 kB / 0.5632 GB, free: 31.97 MB / 362.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 (339): * Single equations (assignments): 332 * 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,72.2%) 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.0007182/1.652, allocations: 290.6 kB / 0.5635 GB, free: 31.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008411/1.652, allocations: 324.8 kB / 0.5638 GB, free: 31.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01079/1.663, allocations: 4.347 MB / 0.568 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.79e-05/1.663, allocations: 25.88 kB / 0.5681 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.009e-05/1.663, allocations: 13.56 kB / 0.5681 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.207e-05/1.663, allocations: 13.88 kB / 0.5681 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02466/1.688, allocations: 9.898 MB / 0.5778 GB, free: 25.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.96e-05/1.688, allocations: 6.656 kB / 0.5778 GB, free: 25.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00325/1.691, allocations: 400.5 kB / 0.5782 GB, free: 25.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004505/1.696, allocations: 1.065 MB / 0.5792 GB, free: 25.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003504/1.696, allocations: 63.61 kB / 0.5793 GB, free: 25.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02316/1.719, allocations: 16.59 MB / 0.5955 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/1.719, allocations: 8.75 kB / 0.5955 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/1.735, allocations: 6.665 MB / 0.602 GB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002575/1.737, allocations: 0.6856 MB / 0.6026 GB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009897/1.738, allocations: 65.67 kB / 0.6027 GB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003161/1.741, allocations: 143.4 kB / 0.6028 GB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006644/1.742, allocations: 202.3 kB / 0.603 GB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002404/1.742, allocations: 81.34 kB / 0.6031 GB, free: 8.559 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004101/1.747, allocations: 1.797 MB / 0.6049 GB, free: 7.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.747, allocations: 0 / 0.6049 GB, free: 7.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005276/1.752, allocations: 1.025 MB / 0.6059 GB, free: 6.395 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 (198): * Single equations (assignments): 191 * 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,72.2%) 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.02598/1.778, allocations: 9.465 MB / 0.6151 GB, free: 15.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01312/1.791, allocations: 4.475 MB / 0.6195 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/1.791, allocations: 0 / 0.6195 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00883/1.8, allocations: 2.914 MB / 0.6223 GB, free: 8.645 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006622/1.807, allocations: 0.7748 MB / 0.6231 GB, free: 8.043 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03215/1.839, allocations: 9.22 MB / 0.6321 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007651/1.847, allocations: 3.347 MB / 0.6354 GB, free: 13.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005351/1.852, allocations: 1.925 MB / 0.6372 GB, free: 11.59 MB / 394.7 MB Notification: Performance of SimCode: time 4.228e-06/1.852, allocations: 0 / 0.6372 GB, free: 11.59 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.249/7.101, allocations: 246.2 MB / 0.8777 GB, free: 69 MB / 410.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