/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 118 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 = 7406
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin480
RA = 354.904, Dec = 2.7102
tmin = 363744001, tmax = 364003201
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='71684', job_status='RUN', time_executed='2021-09-30 02:37:41.121002', time_epoch_executed='1632994661.12' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71684/ft1_4FGL_J2339.6+0242_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71684/ft1_4FGL_J2339.6+0242_daily_bin480.fits outfile=/scratch/kocevski/71684/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin480.fits ra=354.904 dec=2.7102 rad=12.0 tmin=363744001.0 tmax=364003201.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 3.27
user 3.06
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.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/71684/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/71684/ltcube_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.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/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits
.....................!
real 11.88
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/71684/ltcube_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.fits outfile=/scratch/kocevski/71684/expmap_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.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/71684/ltcube_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.fits
.....................!
real 190.98
user 185.76
sys 4.89

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

Setting source of interest to:
4FGL J2339.6+0242 @ 354.904 2.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.fits scfile=/scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits outfile=/scratch/kocevski/71684/cmap_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.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=354.904 yref=2.7102 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.fits scfile=/scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits outfile=/scratch/kocevski/71684/cmap_HighResolution_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.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=354.904 yref=2.7102 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71684/Model_4FGL_J2339.6+0242_daily_bin480.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/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.fits.....................!
real 71.33
user 70.03
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.fits', '/scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits', expMap='/scratch/kocevski/71684/expmap_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.fits', expCube='/scratch/kocevski/71684/ltcube_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/71684/Model_4FGL_J2339.6+0242_daily_bin480.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2339.6+0242'

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.280e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/71684/ft1_filtered_4FGL_J2339.6+0242_daily_bin480.fits
Spacecraft file(s): /scratch/kocevski/71684/ft2_4FGL_J2339.6+0242_daily_bin480.fits
Exposure map: /scratch/kocevski/71684/expmap_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.fits
Exposure cube: /scratch/kocevski/71684/ltcube_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/71684/Model_4FGL_J2339.6+0242_daily_bin480.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) = 7055.42771267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9636       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93820       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7241       1.0000         .10000E-03   10000.    
     6 'norm      '    3.7951       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.9180       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8248       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6366       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9258       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0746       1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.196       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98296       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83873       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7055.427     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3856 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9625        8.8600       -.90996E-08   -.77344E-04
   2  Prefactor     .10000E-03    33.355        .21915E-04** at limit **
   3  Prefactor     9.9175        14.346        .35357E-06   -.20398E-03
   4  Prefactor     .93687        3.7588       -.12026E-06   -.32700E-04
   5  norm          2.7245        2.0158       -.26809E-07   -.51523E-04
   6  norm          3.7951        2.6508        .61963E-08    .31093E-04
   7  Prefactor     .10000E-03    4.4454        .43750E-06** at limit **
   8  norm          6.9180        8.8427        .49727E-07   -.11453E-04
   9  Prefactor     .10000E-03    8.5083       -.16979E-05** at limit **
  10  Prefactor     6.8247        9.5867       -.35370E-07   -.22179E-04
  11  Prefactor     .10000E-03    3.9234       -.71473E-06** at limit **
  12  Prefactor     .10000E-03    6.2940       -.21524E-05** at limit **
  13  norm          1.6366        .83132        .23306E-07    .10515E-03
  14  norm          .10000E-03    3.1861        .19819E-07** at limit **
  15  Prefactor     .10000E-03    13.876        .26430E-05** at limit **
  16  Prefactor     .10000E-03    9.0290       -.36440E-05** at limit **
  17  norm          .10000E-03    3.7878        .14704E-06** at limit **
  18  Prefactor     2.1571        2.8656        .13180E-05   -.29227E-02
  19  Prefactor     .10000E-03    59.687       -.14579E-04** at limit **
  20  Prefactor     3.9259        5.8616       -.40479E-07   -.13351E-03
  21  Prefactor     .10000E-03    8.0504        .92443E-06** at limit **
  22  norm          .10000E-03    12.800        .50316E-05** at limit **
  23  norm          .10000E-03    7.3671        .48789E-05** at limit **
  24  Prefactor     .10000E-03    22.208       -.16007E-04** at limit **
  25  Prefactor     3.0746        2.6594        .18842E-07   -.45459E-04
  26  Prefactor     37.196        33.763        .36115E-06    .37955E-05
  27  Prefactor     .10000E-03    10.190       -.24822E-05** at limit **
  28  Prefactor     .10000E-03    3.9661       -.11261E-07** at limit **
  29  Normalizat    .98295        .17718       -.24812E-06   -.42592E-04
  30  Prefactor     .83875        .11939       -.30836E-06   -.60410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.96252
  Prefactor  = 0.000100002
  Prefactor  = 9.91746
  Prefactor  = 0.936865
  norm       = 2.72449
  norm       = 3.79511
  Prefactor  = 0.0001
  norm       = 6.91799
  Prefactor  = 0.0001
  Prefactor  = 6.8247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63661
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.15706
  Prefactor  = 0.000100001
  Prefactor  = 3.92593
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.07463
  Prefactor  = 37.1963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.982948
  Prefactor  = 0.838745
 **********
 **   18 **HESSE 
 **********

 FCN=   7055.427     FROM HESSE     STATUS=OK           586 CALLS     4442 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9625        8.8552        .16443E-03   -1.5220    
   2  Prefactor     .10000E-03    33.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9175        14.413        .63613E-03   -1.5078    
   4  Prefactor     .93687        15.379        .30630E-02   -1.5514    
   5  norm          2.7245        2.0053        .95334E-04   -1.5378    
   6  norm          3.7951        2.6552        .11141E-03   -1.5318    
   7  Prefactor     .10000E-03    4.4638        .17295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.9180        8.8456        .15253E-03   -1.5182    
   9  Prefactor     .10000E-03    8.5136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8247        9.5840        .15358E-03   -1.5185    
  11  Prefactor     .10000E-03    3.9258        .16249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6366        .82956        .52219E-04   -1.5452    
  14  norm          .10000E-03    3.2276        .14634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.8237        .15964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1571        6.5127        .14018E-02   -1.5414    
  19  Prefactor     .10000E-03    59.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9259        5.8381        .20361E-03   -1.5312    
  21  Prefactor     .10000E-03    8.0670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    12.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.3793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.0746        2.6589        .12077E-03   -1.5357    
  26  Prefactor     37.196        33.848        .65715E-04   -1.4487    
  27  Prefactor     .10000E-03    10.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.9715        .16336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98295        .20829        .26874E-03   -.93604    
  30  Prefactor     .83875        .13932        .20253E-03   -.98316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05494e-08
