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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin224
RA = 354.904, Dec = 2.7102
tmin = 297388801, tmax = 297648001
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='69949', job_status='RUN', time_executed='2021-09-30 02:32:59.327121', time_epoch_executed='1632994379.33' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69949

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69949/ft1_4FGL_J2339.6+0242_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69949/ft2_4FGL_J2339.6+0242_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69949/ft1_4FGL_J2339.6+0242_daily_bin224.fits outfile=/scratch/kocevski/69949/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin224.fits ra=354.904 dec=2.7102 rad=12.0 tmin=297388801.0 tmax=297648001.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.67
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69949/ft2_4FGL_J2339.6+0242_daily_bin224.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/69949/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin224.fits evtable="EVENTS" outfile="/scratch/kocevski/69949/ft1_filtered_4FGL_J2339.6+0242_daily_bin224.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/69949/ft1_filtered_4FGL_J2339.6+0242_daily_bin224.fits" evtable="EVENTS" scfile=/scratch/kocevski/69949/ft2_4FGL_J2339.6+0242_daily_bin224.fits sctable="SC_DATA" outfile=/scratch/kocevski/69949/ltcube_297388801_297648001_4FGL_J2339.6+0242_daily_bin224.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/69949/ft2_4FGL_J2339.6+0242_daily_bin224.fits
.....................!
real 12.02
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69949/ft1_filtered_4FGL_J2339.6+0242_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/69949/ft2_4FGL_J2339.6+0242_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/69949/ltcube_297388801_297648001_4FGL_J2339.6+0242_daily_bin224.fits outfile=/scratch/kocevski/69949/expmap_297388801_297648001_4FGL_J2339.6+0242_daily_bin224.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/69949/ltcube_297388801_297648001_4FGL_J2339.6+0242_daily_bin224.fits
.....................!
real 189.83
user 184.89
sys 4.64

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/69949/ft1_filtered_4FGL_J2339.6+0242_daily_bin224.fits scfile=/scratch/kocevski/69949/ft2_4FGL_J2339.6+0242_daily_bin224.fits outfile=/scratch/kocevski/69949/cmap_297388801_297648001_4FGL_J2339.6+0242_daily_bin224.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.660       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0813       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6564       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38012E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9375       1.0000         .10000E-03   10000.    
    13 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6475       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .78931E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    147.22       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16685E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    32.599       1.0000         .10000E-03   10000.    
    23 'norm      '    16.767       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.399       1.0000         .10000E-03   10000.    
    26 'Prefactor '    126.65       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.532       1.0000         .10000E-03   10000.    
    28 'Prefactor '    24.397       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3538       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91901       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=   6218.979     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3894 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.823        .89632E-07** at limit **
   2  Prefactor     54.667        73.470       -.11951E-06   -.14839E-04
   3  Prefactor     .10000E-03    11.743       -.51699E-07** at limit **
   4  Prefactor     2.0754        7.9983       -.20633E-06   -.16047E-04
   5  norm          .10000E-03    1.2962        .16367E-07** at limit **
   6  norm          11.140        6.4527       -.19956E-07   -.26674E-04
   7  Prefactor     .10000E-03    10.410        .39696E-07** at limit **
   8  norm          1.6532        40.247       -.10139E-06   -.15527E-04
   9  Prefactor     .10000E-03    10.486        .89253E-08** at limit **
  10  Prefactor     .10000E-03    83.422       -.32770E-04** at limit **
  11  Prefactor     .10000E-03    23.220       -.38432E-07** at limit **
  12  Prefactor     4.9352        11.245       -.50209E-07   -.48195E-04
  13  norm          .10000E-03    .30837        .28158E-06** at limit **
  14  norm          .10000E-03    3.9638        .66889E-07** at limit **
  15  Prefactor     2.6462        9.5332       -.14612E-05    .16705E-04
  16  Prefactor     .10000E-03    56.471        .61541E-06** at limit **
  17  norm          4.9361        6.4589       -.11177E-06   -.79231E-04
  18  Prefactor     .10000E-03    3.8826        .12287E-05** at limit **
  19  Prefactor     146.61        192.02       -.72805E-05   -.14685E-04
  20  Prefactor     .10000E-03    19.966        .59884E-06** at limit **
  21  Prefactor     .10000E-03    12.026       -.13287E-06** at limit **
  22  norm          32.601        21.080       -.12955E-07   -.40361E-04
  23  norm          16.789        20.985        .32416E-06   -.91655E-04
  24  Prefactor     .10000E-03    22.529       -.34909E-07** at limit **
  25  Prefactor     13.400        6.2584        .77355E-07   -.32941E-03
  26  Prefactor     126.62        60.921       -.37404E-06   -.44108E-04
  27  Prefactor     12.515        22.165       -.46386E-07   -.50494E-05
  28  Prefactor     24.395        18.030       -.35009E-07   -.23399E-04
  29  Normalizat    1.3542        .23245        .10980E-05   -.10302E-03
  30  Prefactor     .91887        .15193       -.95750E-06   -.42901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 54.667
  Prefactor  = 0.0001
  Prefactor  = 2.07537
  norm       = 0.0001
  norm       = 11.1404
  Prefactor  = 0.0001
  norm       = 1.65318
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.93515
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.64624
  Prefactor  = 0.0001
  norm       = 4.93612
  Prefactor  = 0.000100003
  Prefactor  = 146.611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.601
  norm       = 16.7886
  Prefactor  = 0.0001
  Prefactor  = 13.4001
  Prefactor  = 126.621
  Prefactor  = 12.5151
  Prefactor  = 24.3945
  Normalizat = 1.35425
  Prefactor  = 0.918867
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.979     FROM HESSE     STATUS=OK           588 CALLS     4482 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.667        73.193        .54254E-04   -1.4228    
   3  Prefactor     .10000E-03    11.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0754        7.9716        .28624E-03   -1.5420    
   5  norm          .10000E-03    1.3340        .17524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.140        6.4555        .12002E-03   -1.5040    
   7  Prefactor     .10000E-03    10.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6532        40.392        .32790E-03   -1.5451    
   9  Prefactor     .10000E-03    10.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    80.631        .36541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9352        11.231        .18100E-03   -1.5264    
  13  norm          .10000E-03    .31536        .42897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.0329        .15312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6462        9.5338        .12528E-02   -1.5383    
  16  Prefactor     .10000E-03    56.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9361        6.3797        .18107E-03   -1.5264    
  18  Prefactor     .10000E-03    29.626        .28851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     146.61        192.14        .16606E-03   -1.3280    
  20  Prefactor     .10000E-03    20.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          32.601        21.051        .70181E-04   -1.4565    
  23  norm          16.789        20.913        .97813E-04   -1.4888    
  24  Prefactor     .10000E-03    22.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.400        6.2668        .10943E-03   -1.4976    
  26  Prefactor     126.62        61.225        .17886E-03   -1.3453    
  27  Prefactor     12.515        22.158        .11315E-03   -1.5000    
  28  Prefactor     24.395        18.034        .81098E-04   -1.4720    
  29  Normalizat    1.3542        .27322        .28852E-03   -.81961    
  30  Prefactor     .91887        .17747        .23373E-03   -.95485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55256e-10
