aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 87 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7474
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2030.2-0620_daily_bin1700
RA = 307.564, Dec = -6.3432
tmin = 679968001, tmax = 680227201
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='83214', job_status='RUN', time_executed='2022-07-23 00:37:11.007059', time_epoch_executed='1658561831.01' WHERE source_name='4FGL J2030.2-0620' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83214

Creating custom pfile directory:
/scratch/kocevski/83214/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=679968001.0 && nMetStart<680227201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=679968001.0 && nMetStart<680227201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83214/ft1_4FGL_J2030.2-0620_daily_bin1700.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=679968001.0 && nMetStart<680227201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83214/ft1_4FGL_J2030.2-0620_daily_bin1700.fits outfile=/scratch/kocevski/83214/ft1_filteredMKT_4FGL_J2030.2-0620_daily_bin1700.fits ra=307.564 dec=-6.3432 rad=12.0 tmin=679968001.0 tmax=680227201.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.56
user 4.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/83214/ft1_filteredMKT_4FGL_J2030.2-0620_daily_bin1700.fits evtable="EVENTS" outfile="/scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 651

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/83214/ltcube_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.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 /scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits
.....................!
real 11.91
user 11.51
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/83214/ltcube_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.fits outfile=/scratch/kocevski/83214/expmap_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.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 /scratch/kocevski/83214/ltcube_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.fits
.....................!
real 190.66
user 185.94
sys 4.36

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
Added 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J2030.2-0620 @ 307.564 -6.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.fits scfile=/scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits outfile=/scratch/kocevski/83214/cmap_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.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=307.564 yref=-6.3432 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 1.20
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.fits scfile=/scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits outfile=/scratch/kocevski/83214/cmap_HighResolution_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.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=307.564 yref=-6.3432 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.90
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83214/Model_4FGL_J2030.2-0620_daily_bin1700.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.fits.....................!
real 77.58
user 72.49
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.fits', '/scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits', expMap='/scratch/kocevski/83214/expmap_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.fits', expCube='/scratch/kocevski/83214/ltcube_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83214/Model_4FGL_J2030.2-0620_daily_bin1700.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2030.2-0620'

4FGL J2030.2-0620
   Spectrum: PowerLaw
340    Prefactor:  2.050e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/83214/ft1_filtered_4FGL_J2030.2-0620_daily_bin1700.fits
Spacecraft file(s): /scratch/kocevski/83214/ft2_4FGL_J2030.2-0620_daily_bin1700.fits
Exposure map: /scratch/kocevski/83214/expmap_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.fits
Exposure cube: /scratch/kocevski/83214/ltcube_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83214/Model_4FGL_J2030.2-0620_daily_bin1700.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) = 7210.60491846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.029       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.921       1.0000         .10000E-03   10000.    
     9 'norm      '    17.300       1.0000         .10000E-03   10000.    
    10 'norm      '    24.979       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0091       1.0000         .10000E-03   10000.    
    12 'norm      '    .14773       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8162       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92390       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7210.602     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2306 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.439       -.66420E-06** at limit **
   2  Prefactor     6.9155        5.1916        .11215E-06   -.17246E-04
   3  Prefactor     47.020        51.398       -.42250E-06   -.54242E-04
   4  Prefactor     .10000E-03    10.153        .21318E-07** at limit **
   5  Prefactor     .10000E-03    21.422       -.24145E-06** at limit **
   6  norm          .10000E-03    7.3234        .53688E-06** at limit **
   7  Prefactor     .10000E-03    13.875        .16297E-06** at limit **
   8  Prefactor     13.973        224.94        .32292E-05    .33546E-04
   9  norm          17.301        15.705       -.88820E-07   -.36436E-04
  10  norm          24.979        35.907        .74162E-07   -.76839E-05
  11  Prefactor     6.0090        12.731        .45358E-05    .78501E-05
  12  norm          .14760        .96787        .47312E-06   -.65733E-03
  13  Prefactor     .10000E-03    36.493        .75559E-06** at limit **
  14  norm          .10000E-03    2.4984        .35869E-08** at limit **
  15  Prefactor     3.8169        5.5086        .46070E-06   -.45558E-04
  16  Prefactor     .10000E-03    5.0511       -.12860E-07** at limit **
  17  Prefactor     .10000E-03    24.123        .44135E-06** at limit **
  18  Prefactor     .10000E-03    44.391       -.63181E-06** at limit **
  19  Normalizat    .92375        .28267       -.69265E-06   -.76175E-04
  20  Prefactor     1.0068        .95134E-01   -.14559E-06   -.13204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.91547
  Prefactor  = 47.0202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9734
  norm       = 17.3007
  norm       = 24.9792
  Prefactor  = 6.00903
  norm       = 0.147597
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.81692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.923745
  Prefactor  = 1.00675
 **********
 **   18 **HESSE 
 **********

 FCN=   7210.602     FROM HESSE     STATUS=OK           287 CALLS     2593 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9155        5.1949        .15256E-03   -1.5182    
   3  Prefactor     47.020        51.593        .58469E-04   -1.4335    
   4  Prefactor     .10000E-03    10.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.3591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.973        223.84        .10735E-03   -1.4960    
   9  norm          17.301        15.684        .96294E-04   -1.4876    
  10  norm          24.979        35.898        .80150E-04   -1.4708    
  11  Prefactor     6.0090        12.831        .81899E-03   -1.5218    
  12  norm          .14760        1.8373        .15292E-02   -1.5631    
  13  Prefactor     .10000E-03    37.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5688        .26208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8169        5.5417        .20661E-03   -1.5317    
  16  Prefactor     .10000E-03    5.1886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92375        .32579        .45739E-03   -.95631    
  20  Prefactor     1.0068        .11172        .15067E-03   -.92505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86456e-10
