/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 110 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin310
RA = 354.904, Dec = 2.7102
tmin = 319680001, tmax = 319939201
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='70086', job_status='RUN', time_executed='2021-09-30 02:32:49.958121', time_epoch_executed='1632994369.96' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70086/ft1_4FGL_J2339.6+0242_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70086/ft2_4FGL_J2339.6+0242_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70086/ft1_4FGL_J2339.6+0242_daily_bin310.fits outfile=/scratch/kocevski/70086/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin310.fits ra=354.904 dec=2.7102 rad=12.0 tmin=319680001.0 tmax=319939201.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.51
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70086/ft1_filtered_4FGL_J2339.6+0242_daily_bin310.fits" evtable="EVENTS" scfile=/scratch/kocevski/70086/ft2_4FGL_J2339.6+0242_daily_bin310.fits sctable="SC_DATA" outfile=/scratch/kocevski/70086/ltcube_319680001_319939201_4FGL_J2339.6+0242_daily_bin310.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/70086/ft2_4FGL_J2339.6+0242_daily_bin310.fits
.....................!
real 11.79
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70086/ft1_filtered_4FGL_J2339.6+0242_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/70086/ft2_4FGL_J2339.6+0242_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/70086/ltcube_319680001_319939201_4FGL_J2339.6+0242_daily_bin310.fits outfile=/scratch/kocevski/70086/expmap_319680001_319939201_4FGL_J2339.6+0242_daily_bin310.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/70086/ltcube_319680001_319939201_4FGL_J2339.6+0242_daily_bin310.fits
.....................!
real 192.35
user 186.41
sys 5.54

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/70086/ft1_filtered_4FGL_J2339.6+0242_daily_bin310.fits scfile=/scratch/kocevski/70086/ft2_4FGL_J2339.6+0242_daily_bin310.fits outfile=/scratch/kocevski/70086/cmap_319680001_319939201_4FGL_J2339.6+0242_daily_bin310.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70086/ft1_filtered_4FGL_J2339.6+0242_daily_bin310.fits scfile=/scratch/kocevski/70086/ft2_4FGL_J2339.6+0242_daily_bin310.fits outfile=/scratch/kocevski/70086/cmap_HighResolution_319680001_319939201_4FGL_J2339.6+0242_daily_bin310.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.389       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.2001       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6796       1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.929       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .47980       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.836       1.0000         .10000E-03   10000.    
    17 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.840       1.0000         .10000E-03   10000.    
    19 'Prefactor '    222.05       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33767E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.898       1.0000         .10000E-03   10000.    
    22 'norm      '    15.507       1.0000         .10000E-03   10000.    
    23 'norm      '    21.505       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.288       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.000       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    44.867       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1035       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86042       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=   6440.328     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     4640 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.390        10.090       -.87442E-07    .27108E-04
   2  Prefactor     .10000E-03    23.970       -.13828E-06** at limit **
   3  Prefactor     .10000E-03    15.572        .12597E-06** at limit **
   4  Prefactor     .10000E-03    13.496       -.40463E-06** at limit **
   5  norm          .10000E-03    1.7690       -.61365E-10** at limit **
   6  norm          8.2003        5.3530       -.57946E-07   -.53384E-05
   7  Prefactor     9.6809        13.966       -.12767E-06   -.93501E-05
   8  norm          .10000E-03    25.023       -.16361E-06** at limit **
   9  Prefactor     .10000E-03    66.932       -.56728E-06** at limit **
  10  Prefactor     4.6066        12.152       -.11618E-06   -.20246E-04
  11  Prefactor     19.925        23.971       -.81608E-07    .54523E-04
  12  Prefactor     .10000E-03    18.327        .23346E-06** at limit **
  13  norm          .48285        .75184       -.24413E-05   -.50668E-03
  14  norm          .10000E-03    4.6192        .64558E-07** at limit **
  15  Prefactor     .10000E-03    5.2309        .10680E-06** at limit **
  16  Prefactor     47.821        59.120        .10759E-05    .23556E-04
  17  norm          .10000E-03    15.043        .43544E-06** at limit **
  18  Prefactor     12.847        9.7975       -.17816E-07   -.11376E-03
  19  Prefactor     221.30        304.43        .82508E-05   -.41238E-04
  20  Prefactor     .10002E-03    36.012       -.91433E-05** at limit **
  21  Prefactor     30.911        29.419       -.20116E-06    .19186E-04
  22  norm          15.507        15.464       -.30947E-06    .50563E-04
  23  norm          21.504        24.731        .38573E-06    .20103E-03
  24  Prefactor     .10000E-03    44.239        .48317E-06** at limit **
  25  Prefactor     11.286        7.5744        .10199E-05    .66753E-03
  26  Prefactor     23.000        32.080       -.87058E-07    .25058E-04
  27  Prefactor     .10000E-03    14.652        .13614E-06** at limit **
  28  Prefactor     44.869        24.373       -.26860E-06    .67133E-04
  29  Normalizat    1.1035        .21910        .49040E-06    .31724E-03
  30  Prefactor     .86040        .14082        .89874E-06    .14227E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.20032
  Prefactor  = 9.68087
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.60664
  Prefactor  = 19.9251
  Prefactor  = 0.0001
  norm       = 0.482854
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.821
  norm       = 0.0001
  Prefactor  = 12.8468
  Prefactor  = 221.303
  Prefactor  = 0.000100024
  Prefactor  = 30.9109
  norm       = 15.507
  norm       = 21.5045
  Prefactor  = 0.000100001
  Prefactor  = 11.2863
  Prefactor  = 23.0001
  Prefactor  = 0.0001
  Prefactor  = 44.8692
  Normalizat = 1.10349
  Prefactor  = 0.860401
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.328     FROM HESSE     STATUS=OK           590 CALLS     5230 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.390        10.092        .11871E-03   -1.5033    
   2  Prefactor     .10000E-03    23.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.109        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0227        .20332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.2003        5.3489        .14000E-03   -1.5135    
   7  Prefactor     9.6809        13.952        .12880E-03   -1.5086    
   8  norm          .10000E-03    26.057        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    67.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6066        12.137        .18756E-03   -1.5279    
  11  Prefactor     19.925        23.983        .89721E-04   -1.4815    
  12  Prefactor     .10000E-03    19.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48285        .74464        .92766E-03   -1.5569    
  14  norm          .10000E-03    4.6861        .16835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2498        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     47.821        59.146        .57976E-04   -1.4324    
  17  norm          .10000E-03    15.511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.847        9.7654        .11179E-03   -1.4991    
  19  Prefactor     221.30        303.27        .13573E-03   -1.2722    
  20  Prefactor     .10002E-03    35.974        .42678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.911        29.395        .72081E-04   -1.4595    
  22  norm          15.507        15.464        .50855E-03   -1.4920    
  23  norm          21.504        24.705        .86373E-04   -1.4780    
  24  Prefactor     .10000E-03    44.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.286        7.6058        .11924E-03   -1.5036    
  26  Prefactor     23.000        32.080        .83521E-04   -1.4748    
  27  Prefactor     .10000E-03    14.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     44.869        24.411        .59855E-04   -1.4367    
  29  Normalizat    1.1035        .25453        .29668E-03   -.89640    
  30  Prefactor     .86040        .16411        .22422E-03   -.97539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48401e-09