Minuit parameter uncertainties:
  1  9.78347e-06
  2  73.3135
  3  5.95278e-06
  4  7.97563
  5  3.21841e-07
  6  6.45589
  7  1.65099e-06
  8  16.355
  9  1.57651e-06
  10  0.000716708
  11  5.29003e-06
  12  11.2355
  13  8.19131e-06
  14  7.41648e-07
  15  9.53925
  16  4.22524e-05
  17  6.38061
  18  0.000557773
  19  192.968
  20  5.50342e-05
  21  6.63097e-05
  22  21.0561
  23  20.9217
  24  5.2268e-06
  25  6.26715
  26  61.2558
  27  22.1722
  28  18.0377
  29  0.273509
  30  0.177583
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.266e+02  6.126e+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.189e-01  1.776e-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.354e+00  2.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.89
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 7.41e-08
Energy Flux (Fixed Index): 4.22e-05 +/- 2.04e-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) = 6217.33459543
delta logL = 1.64393779249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6217.32398578
delta logL = 1.6545474466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.839       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5259       1.0000          .0000       10.000    
     3 'Normalizat'    1.2439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97264       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=   6217.324     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      307 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.817        64.947        .60550E-04    .92940E-04
   2  Index         3.5262        .89432        .33418E-02    .13758E-03
   3  Normalizat    1.2437        .26814        .29831E-03   -.23438E-04
   4  Prefactor     .97281        .18022        .22790E-03   -.19330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.8169
  Index      = 3.52616
  Normalizat = 1.24367
  Prefactor  = 0.972812
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.324     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.817        47.697        .24220E-05   -1.4383    
   2  Index         3.5262        .65747        .13367E-03   -.29921    
   3  Normalizat    1.2437        .26770        .11932E-04   -.85264    
   4  Prefactor     .97281        .17942        .45581E-04   -.93641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64287e-10
Minuit parameter uncertainties:
  1  47.7382
  2  0.659567
  3  0.268
  4  0.179529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69949': 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) = 6217.32398517
delta logL = 1.65454805362

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.382e+01  4.774e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.526e+00  6.596e-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:  9.728e-01  1.795e-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.244e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.65
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.53 +/- 0.66
Photon Flux (Free Index): 2.42e-07 +/- 9.52e-08
Energy Flux (Free Index): 4.00e-05 +/- 1.60e-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/69949/cmap_HighResolution_297388801_297648001_4FGL_J2339.6+0242_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='4.00e-05', photon_flux_error='7.41e-08', dlogl='1.65e+00', energy_flux='4.22e-05', photon_flux2='2.42e-07', job_status='DONE', time_completed='2021-09-30 02:44:56.032813', photon_index_error2='0.66', photon_index2='3.53', ts='6.89', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.35', time_epoch_completed='1632995096.03', return_code='0', job_id='69949', GAL2='0.97', EG2='1.24', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='9.52e-08', ts2='10.65', photon_index='2.55' WHERE bin_id='224' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:44:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 69949: <4FGL_J2339.6+0242_daily_bin224> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin224> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:37 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:39 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:39 2021
Terminated at Thu Sep 30 02:44:56 2021
Results reported at Thu Sep 30 02:44:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin224 354.904 2.7102 297388801 297648001 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 :                                   713.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

