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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin550
RA = 354.904, Dec = 2.7102
tmin = 381888001, tmax = 382147201
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='71804', job_status='RUN', time_executed='2021-09-30 02:38:42.489932', time_epoch_executed='1632994722.49' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71804/ft1_4FGL_J2339.6+0242_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71804/ft2_4FGL_J2339.6+0242_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71804/ft1_4FGL_J2339.6+0242_daily_bin550.fits outfile=/scratch/kocevski/71804/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin550.fits ra=354.904 dec=2.7102 rad=12.0 tmin=381888001.0 tmax=382147201.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.79
user 4.58
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71804/ft1_filtered_4FGL_J2339.6+0242_daily_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/71804/ft2_4FGL_J2339.6+0242_daily_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/71804/ltcube_381888001_382147201_4FGL_J2339.6+0242_daily_bin550.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/71804/ft2_4FGL_J2339.6+0242_daily_bin550.fits
.....................!
real 11.59
user 11.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71804/ft1_filtered_4FGL_J2339.6+0242_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/71804/ft2_4FGL_J2339.6+0242_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/71804/ltcube_381888001_382147201_4FGL_J2339.6+0242_daily_bin550.fits outfile=/scratch/kocevski/71804/expmap_381888001_382147201_4FGL_J2339.6+0242_daily_bin550.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/71804/ltcube_381888001_382147201_4FGL_J2339.6+0242_daily_bin550.fits
.....................!
real 190.31
user 185.29
sys 4.70

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/71804/ft1_filtered_4FGL_J2339.6+0242_daily_bin550.fits scfile=/scratch/kocevski/71804/ft2_4FGL_J2339.6+0242_daily_bin550.fits outfile=/scratch/kocevski/71804/cmap_381888001_382147201_4FGL_J2339.6+0242_daily_bin550.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71804/ft1_filtered_4FGL_J2339.6+0242_daily_bin550.fits scfile=/scratch/kocevski/71804/ft2_4FGL_J2339.6+0242_daily_bin550.fits outfile=/scratch/kocevski/71804/cmap_HighResolution_381888001_382147201_4FGL_J2339.6+0242_daily_bin550.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.725       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .53025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5805       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.392       1.0000         .10000E-03   10000.    
    17 'norm      '    5.3947       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    194.13       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8766       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.502       1.0000         .10000E-03   10000.    
    22 'norm      '    10.071       1.0000         .10000E-03   10000.    
    23 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.108       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1007       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91820       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85757       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=   5181.576     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3885 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3559        .38249E-06** at limit **
   2  Prefactor     11.739        95.996       -.12493E-05    .18139E-04
   3  Prefactor     4.1569        21.682        .84273E-06   -.43748E-05
   4  Prefactor     .10000E-03    6.2252        .44616E-06** at limit **
   5  norm          .10000E-03    2.6956       -.51931E-07** at limit **
   6  norm          .10000E-03    1.7130       -.48578E-07** at limit **
   7  Prefactor     .10000E-03    5.0815        .33132E-07** at limit **
   8  norm          .53906        10.362        .39490E-06   -.76624E-04
   9  Prefactor     22.259        24.988       -.41183E-06    .23538E-04
  10  Prefactor     .10000E-03    3.2074       -.11675E-07** at limit **
  11  Prefactor     1.5303        19.255        .16427E-04    .13229E-04
  12  Prefactor     .10000E-03    4.4770       -.13032E-06** at limit **
  13  norm          1.5807        1.0712       -.51898E-07    .26299E-03
  14  norm          .10000E-03    2.9278       -.14150E-06** at limit **
  15  Prefactor     .10000E-03    3.1480        .53904E-07** at limit **
  16  Prefactor     19.404        43.543       -.19985E-05    .35553E-04
  17  norm          5.3954        7.4459        .14375E-05   -.30700E-05
  18  Prefactor     .10000E-03    2.3285       -.84786E-08** at limit **
  19  Prefactor     194.03        209.45        .59189E-05   -.35588E-04
  20  Prefactor     5.8755        14.086        .19106E-05    .10207E-04
  21  Prefactor     38.503        29.386       -.49786E-06   -.12408E-04
  22  norm          10.072        13.193        .63642E-07    .47514E-06
  23  norm          .10000E-03    23.248        .12579E-06** at limit **
  24  Prefactor     .10000E-03    33.612       -.17861E-06** at limit **
  25  Prefactor     .10000E-03    2.8503       -.35261E-06** at limit **
  26  Prefactor     31.112        43.298       -.61081E-06    .15573E-04
  27  Prefactor     5.0954        51.996        .31745E-05    .15959E-05
  28  Prefactor     .10000E-03    6.6358        .15183E-06** at limit **
  29  Normalizat    .91839        .21636       -.53300E-06    .11983E-04
  30  Prefactor     .85743        .13793       -.86997E-06    .30188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.7391
  Prefactor  = 4.15693
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.539064
  Prefactor  = 22.2592
  Prefactor  = 0.0001
  Prefactor  = 1.53034
  Prefactor  = 0.0001
  norm       = 1.58065
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4036
  norm       = 5.39542
  Prefactor  = 0.0001
  Prefactor  = 194.026
  Prefactor  = 5.8755
  Prefactor  = 38.5033
  norm       = 10.0723
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1122
  Prefactor  = 5.09541
  Prefactor  = 0.0001
  Normalizat = 0.918391
  Prefactor  = 0.857431
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.576     FROM HESSE     STATUS=OK           588 CALLS     4473 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3635        .16272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.739        96.131        .11699E-03   -1.5023    
   3  Prefactor     4.1569        21.838        .19764E-03   -1.5300    
   4  Prefactor     .10000E-03    6.2781        .17530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7658        .22945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7223        .92005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0959        .15847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .53906        58.593        .44174E-02   -1.5561    
   9  Prefactor     22.259        24.997        .84908E-04   -1.4764    
  10  Prefactor     .10000E-03    3.2087        .12591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5303        19.235        .17291E-02   -1.5461    
  12  Prefactor     .10000E-03    4.4915        .14875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5807        1.0637        .56868E-04   -1.5457    
  14  norm          .10000E-03    2.9622        .12027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1529        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.404        43.523        .90952E-04   -1.4827    
  17  norm          5.3954        7.4307        .86508E-03   -1.5243    
  18  Prefactor     .10000E-03    2.3332        .10721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     194.03        209.62        .14496E-03   -1.2913    
  20  Prefactor     5.8755        14.023        .82830E-03   -1.5223    
  21  Prefactor     38.503        29.335        .64595E-04   -1.4466    
  22  norm          10.072        13.194        .12627E-03   -1.5073    
  23  norm          .10000E-03    23.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    33.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.8861        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     31.112        43.244        .71839E-04   -1.4592    
  27  Prefactor     5.0954        51.876        .17802E-03   -1.5256    
  28  Prefactor     .10000E-03    6.6418        .18109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91839        .24920        .27765E-03   -.95817    
  30  Prefactor     .85743        .15941        .19946E-03   -.97645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64995e-08
Minuit parameter uncertainties:
  1  5.39762e-05
  2  67.3337
  3  19.0664
  4  9.78513e-05
  5  6.46119e-06
  6  3.48107e-06
  7  1.10471e-05
  8  11.2504
  9  25.0092
  10  5.78381e-08
  11  10.855
  12  8.09373e-06
  13  1.06372
  14  1.51822e-05
  15  1.55244e-06
  16  43.594
  17  7.43199
  18  1.50159e-06
  19  210.437
  20  14.0307
  21  29.3457
  22  13.1977
  23  1.17462e-05
  24  4.16563e-05
  25  3.3671e-05
  26  43.2872
  27  32.5528
  28  2.25821e-07
  29  0.249512
  30  0.159497
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.184e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71804/likelihoodResults_381888001_382147201_4FGL_J2339.6+0242_daily_bin550.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) = 5181.23329331
delta logL = 0.342854759655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5181.22041813
delta logL = 0.355729941518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.651       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8525       1.0000          .0000       10.000    
     3 'Normalizat'    .94036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84739       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=   5181.220     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      245 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.665        51.088        .64470E-04   -.16223E-05
   2  Index         1.8525        .76338        .94535E-02   -.12867E-03
   3  Normalizat    .94029        .22297        .27475E-03    .88427E-04
   4  Prefactor     .84742        .15572        .20042E-03    .14578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.6648
  Index      = 1.85255
  Normalizat = 0.940293
  Prefactor  = 0.847416
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.220     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.665        52.005        .12894E-04   -1.4464    
   2  Index         1.8525        .77707        .18907E-02   -.68090    
   3  Normalizat    .94029        .22318        .10990E-04   -.95058    
   4  Prefactor     .84742        .15586        .80167E-05   -.98004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7392e-11
Minuit parameter uncertainties:
  1  52.0657
  2  0.782342
  3  0.223401
  4  0.155939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71804': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5181.22041805
delta logL = 0.355730021947

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.403e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.85 +/- 0.78
Photon Flux (Free Index): 2.03e-08 +/- 3.63e-08
Energy Flux (Free Index): 2.08e-05 +/- 3.11e-05

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/71804/cmap_HighResolution_381888001_382147201_4FGL_J2339.6+0242_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='2.08e-05', dlogl='3.56e-01', photon_flux2='2.03e-08', job_status='DONE', time_completed='2021-09-30 02:50:12.812723', photon_index_error2='0.78', photon_index2='1.85', ts='0.74', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='3.11e-05', EG='0.92', time_epoch_completed='1632995412.81', return_code='0', job_id='71804', GAL2='0.85', EG2='0.94', return_code2='0', photon_flux_error2='3.63e-08', ts2='1.45', photon_index='2.55' WHERE bin_id='550' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 71804: <4FGL_J2339.6+0242_daily_bin550> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin550 354.904 2.7102 381888001 382147201 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 :                                   689.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

