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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin970
RA = 354.904, Dec = 2.7102
tmin = 490752001, tmax = 491011201
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='74533', job_status='RUN', time_executed='2021-09-30 02:47:49.152868', time_epoch_executed='1632995269.15' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74533/ft1_4FGL_J2339.6+0242_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74533/ft2_4FGL_J2339.6+0242_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74533/ft1_4FGL_J2339.6+0242_daily_bin970.fits outfile=/scratch/kocevski/74533/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin970.fits ra=354.904 dec=2.7102 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.78
user 5.48
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74533/ft1_filtered_4FGL_J2339.6+0242_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/74533/ft2_4FGL_J2339.6+0242_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/74533/ltcube_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.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/74533/ft2_4FGL_J2339.6+0242_daily_bin970.fits
.....................!
real 12.38
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74533/ft1_filtered_4FGL_J2339.6+0242_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/74533/ft2_4FGL_J2339.6+0242_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/74533/ltcube_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.fits outfile=/scratch/kocevski/74533/expmap_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.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/74533/ltcube_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.fits
.....................!
real 191.88
user 186.77
sys 4.78

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/74533/ft1_filtered_4FGL_J2339.6+0242_daily_bin970.fits scfile=/scratch/kocevski/74533/ft2_4FGL_J2339.6+0242_daily_bin970.fits outfile=/scratch/kocevski/74533/cmap_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.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/74533/ft1_filtered_4FGL_J2339.6+0242_daily_bin970.fits scfile=/scratch/kocevski/74533/ft2_4FGL_J2339.6+0242_daily_bin970.fits outfile=/scratch/kocevski/74533/cmap_HighResolution_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74533/ft1_filtered_4FGL_J2339.6+0242_daily_bin970.fits', '/scratch/kocevski/74533/ft2_4FGL_J2339.6+0242_daily_bin970.fits', expMap='/scratch/kocevski/74533/expmap_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.fits', expCube='/scratch/kocevski/74533/ltcube_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74533/Model_4FGL_J2339.6+0242_daily_bin970.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/74533/ft1_filtered_4FGL_J2339.6+0242_daily_bin970.fits
Spacecraft file(s): /scratch/kocevski/74533/ft2_4FGL_J2339.6+0242_daily_bin970.fits
Exposure map: /scratch/kocevski/74533/expmap_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.fits
Exposure cube: /scratch/kocevski/74533/ltcube_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74533/Model_4FGL_J2339.6+0242_daily_bin970.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) = 2471.55515302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10384E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    39.734       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.323       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.183       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.973       1.0000         .10000E-03   10000.    
    13 'norm      '    .11943E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9807       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0592       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    23.212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.340       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    50.697       1.0000         .10000E-03   10000.    
    23 'norm      '    .22516       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12971E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2985       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7267       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70885       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=   2471.531     FROM MIGRAD    STATUS=CONVERGED   1391 CALLS     4551 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.296        .18142E-02** at limit **
   2  Prefactor     .10000E-03    77.114        .18142E-02** at limit **
   3  Prefactor     62.047        39.387        .50907E-04    .21481E-03
   4  Prefactor     .10000E-03    12.879        .17375E-02** at limit **
   5  norm          .10000E-03    12.429        .23890E-02** at limit **
   6  norm          .10000E-03    7.0784        .12857E-02** at limit **
   7  Prefactor     .10000E-03    45.362        .18142E-02** at limit **
   8  norm          39.749        32.538        .63588E-04    .22044E-04
   9  Prefactor     .10000E-03    22.489        .18142E-02** at limit **
  10  Prefactor     20.321        23.059        .88847E-04    .55022E-05
  11  Prefactor     29.181        34.430        .74164E-04    .24757E-04
  12  Prefactor     15.985        57.033        .10021E-03    .11605E-03
  13  norm          .10031E-03    21.616        .11257E-02** at limit **
  14  norm          1.9906        132.92        .29450E-03    .82128E-04
  15  Prefactor     6.0608        16.339        .81555E-03    .10495E-03
  16  Prefactor     .10000E-03    45.780        .18142E-02** at limit **
  17  norm          23.208        25.628        .83140E-04    .23793E-04
  18  Prefactor     10.348        19.702        .12460E-03    .71166E-05
  19  Prefactor     .10000E-03    146.59        .18142E-02** at limit **
  20  Prefactor     .10000E-03    13.191        .17598E-02** at limit **
  21  Prefactor     .10000E-03    20.538        .18142E-02** at limit **
  22  norm          50.699        40.925        .56324E-04   -.54296E-05
  23  norm          .15268        53.811        .10262        .95006E-04
  24  Prefactor     .10001E-03    116.80        .18142E-02** at limit **
  25  Prefactor     .10000E-03    3.3727        .89020E-03** at limit **
  26  Prefactor     .10001E-03    405.02        .18142E-02** at limit **
  27  Prefactor     1.2898        292.39        .38794E-03   -.27107E-05
  28  Prefactor     .10000E-03    16.066        .18142E-02** at limit **
  29  Normalizat    1.7268        .46153        .27365E-03    .45644E-03
  30  Prefactor     .70891        .29610        .27183E-03    .32848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.0474
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 39.749
  Prefactor  = 0.0001
  Prefactor  = 20.3209
  Prefactor  = 29.1807
  Prefactor  = 15.9845
  norm       = 0.000100313
  norm       = 1.99064
  Prefactor  = 6.06077
  Prefactor  = 0.0001
  norm       = 23.2079
  Prefactor  = 10.3476
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.6994
  norm       = 0.152676
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1.2898
  Prefactor  = 0.0001
  Normalizat = 1.72679
  Prefactor  = 0.70891
 **********
 **   18 **HESSE 
 **********

 FCN=   2471.531     FROM HESSE     STATUS=OK           566 CALLS     5117 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    77.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.047        39.370        .10181E-04   -1.4131    
   4  Prefactor     .10000E-03    12.882        .34751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.468        .47780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.0796        .25715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          39.749        32.538        .12718E-04   -1.4446    
   9  Prefactor     .10000E-03    22.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.321        23.060        .35539E-05   -1.4806    
  11  Prefactor     29.181        34.434        .29666E-05   -1.4627    
  12  Prefactor     15.985        56.547        .40086E-05   -1.4908    
  13  norm          .10031E-03    22.117        .45027E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9906        130.40        .11780E-04   -1.5426    
  15  Prefactor     6.0608        16.331        .32622E-04   -1.5216    
  16  Prefactor     .10000E-03    45.781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          23.208        25.617        .33256E-05   -1.4744    
  18  Prefactor     10.348        19.700        .49842E-05   -1.5065    
  19  Prefactor     .10000E-03    146.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.192        .35197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          50.699        40.925        .11265E-04   -1.4283    
  23  norm          .15268        51.193        .10641       -1.5630    
  24  Prefactor     .10001E-03    116.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.3727        .17804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    405.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.2898        291.83        .15518E-04   -1.5481    
  28  Prefactor     .10000E-03    16.067        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.7268        .46166        .54731E-04   -.71590    
  30  Prefactor     .70891        .29626        .54366E-04   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53842e-08
