Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.882e-05/3.896e-05, allocations: 7.984 kB / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09966/0.09974, allocations: 44.5 MB / 300 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5668/0.6666, allocations: 119.6 MB / 419.6 MB, free: 5.727 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.6669, allocations: 89.61 kB / 419.7 MB, free: 5.715 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8542/1.521, allocations: 115.4 MB / 0.5225 GB, free: 62.51 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.521, allocations: 0 / 0.5225 GB, free: 62.51 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007809/1.522, allocations: 133.8 kB / 0.5227 GB, free: 62.49 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.02451/1.547, allocations: 4.856 MB / 0.5274 GB, free: 61.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/1.547, allocations: 11.09 kB / 0.5274 GB, free: 61.01 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004206/1.551, allocations: 0.6968 MB / 0.5281 GB, free: 60.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00858/1.559, allocations: 0.9454 MB / 0.529 GB, free: 60.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01976/1.579, allocations: 4.369 MB / 0.5333 GB, free: 59.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006437/1.58, allocations: 382.9 kB / 0.5337 GB, free: 59.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002589/1.583, allocations: 0.5015 MB / 0.5341 GB, free: 59.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02416/1.607, allocations: 6.462 MB / 0.5405 GB, free: 59.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003401/1.607, allocations: 14.55 kB / 0.5405 GB, free: 59.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002108/1.609, allocations: 219.2 kB / 0.5407 GB, free: 59.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002997/1.61, allocations: 227.6 kB / 0.5409 GB, free: 59.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/1.627, allocations: 5.141 MB / 0.5459 GB, free: 59.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05967/1.687, allocations: 21.04 MB / 0.5665 GB, free: 55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01234/1.699, allocations: 8.41 MB / 0.5747 GB, free: 49.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005292/1.705, allocations: 1.994 MB / 0.5766 GB, free: 49.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02056/1.725, allocations: 5.961 MB / 0.5824 GB, free: 46.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.767e-05/1.725, allocations: 59.31 kB / 0.5825 GB, free: 45.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=205): time 4.849e-06/1.725, allocations: 0 / 0.5825 GB, free: 45.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=229): time 0.03516/1.76, allocations: 9.233 MB / 0.5915 GB, free: 42.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/1.76, allocations: 73.19 kB / 0.5916 GB, free: 42.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006565/1.767, allocations: 2.481 MB / 0.594 GB, free: 41.26 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005902/1.768, allocations: 67.77 kB / 0.5941 GB, free: 41.2 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002295/1.77, allocations: 2.33 MB / 0.5964 GB, free: 39.42 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00119/1.771, allocations: 0.7858 MB / 0.5971 GB, free: 38.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003485/1.772, allocations: 62.06 kB / 0.5972 GB, free: 38.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002198/1.772, allocations: 424.8 kB / 0.5976 GB, free: 38.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003298/1.775, allocations: 1.234 MB / 0.5988 GB, free: 37.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004104/1.779, allocations: 2.094 MB / 0.6008 GB, free: 36.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004316/1.784, allocations: 1.62 MB / 0.6024 GB, free: 35.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.143e-05/1.784, allocations: 14.17 kB / 0.6024 GB, free: 35.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01336/1.797, allocations: 4.377 MB / 0.6067 GB, free: 34.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.836e-05/1.797, allocations: 18.45 kB / 0.6067 GB, free: 34.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.77e-05/1.797, allocations: 28.72 kB / 0.6067 GB, free: 34.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002978/1.8, allocations: 0.7092 MB / 0.6074 GB, free: 33.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005242/1.806, allocations: 0.6879 MB / 0.6081 GB, free: 33.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01398/1.82, allocations: 9.379 MB / 0.6173 GB, free: 26.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004797/1.825, allocations: 174.1 kB / 0.6174 GB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008157/1.825, allocations: 125.6 kB / 0.6176 GB, free: 26.86 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.0008891/1.826, allocations: 291.3 kB / 0.6178 GB, free: 26.65 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.827, allocations: 322.2 kB / 0.6181 GB, free: 26.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/1.839, allocations: 3.979 MB / 0.622 GB, free: 24.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.77e-05/1.839, allocations: 22 kB / 0.622 GB, free: 24.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.925e-05/1.839, allocations: 6.938 kB / 0.6221 GB, free: 24.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.677e-05/1.84, allocations: 14.98 kB / 0.6221 GB, free: 24.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02613/1.866, allocations: 8.571 MB / 0.6304 GB, free: 21.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.045e-05/1.866, allocations: 6.438 kB / 0.6304 GB, free: 21.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00339/1.869, allocations: 373.2 kB / 0.6308 GB, free: 21.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004384/1.874, allocations: 0.934 MB / 0.6317 GB, free: 20.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005788/1.874, allocations: 59.45 kB / 0.6318 GB, free: 20.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02185/1.896, allocations: 15.46 MB / 0.6469 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.896, allocations: 6.906 kB / 0.6469 GB, free: 5.438 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01503/1.911, allocations: 5.858 MB / 0.6526 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003192/1.914, allocations: 0.6599 MB / 0.6532 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001622/1.916, allocations: 55.89 kB / 0.6533 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004273/1.92, allocations: 145.6 kB / 0.6534 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001007/1.921, allocations: 177.5 kB / 0.6536 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004155/1.922, allocations: 67.8 kB / 0.6537 GB, free: 15.08 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006048/1.928, allocations: 1.872 MB / 0.6555 GB, free: 13.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.333e-06/1.928, allocations: 0 / 0.6555 GB, free: 13.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007203/1.935, allocations: 1.015 MB / 0.6565 GB, free: 12.37 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.0193/1.955, allocations: 7.561 MB / 0.6639 GB, free: 5.387 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01151/1.966, allocations: 3.829 MB / 0.6676 GB, free: 1.785 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/1.966, allocations: 0 / 0.6676 GB, free: 1.785 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3047/2.271, allocations: 2.573 MB / 0.6701 GB, free: 70.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00701/2.278, allocations: 0.7633 MB / 0.6709 GB, free: 70.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03491/2.313, allocations: 9.151 MB / 0.6798 GB, free: 68.27 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007998/2.321, allocations: 3.395 MB / 0.6831 GB, free: 67.47 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005109/2.326, allocations: 0.7388 MB / 0.6838 GB, free: 67.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004984/2.331, allocations: 1.955 MB / 0.6857 GB, free: 67.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.513e-06/2.331, allocations: 0 / 0.6857 GB, free: 67.41 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1977/2.529, allocations: 84.64 MB / 0.7684 GB, free: 46.68 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/2.529, allocations: 190.9 kB / 0.7686 GB, free: 46.46 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.162/8.691, allocations: 0 / 0.7686 GB, free: 46.46 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat