/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 117 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 = 7429
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin150
RA = 354.904, Dec = 2.7102
tmin = 278208001, tmax = 278467201
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='69831', job_status='RUN', time_executed='2021-09-30 02:32:37.039992', time_epoch_executed='1632994357.04' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69831/ft1_4FGL_J2339.6+0242_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69831/ft2_4FGL_J2339.6+0242_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69831/ft1_4FGL_J2339.6+0242_daily_bin150.fits outfile=/scratch/kocevski/69831/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin150.fits ra=354.904 dec=2.7102 rad=12.0 tmin=278208001.0 tmax=278467201.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.34
user 5.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69831/ft1_filtered_4FGL_J2339.6+0242_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/69831/ft2_4FGL_J2339.6+0242_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/69831/ltcube_278208001_278467201_4FGL_J2339.6+0242_daily_bin150.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/69831/ft2_4FGL_J2339.6+0242_daily_bin150.fits
.....................!
real 11.66
user 11.35
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69831/ft1_filtered_4FGL_J2339.6+0242_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/69831/ft2_4FGL_J2339.6+0242_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/69831/ltcube_278208001_278467201_4FGL_J2339.6+0242_daily_bin150.fits outfile=/scratch/kocevski/69831/expmap_278208001_278467201_4FGL_J2339.6+0242_daily_bin150.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/69831/ltcube_278208001_278467201_4FGL_J2339.6+0242_daily_bin150.fits
.....................!
real 190.17
user 185.10
sys 4.75

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/69831/ft1_filtered_4FGL_J2339.6+0242_daily_bin150.fits scfile=/scratch/kocevski/69831/ft2_4FGL_J2339.6+0242_daily_bin150.fits outfile=/scratch/kocevski/69831/cmap_278208001_278467201_4FGL_J2339.6+0242_daily_bin150.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69831/ft1_filtered_4FGL_J2339.6+0242_daily_bin150.fits scfile=/scratch/kocevski/69831/ft2_4FGL_J2339.6+0242_daily_bin150.fits outfile=/scratch/kocevski/69831/cmap_HighResolution_278208001_278467201_4FGL_J2339.6+0242_daily_bin150.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/69831/ft1_filtered_4FGL_J2339.6+0242_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/69831/ft2_4FGL_J2339.6+0242_daily_bin150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/69831/Model_4FGL_J2339.6+0242_daily_bin150.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/69831/ft1_filtered_4FGL_J2339.6+0242_daily_bin150.fits.....................!
real 68.47
user 67.18
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33024E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15573E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3736       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4553       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11292E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14934E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0872       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.114       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12424E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15265       1.0000         .10000E-03   10000.    
    14 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.234       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.768       1.0000         .10000E-03   10000.    
    17 'norm      '    17.121       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.270       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22486       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14929E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    70.884       1.0000         .10000E-03   10000.    
    22 'norm      '    .11813E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .15898E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29669E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0129       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19267E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.961       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0289       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0629       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=   6537.583     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     3411 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8251       -.55967E-07** at limit **
   2  Prefactor     .10000E-03    165.87       -.41449E-04** at limit **
   3  Prefactor     .10000E-03    3.9917       -.93092E-07** at limit **
   4  Prefactor     2.3692        8.5937       -.53274E-05   -.18913E-03
   5  norm          .10000E-03    1.1879       -.18473E-06** at limit **
   6  norm          4.4492        3.6419       -.21832E-06    .34063E-03
   7  Prefactor     .10055E-03    9.2303       -.21282E-05** at limit **
   8  norm          .10000E-03    5.1852       -.30203E-06** at limit **
   9  Prefactor     9.4263        42.565       -.72855E-04    .15022E-04
  10  Prefactor     7.6301        12.501       -.51362E-05    .15275E-04
  11  Prefactor     13.182        13.268        .31718E-05    .10795E-03
  12  Prefactor     .10000E-03    5.5067       -.20866E-06** at limit **
  13  norm          .15333        .57737       -.11005E-05   -.14774E-02
  14  norm          .10000E-03    2.6570       -.22349E-06** at limit **
  15  Prefactor     18.551        18.199        .10620E-04    .17352E-03
  16  Prefactor     46.558        44.601       -.15059E-04    .68057E-04
  17  norm          17.057        20.282       -.15823E-04    .60464E-04
  18  Prefactor     11.257        12.069        .33598E-05    .12774E-03
  19  Prefactor     .10000E-03    128.10       -.62064E-05** at limit **
  20  Prefactor     .10000E-03    4.9497        .62663E-07** at limit **
  21  Prefactor     70.657        40.943        .97887E-05    .29526E-03
  22  norm          .10000E-03    8.2048       -.29732E-06** at limit **
  23  norm          .10000E-03    10.751       -.85421E-07** at limit **
  24  Prefactor     .10001E-03    191.43        .47852E-04** at limit **
  25  Prefactor     3.0670        4.2374       -.73744E-06   -.97245E-04
  26  Prefactor     .10000E-03    20.877       -.94139E-07** at limit **
  27  Prefactor     1.1835        65.889       -.53882E-04   -.14416E-03
  28  Prefactor     16.301        22.250       -.13040E-04    .15655E-03
  29  Normalizat    1.0277        .22836        .99249E-05    .68643E-03
  30  Prefactor     1.0629        .14853        .30409E-05    .11913E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.36924
  norm       = 0.0001
  norm       = 4.4492
  Prefactor  = 0.00010055
  norm       = 0.0001
  Prefactor  = 9.42625
  Prefactor  = 7.63012
  Prefactor  = 13.1817
  Prefactor  = 0.0001
  norm       = 0.15333
  norm       = 0.0001
  Prefactor  = 18.5505
  Prefactor  = 46.5579
  norm       = 17.0574
  Prefactor  = 11.2567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.6571
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 3.06698
  Prefactor  = 0.0001
  Prefactor  = 1.18349
  Prefactor  = 16.301
  Normalizat = 1.02768
  Prefactor  = 1.06294
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.583     FROM HESSE     STATUS=OK           592 CALLS     4003 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    166.87        .18374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9936        .15776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3692        8.6072        .26593E-03   -1.5400    
   5  norm          .10000E-03    1.2061        .85992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4492        3.6421        .13513E-03   -1.5286    
   7  Prefactor     .10055E-03    11.648        .76203E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.1993        .17981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4263        42.690        .13296E-03   -1.5094    
  10  Prefactor     7.6301        12.495        .14593E-03   -1.5155    
  11  Prefactor     13.182        13.267        .11061E-03   -1.4982    
  12  Prefactor     .10000E-03    5.5257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15333        .83939        .11206E-02   -1.5630    
  14  norm          .10000E-03    2.6657        .12867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.551        18.099        .93795E-04   -1.4846    
  16  Prefactor     46.558        44.567        .58017E-04   -1.4342    
  17  norm          17.057        20.126        .96795E-04   -1.4882    
  18  Prefactor     11.257        11.987        .11934E-03   -1.5037    
  19  Prefactor     .10000E-03    128.14        .20181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9636        .17556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     70.657        40.924        .47681E-04   -1.4025    
  22  norm          .10000E-03    8.2103        .20649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.764        .20424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    192.28        .18341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.0670        4.2178        .18423E-03   -1.5358    
  26  Prefactor     .10000E-03    20.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1835        70.101        .45117E-02   -1.5490    
  28  Prefactor     16.301        22.309        .10025E-03   -1.4900    
  29  Normalizat    1.0277        .26426        .31578E-03   -.92109    
  30  Prefactor     1.0629        .17302        .21600E-03   -.90660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17646e-09
