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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin61
RA = 354.904, Dec = 2.7102
tmin = 255139201, tmax = 255398401
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='69695', job_status='RUN', time_executed='2021-09-30 02:33:24.046631', time_epoch_executed='1632994404.05' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69695/ft1_4FGL_J2339.6+0242_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69695/ft2_4FGL_J2339.6+0242_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69695/ft1_4FGL_J2339.6+0242_daily_bin61.fits outfile=/scratch/kocevski/69695/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin61.fits ra=354.904 dec=2.7102 rad=12.0 tmin=255139201.0 tmax=255398401.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 5.91
user 5.64
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69695/ft1_filtered_4FGL_J2339.6+0242_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/69695/ft2_4FGL_J2339.6+0242_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/69695/ltcube_255139201_255398401_4FGL_J2339.6+0242_daily_bin61.fits outfile=/scratch/kocevski/69695/expmap_255139201_255398401_4FGL_J2339.6+0242_daily_bin61.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/69695/ltcube_255139201_255398401_4FGL_J2339.6+0242_daily_bin61.fits
.....................!
real 149.37
user 145.46
sys 3.67

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/69695/ft1_filtered_4FGL_J2339.6+0242_daily_bin61.fits scfile=/scratch/kocevski/69695/ft2_4FGL_J2339.6+0242_daily_bin61.fits outfile=/scratch/kocevski/69695/cmap_255139201_255398401_4FGL_J2339.6+0242_daily_bin61.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.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69695/ft1_filtered_4FGL_J2339.6+0242_daily_bin61.fits scfile=/scratch/kocevski/69695/ft2_4FGL_J2339.6+0242_daily_bin61.fits outfile=/scratch/kocevski/69695/cmap_HighResolution_255139201_255398401_4FGL_J2339.6+0242_daily_bin61.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.45
user 0.31
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.123       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4692       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4060       1.0000         .10000E-03   10000.    
     6 'norm      '    5.1785       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.4485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.769       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .27919E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .95067E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.497       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.775       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5850       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8229       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.665       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94591       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91810       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=   6420.444     FROM MIGRAD    STATUS=CONVERGED   1354 CALLS     4672 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.124        10.536        .10658E-03   -.84269E-05
   2  Prefactor     .10000E-03    14.361        .18142E-02** at limit **
   3  Prefactor     .10000E-03    16.966        .18142E-02** at limit **
   4  Prefactor     3.4693        6.3727        .21711E-03   -.33513E-05
   5  norm          4.4059        2.8363        .10144E-03    .96827E-04
   6  norm          5.1784        4.0622        .69301E-03    .81417E-04
   7  Prefactor     .10000E-03    10.850        .18142E-02** at limit **
   8  norm          7.4475        11.351        .73476E-03    .89494E-04
   9  Prefactor     43.547        43.968        .60747E-04    .30131E-04
  10  Prefactor     16.771        14.258        .97805E-04    .83692E-05
  11  Prefactor     .10000E-03    18.743        .18142E-02** at limit **
  12  Prefactor     .10000E-03    2.6085        .12626E-02** at limit **
  13  norm          .27889E-01    2.9407        .92882E-03    .20387E-02
  14  norm          .10000E-03    6.9949        .27129E-02** at limit **
  15  Prefactor     .10000E-03    7.9256        .18142E-02** at limit **
  16  Prefactor     .10007E-03    42.624        .15111    ** at limit **
  17  norm          25.497        10.663        .79333E-04    .30337E-03
  18  Prefactor     .10000E-03    4.6612        .16759E-02** at limit **
  19  Prefactor     16.523        204.25        .98444E-04    .19009E-04
  20  Prefactor     .10000E-03    3.6497        .14922E-02** at limit **
  21  Prefactor     37.777        31.632        .65211E-04    .51255E-04
  22  norm          .10000E-03    4.5509        .16694E-02** at limit **
  23  norm          .10000E-03    5.6926        .18142E-02** at limit **
  24  Prefactor     .10000E-03    28.763        .18142E-02** at limit **
  25  Prefactor     4.5852        3.3989        .12076E-03    .18377E-03
  26  Prefactor     7.8202        38.520        .14336E-03    .25376E-05
  27  Prefactor     .10000E-03    14.204        .18142E-02** at limit **
  28  Prefactor     19.666        19.074        .90319E-04    .44056E-05
  29  Normalizat    .94593        .23665        .28936E-03    .32449E-03
  30  Prefactor     .91810        .15430        .20593E-03    .46164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46928
  norm       = 4.40594
  norm       = 5.17842
  Prefactor  = 0.0001
  norm       = 7.44747
  Prefactor  = 43.547
  Prefactor  = 16.7713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0278886
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100072
  norm       = 25.4965
  Prefactor  = 0.0001
  Prefactor  = 16.5227
  Prefactor  = 0.0001
  Prefactor  = 37.7773
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.58525
  Prefactor  = 7.82022
  Prefactor  = 0.0001
  Prefactor  = 19.6655
  Normalizat = 0.945929
  Prefactor  = 0.918104
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.444     FROM HESSE     STATUS=OK           568 CALLS     5240 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.124        10.536        .42632E-05   -1.4956    
   2  Prefactor     .10000E-03    14.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4693        6.3721        .86844E-05   -1.5335    
   5  norm          4.4059        2.8361        .40578E-05   -1.5288    
   6  norm          5.1784        4.0618        .27720E-04   -1.5253    
   7  Prefactor     .10000E-03    10.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.4475        11.349        .29390E-04   -1.5162    
   9  Prefactor     43.547        43.944        .24299E-05   -1.4387    
  10  Prefactor     16.771        14.257        .39122E-05   -1.4889    
  11  Prefactor     .10000E-03    18.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6086        .25253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27889E-01    2.9506        .37153E-04   -1.5675    
  14  norm          .10000E-03    7.0359        .54258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.9270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10007E-03    42.385        .15174       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.497        10.662        .31733E-05   -1.4698    
  18  Prefactor     .10000E-03    4.6631        .33518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.523        203.62        .19689E-04   -1.4895    
  20  Prefactor     .10000E-03    3.6499        .29844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.777        31.633        .26084E-05   -1.4478    
  22  norm          .10000E-03    4.5509        .33388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.6927        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.5852        3.3986        .48304E-05   -1.5280    
  26  Prefactor     7.8202        38.512        .57346E-05   -1.5149    
  27  Prefactor     .10000E-03    14.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.666        19.071        .36128E-05   -1.4821    
  29  Normalizat    .94593        .23678        .11574E-04   -.94865    
  30  Prefactor     .91810        .15432        .41185E-04   -.95511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40244e-09