Minuit parameter uncertainties:
  1  7.01905e-05
  2  0.000318447
  3  39.3864
  4  5.97802e-05
  5  0.000330854
  6  4.22105e-05
  7  0.000307577
  8  32.5521
  9  4.93734e-06
  10  23.0699
  11  34.4573
  12  56.7379
  13  0.00526033
  14  32.2953
  15  16.3425
  16  2.52029e-05
  17  25.6287
  18  19.7123
  19  0.00125249
  20  8.79428e-06
  21  7.28361e-05
  22  40.9472
  23  5.59437
  24  0.00182709
  25  4.56879e-06
  26  0.0033086
  27  38.9945
  28  6.58648e-05
  29  0.462821
  30  0.296923
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.309e-03  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:  7.089e-01  2.969e-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:  1.727e+00  4.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74533/likelihoodResults_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.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) = 2471.53110597
delta logL = -1.16145270113e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2471.53110597
delta logL = -1.16128244372e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5490       1.0000          .0000       10.000    
     3 'Normalizat'    1.7268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70891       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.

 FCN=   2471.531     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      223 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10390E-03    5.8584        .13768    ** at limit **
   2  Index         2.3779        8.1495        .50000        .22324E-05
   3  Normalizat    1.7268        .20927E-02    .61881E-01    .55698E-04
   4  Prefactor     .70891        .14156E-02    .61453E-01   -.19063E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103896
  Index      = 2.37793
  Normalizat = 1.72678
  Prefactor  = 0.708911
 **********
 **   18 **HESSE 
 **********

 FCN=   2471.531     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      264 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10390E-03    5.0677        .14732       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3779        7.4888        .50000       -.55203    
   3  Normalizat    1.7268        .20471E-02    .27365E-03   -.71590    
   4  Prefactor     .70891        .13835E-02    .27183E-03   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19552e-09
Minuit parameter uncertainties:
  1  0.00888776
  2  66.612
  3  0.00204708
  4  0.00138346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74533': 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): 102
logL (Free Index) = 2471.53109424
delta logL = 1.17938725452e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.039e-04  8.888e-03  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.378e+00  6.661e+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:  7.089e-01  1.383e-03  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:  1.727e+00  2.047e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/74533/cmap_HighResolution_490752001_491011201_4FGL_J2339.6+0242_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', job_status='DONE', photon_flux_upper_limit='2.11e-07', time_completed='2021-09-30 02:59:14.823669', job_id='74533', GAL2='0.71', fit_tolerance='1e-08', EG2='1.73', EG='1.73', time_epoch_completed='1632995954.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='970' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 74533: <4FGL_J2339.6+0242_daily_bin970> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin970> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:45:14 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:45:16 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:45:16 2021
Terminated at Thu Sep 30 02:59:15 2021
Results reported at Thu Sep 30 02:59:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin970 354.904 2.7102 490752001 491011201 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 :                                   538.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

