Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.931/1.931, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.504e-05, allocations: 4 kB / 255.5 MB, free: 3.07 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 44.51 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.456/0.564, allocations: 119.6 MB / 419.6 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.5643, allocations: 86.39 kB / 419.6 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7247/1.289, allocations: 115.4 MB / 0.5225 GB, free: 61.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.289, allocations: 3.812 kB / 0.5225 GB, free: 61.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005676/1.29, allocations: 129.9 kB / 0.5226 GB, free: 61.94 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.02186/1.312, allocations: 4.854 MB / 0.5274 GB, free: 60.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/1.312, allocations: 9.062 kB / 0.5274 GB, free: 60.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003189/1.315, allocations: 0.701 MB / 0.5281 GB, free: 60.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008023/1.323, allocations: 0.9454 MB / 0.529 GB, free: 60.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01725/1.34, allocations: 4.373 MB / 0.5333 GB, free: 59.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005742/1.341, allocations: 380.6 kB / 0.5336 GB, free: 59.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002319/1.343, allocations: 0.4967 MB / 0.5341 GB, free: 59.37 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.021/1.364, allocations: 6.467 MB / 0.5404 GB, free: 58.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002416/1.364, allocations: 14.41 kB / 0.5404 GB, free: 58.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00128/1.366, allocations: 218.6 kB / 0.5407 GB, free: 58.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002634/1.366, allocations: 227 kB / 0.5409 GB, free: 58.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01606/1.382, allocations: 5.139 MB / 0.5459 GB, free: 58.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09831/1.48, allocations: 21.04 MB / 0.5664 GB, free: 54.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/1.492, allocations: 8.411 MB / 0.5746 GB, free: 48.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004809/1.497, allocations: 1.993 MB / 0.5766 GB, free: 48.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01609/1.513, allocations: 5.955 MB / 0.5824 GB, free: 45.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/1.513, allocations: 58.84 kB / 0.5825 GB, free: 45.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=205): time 4.799e-06/1.513, allocations: 0 / 0.5825 GB, free: 45.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=229): time 0.0306/1.543, allocations: 9.23 MB / 0.5915 GB, free: 41.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/1.544, allocations: 74.62 kB / 0.5916 GB, free: 41.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005479/1.549, allocations: 2.474 MB / 0.594 GB, free: 40.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005942/1.55, allocations: 73.02 kB / 0.594 GB, free: 40.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001488/1.551, allocations: 2.188 MB / 0.5962 GB, free: 39.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/1.552, allocations: 0.7878 MB / 0.5969 GB, free: 38.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/1.552, allocations: 59.38 kB / 0.597 GB, free: 38.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/1.553, allocations: 424.5 kB / 0.5974 GB, free: 38.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00287/1.556, allocations: 1.236 MB / 0.5986 GB, free: 37.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003266/1.559, allocations: 2.095 MB / 0.6007 GB, free: 35.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003647/1.563, allocations: 1.621 MB / 0.6022 GB, free: 35.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.256e-05/1.563, allocations: 10.33 kB / 0.6023 GB, free: 35.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01036/1.573, allocations: 4.178 MB / 0.6063 GB, free: 33.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.499e-05/1.573, allocations: 26.39 kB / 0.6064 GB, free: 33.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.061e-05/1.573, allocations: 26.91 kB / 0.6064 GB, free: 33.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002741/1.576, allocations: 0.7217 MB / 0.6071 GB, free: 33.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005044/1.581, allocations: 0.6794 MB / 0.6077 GB, free: 33.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/1.594, allocations: 9.388 MB / 0.6169 GB, free: 26.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004525/1.598, allocations: 174.6 kB / 0.6171 GB, free: 26.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007112/1.599, allocations: 129.9 kB / 0.6172 GB, free: 26.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 334 * 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: 4 * 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: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008235/1.6, allocations: 284.4 kB / 0.6175 GB, free: 26.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/1.601, allocations: 317.2 kB / 0.6178 GB, free: 26.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/1.613, allocations: 3.974 MB / 0.6217 GB, free: 24.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.88e-05/1.613, allocations: 22.97 kB / 0.6217 GB, free: 24.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-05/1.613, allocations: 11.09 kB / 0.6217 GB, free: 24.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.965e-05/1.613, allocations: 13.38 kB / 0.6217 GB, free: 24.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02276/1.636, allocations: 8.58 MB / 0.6301 GB, free: 20.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-05/1.636, allocations: 3.562 kB / 0.6301 GB, free: 20.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003338/1.639, allocations: 374.3 kB / 0.6304 GB, free: 20.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004278/1.643, allocations: 0.9316 MB / 0.6314 GB, free: 20.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006059/1.644, allocations: 61.28 kB / 0.6314 GB, free: 20.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02036/1.664, allocations: 15.45 MB / 0.6465 GB, free: 5.633 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.664, allocations: 10.72 kB / 0.6465 GB, free: 5.625 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01311/1.678, allocations: 5.851 MB / 0.6522 GB, free: 208 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002747/1.68, allocations: 0.6668 MB / 0.6529 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001212/1.682, allocations: 51.8 kB / 0.6529 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003667/1.685, allocations: 151.2 kB / 0.6531 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007794/1.686, allocations: 179.2 kB / 0.6532 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/1.686, allocations: 67.75 kB / 0.6533 GB, free: 15.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004885/1.691, allocations: 1.873 MB / 0.6551 GB, free: 13.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.213e-06/1.691, allocations: 0 / 0.6551 GB, free: 13.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006011/1.697, allocations: 1.015 MB / 0.6561 GB, free: 12.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (175): * Single equations (assignments): 168 * 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,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01736/1.715, allocations: 7.557 MB / 0.6635 GB, free: 5.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01023/1.725, allocations: 3.827 MB / 0.6672 GB, free: 1.969 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.725, allocations: 4.062 kB / 0.6673 GB, free: 1.965 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2883/2.013, allocations: 2.576 MB / 0.6698 GB, free: 70 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006523/2.02, allocations: 0.7696 MB / 0.6705 GB, free: 69.99 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02989/2.05, allocations: 9.066 MB / 0.6794 GB, free: 68.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006476/2.056, allocations: 3.316 MB / 0.6826 GB, free: 67.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004499/2.061, allocations: 1.985 MB / 0.6846 GB, free: 67.45 MB / 426.7 MB Notification: Performance of SimCode: time 2.895e-06/2.061, allocations: 0 / 0.6846 GB, free: 67.45 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.87/6.931, allocations: 236.7 MB / 0.9157 GB, free: 58.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat