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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin437
RA = 354.904, Dec = 2.7102
tmin = 352598401, tmax = 352857601
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='71602', job_status='RUN', time_executed='2021-09-30 02:35:41.746933', time_epoch_executed='1632994541.75' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71602

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71602/ft1_4FGL_J2339.6+0242_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71602/ft2_4FGL_J2339.6+0242_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71602/ft1_4FGL_J2339.6+0242_daily_bin437.fits outfile=/scratch/kocevski/71602/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin437.fits ra=354.904 dec=2.7102 rad=12.0 tmin=352598401.0 tmax=352857601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.19
user 3.95
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71602/ft1_filtered_4FGL_J2339.6+0242_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/71602/ft2_4FGL_J2339.6+0242_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/71602/ltcube_352598401_352857601_4FGL_J2339.6+0242_daily_bin437.fits outfile=/scratch/kocevski/71602/expmap_352598401_352857601_4FGL_J2339.6+0242_daily_bin437.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/71602/ltcube_352598401_352857601_4FGL_J2339.6+0242_daily_bin437.fits
.....................!
real 191.01
user 185.15
sys 5.55

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/71602/ft1_filtered_4FGL_J2339.6+0242_daily_bin437.fits scfile=/scratch/kocevski/71602/ft2_4FGL_J2339.6+0242_daily_bin437.fits outfile=/scratch/kocevski/71602/cmap_352598401_352857601_4FGL_J2339.6+0242_daily_bin437.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7779       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3111       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    383.85       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.148       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    359.70       1.0000         .10000E-03   10000.    
    13 'norm      '    25.860       1.0000         .10000E-03   10000.    
    14 'norm      '    348.41       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3575       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10693E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    99.873       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4918       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3610       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=   8367.788     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3925 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.026        22.266        .14624E-07    .91390E-05
   2  Prefactor     .10000E-03    33.634       -.12884E-05** at limit **
   3  Prefactor     .10000E-03    9.1282        .35734E-06** at limit **
   4  Prefactor     .10000E-03    8.2311       -.64759E-06** at limit **
   5  norm          7.7776        4.9107       -.16389E-06   -.22065E-03
   6  norm          3.3109        4.3218        .59934E-07   -.24210E-04
   7  Prefactor     .10000E-03    6.6873        .33274E-06** at limit **
   8  norm          383.83        79.490       -.50752E-06   -.97150E-04
   9  Prefactor     .10000E-03    15.561       -.14325E-05** at limit **
  10  Prefactor     15.146        16.537        .50952E-07    .52683E-05
  11  Prefactor     .10000E-03    17.311        .18704E-05** at limit **
  12  Prefactor     359.71        165.17        .67645E-06   -.17598E-04
  13  norm          25.861        7.2196        .15958E-06    .89299E-04
  14  norm          348.39        109.27       -.62201E-06   -.59435E-04
  15  Prefactor     6.1288        10.771        .29129E-05   -.18850E-03
  16  Prefactor     .10000E-03    30.420       -.11252E-05** at limit **
  17  norm          .10000E-03    5.7767       -.31898E-07** at limit **
  18  Prefactor     .10000E-03    2.5470       -.12234E-07** at limit **
  19  Prefactor     .10000E-03    174.71       -.12951E-05** at limit **
  20  Prefactor     8.3429        26.598        .22767E-06    .20157E-04
  21  Prefactor     .10000E-03    6.5459        .71778E-07** at limit **
  22  norm          .10000E-03    10.753        .54536E-07** at limit **
  23  norm          .10000E-03    37.254        .47676E-06** at limit **
  24  Prefactor     .10000E-03    38.801        .21005E-05** at limit **
  25  Prefactor     .10000E-03    6.2319       -.32819E-06** at limit **
  26  Prefactor     99.872        59.843       -.67087E-07    .23016E-08
  27  Prefactor     .10000E-03    8.8929        .97891E-07** at limit **
  28  Prefactor     .10000E-03    7.3059        .26380E-07** at limit **
  29  Normalizat    1.4919        .36315        .20738E-06   -.13132E-04
  30  Prefactor     1.3609        .23575       -.51605E-06    .18163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.7776
  norm       = 3.3109
  Prefactor  = 0.0001
  norm       = 383.835
  Prefactor  = 0.0001
  Prefactor  = 15.1464
  Prefactor  = 0.000100001
  Prefactor  = 359.711
  norm       = 25.8614
  norm       = 348.394
  Prefactor  = 6.12877
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.34293
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 99.8716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.49192
  Prefactor  = 1.36094
 **********
 **   18 **HESSE 
 **********

 FCN=   8367.788     FROM HESSE     STATUS=OK           574 CALLS     4499 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.026        22.301        .78523E-04   -1.4687    
   2  Prefactor     .10000E-03    33.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7776        4.9908        .14378E-03   -1.5150    
   6  norm          3.3109        4.3173        .21137E-03   -1.5344    
   7  Prefactor     .10000E-03    6.7115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          383.83        80.008        .10410E-03   -1.1764    
   9  Prefactor     .10000E-03    15.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.146        16.539        .10291E-03   -1.4929    
  11  Prefactor     .10000E-03    17.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     359.71        166.28        .21480E-04   -1.1892    
  13  norm          25.861        7.2294        .78775E-04   -1.4690    
  14  norm          348.39        110.08        .21813E-04   -1.1953    
  15  Prefactor     6.1288        11.107        .81072E-03   -1.5213    
  16  Prefactor     .10000E-03    30.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.8235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5516        .14257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    174.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.3429        26.500        .13867E-03   -1.5130    
  21  Prefactor     .10000E-03    6.5472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    37.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    39.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.3004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     99.872        59.888        .40227E-04   -1.3706    
  27  Prefactor     .10000E-03    8.9017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.3083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4919        .43756        .52533E-03   -.78006    
  30  Prefactor     1.3609        .28399        .37150E-03   -.81513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44935e-10
