Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.732/1.732, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.467e-05/3.471e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2579, allocations: 38.77 MB / 263.9 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4494/0.7074, allocations: 116.8 MB / 380.7 MB, free: 52.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.7077, allocations: 81.52 kB / 380.8 MB, free: 52.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4282/1.136, allocations: 118.6 MB / 499.4 MB, free: 15.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/1.136, allocations: 0 / 499.4 MB, free: 15.03 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006867/1.137, allocations: 139.8 kB / 499.5 MB, free: 14.89 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.02227/1.159, allocations: 4.953 MB / 0.4927 GB, free: 9.867 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/1.159, allocations: 8.031 kB / 0.4927 GB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003298/1.162, allocations: 0.7077 MB / 0.4934 GB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005604/1.168, allocations: 0.7777 MB / 0.4941 GB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01358/1.182, allocations: 3.656 MB / 0.4977 GB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006194/1.182, allocations: 386.3 kB / 0.4981 GB, free: 4.246 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002437/1.185, allocations: 0.5114 MB / 0.4986 GB, free: 3.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2851/1.47, allocations: 6.452 MB / 0.5049 GB, free: 42.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003216/1.47, allocations: 10.69 kB / 0.5049 GB, free: 42.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001684/1.472, allocations: 224.5 kB / 0.5051 GB, free: 42.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003219/1.472, allocations: 234 kB / 0.5053 GB, free: 42.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01705/1.489, allocations: 4.945 MB / 0.5101 GB, free: 42.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05524/1.545, allocations: 21.07 MB / 0.5307 GB, free: 37.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007262/1.552, allocations: 4 MB / 0.5346 GB, free: 36.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004591/1.557, allocations: 1.808 MB / 0.5364 GB, free: 36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005743/1.557, allocations: 153.8 kB / 0.5365 GB, free: 35.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/1.557, allocations: 59.89 kB / 0.5366 GB, free: 35.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=226): time 5.169e-06/1.557, allocations: 0 / 0.5366 GB, free: 35.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=275): time 0.04643/1.604, allocations: 11.74 MB / 0.5481 GB, free: 34.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/1.604, allocations: 81.98 kB / 0.5481 GB, free: 34.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006694/1.611, allocations: 2.591 MB / 0.5507 GB, free: 34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006123/1.611, allocations: 66.73 kB / 0.5507 GB, free: 33.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00181/1.613, allocations: 2.209 MB / 0.5529 GB, free: 33.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001251/1.614, allocations: 0.9377 MB / 0.5538 GB, free: 32.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003398/1.615, allocations: 63.78 kB / 0.5539 GB, free: 32.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002226/1.615, allocations: 449.4 kB / 0.5543 GB, free: 32.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003397/1.618, allocations: 1.401 MB / 0.5557 GB, free: 32.06 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004136/1.623, allocations: 2.317 MB / 0.5579 GB, free: 30.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004429/1.627, allocations: 1.834 MB / 0.5597 GB, free: 29.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.635e-05/1.627, allocations: 9.844 kB / 0.5597 GB, free: 29.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=424) (initialization): time 0.01324/1.64, allocations: 4.844 MB / 0.5645 GB, free: 27.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.949e-05/1.64, allocations: 14.78 kB / 0.5645 GB, free: 27.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.499e-05/1.641, allocations: 33.88 kB / 0.5645 GB, free: 27.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004197/1.645, allocations: 0.9929 MB / 0.5655 GB, free: 27.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005485/1.65, allocations: 0.7217 MB / 0.5662 GB, free: 27.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02558/1.676, allocations: 13.5 MB / 0.5794 GB, free: 17.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004864/1.681, allocations: 191.4 kB / 0.5795 GB, free: 17.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008544/1.682, allocations: 140.5 kB / 0.5797 GB, free: 17.74 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (364): * Single equations (assignments): 357 * 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%) 23,(1,100.0%) 1,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008296/1.683, allocations: 309.8 kB / 0.58 GB, free: 17.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001124/1.684, allocations: 349.8 kB / 0.5803 GB, free: 17.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01471/1.699, allocations: 4.522 MB / 0.5847 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.584e-05/1.699, allocations: 27.03 kB / 0.5847 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.144e-05/1.699, allocations: 9.438 kB / 0.5848 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.649e-05/1.699, allocations: 13.36 kB / 0.5848 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03067/1.729, allocations: 10.62 MB / 0.5951 GB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.841e-05/1.73, allocations: 7.469 kB / 0.5951 GB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003686/1.733, allocations: 427.6 kB / 0.5956 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004782/1.738, allocations: 1.068 MB / 0.5966 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005821/1.739, allocations: 74.25 kB / 0.5967 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02569/1.764, allocations: 16.9 MB / 0.6132 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/1.765, allocations: 9.781 kB / 0.6132 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01802/1.783, allocations: 7.052 MB / 0.6201 GB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00294/1.786, allocations: 0.734 MB / 0.6208 GB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001234/1.787, allocations: 67.61 kB / 0.6209 GB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003892/1.791, allocations: 152.3 kB / 0.621 GB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009029/1.792, allocations: 210.7 kB / 0.6212 GB, free: 5.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003181/1.792, allocations: 75.47 kB / 0.6213 GB, free: 5.594 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005385/1.797, allocations: 1.963 MB / 0.6232 GB, free: 3.812 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.797, allocations: 0 / 0.6232 GB, free: 3.812 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006453/1.804, allocations: 1.086 MB / 0.6242 GB, free: 2.734 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 206 * 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%) 23,(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.02004/1.824, allocations: 9.539 MB / 0.6336 GB, free: 9.695 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01304/1.837, allocations: 4.529 MB / 0.638 GB, free: 5.457 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-05/1.837, allocations: 4 kB / 0.638 GB, free: 5.453 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008972/1.846, allocations: 2.949 MB / 0.6409 GB, free: 2.707 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007567/1.854, allocations: 0.8736 MB / 0.6417 GB, free: 2.031 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2944/2.148, allocations: 9.635 MB / 0.6511 GB, free: 68.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006154/2.154, allocations: 3.467 MB / 0.6545 GB, free: 67.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004599/2.159, allocations: 2.05 MB / 0.6565 GB, free: 67.25 MB / 394.7 MB Notification: Performance of SimCode: time 1.573e-06/2.159, allocations: 0 / 0.6565 GB, free: 67.25 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.121/7.28, allocations: 260 MB / 0.9105 GB, free: 0.8047 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.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat