/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17422
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2025.3+3341_weekly_bin802
RA = 306.341, Dec = 33.6891
tmin = 724032001, tmax = 724636801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='36607692', job_status='RUN', time_executed='2023-12-19 01:16:00.641874', time_epoch_executed='1702977360.64' WHERE source_name='4FGL J2025.3+3341' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36607692

Creating custom pfile directory:
/lscratch/kocevski/36607692/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36607692/ft1_4FGL_J2025.3+3341_weekly_bin802.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36607692/ft1_4FGL_J2025.3+3341_weekly_bin802.fits outfile=/lscratch/kocevski/36607692/ft1_filteredMKT_4FGL_J2025.3+3341_weekly_bin802.fits ra=306.341 dec=33.6891 rad=12.0 tmin=724032001.0 tmax=724636801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.81
user 4.42
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/36607692/ft1_filteredMKT_4FGL_J2025.3+3341_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.58
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 11867

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36607692/ltcube_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits
.....................!
real 29.78
user 28.75
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36607692/ltcube_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits outfile=/lscratch/kocevski/36607692/expmap_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/36607692/ltcube_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits
.....................!
real 72.72
user 68.20
sys 4.00

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source Cygnus Loop in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 214 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2025.3+3341 @ 306.341 33.6891

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits scfile=/lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits outfile=/lscratch/kocevski/36607692/cmap_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=306.341 yref=33.6891 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.42
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits scfile=/lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits outfile=/lscratch/kocevski/36607692/cmap_HighResolution_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=306.341 yref=33.6891 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.71
user 0.27
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36607692/Model_4FGL_J2025.3+3341_weekly_bin802.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits.....................!
real 851.61
user 847.55
sys 0.75

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits', '/lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits', expMap='/lscratch/kocevski/36607692/expmap_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits', expCube='/lscratch/kocevski/36607692/ltcube_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36607692/Model_4FGL_J2025.3+3341_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2025.3+3341'

4FGL J2025.3+3341
   Spectrum: LogParabola
403         norm:  2.153e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
404        alpha:  2.728e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
405         beta:  1.784e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36607692/ft1_filtered_4FGL_J2025.3+3341_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36607692/ft2_4FGL_J2025.3+3341_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36607692/expmap_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36607692/ltcube_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36607692/Model_4FGL_J2025.3+3341_weekly_bin802.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 102497.437437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 102497.423307

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5051       1.0000          .0000       .10000E+07
     2 'norm      '    10.217       1.0000          .0000       .10000E+07
     3 'norm      '    .90486E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.6086       1.0000          .0000       .10000E+07
     5 'norm      '    6.7637       1.0000          .0000       .10000E+07
     6 'Prefactor '    26.597       1.0000          .0000       .10000E+07
     7 'norm      '    16.843       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.9742       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7178       1.0000          .0000       .10000E+07
    10 'norm      '    2.2600       1.0000          .0000       .10000E+07
    11 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    24.050       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.049       1.0000          .0000       .10000E+07
    14 'Prefactor '    .72609E-04   1.0000          .0000       .10000E+07
    15 'norm      '    5.1159       1.0000          .0000       .10000E+07
    16 'norm      '    .14433E-08   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.5195       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96357       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   102497.4     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     1257 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5011        4.7618       -.57202E-07    .11245E-01
   2  norm          10.239        2.6209       -.20124E-07   -.41284E-01
   3  norm           .0000        1.1360       -.23996E-08** at limit **
   4  Prefactor     5.7258        9.5063        .24111E-07    .25366E-01
   5  norm          6.7494        1.5433       -.58588E-08   -.42613E-01
   6  Prefactor     26.478        15.857       -.12685E-06    .97249E-01
   7  norm          16.855        3.8931        .13257E-07    .59118E-03
   8  Prefactor     1.9741        .15098       -.31062E-08    .33257E-02
   9  norm          2.7183        1.8379       -.44849E-07   -.10104E-01
  10  norm          2.2584        3.0399        .82907E-07    .89122E-02
  11  Prefactor     .10000E-03    1.8176        .11503E-05** at limit **
  12  norm          24.227        13.815        .14205E-07    .89319E-01
  13  Prefactor     10.987        8.0645        .66255E-07    .10839    
  14  Prefactor     .11102E-09    1.1220        .79773E-07** at limit **
  15  norm          5.1077        2.4858        .11173E-07    .43018E-02
  16  norm           .0000        .17805        .20266E-07** at limit **
  17  Normalizat    1.5193        .19328        .12933E-05    .32255E-03
  18  Prefactor     .96356        .17491E-01    .38901E-07    .24955E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.50107
  norm       = 10.2386
  norm       = 0
  Prefactor  = 5.72575
  norm       = 6.7494
  Prefactor  = 26.4785
  norm       = 16.8549
  Prefactor  = 1.97409
  norm       = 2.71835
  norm       = 2.25838
  Prefactor  = 0.0001
  norm       = 24.2268
  Prefactor  = 10.9873
  Prefactor  = 1.11022e-10
  norm       = 5.10771
  norm       = 0
  Normalizat = 1.51935
  Prefactor  = 0.963559
 **********
 **   18 **HESSE 
 **********

 FCN=   102497.4     FROM HESSE     STATUS=OK           294 CALLS     1551 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5011        4.8430        .64536E-03   -1.5676    
   2  norm          10.239        10.374        .31323E-03   -1.5644    
   3  norm           .0000        1.1333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7258        9.7220        .42396E-03   -1.5660    
   5  norm          6.7494        5.3055        .38557E-03   -1.5656    
   6  Prefactor     26.478        20.008        .19394E-03   -1.5605    
   7  norm          16.855        3.9145        .24377E-03   -1.5626    
   8  Prefactor     1.9741        .15196        .73254E-02   -1.5427    
   9  norm          2.7183        1.8449        .61752E-03   -1.5675    
  10  norm          2.2584        3.0541        .68306E-03   -1.5678    
  11  Prefactor     .10000E-03    .48348        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.227        15.492        .20396E-03   -1.5610    
  13  Prefactor     10.987        10.869        .30115E-03   -1.5642    
  14  Prefactor     .11102E-09    1.1175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1077        2.4862        .44427E-03   -1.5663    
  16  norm           .0000        .17788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.5193        .19795        .26941       -.77236    
  18  Prefactor     .96356        .17342E-01    .28481E-01   -.93954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76322e-06
