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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin626
RA = 354.904, Dec = 2.7102
tmin = 401587201, tmax = 401846401
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='71933', job_status='RUN', time_executed='2021-09-30 02:38:21.070638', time_epoch_executed='1632994701.07' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71933

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71933/ft1_4FGL_J2339.6+0242_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71933/ft2_4FGL_J2339.6+0242_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71933/ft1_4FGL_J2339.6+0242_daily_bin626.fits outfile=/scratch/kocevski/71933/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin626.fits ra=354.904 dec=2.7102 rad=12.0 tmin=401587201.0 tmax=401846401.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.17
user 3.94
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71933/ft1_filtered_4FGL_J2339.6+0242_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/71933/ft2_4FGL_J2339.6+0242_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/71933/ltcube_401587201_401846401_4FGL_J2339.6+0242_daily_bin626.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/71933/ft2_4FGL_J2339.6+0242_daily_bin626.fits
.....................!
real 11.78
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71933/ft1_filtered_4FGL_J2339.6+0242_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/71933/ft2_4FGL_J2339.6+0242_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/71933/ltcube_401587201_401846401_4FGL_J2339.6+0242_daily_bin626.fits outfile=/scratch/kocevski/71933/expmap_401587201_401846401_4FGL_J2339.6+0242_daily_bin626.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/71933/ltcube_401587201_401846401_4FGL_J2339.6+0242_daily_bin626.fits
.....................!
real 191.26
user 186.03
sys 4.91

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/71933/ft1_filtered_4FGL_J2339.6+0242_daily_bin626.fits scfile=/scratch/kocevski/71933/ft2_4FGL_J2339.6+0242_daily_bin626.fits outfile=/scratch/kocevski/71933/cmap_401587201_401846401_4FGL_J2339.6+0242_daily_bin626.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71933/ft1_filtered_4FGL_J2339.6+0242_daily_bin626.fits scfile=/scratch/kocevski/71933/ft2_4FGL_J2339.6+0242_daily_bin626.fits outfile=/scratch/kocevski/71933/cmap_HighResolution_401587201_401846401_4FGL_J2339.6+0242_daily_bin626.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7966       1.0000         .10000E-03   10000.    
     6 'norm      '    5.9429       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.985       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.015       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2716       1.0000         .10000E-03   10000.    
    14 'norm      '    8.5615       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.659       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .57655E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    55.170       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8576       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .74677       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90093       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=   7031.891     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3278 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.415        10.483        .60135E-07    .70210E-05
   2  Prefactor     .10000E-03    17.159        .72098E-08** at limit **
   3  Prefactor     .10000E-03    9.6832        .36408E-07** at limit **
   4  Prefactor     .10000E-03    3.3324        .23719E-07** at limit **
   5  norm          2.7964        2.1913        .89863E-07    .33833E-04
   6  norm          5.9428        4.0515        .37365E-07    .34835E-05
   7  Prefactor     .10000E-03    9.4909        .49532E-07** at limit **
   8  norm          .10000E-03    4.1547        .89346E-07** at limit **
   9  Prefactor     24.986        25.110        .36862E-07   -.16964E-06
  10  Prefactor     .10000E-03    7.9662        .47808E-08** at limit **
  11  Prefactor     13.014        15.233        .16446E-06    .68722E-05
  12  Prefactor     .10000E-03    3.6064        .39284E-07** at limit **
  13  norm          1.2711        .74463       -.16272E-06    .59172E-04
  14  norm          8.5620        5.4263        .29159E-07    .37967E-04
  15  Prefactor     .10000E-03    4.0408       -.18299E-07** at limit **
  16  Prefactor     .10000E-03    24.579       -.57265E-07** at limit **
  17  norm          10.897        8.7269       -.23110E-06   -.81072E-05
  18  Prefactor     18.659        8.6975        .41671E-06    .58978E-04
  19  Prefactor     .10000E-03    1296.7       -.16292E-04** at limit **
  20  Prefactor     .10000E-03    11.130       -.14581E-05** at limit **
  21  Prefactor     .10000E-03    17.970       -.93372E-09** at limit **
  22  norm          .10000E-03    10.338        .67822E-08** at limit **
  23  norm          55.144        27.207       -.72356E-07    .46848E-04
  24  Prefactor     .10000E-03    27.790        .13436E-06** at limit **
  25  Prefactor     1.8532        4.4473       -.19517E-05   -.52982E-04
  26  Prefactor     .10000E-03    17.240       -.42156E-07** at limit **
  27  Prefactor     12.395        17.849        .14525E-06    .27740E-05
  28  Prefactor     .10000E-03    11.574        .16474E-06** at limit **
  29  Normalizat    .74682        .17320        .38903E-07    .44277E-05
  30  Prefactor     .90085        .11709       -.31364E-06    .16681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.79635
  norm       = 5.94282
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.9863
  Prefactor  = 0.0001
  Prefactor  = 13.0145
  Prefactor  = 0.0001
  norm       = 1.27107
  norm       = 8.562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8965
  Prefactor  = 18.6589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 55.144
  Prefactor  = 0.0001
  Prefactor  = 1.85323
  Prefactor  = 0.0001
  Prefactor  = 12.3952
  Prefactor  = 0.0001
  Normalizat = 0.746823
  Prefactor  = 0.900852
 **********
 **   18 **HESSE 
 **********

 FCN=   7031.891     FROM HESSE     STATUS=OK           582 CALLS     3860 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.415        10.493        .10201E-03   -1.4923    
   2  Prefactor     .10000E-03    17.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3721        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7964        2.1958        .10390E-03   -1.5374    
   6  norm          5.9428        4.0516        .13505E-03   -1.5220    
   7  Prefactor     .10000E-03    9.6199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.1938        .16693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.986        25.112        .80140E-04   -1.4708    
  10  Prefactor     .10000E-03    8.0068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.014        15.241        .11103E-03   -1.4986    
  12  Prefactor     .10000E-03    3.6200        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2711        .73426        .52214E-04   -1.5482    
  14  norm          8.5620        5.4206        .13700E-03   -1.5123    
  15  Prefactor     .10000E-03    4.0578        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.897        8.7154        .12137E-03   -1.5048    
  18  Prefactor     18.659        8.7055        .46361E-03   -1.4844    
  19  Prefactor     .10000E-03    1292.9        .18999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          55.144        26.545        .27002E-03   -1.4221    
  24  Prefactor     .10000E-03    27.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.8532        4.3718        .21978E-03   -1.5436    
  26  Prefactor     .10000E-03    17.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.395        17.857        .11378E-03   -1.5004    
  28  Prefactor     .10000E-03    11.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .74682        .19910        .29620E-03   -1.0207    
  30  Prefactor     .90085        .13556        .19466E-03   -.96111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65106e-11
