/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 49 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin75
RA = 354.904, Dec = 2.7102
tmin = 258768001, tmax = 259027201
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='69716', job_status='RUN', time_executed='2021-09-30 02:31:17.929878', time_epoch_executed='1632994277.93' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69716

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69716/ft1_4FGL_J2339.6+0242_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69716/ft2_4FGL_J2339.6+0242_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69716/ft1_4FGL_J2339.6+0242_daily_bin75.fits outfile=/scratch/kocevski/69716/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin75.fits ra=354.904 dec=2.7102 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.11
user 0.94
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69716/ft1_filtered_4FGL_J2339.6+0242_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/69716/ft2_4FGL_J2339.6+0242_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/69716/ltcube_258768001_259027201_4FGL_J2339.6+0242_daily_bin75.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/69716/ft2_4FGL_J2339.6+0242_daily_bin75.fits
.....................!
real 8.68
user 8.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69716/ft1_filtered_4FGL_J2339.6+0242_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/69716/ft2_4FGL_J2339.6+0242_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/69716/ltcube_258768001_259027201_4FGL_J2339.6+0242_daily_bin75.fits outfile=/scratch/kocevski/69716/expmap_258768001_259027201_4FGL_J2339.6+0242_daily_bin75.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/69716/ltcube_258768001_259027201_4FGL_J2339.6+0242_daily_bin75.fits
.....................!
real 191.90
user 186.18
sys 5.40

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/69716/ft1_filtered_4FGL_J2339.6+0242_daily_bin75.fits scfile=/scratch/kocevski/69716/ft2_4FGL_J2339.6+0242_daily_bin75.fits outfile=/scratch/kocevski/69716/cmap_258768001_259027201_4FGL_J2339.6+0242_daily_bin75.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69716/ft1_filtered_4FGL_J2339.6+0242_daily_bin75.fits scfile=/scratch/kocevski/69716/ft2_4FGL_J2339.6+0242_daily_bin75.fits outfile=/scratch/kocevski/69716/cmap_HighResolution_258768001_259027201_4FGL_J2339.6+0242_daily_bin75.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2939       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.652       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10346E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.884       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.686       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2468       1.0000         .10000E-03   10000.    
    13 'norm      '    .11472E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2346       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.451       1.0000         .10000E-03   10000.    
    17 'norm      '    14.338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18826E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.945       1.0000         .10000E-03   10000.    
    22 'norm      '    7.5735       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.076       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.599       1.0000         .10000E-03   10000.    
    28 'Prefactor '    56.452       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86665       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3309       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=   7603.069     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3950 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2936        8.3176        .18248E-06   -.15480E-06
   2  Prefactor     37.646        44.426       -.53119E-05   -.12333E-04
   3  Prefactor     17.358        16.419       -.78508E-06    .14609E-05
   4  Prefactor     .10000E-03    8.9921        .13542E-05** at limit **
   5  norm          .10000E-03    1.6591        .15720E-07** at limit **
   6  norm          .10000E-03    1.7904       -.92052E-08** at limit **
   7  Prefactor     16.882        13.057       -.29522E-06    .62935E-05
   8  norm          1.3263        2.4113        .44827E-06   -.92406E-03
   9  Prefactor     24.677        39.629       -.96283E-05    .23171E-04
  10  Prefactor     .10000E-03    4.4951        .15172E-07** at limit **
  11  Prefactor     .10000E-03    27.100       -.44285E-05** at limit **
  12  Prefactor     6.2469        8.3665       -.14410E-06   -.17890E-03
  13  norm          .93307E-02    .44869       -.77959E-07    .18220E-04
  14  norm          1.2341        3.3888       -.14176E-06   -.88857E-04
  15  Prefactor     .10000E-03    7.5550       -.17384E-06** at limit **
  16  Prefactor     61.449        54.781       -.14419E-05    .12308E-04
  17  norm          14.339        10.107        .87421E-06    .88954E-03
  18  Prefactor     .10028E-03    4.5130       -.21208E-05** at limit **
  19  Prefactor     .10000E-03    70.996       -.14504E-04** at limit **
  20  Prefactor     .10000E-03    3.7724       -.85525E-08** at limit **
  21  Prefactor     44.941        26.184       -.10556E-05    .19276E-03
  22  norm          7.5740        13.377       -.11558E-06    .61968E-04
  23  norm          .10000E-03    9.7722       -.12815E-05** at limit **
  24  Prefactor     .10000E-03    49.702        .21419E-04** at limit **
  25  Prefactor     28.076        7.4192       -.57769E-07    .56795E-04
  26  Prefactor     .10000E-03    25.660        .73686E-05** at limit **
  27  Prefactor     18.596        25.112       -.17853E-05    .31156E-04
  28  Prefactor     56.449        26.693       -.17723E-05   -.84905E-05
  29  Normalizat    .86684        .23783        .28437E-05    .25257E-03
  30  Prefactor     1.3309        .15525        .22844E-06    .42735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.29358
  Prefactor  = 37.6464
  Prefactor  = 17.3583
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8818
  norm       = 1.32635
  Prefactor  = 24.6769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.24692
  norm       = 0.00933069
  norm       = 1.23406
  Prefactor  = 0.0001
  Prefactor  = 61.4495
  norm       = 14.3392
  Prefactor  = 0.00010028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.9414
  norm       = 7.57399
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.076
  Prefactor  = 0.0001
  Prefactor  = 18.5961
  Prefactor  = 56.4485
  Normalizat = 0.866841
  Prefactor  = 1.33086
 **********
 **   18 **HESSE 
 **********

 FCN=   7603.069     FROM HESSE     STATUS=OK           594 CALLS     4544 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2936        8.3175        .13146E-03   -1.5098    
   2  Prefactor     37.646        44.457        .65317E-04   -1.4480    
   3  Prefactor     17.358        16.381        .96174E-04   -1.4874    
   4  Prefactor     .10000E-03    9.1767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7247        .21829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7988        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.882        13.065        .97473E-04   -1.4886    
   8  norm          1.3263        13.479        .19070E-02   -1.5478    
   9  Prefactor     24.677        39.659        .80623E-04   -1.4714    
  10  Prefactor     .10000E-03    4.4997        .18055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2469        8.3721        .80306E-03   -1.5208    
  13  norm          .93307E-02    .42646        .19559E-01   -1.5689    
  14  norm          1.2341        3.3117        .25423E-03   -1.5486    
  15  Prefactor     .10000E-03    7.5842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     61.449        54.799        .51186E-04   -1.4139    
  17  norm          14.339        9.6145        .10578E-03   -1.4950    
  18  Prefactor     .10028E-03    33.640        .32502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    70.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7761        .16534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.941        26.156        .59803E-04   -1.4366    
  22  norm          7.5740        13.362        .14572E-03   -1.5157    
  23  norm          .10000E-03    9.7812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    49.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.076        7.4271        .75609E-04   -1.4648    
  26  Prefactor     .10000E-03    25.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.596        25.155        .92870E-04   -1.4845    
  28  Prefactor     56.449        26.790        .53391E-04   -1.4204    
  29  Normalizat    .86684        .27242        .37353E-03   -.97635    
  30  Prefactor     1.3309        .18056        .22029E-03   -.82394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33617e-08