Minuit parameter uncertainties:
  1  4.84302
  2  10.3745
  3  3.24721e-06
  4  9.72201
  5  5.30547
  6  20.0083
  7  3.91453
  8  0.151958
  9  1.8449
  10  3.05415
  11  2.57639e-05
  12  15.492
  13  10.8686
  14  2.35466e-05
  15  2.48617
  16  2.72304e-06
  17  0.198048
  18  0.0173421
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 102497.423048

Extracting fit parameters...

4FGL J2025.3+3341
   Spectrum: LogParabola
403         norm:  2.718e+00  1.845e+00  0.000e+00  1.000e+06 ( 1.000e-12)
404        alpha:  2.728e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
405         beta:  1.784e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
782    Prefactor:  9.636e-01  1.734e-02  0.000e+00  1.000e+01 ( 1.000e+00)
783        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
784        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
781   Normalization:  1.519e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 306.341 33.689
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 5.29e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.56e-05

TS (Fixed Index): 2.71
Ra Dec: 306.341 33.689
Photon Flux Upper Limit: 1.75179059527e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.17611159179e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36607692/likelihoodResults_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 102496.883247
delta logL = 0.539800218161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 102496.882022
delta logL = 0.541025804981

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4242       1.0000          .0000       .10000E+07
     2 'alpha     '    1.1440       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   102496.9     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      245 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 65.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4242        1.3212        .22852E-07   -.38599E-01
   2  alpha         1.1441        .25088        .10112E-04    .96519E-04
   3  Normalizat    1.5297        .19014       -.22305E-06    .16823E-03
   4  Prefactor     .96608        .16424E-01   -.64712E-08    .33545E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.42421
  alpha      = 1.14407
  Normalizat = 1.52968
  Prefactor  = 0.966075
 **********
 **   18 **HESSE 
 **********

 FCN=   102496.9     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4242        1.7440        .32684E-04   -1.5684    
   2  alpha         1.1441        .69672        .72242E-01   -.57326    
   3  Normalizat    1.5297        .18922        .12062E-02   -.76948    
   4  Prefactor     .96608        .16509E-01    .12572E-03   -.93869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00619e-07
Minuit parameter uncertainties:
  1  1.74397
  2  0.710173
  3  0.189307
  4  0.0165087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 102496.882022
delta logL = 0.541025809041

Extracting fit parameters...

4FGL J2025.3+3341
   Spectrum: LogParabola
403         norm:  1.424e+00  1.744e+00  0.000e+00  1.000e+06 ( 1.000e-12)
404        alpha:  1.144e+00  7.102e-01  0.000e+00  5.000e+00 ( 1.000e+00)
405         beta:  1.784e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
406           Eb:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
782    Prefactor:  9.661e-01  1.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
783        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
784        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
781   Normalization:  1.530e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 306.341 33.689
Photon Index (Free Index): 1.14 +/- 0.71
Photon Flux (Free Index): 6.89e-09 +/- 8.73e-09
Energy Flux (Free Index): 2.30e-05 +/- 2.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /lscratch/kocevski/36607692/cmap_HighResolution_724032001_724636801_4FGL_J2025.3+3341_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-05', comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='2.30e-05', photon_flux_error='5.29e-08', dlogl='5.41e-01', energy_flux='2.31e-05', photon_flux2='6.89e-09', job_status='DONE', time_completed='2023-12-19 02:04:12.085833', photon_index_error2='0.71', photon_index2='1.14', ts='2.71', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='2.42e-05', EG='1.52', time_epoch_completed='1702980252.09', return_code='0', job_id='36607692', GAL2='0.97', EG2='1.53', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='8.73e-09', ts2='3.71', photon_index='2.73' WHERE bin_id='802' AND source_name='4FGL J2025.3+3341' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 02:04:12 PST 2023