Minuit parameter uncertainties:
  1  10.5371
  2  1.02347e-06
  3  3.72063e-05
  4  6.37339
  5  2.83616
  6  4.06204
  7  4.29497e-05
  8  11.3527
  9  43.977
  10  14.2601
  11  1.31116e-05
  12  3.87778e-06
  13  0.572713
  14  0.000283264
  15  6.82111e-06
  16  0.00348759
  17  10.6626
  18  1.57016e-06
  19  116.501
  20  3.5599e-05
  21  31.6469
  22  4.23226e-07
  23  1.51147e-05
  24  1.76914e-05
  25  3.39874
  26  34.7443
  27  2.23151e-05
  28  19.0766
  29  0.237043
  30  0.15439
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.820e+00  3.474e+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:  9.181e-01  1.544e-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.459e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69695/likelihoodResults_255139201_255398401_4FGL_J2339.6+0242_daily_bin61.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) = 6420.4433594
delta logL = 0.00105301036274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6420.44322491
delta logL = 0.00118750553065

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4457       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6397       1.0000          .0000       10.000    
     3 'Normalizat'    .94480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91841       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=   6420.443     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      289 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4118        41.691        .14698E-03   -.21047E-03
   2  Index         2.6440        1.9708        .84269E-02   -.22197E-03
   3  Normalizat    .94492        .21572        .28950E-03   -.20181E-03
   4  Prefactor     .91853        .15098        .20588E-03    .46301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4118
  Index      = 2.64396
  Normalizat = 0.944916
  Prefactor  = 0.918528
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.443     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4118        39.348        .58792E-05   -1.5163    
   2  Index         2.6440        1.9178        .33708E-03   -.49066    
   3  Normalizat    .94492        .21591        .11580E-04   -.94899    
   4  Prefactor     .91853        .15105        .41177E-04   -.95497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69702e-09
Minuit parameter uncertainties:
  1  34.1899
  2  1.98402
  3  0.216112
  4  0.151114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69695': 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) = 6420.44321907
delta logL = 0.0011933452015

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.412e+00  3.419e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.644e+00  1.984e+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:  9.185e-01  1.511e-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.449e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/69695/cmap_HighResolution_255139201_255398401_4FGL_J2339.6+0242_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-30 02:45:06.330550', job_id='69695', GAL2='0.92', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1632995106.33', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.19e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='61' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:06 PDT 2021


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

Job <4FGL_J2339.6+0242_daily_bin61> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:16 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:17 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:17 2021
Terminated at Thu Sep 30 02:45:06 2021
Results reported at Thu Sep 30 02:45:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin61 354.904 2.7102 255139201 255398401 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 :                                   696.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