Minuit parameter uncertainties:
  1  10.4941
  2  9.70803e-07
  3  1.29479e-06
  4  1.49447e-06
  5  2.1959
  6  4.05175
  7  2.0679e-06
  8  5.5664e-06
  9  25.1222
  10  3.04704e-07
  11  15.246
  12  6.25487e-06
  13  0.734263
  14  5.42089
  15  9.24558e-07
  16  3.02671e-05
  17  8.71639
  18  8.70609
  19  0.000268407
  20  0.000123504
  21  4.28098e-06
  22  3.96618e-07
  23  26.5505
  24  3.52343e-05
  25  4.37259
  26  1.42413e-05
  27  17.8647
  28  2.35662e-05
  29  0.199292
  30  0.135614
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.424e-05  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:  9.009e-01  1.356e-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:  7.468e-01  1.993e-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: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71933/likelihoodResults_401587201_401846401_4FGL_J2339.6+0242_daily_bin626.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) = 7031.89171478
delta logL = -0.00027561042134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7031.88824846
delta logL = 0.00319070962269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14207E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.5314       1.0000          .0000       10.000    
     3 'Normalizat'    .74421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90179       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=   7031.888     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      280 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13824E-01    .45186        .11422E-01    .30347E-02
   2  Index         5.5413        1.6119        .50000        .32054E-05
   3  Normalizat    .74348        .79273E-02    .67088E-01    .38530E-04
   4  Prefactor     .90226        .57120E-02    .45028E-01    .10064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0138243
  Index      = 5.54131
  Normalizat = 0.743477
  Prefactor  = 0.902264
 **********
 **   18 **HESSE 
 **********

 FCN=   7031.888     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13824E-01    89.255        .58827E-03   -1.5685    
   2  Index         5.5413        6.5196        .14451E-01    .10848    
   3  Normalizat    .74348        .84471E-01    .29684E-03   -1.0220    
   4  Prefactor     .90226        .57597E-01    .19452E-03   -.96062    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.21749e-06
Minuit parameter uncertainties:
  1  2.21686
  2  76.0172
  3  0.0844856
  4  0.0576005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71933': 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) = 7031.88823948
delta logL = 0.00319968990243

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.382e-02  2.217e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  5.541e+00  7.602e+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:  9.023e-01  5.760e-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:  7.435e-01  8.449e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/71933/cmap_HighResolution_401587201_401846401_4FGL_J2339.6+0242_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-30 02:51:56.493749', job_id='71933', GAL2='0.90', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1632995516.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.20e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='626' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 71933: <4FGL_J2339.6+0242_daily_bin626> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin626> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:58 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:36:00 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:36:00 2021
Terminated at Thu Sep 30 02:51:57 2021
Results reported at Thu Sep 30 02:51:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin626 354.904 2.7102 401587201 401846401 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 :                                   814.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