Minuit parameter uncertainties:
  1  5.31171e-06
  2  0.000378209
  3  1.08253e-06
  4  8.61167
  5  2.62433e-06
  6  3.64226
  7  0.00506132
  8  3.0779e-05
  9  40.1674
  10  12.499
  11  13.2699
  12  4.48572e-05
  13  0.717285
  14  2.06302e-05
  15  18.1042
  16  44.5994
  17  20.1338
  18  11.9895
  19  7.21826e-05
  20  3.49913e-06
  21  40.9406
  22  2.02388e-05
  23  4.82918e-06
  24  0.00254147
  25  4.2182
  26  3.93595e-06
  27  18.2386
  28  22.3204
  29  0.264603
  30  0.173108
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.936e-06  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:  1.063e+00  1.731e-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.028e+00  2.646e-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: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69831/likelihoodResults_278208001_278467201_4FGL_J2339.6+0242_daily_bin150.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) = 6537.58329503
delta logL = -0.000227802737754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6537.58306719
delta logL = 3.73729562853e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3485       1.0000          .0000       10.000    
     3 'Normalizat'    1.0277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0629       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=   6537.583     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.933        .90712E-02** at limit **
   2  Index         3.3435        6.1147        .50000        .22733E-05
   3  Normalizat    1.0277        .47345E-02    .71368E-01    .61449E-05
   4  Prefactor     1.0629        .33033E-02    .39205E-01   -.86697E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.34353
  Normalizat = 1.02768
  Prefactor  = 1.06293
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.583     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    184.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3435        5.6987        .50000       -.33767    
   3  Normalizat    1.0277        .16076E-01    .31577E-03   -.92109    
   4  Prefactor     1.0629        .11232E-01    .21600E-03   -.90660    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.97842e-08
Minuit parameter uncertainties:
  1  3.43469e-05
  2  546.536
  3  0.0160763
  4  0.011232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69831': 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) = 6537.58306719
delta logL = 4.07408151659e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.435e-05  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.344e+00  5.465e+02  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:  1.063e+00  1.123e-02  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.028e+00  1.608e-02  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/69831/cmap_HighResolution_278208001_278467201_4FGL_J2339.6+0242_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2021-09-30 02:45:37.518413', job_id='69831', GAL2='1.06', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632995137.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='150' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 69831: <4FGL_J2339.6+0242_daily_bin150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin150 354.904 2.7102 278208001 278467201 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 :                                   778.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

