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.631/1.631, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.547e-05/2.545e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2501, allocations: 38.76 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4138/0.6639, allocations: 116.2 MB / 374.5 MB, free: 54.01 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.6642, allocations: 85.56 kB / 374.6 MB, free: 54.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.407/1.071, allocations: 117 MB / 491.6 MB, free: 8.926 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/1.071, allocations: 0 / 491.6 MB, free: 8.926 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006038/1.072, allocations: 139.8 kB / 491.8 MB, free: 8.789 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: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.02096/1.093, allocations: 4.953 MB / 496.7 MB, free: 3.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/1.093, allocations: 8.031 kB / 496.7 MB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005199/1.098, allocations: 0.7777 MB / 497.5 MB, free: 2.973 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2562/1.354, allocations: 3.648 MB / 0.4894 GB, free: 34.33 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000516/1.355, allocations: 169.3 kB / 0.4896 GB, free: 34.33 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002169/1.357, allocations: 315.9 kB / 0.4899 GB, free: 34.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01532/1.372, allocations: 4.707 MB / 0.4945 GB, free: 34.31 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01793/1.39, allocations: 5.771 MB / 0.5001 GB, free: 33.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002087/1.391, allocations: 8.453 kB / 0.5001 GB, free: 33.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007489/1.391, allocations: 3.938 kB / 0.5001 GB, free: 33.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002725/1.392, allocations: 238.1 kB / 0.5003 GB, free: 33.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04837/1.44, allocations: 20.07 MB / 0.5199 GB, free: 29.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005928/1.446, allocations: 3.951 MB / 0.5238 GB, free: 27.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003826/1.45, allocations: 1.741 MB / 0.5255 GB, free: 27.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005045/1.45, allocations: 153.6 kB / 0.5256 GB, free: 27.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/1.45, allocations: 68.88 kB / 0.5257 GB, free: 27.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 4.699e-06/1.451, allocations: 0 / 0.5257 GB, free: 27.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=279): time 0.02658/1.477, allocations: 9.297 MB / 0.5348 GB, free: 26.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/1.477, allocations: 79.77 kB / 0.5349 GB, free: 26.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004204/1.481, allocations: 2.083 MB / 0.5369 GB, free: 25.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005591/1.482, allocations: 25.7 kB / 0.5369 GB, free: 25.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/1.484, allocations: 2.237 MB / 0.5391 GB, free: 24.78 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001147/1.485, allocations: 0.9149 MB / 0.54 GB, free: 24.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002678/1.485, allocations: 0 / 0.54 GB, free: 24.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002061/1.485, allocations: 448 kB / 0.5404 GB, free: 23.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002812/1.488, allocations: 1.344 MB / 0.5417 GB, free: 23.85 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00361/1.492, allocations: 2.255 MB / 0.5439 GB, free: 22.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004512/1.496, allocations: 1.777 MB / 0.5457 GB, free: 21.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-05/1.496, allocations: 10.06 kB / 0.5457 GB, free: 21.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.01155/1.508, allocations: 4.604 MB / 0.5502 GB, free: 20.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.069e-05/1.508, allocations: 21.06 kB / 0.5502 GB, free: 20.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.082e-05/1.508, allocations: 32.33 kB / 0.5502 GB, free: 20.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003784/1.512, allocations: 0.9718 MB / 0.5512 GB, free: 19.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00522/1.517, allocations: 0.7288 MB / 0.5519 GB, free: 19.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01868/1.536, allocations: 12.95 MB / 0.5645 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004015/1.54, allocations: 130.8 kB / 0.5647 GB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006066/1.54, allocations: 136.2 kB / 0.5648 GB, free: 10.46 MB / 346.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 (368): * Single equations (assignments): 361 * 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.0006944/1.541, allocations: 202.8 kB / 0.565 GB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009718/1.551, allocations: 4.013 MB / 0.5689 GB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/1.552, allocations: 319.7 kB / 0.5692 GB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01022/1.562, allocations: 4.26 MB / 0.5734 GB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.033e-05/1.562, allocations: 31.39 kB / 0.5734 GB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.866e-05/1.562, allocations: 10.56 kB / 0.5734 GB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.698e-05/1.563, allocations: 14.67 kB / 0.5734 GB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02338/1.586, allocations: 9.762 MB / 0.583 GB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.975e-05/1.586, allocations: 10.72 kB / 0.583 GB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003403/1.589, allocations: 435 kB / 0.5834 GB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004332/1.594, allocations: 1.053 MB / 0.5844 GB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000304/1.594, allocations: 27.59 kB / 0.5844 GB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02496/1.619, allocations: 16.27 MB / 0.6003 GB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.497e-05/1.619, allocations: 11.28 kB / 0.6003 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/1.634, allocations: 6.801 MB / 0.607 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002519/1.637, allocations: 0.6898 MB / 0.6077 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007855/1.638, allocations: 18.2 kB / 0.6077 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00274/1.64, allocations: 117.8 kB / 0.6078 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006901/1.641, allocations: 213.2 kB / 0.608 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/1.641, allocations: 75.75 kB / 0.6081 GB, free: 12.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003519/1.645, allocations: 1.537 MB / 0.6096 GB, free: 11.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.694e-06/1.645, allocations: 0 / 0.6096 GB, free: 11.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005934/1.651, allocations: 0.9437 MB / 0.6105 GB, free: 10.43 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 (215): * Single equations (assignments): 208 * 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.01775/1.669, allocations: 9.207 MB / 0.6195 GB, free: 1.703 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.2669/1.936, allocations: 4.747 MB / 0.6241 GB, free: 61.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/1.936, allocations: 1.781 kB / 0.6241 GB, free: 61.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007727/1.943, allocations: 2.895 MB / 0.6269 GB, free: 60.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006091/1.95, allocations: 0.6874 MB / 0.6276 GB, free: 60.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.026/1.976, allocations: 9.357 MB / 0.6368 GB, free: 58.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005212/1.981, allocations: 3.469 MB / 0.6401 GB, free: 57.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004481/1.985, allocations: 2.035 MB / 0.6421 GB, free: 57.78 MB / 378.7 MB Notification: Performance of SimCode: time 1.363e-06/1.985, allocations: 0 / 0.6421 GB, free: 57.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.046/7.031, allocations: 256.7 MB / 0.8928 GB, free: 56.89 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