Minuit parameter uncertainties:
  1  8.85714
  2  0.000487465
  3  14.418
  4  7.59346
  5  2.00534
  6  2.65526
  7  3.82151e-06
  8  8.84729
  9  1.861e-05
  10  9.58618
  11  5.03647e-06
  12  1.25114e-05
  13  0.829564
  14  3.41208e-06
  15  9.43433e-07
  16  4.29187e-05
  17  4.13104e-07
  18  6.51486
  19  0.0004406
  20  5.83898
  21  9.25102e-06
  22  6.78808e-05
  23  5.15929e-05
  24  0.000281721
  25  2.65895
  26  33.8651
  27  2.74847e-05
  28  3.92723e-07
  29  0.208466
  30  0.139374
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.720e+01  3.387e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.387e-01  1.394e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.829e-01  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.50e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.13e-05

TS (Fixed Index): 1.54
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71684/likelihoodResults_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.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) = 7055.40615917
delta logL = 0.0206540711961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7055.39139433
delta logL = 0.035418911265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.570       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3421       1.0000          .0000       10.000    
     3 'Normalizat'    .99125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7055.391     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      234 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.573        46.402        .60053E-04   -.12358E-03
   2  Index         2.3417        .74993        .82452E-02   -.90908E-04
   3  Normalizat    .99137        .19906        .26772E-03    .21126E-03
   4  Prefactor     .83373        .13915        .20305E-03    .40490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.5734
  Index      = 2.34175
  Normalizat = 0.991367
  Prefactor  = 0.83373
 **********
 **   18 **HESSE 
 **********

 FCN=   7055.391     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.573        44.982        .12011E-04   -1.4372    
   2  Index         2.3417        .72668        .32981E-03   -.56055    
   3  Normalizat    .99137        .19906        .10709E-04   -.93320    
   4  Prefactor     .83373        .13914        .40610E-04   -.98497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64909e-10
Minuit parameter uncertainties:
  1  45.0165
  2  0.73029
  3  0.19921
  4  0.139196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71684': 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) = 7055.39139402
delta logL = 0.0354192204504

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.457e+01  4.502e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.342e+00  7.303e-01  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.337e-01  1.392e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.914e-01  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.34 +/- 0.73
Photon Flux (Free Index): 4.07e-08 +/- 4.15e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/71684/cmap_HighResolution_363744001_364003201_4FGL_J2339.6+0242_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', photon_flux='4.50e-08', energy_flux2='1.45e-05', photon_flux_error='4.09e-08', dlogl='3.54e-02', energy_flux='1.24e-05', photon_flux2='4.07e-08', job_status='DONE', time_completed='2021-09-30 02:51:41.977525', photon_index_error2='0.73', photon_index2='2.34', ts='1.54', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.54e-05', EG='0.98', time_epoch_completed='1632995501.98', return_code='0', job_id='71684', GAL2='0.83', EG2='0.99', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.15e-08', ts2='1.60', photon_index='2.55' WHERE bin_id='480' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 71684: <4FGL_J2339.6+0242_daily_bin480> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin480> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:33 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:35:35 2021
Terminated at Thu Sep 30 02:51:42 2021
Results reported at Thu Sep 30 02:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin480 354.904 2.7102 363744001 364003201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2339.6+0242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