Minuit parameter uncertainties:
  1  0.000127809
  2  5.1952
  3  51.6417
  4  8.19071e-06
  5  3.67604e-05
  6  6.19552e-06
  7  6.42329e-05
  8  112.354
  9  15.6875
  10  35.929
  11  12.8373
  12  1.0412
  13  0.000235402
  14  6.06289e-07
  15  5.54246
  16  4.60694e-06
  17  0.000173092
  18  0.000376746
  19  0.326492
  20  0.111746
Done.

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

Extracting fit parameters...

4FGL J2030.2-0620
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.354e-04  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.404e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.007e+00  1.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  9.237e-01  3.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 307.564 -6.343
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83214/likelihoodResults_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.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): 102
logL (Free Index) = 7210.60162775
delta logL = -0.000126664037452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7210.60148105
delta logL = 2.0035923626e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22214E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2634       1.0000          .0000       10.000    
     3 'Normalizat'    .92399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7209.627     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      264 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8222        9.2709        .10066E-01   -.19892E-03
   2  Index         1.0667        .44308        .24465       -.48930E-04
   3  Normalizat    .91097        .26922        .10375        .21259E-04
   4  Prefactor     1.0079        .92831E-01    .43864E-01   -.57681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.82224
  Index      = 1.0667
  Normalizat = 0.910967
  Prefactor  = 1.00792
 **********
 **   18 **HESSE 
 **********

 FCN=   7209.627     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8222        12.480        .27368E-03   -1.5149    
   2  Index         1.0667        .63141        .11889E-01   -.90538    
   3  Normalizat    .91097        .31020        .45982E-03   -.96076    
   4  Prefactor     1.0079        .10736        .15052E-03   -.92466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7576e-11
Minuit parameter uncertainties:
  1  12.4844
  2  0.635898
  3  0.310808
  4  0.107381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83214': No such file or directory
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) = 7209.62679393
delta logL = 0.97470715355

Extracting fit parameters...

4FGL J2030.2-0620
   Spectrum: PowerLaw
340    Prefactor:  7.822e+00  1.248e+01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  1.067e+00  6.359e-01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.008e+00  1.074e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  9.110e-01  3.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 307.564 -6.343
Photon Index (Free Index): 1.07 +/- 0.64
Photon Flux (Free Index): 6.86e-09 +/- 9.39e-09
Energy Flux (Free Index): 8.36e-05 +/- 1.29e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/83214/cmap_HighResolution_679968001_680227201_4FGL_J2030.2-0620_daily_bin1700.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/83214

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='8.36e-05', dlogl='9.75e-01', photon_flux2='6.86e-09', job_status='DONE', time_completed='2022-07-23 00:49:45.799660', photon_index_error2='0.64', photon_index2='1.07', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.29e-04', EG='0.92', time_epoch_completed='1658562585.8', return_code='0', job_id='83214', GAL2='1.01', EG2='0.91', return_code2='0', photon_flux_error2='9.39e-09', ts2='1.95', photon_index='2.40' WHERE bin_id='1700' AND source_name='4FGL J2030.2-0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:49:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 83214: <4FGL_J2030.2-0620_daily_bin1700> in cluster <slac> Done

Job <4FGL_J2030.2-0620_daily_bin1700> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:35:32 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:35:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:35:33 2022
Terminated at Sat Jul 23 00:49:46 2022
Results reported at Sat Jul 23 00:49:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2030.2-0620_daily_bin1700 307.564 -6.3432 679968001 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2030.2-0620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

The output (if any) is above this job summary.