Minuit parameter uncertainties:
  1  22.3081
  2  0.000199857
  3  4.04522e-05
  4  4.36062e-05
  5  4.99103
  6  4.31768
  7  2.4277e-05
  8  80.0315
  9  0.000153395
  10  16.5437
  11  0.000206794
  12  166.505
  13  7.22968
  14  110.143
  15  11.1109
  16  0.000172105
  17  1.14109e-05
  18  1.97984e-06
  19  0.000490513
  20  26.5375
  21  3.15923e-06
  22  3.81887e-06
  23  2.80187e-05
  24  0.00035236
  25  3.39881e-05
  26  59.9247
  27  6.50681e-06
  28  2.1535e-06
  29  0.438675
  30  0.28432
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  9.987e+01  5.992e+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:  1.361e+00  2.843e-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.492e+00  4.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.43
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 7.25e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.00e-05

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) = 8367.24255446
delta logL = 0.544985514123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8367.24234898
delta logL = 0.545190994977

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    139.99       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0386       1.0000          .0000       10.000    
     3 'Normalizat'    1.5330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3410       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=   8367.242     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      301 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     139.93        85.941        .17023E-03    .93496E-06
   2  Index         2.0381        .45557        .79038E-02    .84203E-04
   3  Normalizat    1.5331        .40757        .51952E-03   -.34225E-04
   4  Prefactor     1.3410        .27800        .37370E-03    .39122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 139.926
  Index      = 2.0381
  Normalizat = 1.53314
  Prefactor  = 1.34099
 **********
 **   18 **HESSE 
 **********

 FCN=   8367.242     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     139.93        85.640        .68093E-05   -1.3337    
   2  Index         2.0381        .45387        .15808E-02   -.63401    
   3  Normalizat    1.5331        .40799        .20781E-04   -.76851    
   4  Prefactor     1.3410        .27829        .14948E-04   -.82096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69365e-11
Minuit parameter uncertainties:
  1  85.7162
  2  0.45484
  3  0.408878
  4  0.278605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71602': 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) = 8367.24234801
delta logL = 0.54519195922

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.399e+02  8.572e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.038e+00  4.548e-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:  1.341e+00  2.786e-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.533e+00  4.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.41
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.04 +/- 0.45
Photon Flux (Free Index): 8.84e-08 +/- 6.49e-08
Energy Flux (Free Index): 5.58e-05 +/- 4.97e-05

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/71602/cmap_HighResolution_352598401_352857601_4FGL_J2339.6+0242_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='5.58e-05', photon_flux_error='7.25e-08', dlogl='5.45e-01', energy_flux='3.33e-05', photon_flux2='8.84e-08', job_status='DONE', time_completed='2021-09-30 02:50:28.720542', photon_index_error2='0.45', photon_index2='2.04', ts='6.43', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', energy_flux_error2='4.97e-05', EG='1.49', time_epoch_completed='1632995428.72', return_code='0', job_id='71602', GAL2='1.34', EG2='1.53', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='6.49e-08', ts2='7.41', photon_index='2.55' WHERE bin_id='437' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 71602: <4FGL_J2339.6+0242_daily_bin437> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin437 354.904 2.7102 352598401 352857601 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 :                                   883.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

