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.914/1.914, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.972e-05/1.987e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2969, allocations: 44.5 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2001/0.497, allocations: 118.9 MB / 413.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.4974, allocations: 83.95 kB / 413.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6541/1.151, allocations: 113.9 MB / 0.5148 GB, free: 24.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.152, allocations: 4 kB / 0.5148 GB, free: 24.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005315/1.152, allocations: 127.8 kB / 0.5149 GB, free: 24.29 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: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.0195/1.172, allocations: 4.855 MB / 0.5196 GB, free: 19.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/1.172, allocations: 8.031 kB / 0.5197 GB, free: 19.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007176/1.179, allocations: 0.9456 MB / 0.5206 GB, free: 18.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01555/1.194, allocations: 4.367 MB / 0.5248 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000337/1.195, allocations: 164 kB / 0.525 GB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002003/1.197, allocations: 299.9 kB / 0.5253 GB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01546/1.212, allocations: 4.898 MB / 0.5301 GB, free: 8.605 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01978/1.232, allocations: 5.787 MB / 0.5357 GB, free: 2.617 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003074/1.233, allocations: 15.84 kB / 0.5357 GB, free: 2.602 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001442/1.234, allocations: 4 kB / 0.5357 GB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002758/1.234, allocations: 234.2 kB / 0.536 GB, free: 2.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3414/1.576, allocations: 20.05 MB / 0.5555 GB, free: 48.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/1.588, allocations: 8.352 MB / 0.5637 GB, free: 42.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005084/1.593, allocations: 1.919 MB / 0.5656 GB, free: 42.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01649/1.609, allocations: 5.816 MB / 0.5713 GB, free: 41.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/1.609, allocations: 60.53 kB / 0.5713 GB, free: 41.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=209): time 6.051e-06/1.609, allocations: 0 / 0.5713 GB, free: 41.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.02508/1.634, allocations: 8.131 MB / 0.5793 GB, free: 40.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/1.635, allocations: 75.97 kB / 0.5793 GB, free: 40.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004417/1.639, allocations: 2.022 MB / 0.5813 GB, free: 40.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005411/1.64, allocations: 28.89 kB / 0.5813 GB, free: 40.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/1.641, allocations: 2.21 MB / 0.5835 GB, free: 39.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/1.642, allocations: 0.7738 MB / 0.5842 GB, free: 38.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/1.643, allocations: 0 / 0.5842 GB, free: 38.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002012/1.643, allocations: 435.3 kB / 0.5847 GB, free: 38.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/1.645, allocations: 1.189 MB / 0.5858 GB, free: 38.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003695/1.649, allocations: 2.042 MB / 0.5878 GB, free: 37.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004592/1.654, allocations: 1.685 MB / 0.5895 GB, free: 37.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.262e-05/1.654, allocations: 9.312 kB / 0.5895 GB, free: 37.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=380) (initialization): time 0.01194/1.666, allocations: 4.083 MB / 0.5935 GB, free: 37.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.889e-05/1.666, allocations: 16.19 kB / 0.5935 GB, free: 37.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.258e-05/1.666, allocations: 28.94 kB / 0.5935 GB, free: 37.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00286/1.669, allocations: 0.7043 MB / 0.5942 GB, free: 37.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005295/1.674, allocations: 0.6873 MB / 0.5949 GB, free: 37.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/1.687, allocations: 8.991 MB / 0.6036 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004125/1.691, allocations: 126.7 kB / 0.6038 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000731/1.692, allocations: 130.1 kB / 0.6039 GB, free: 32.12 MB / 378.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 (344): * Single equations (assignments): 338 * 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.0006977/1.693, allocations: 194.9 kB / 0.6041 GB, free: 31.99 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01008/1.703, allocations: 3.621 MB / 0.6076 GB, free: 31.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/1.704, allocations: 292.9 kB / 0.6079 GB, free: 31.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/1.715, allocations: 3.884 MB / 0.6117 GB, free: 30.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.66e-05/1.715, allocations: 19.38 kB / 0.6117 GB, free: 30.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.051e-05/1.715, allocations: 16.77 kB / 0.6117 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.802e-05/1.715, allocations: 11.62 kB / 0.6117 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02079/1.736, allocations: 7.885 MB / 0.6194 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/1.736, allocations: 0 / 0.6194 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003238/1.739, allocations: 377 kB / 0.6198 GB, free: 27.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004007/1.743, allocations: 0.9296 MB / 0.6207 GB, free: 27.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003986/1.744, allocations: 29.66 kB / 0.6207 GB, free: 27.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01927/1.763, allocations: 14.85 MB / 0.6352 GB, free: 16.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.647e-06/1.763, allocations: 3.469 kB / 0.6352 GB, free: 16.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01289/1.776, allocations: 5.805 MB / 0.6409 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002338/1.778, allocations: 0.624 MB / 0.6415 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009828/1.779, allocations: 18.33 kB / 0.6415 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003034/1.782, allocations: 119.8 kB / 0.6416 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006456/1.783, allocations: 172.8 kB / 0.6418 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002231/1.783, allocations: 61.41 kB / 0.6419 GB, free: 12.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003514/1.787, allocations: 1.498 MB / 0.6433 GB, free: 12.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.787, allocations: 0 / 0.6433 GB, free: 12.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005593/1.792, allocations: 0.8884 MB / 0.6442 GB, free: 12.32 MB / 378.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 (177): * Single equations (assignments): 170 * 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.01484/1.807, allocations: 7.397 MB / 0.6514 GB, free: 6.461 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008653/1.816, allocations: 3.759 MB / 0.6551 GB, free: 3.016 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/1.816, allocations: 0 / 0.6551 GB, free: 3.016 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006531/1.823, allocations: 2.56 MB / 0.6576 GB, free: 0.668 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005415/1.828, allocations: 0.5821 MB / 0.6581 GB, free: 240 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03192/1.86, allocations: 8.967 MB / 0.6669 GB, free: 8.871 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006667/1.867, allocations: 3.306 MB / 0.6701 GB, free: 6.359 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005209/1.872, allocations: 1.947 MB / 0.672 GB, free: 4.559 MB / 394.7 MB Notification: Performance of SimCode: time 1.293e-06/1.872, allocations: 0 / 0.672 GB, free: 4.559 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.05/6.922, allocations: 234.6 MB / 0.9012 GB, free: 119 MB / 458.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