Minuit parameter uncertainties:
  1  10.0937
  2  6.81479e-05
  3  1.0584e-06
  4  4.07223e-05
  5  4.99749e-05
  6  5.34924
  7  13.9565
  8  2.89724e-05
  9  0.000438369
  10  12.1433
  11  23.9946
  12  8.8069e-05
  13  0.744653
  14  4.76753e-05
  15  1.72675e-05
  16  59.2189
  17  8.49375e-05
  18  9.76666
  19  305.459
  20  0.00185112
  21  29.4084
  22  15.4685
  23  24.7171
  24  0.000305337
  25  7.60647
  26  32.1045
  27  4.26569e-05
  28  24.4162
  29  0.254815
  30  0.164202
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.300e+01  3.210e+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.604e-01  1.642e-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.103e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70086/likelihoodResults_319680001_319939201_4FGL_J2339.6+0242_daily_bin310.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) = 6440.13130269
delta logL = 0.197122768429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6440.10386947
delta logL = 0.224555987113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.502       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0076       1.0000          .0000       10.000    
     3 'Normalizat'    1.1156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85403       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=   6440.104     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      248 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.504        38.861        .71389E-04   -.48727E-03
   2  Index         2.0075        .73066        .11336E-01   -.22111E-03
   3  Normalizat    1.1156        .23738        .29525E-03    .82438E-04
   4  Prefactor     .85400        .16142        .22490E-03    .12010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5036
  Index      = 2.00755
  Normalizat = 1.11559
  Prefactor  = 0.854
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.104     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.504        39.033        .14278E-04   -1.4585    
   2  Index         2.0075        .73404        .45345E-03   -.64162    
   3  Normalizat    1.1156        .23757        .11810E-04   -.89253    
   4  Prefactor     .85400        .16155        .89962E-05   -.97767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20106e-09
Minuit parameter uncertainties:
  1  39.0646
  2  0.738214
  3  0.237799
  4  0.161645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70086': 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) = 6440.10386943
delta logL = 0.224556026404

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.150e+01  3.906e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.008e+00  7.382e-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.540e-01  1.616e-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.116e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.01 +/- 0.74
Photon Flux (Free Index): 1.93e-08 +/- 2.99e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.96e-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/70086/cmap_HighResolution_319680001_319939201_4FGL_J2339.6+0242_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='2.25e-01', photon_flux2='1.93e-08', job_status='DONE', time_completed='2021-09-30 02:47:01.056647', photon_index_error2='0.74', photon_index2='2.01', ts='0.77', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.96e-05', EG='1.10', time_epoch_completed='1632995221.06', return_code='0', job_id='70086', GAL2='0.85', EG2='1.12', return_code2='0', photon_flux_error2='2.99e-08', ts2='1.23', photon_index='2.55' WHERE bin_id='310' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:47:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 70086: <4FGL_J2339.6+0242_daily_bin310> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin310> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:49 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:50 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:50 2021
Terminated at Thu Sep 30 02:47:01 2021
Results reported at Thu Sep 30 02:47:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin310 354.904 2.7102 319680001 319939201 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 :                                   849.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            972 sec.

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

