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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1645
RA = 354.904, Dec = 2.7102
tmin = 665712001, tmax = 665971201
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='630752', job_status='RUN', time_executed='2022-02-08 00:40:47.766488', time_epoch_executed='1644309647.77' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630752/ft1_4FGL_J2339.6+0242_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630752/ft2_4FGL_J2339.6+0242_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630752/ft1_4FGL_J2339.6+0242_daily_bin1645.fits outfile=/scratch/kocevski/630752/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1645.fits ra=354.904 dec=2.7102 rad=12.0 tmin=665712001.0 tmax=665971201.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.63
user 3.43
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630752/ft1_filtered_4FGL_J2339.6+0242_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/630752/ft2_4FGL_J2339.6+0242_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/630752/ltcube_665712001_665971201_4FGL_J2339.6+0242_daily_bin1645.fits outfile=/scratch/kocevski/630752/expmap_665712001_665971201_4FGL_J2339.6+0242_daily_bin1645.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/630752/ltcube_665712001_665971201_4FGL_J2339.6+0242_daily_bin1645.fits
.....................!
real 189.85
user 184.38
sys 5.17

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/630752/ft1_filtered_4FGL_J2339.6+0242_daily_bin1645.fits scfile=/scratch/kocevski/630752/ft2_4FGL_J2339.6+0242_daily_bin1645.fits outfile=/scratch/kocevski/630752/cmap_665712001_665971201_4FGL_J2339.6+0242_daily_bin1645.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.75
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630752/ft1_filtered_4FGL_J2339.6+0242_daily_bin1645.fits scfile=/scratch/kocevski/630752/ft2_4FGL_J2339.6+0242_daily_bin1645.fits outfile=/scratch/kocevski/630752/cmap_HighResolution_665712001_665971201_4FGL_J2339.6+0242_daily_bin1645.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2370       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.738       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0459       1.0000         .10000E-03   10000.    
     6 'norm      '    .41932       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.234       1.0000         .10000E-03   10000.    
     8 'norm      '    48.031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4751       1.0000         .10000E-03   10000.    
    14 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4443       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.803       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.549       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    23.888       1.0000         .10000E-03   10000.    
    23 'norm      '    40.622       1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.967       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .95569E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.696       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73717       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=   6191.457     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     4765 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2366        8.3575       -.32901E-07   -.26977E-04
   2  Prefactor     .10000E-03    20.046        .49567E-08** at limit **
   3  Prefactor     67.527        26.585       -.16679E-07   -.23760E-04
   4  Prefactor     17.736        9.2465       -.20152E-07   -.49917E-04
   5  norm          2.0452        3.4170       -.23521E-07   -.60860E-05
   6  norm          .41819        6.3582       -.42433E-06    .11411E-03
   7  Prefactor     11.231        15.562        .20326E-06    .12204E-03
   8  norm          48.029        19.206        .32182E-07   -.29547E-04
   9  Prefactor     .10000E-03    18.529       -.19670E-07** at limit **
  10  Prefactor     5.8664        13.681        .19834E-07   -.98019E-05
  11  Prefactor     .10000E-03    13.319        .89013E-07** at limit **
  12  Prefactor     .10000E-03    4.2451       -.41958E-07** at limit **
  13  norm          1.4742        1.3328       -.22403E-07   -.94463E-03
  14  norm          .10000E-03    4.0589       -.59246E-07** at limit **
  15  Prefactor     3.4422        9.2652       -.19553E-05    .26869E-04
  16  Prefactor     .10000E-03    27.748        .23877E-06** at limit **
  17  norm          .10002E-03    36.452       -.95869E-05** at limit **
  18  Prefactor     .10000E-03    6.7048       -.18869E-06** at limit **
  19  Prefactor     63.174        268.35       -.17863E-05   -.12417E-03
  20  Prefactor     14.684        23.845       -.19365E-05   -.73457E-03
  21  Prefactor     .10000E-03    13.001       -.21496E-07** at limit **
  22  norm          23.887        21.024       -.11270E-07   -.13897E-04
  23  norm          40.656        39.275       -.15273E-06   -.43058E-03
  24  Prefactor     33.014        57.519       -.37959E-06   -.13077E-03
  25  Prefactor     .10088E-03    3.4291        .38479E-06** at limit **
  26  Prefactor     12.684        35.008        .29974E-07   -.28422E-04
  27  Prefactor     .10000E-03    10.903        .55615E-07** at limit **
  28  Prefactor     .10000E-03    15.565        .80781E-07** at limit **
  29  Normalizat    1.0475        .21101       -.43996E-06   -.41698E-03
  30  Prefactor     .73703        .13064        .32619E-06   -.46055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.23664
  Prefactor  = 0.0001
  Prefactor  = 67.5268
  Prefactor  = 17.7364
  norm       = 2.04518
  norm       = 0.418194
  Prefactor  = 11.2307
  norm       = 48.0292
  Prefactor  = 0.0001
  Prefactor  = 5.86644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4742
  norm       = 0.0001
  Prefactor  = 3.4422
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 63.1742
  Prefactor  = 14.6842
  Prefactor  = 0.0001
  norm       = 23.8866
  norm       = 40.6559
  Prefactor  = 33.0142
  Prefactor  = 0.000100881
  Prefactor  = 12.6841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04747
  Prefactor  = 0.737033
 **********
 **   18 **HESSE 
 **********

 FCN=   6191.457     FROM HESSE     STATUS=OK           592 CALLS     5357 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2366        8.3546        .16074E-03   -1.5208    
   2  Prefactor     .10000E-03    20.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.527        26.327        .48842E-04   -1.4063    
   4  Prefactor     17.736        9.2505        .95097E-04   -1.4865    
   5  norm          2.0452        3.3528        .16143E-03   -1.5422    
   6  norm          .41819        6.3355        .36900E-03   -1.5579    
   7  Prefactor     11.231        15.389        .11953E-03   -1.5038    
   8  norm          48.029        19.204        .57859E-04   -1.4321    
   9  Prefactor     .10000E-03    18.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8664        13.664        .16576E-03   -1.5224    
  11  Prefactor     .10000E-03    13.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2599        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4742        1.3029        .75481E-04   -1.5465    
  14  norm          .10000E-03    4.1307        .15473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4422        9.2715        .10897E-02   -1.5337    
  16  Prefactor     .10000E-03    27.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    35.177        .35893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     63.174        272.31        .25318E-03   -1.4117    
  20  Prefactor     14.684        25.605        .10501E-03   -1.4941    
  21  Prefactor     .10000E-03    13.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          23.887        21.029        .81957E-04   -1.4730    
  23  norm          40.656        39.369        .62892E-04   -1.4432    
  24  Prefactor     33.014        57.725        .69789E-04   -1.4558    
  25  Prefactor     .10088E-03    14.236        .37827E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.684        35.063        .11242E-03   -1.4996    
  27  Prefactor     .10000E-03    10.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    15.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0475        .24905        .28255E-03   -.91457    
  30  Prefactor     .73703        .15283        .22110E-03   -1.0209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92354e-09
Minuit parameter uncertainties:
  1  8.35618
  2  2.89022e-05
  3  26.3312
  4  9.25121
  5  3.3531
  6  3.25545
  7  15.3943
  8  19.2064
  9  5.15692e-05
  10  13.6714
  11  1.04093e-05
  12  9.49036e-07
  13  1.30294
  14  1.6431e-06
  15  9.27535
  16  0.000191238
  17  0.00159365
  18  1.894e-05
  19  264.382
  20  25.6242
  21  4.18392e-05
  22  21.0352
  23  39.3939
  24  57.8225
  25  0.00708262
  26  35.1202
  27  8.65552e-06
  28  6.10584e-05
  29  0.249332
  30  0.152921
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.268e+01  3.512e+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:  7.370e-01  1.529e-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.047e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630752/likelihoodResults_665712001_665971201_4FGL_J2339.6+0242_daily_bin1645.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) = 6190.5338384
delta logL = 0.923470892897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6190.47192477
delta logL = 0.985384522161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35186       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8161       1.0000          .0000       10.000    
     3 'Normalizat'    .92931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79060       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=   6190.472     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      276 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35162        3.5435        .74358E-02    .15257E-02
   2  Index         5.8164        2.5928        .13566        .13850E-03
   3  Normalizat    .92933        .47385E-01    .67353E-01    .15769E-04
   4  Prefactor     .79061        .31780E-01    .43595E-01    .60234E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.351621
  Index      = 5.81645
  Normalizat = 0.929332
  Prefactor  = 0.790606
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.472     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35162        9.3482        .33673E-04   -1.5589    
   2  Index         5.8164        7.4495        .49491E-02    .16402    
   3  Normalizat    .92933        .20318        .29795E-03   -.95437    
   4  Prefactor     .79061        .13193        .21426E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.83674e-07
Minuit parameter uncertainties:
  1  3.62614
  2  5.52169
  3  0.20335
  4  0.131986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630752': 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) = 6190.47192473
delta logL = 0.985384564976

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.906e-01  1.320e-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.293e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 354.904 2.710
Photon Index (Free Index): 5.82 +/- 5.52
Photon Flux (Free Index): 1.13e-07 +/- 8.49e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.20e-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/630752/cmap_HighResolution_665712001_665971201_4FGL_J2339.6+0242_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-03', comment='SUCCESS', energy_flux2='1.42e-05', dlogl='9.85e-01', photon_flux2='1.13e-07', job_status='DONE', time_completed='2022-02-08 00:54:31.808601', photon_index_error2='5.52', photon_index2='5.82', ts='0.16', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.20e-05', EG='1.05', time_epoch_completed='1644310471.81', return_code='0', job_id='630752', GAL2='0.79', EG2='0.93', return_code2='102', photon_flux_error2='8.49e-08', ts2='2.39', photon_index='2.55' WHERE bin_id='1645' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:54:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 630752: <4FGL_J2339.6+0242_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1645> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Feb  8 00:40:28 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:40:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:40:29 2022
Terminated at Tue Feb  8 00:54:32 2022
Results reported at Tue Feb  8 00:54:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1645 354.904 2.7102 665712001 665971201 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 :                                   826.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

