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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin746
RA = 354.904, Dec = 2.7102
tmin = 432691201, tmax = 432950401
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='73116', job_status='RUN', time_executed='2021-09-30 02:43:01.020762', time_epoch_executed='1632994981.02' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73116/ft1_4FGL_J2339.6+0242_daily_bin746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73116/ft2_4FGL_J2339.6+0242_daily_bin746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73116/ft1_4FGL_J2339.6+0242_daily_bin746.fits outfile=/scratch/kocevski/73116/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin746.fits ra=354.904 dec=2.7102 rad=12.0 tmin=432691201.0 tmax=432950401.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.98
user 3.71
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73116/ft2_4FGL_J2339.6+0242_daily_bin746.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/73116/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin746.fits evtable="EVENTS" outfile="/scratch/kocevski/73116/ft1_filtered_4FGL_J2339.6+0242_daily_bin746.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.40
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73116/ft1_filtered_4FGL_J2339.6+0242_daily_bin746.fits" evtable="EVENTS" scfile=/scratch/kocevski/73116/ft2_4FGL_J2339.6+0242_daily_bin746.fits sctable="SC_DATA" outfile=/scratch/kocevski/73116/ltcube_432691201_432950401_4FGL_J2339.6+0242_daily_bin746.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/73116/ft2_4FGL_J2339.6+0242_daily_bin746.fits
.....................!
real 8.92
user 8.63
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73116/ft1_filtered_4FGL_J2339.6+0242_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/73116/ft2_4FGL_J2339.6+0242_daily_bin746.fits sctable="SC_DATA" expcube=/scratch/kocevski/73116/ltcube_432691201_432950401_4FGL_J2339.6+0242_daily_bin746.fits outfile=/scratch/kocevski/73116/expmap_432691201_432950401_4FGL_J2339.6+0242_daily_bin746.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/73116/ltcube_432691201_432950401_4FGL_J2339.6+0242_daily_bin746.fits
.....................!
real 140.78
user 136.79
sys 3.77

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/73116/ft1_filtered_4FGL_J2339.6+0242_daily_bin746.fits scfile=/scratch/kocevski/73116/ft2_4FGL_J2339.6+0242_daily_bin746.fits outfile=/scratch/kocevski/73116/cmap_432691201_432950401_4FGL_J2339.6+0242_daily_bin746.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.43
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73116/ft1_filtered_4FGL_J2339.6+0242_daily_bin746.fits scfile=/scratch/kocevski/73116/ft2_4FGL_J2339.6+0242_daily_bin746.fits outfile=/scratch/kocevski/73116/cmap_HighResolution_432691201_432950401_4FGL_J2339.6+0242_daily_bin746.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.44
user 0.28
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.9678       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2422       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3647       1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9561       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.922       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1684       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44784E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    214.42       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.350       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .55520       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0619       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=   2970.607     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3925 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.530       -.11228E-05** at limit **
   2  Prefactor     68.872        73.352       -.26877E-06   -.21909E-04
   3  Prefactor     .10000E-03    7.0921       -.69447E-08** at limit **
   4  Prefactor     .10000E-03    3.1206       -.64832E-07** at limit **
   5  norm          8.9668        4.2569        .74867E-07   -.21257E-04
   6  norm          2.2395        7.3543        .11715E-05    .31417E-04
   7  Prefactor     4.3629        15.999        .30543E-06   -.38414E-06
   8  norm          .10000E-03    13.071       -.10584E-06** at limit **
   9  Prefactor     9.9315        69.706        .73493E-06   -.51078E-05
  10  Prefactor     45.933        33.867        .69303E-07   -.98475E-05
  11  Prefactor     26.773        24.081        .17537E-07   -.50198E-04
  12  Prefactor     .10000E-03    5.2027       -.98818E-07** at limit **
  13  norm          .10000E-03    .79249        .80645E-06** at limit **
  14  norm          1.3771        10.938        .18596E-05   -.87925E-04
  15  Prefactor     8.1693        11.735        .66801E-07   -.22039E-04
  16  Prefactor     .10000E-03    31.004        .12985E-06** at limit **
  17  norm          .10000E-03    4.9411        .88690E-07** at limit **
  18  Prefactor     .10009E-03    10.144        .33682E-06** at limit **
  19  Prefactor     214.59        297.57       -.30828E-05   -.28172E-04
  20  Prefactor     .10000E-03    7.3302        .67513E-06** at limit **
  21  Prefactor     18.349        29.752        .25748E-06    .17417E-04
  22  norm          .10000E-03    14.341       -.10190E-07** at limit **
  23  norm          .10000E-03    13.237        .40881E-06** at limit **
  24  Prefactor     .10000E-03    43.421       -.19650E-06** at limit **
  25  Prefactor     .10000E-03    4.0898        .10831E-05** at limit **
  26  Prefactor     .10000E-03    50.862        .33282E-06** at limit **
  27  Prefactor     .10000E-03    13.139        .35819E-07** at limit **
  28  Prefactor     .10000E-03    31.122        .11917E-06** at limit **
  29  Normalizat    .55544        .28641       -.10278E-05   -.14957E-03
  30  Prefactor     1.0620        .19515       -.62191E-06   -.24154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 68.8715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.96678
  norm       = 2.23945
  Prefactor  = 4.36288
  norm       = 0.0001
  Prefactor  = 9.93155
  Prefactor  = 45.9334
  Prefactor  = 26.7726
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.37706
  Prefactor  = 8.16932
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 214.587
  Prefactor  = 0.0001
  Prefactor  = 18.3487
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.555445
  Prefactor  = 1.06197
 **********
 **   18 **HESSE 
 **********

 FCN=   2970.607     FROM HESSE     STATUS=OK           586 CALLS     4511 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     68.872        73.334        .48361E-04   -1.4046    
   3  Prefactor     .10000E-03    7.0948        .14175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1223        .94020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.9668        4.2652        .73663E-04   -1.5109    
   6  norm          2.2395        7.3560        .25001E-03   -1.5409    
   7  Prefactor     4.3629        15.915        .19279E-03   -1.5290    
   8  norm          .10000E-03    13.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9315        69.732        .12699E-03   -1.5078    
  10  Prefactor     45.933        33.845        .59166E-04   -1.4351    
  11  Prefactor     26.773        24.080        .77429E-04   -1.4673    
  12  Prefactor     .10000E-03    5.2056        .12141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .85490        .86361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3771        10.408        .33547E-03   -1.5473    
  15  Prefactor     8.1693        11.729        .14028E-03   -1.5136    
  16  Prefactor     .10000E-03    31.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9454        .11829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    30.894        .47850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     214.59        299.60        .13807E-03   -1.2768    
  20  Prefactor     .10000E-03    7.3616        .14431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.349        29.730        .93499E-04   -1.4851    
  22  norm          .10000E-03    14.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    13.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    43.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.1789        .10829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    51.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    31.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .55544        .32505        .35179E-03   -1.0991    
  30  Prefactor     1.0620        .22216        .18502E-03   -.90692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65626e-10
