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.596/1.596, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.824e-05/3.83e-05, allocations: 4 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2487, allocations: 38.77 MB / 263.9 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4091/0.6579, allocations: 112.3 MB / 376.2 MB, free: 50.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.6582, allocations: 83.02 kB / 376.2 MB, free: 50.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4232/1.081, allocations: 110.7 MB / 487 MB, free: 11.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.082, allocations: 0 / 487 MB, free: 11.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005283/1.082, allocations: 131.8 kB / 487.1 MB, free: 11.08 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.0195/1.102, allocations: 4.748 MB / 491.8 MB, free: 6.258 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/1.102, allocations: 8.031 kB / 491.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002374/1.104, allocations: 0.6749 MB / 492.5 MB, free: 5.566 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004359/1.108, allocations: 0.739 MB / 493.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01116/1.12, allocations: 3.458 MB / 496.7 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004552/1.12, allocations: 377.8 kB / 497.1 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001686/1.122, allocations: 491.9 kB / 497.6 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01829/1.14, allocations: 6.22 MB / 0.492 GB, free: 10 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001861/1.14, allocations: 15.89 kB / 0.492 GB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008091/1.141, allocations: 200 kB / 0.4922 GB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003132/1.141, allocations: 221.8 kB / 0.4924 GB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01534/1.157, allocations: 4.791 MB / 0.4971 GB, free: 4.777 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2992/1.456, allocations: 19.99 MB / 0.5166 GB, free: 45.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007005/1.463, allocations: 3.934 MB / 0.5204 GB, free: 43.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004386/1.468, allocations: 1.727 MB / 0.5221 GB, free: 43.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005812/1.468, allocations: 152.5 kB / 0.5223 GB, free: 43.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/1.468, allocations: 63.14 kB / 0.5223 GB, free: 43.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=215): time 5.691e-06/1.468, allocations: 0 / 0.5223 GB, free: 43.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=259): time 0.03999/1.508, allocations: 10.84 MB / 0.5329 GB, free: 41.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/1.508, allocations: 78.95 kB / 0.533 GB, free: 41.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005017/1.513, allocations: 2.38 MB / 0.5353 GB, free: 41.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005684/1.514, allocations: 65.73 kB / 0.5354 GB, free: 41.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001479/1.515, allocations: 2.086 MB / 0.5374 GB, free: 40.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001129/1.517, allocations: 0.8906 MB / 0.5383 GB, free: 40.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002774/1.517, allocations: 62.16 kB / 0.5384 GB, free: 40.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001924/1.517, allocations: 430.2 kB / 0.5388 GB, free: 39.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003106/1.52, allocations: 1.346 MB / 0.5401 GB, free: 39.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003821/1.524, allocations: 2.168 MB / 0.5422 GB, free: 38.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004/1.528, allocations: 1.758 MB / 0.5439 GB, free: 38.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.02e-05/1.528, allocations: 7.5 kB / 0.5439 GB, free: 38.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01226/1.54, allocations: 4.633 MB / 0.5484 GB, free: 38.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.794e-05/1.541, allocations: 18.44 kB / 0.5485 GB, free: 38.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-05/1.541, allocations: 26.19 kB / 0.5485 GB, free: 38.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004069/1.545, allocations: 0.9655 MB / 0.5494 GB, free: 38.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005188/1.55, allocations: 0.6777 MB / 0.5501 GB, free: 38.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01999/1.57, allocations: 12.93 MB / 0.5627 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004159/1.574, allocations: 182.7 kB / 0.5629 GB, free: 31.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005061/1.575, allocations: 127.6 kB / 0.563 GB, free: 31.8 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.0006897/1.575, allocations: 289.4 kB / 0.5633 GB, free: 31.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007941/1.576, allocations: 329.6 kB / 0.5636 GB, free: 31.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/1.587, allocations: 4.348 MB / 0.5678 GB, free: 29.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.931e-05/1.587, allocations: 23.34 kB / 0.5679 GB, free: 29.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.648e-05/1.587, allocations: 12.94 kB / 0.5679 GB, free: 29.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.235e-05/1.587, allocations: 10.64 kB / 0.5679 GB, free: 29.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0249/1.612, allocations: 9.89 MB / 0.5776 GB, free: 25.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/1.612, allocations: 7.844 kB / 0.5776 GB, free: 25.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003228/1.615, allocations: 400.4 kB / 0.5779 GB, free: 25.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004486/1.62, allocations: 1.061 MB / 0.579 GB, free: 25.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005414/1.62, allocations: 61.27 kB / 0.579 GB, free: 25.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02293/1.643, allocations: 16.58 MB / 0.5952 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/1.643, allocations: 6.875 kB / 0.5952 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01357/1.657, allocations: 6.669 MB / 0.6018 GB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002206/1.659, allocations: 0.6918 MB / 0.6024 GB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000658/1.66, allocations: 54.91 kB / 0.6025 GB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002749/1.663, allocations: 156.6 kB / 0.6026 GB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005592/1.663, allocations: 195.3 kB / 0.6028 GB, free: 8.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002232/1.663, allocations: 77.7 kB / 0.6029 GB, free: 8.434 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003705/1.667, allocations: 1.807 MB / 0.6047 GB, free: 7.371 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.667, allocations: 0 / 0.6047 GB, free: 7.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005002/1.672, allocations: 1.022 MB / 0.6057 GB, free: 6.359 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.01533/1.688, allocations: 8.858 MB / 0.6143 GB, free: 14.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01137/1.699, allocations: 4.372 MB / 0.6186 GB, free: 9.965 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/1.699, allocations: 2.562 kB / 0.6186 GB, free: 9.965 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007797/1.707, allocations: 2.847 MB / 0.6214 GB, free: 7.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00581/1.713, allocations: 0.775 MB / 0.6221 GB, free: 6.719 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02673/1.739, allocations: 9.225 MB / 0.6311 GB, free: 14.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00482/1.744, allocations: 3.348 MB / 0.6344 GB, free: 12.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004323/1.749, allocations: 1.925 MB / 0.6363 GB, free: 10.34 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/1.749, allocations: 0 / 0.6363 GB, free: 10.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.6/7.349, allocations: 245.7 MB / 0.8762 GB, free: 66.41 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