Minuit parameter uncertainties:
  1  8.31856
  2  44.4965
  3  16.385
  4  9.56652e-06
  5  2.27329e-06
  6  2.44487e-06
  7  13.0671
  8  8.45874
  9  39.7014
  10  1.71121e-06
  11  1.43152e-05
  12  8.37371
  13  0.125484
  14  3.31219
  15  5.63843e-06
  16  54.8436
  17  9.61552
  18  0.00614126
  19  7.18566e-05
  20  9.08756e-07
  21  26.1623
  22  13.3676
  23  3.94638e-06
  24  4.68807e-05
  25  7.42735
  26  1.26363e-05
  27  25.1695
  28  26.7961
  29  0.272853
  30  0.180646
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.264e-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:  1.331e+00  1.806e-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:  8.668e-01  2.729e-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: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69716/likelihoodResults_258768001_259027201_4FGL_J2339.6+0242_daily_bin75.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) = 7603.06927953
delta logL = -0.000185489616342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7603.06909386
delta logL = 1.85390490515e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2562       1.0000          .0000       10.000    
     3 'Normalizat'    .86683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3309       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=   7603.069     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      250 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.771        .90712E-02** at limit **
   2  Index         3.2554        6.4178        .50000        .28324E-06
   3  Normalizat    .86684        .53594E-02    .84361E-01    .10529E-03
   4  Prefactor     1.3309        .38377E-02    .49831E-01    .86443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.25536
  Normalizat = 0.866841
  Prefactor  = 1.33086
 **********
 **   18 **HESSE 
 **********

 FCN=   7603.069     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    226.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2554        8.3430        .50000       -.35643    
   3  Normalizat    .86684        .15567E-01    .37353E-03   -.97635    
   4  Prefactor     1.3309        .11171E-01    .22029E-03   -.82394    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.95408e-10
Minuit parameter uncertainties:
  1  0.00029569
  2  521.633
  3  0.0155673
  4  0.011171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69716': 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) = 7603.06909385
delta logL = 1.96157088794e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.957e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.255e+00  5.216e+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.331e+00  1.117e-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:  8.668e-01  1.557e-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/69716/cmap_HighResolution_258768001_259027201_4FGL_J2339.6+0242_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', job_status='DONE', photon_flux_upper_limit='9.56e-08', time_completed='2021-09-30 02:46:22.007250', job_id='69716', GAL2='1.33', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632995182.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='1.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='75' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 69716: <4FGL_J2339.6+0242_daily_bin75> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin75> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:17 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:30:19 2021
Terminated at Thu Sep 30 02:46:22 2021
Results reported at Thu Sep 30 02:46:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin75 354.904 2.7102 258768001 259027201 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 :                                   894.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