Minuit parameter uncertainties:
  1  7.12344e-05
  2  73.4301
  3  1.17079e-07
  4  3.63908e-07
  5  4.26533
  6  7.35892
  7  15.9305
  8  2.63528e-06
  9  52.7201
  10  33.8596
  11  24.0883
  12  7.57998e-06
  13  1.45654e-05
  14  7.57302
  15  11.7325
  16  6.31563e-05
  17  2.80249e-06
  18  0.00328364
  19  301.774
  20  1.47723e-05
  21  29.7535
  22  4.39887e-06
  23  1.76586e-05
  24  0.000124617
  25  1.89817e-05
  26  0.000122659
  27  5.1807e-06
  28  0.000110739
  29  0.32617
  30  0.222357
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.227e-04  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.062e+00  2.224e-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:  5.554e-01  3.262e-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: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73116/likelihoodResults_432691201_432950401_4FGL_J2339.6+0242_daily_bin746.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) = 2970.60755771
delta logL = -9.32614047997e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2970.60746552
delta logL = -1.06653124021e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0788       1.0000          .0000       10.000    
     3 'Normalizat'    .55544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0620       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=   2970.607     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      283 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12692E-03    37.256        .18142E-01** at limit **
   2  Index         2.7206        5.2701        .50000        .92827E-05
   3  Normalizat    .55545        .64174E-02    .35179E-03    .24302E-04
   4  Prefactor     1.0620        .45930E-02    .18502E-03    .77730E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000126917
  Index      = 2.72055
  Normalizat = 0.555447
  Prefactor  = 1.06196
 **********
 **   18 **HESSE 
 **********

 FCN=   2970.607     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12692E-03    358.59        .33893E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7206        5.4430        .50000       -.47337    
   3  Normalizat    .55545        .20051E-01    .14072E-04   -1.0991    
   4  Prefactor     1.0620        .14351E-01    .74007E-05   -.90692    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86702e-07
Minuit parameter uncertainties:
  1  0.197687
  2  951.629
  3  0.020051
  4  0.0143507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73116': 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) = 2970.60746502
delta logL = -5.6646831581e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.269e-04  1.977e-01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.721e+00  9.516e+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.062e+00  1.435e-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:  5.554e-01  2.005e-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/73116/cmap_HighResolution_432691201_432950401_4FGL_J2339.6+0242_daily_bin746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-30 02:52:17.540672', job_id='73116', GAL2='1.06', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1632995537.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-5.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='746' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 73116: <4FGL_J2339.6+0242_daily_bin746> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin746> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:25 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:26 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:40:26 2021
Terminated at Thu Sep 30 02:52:18 2021
Results reported at Thu Sep 30 02:52:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin746 354.904 2.7102 432691201 432950401 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 :                                   402.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

