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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin435
RA = 354.904, Dec = 2.7102
tmin = 352080001, tmax = 352339201
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='71599', job_status='RUN', time_executed='2021-09-30 02:38:33.854240', time_epoch_executed='1632994713.85' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71599

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71599/ft1_4FGL_J2339.6+0242_daily_bin435.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71599/ft2_4FGL_J2339.6+0242_daily_bin435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71599/ft1_4FGL_J2339.6+0242_daily_bin435.fits outfile=/scratch/kocevski/71599/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin435.fits ra=354.904 dec=2.7102 rad=12.0 tmin=352080001.0 tmax=352339201.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.42
user 3.21
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71599/ft1_filtered_4FGL_J2339.6+0242_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/71599/ft2_4FGL_J2339.6+0242_daily_bin435.fits sctable="SC_DATA" expcube=/scratch/kocevski/71599/ltcube_352080001_352339201_4FGL_J2339.6+0242_daily_bin435.fits outfile=/scratch/kocevski/71599/expmap_352080001_352339201_4FGL_J2339.6+0242_daily_bin435.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/71599/ltcube_352080001_352339201_4FGL_J2339.6+0242_daily_bin435.fits
.....................!
real 190.72
user 185.20
sys 5.12

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/71599/ft1_filtered_4FGL_J2339.6+0242_daily_bin435.fits scfile=/scratch/kocevski/71599/ft2_4FGL_J2339.6+0242_daily_bin435.fits outfile=/scratch/kocevski/71599/cmap_352080001_352339201_4FGL_J2339.6+0242_daily_bin435.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71599/ft1_filtered_4FGL_J2339.6+0242_daily_bin435.fits scfile=/scratch/kocevski/71599/ft2_4FGL_J2339.6+0242_daily_bin435.fits outfile=/scratch/kocevski/71599/cmap_HighResolution_352080001_352339201_4FGL_J2339.6+0242_daily_bin435.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/71599/ft1_filtered_4FGL_J2339.6+0242_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/71599/ft2_4FGL_J2339.6+0242_daily_bin435.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71599/Model_4FGL_J2339.6+0242_daily_bin435.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/71599/ft1_filtered_4FGL_J2339.6+0242_daily_bin435.fits.....................!
real 66.89
user 65.52
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1758       1.0000         .10000E-03   10000.    
     6 'norm      '    13.097       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4386       1.0000         .10000E-03   10000.    
     8 'norm      '    21.262       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5325       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5516       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3790       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11149E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.702       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    86.353       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.7787       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.651       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7517       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96905       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0347       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=   6411.950     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3904 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2410        .81332E-08** at limit **
   2  Prefactor     .10000E-03    31.074        .64993E-06** at limit **
   3  Prefactor     .10000E-03    8.1552        .26179E-07** at limit **
   4  Prefactor     .10000E-03    7.4154        .53922E-07** at limit **
   5  norm          6.1759        3.6660       -.91346E-07   -.54478E-04
   6  norm          13.098        7.1548       -.59061E-06   -.13611E-04
   7  Prefactor     1.4365        44.508        .16925E-04   -.63914E-04
   8  norm          21.261        14.014        .17877E-06    .11696E-04
   9  Prefactor     .10000E-03    42.561        .92164E-07** at limit **
  10  Prefactor     .10000E-03    4.6089        .12994E-07** at limit **
  11  Prefactor     .10000E-03    23.291       -.16139E-06** at limit **
  12  Prefactor     1.5310        17.133        .11000E-05    .10063E-04
  13  norm          2.5515        1.2554        .42392E-07    .26066E-03
  14  norm          .10000E-03    3.2536       -.10510E-08** at limit **
  15  Prefactor     .10000E-03    15.547       -.10201E-06** at limit **
  16  Prefactor     .10000E-03    116.27        .15011E-05** at limit **
  17  norm          8.3811        10.469       -.68332E-06   -.62207E-03
  18  Prefactor     .10000E-03    15.091        .30019E-06** at limit **
  19  Prefactor     .10000E-03    90.431       -.27514E-05** at limit **
  20  Prefactor     .10000E-03    22.972       -.19836E-05** at limit **
  21  Prefactor     21.693        31.316        .23031E-06   -.17147E-03
  22  norm          .10000E-03    6.1873        .61682E-08** at limit **
  23  norm          86.343        37.754        .74944E-06    .24932E-03
  24  Prefactor     .10000E-03    19.516        .41610E-07** at limit **
  25  Prefactor     7.7775        5.9266        .12402E-06    .37470E-03
  26  Prefactor     .10000E-03    14.385       -.46330E-06** at limit **
  27  Prefactor     17.643        25.974        .40481E-06   -.24148E-04
  28  Prefactor     4.7494        17.976        .25469E-05   -.15758E-04
  29  Normalizat    .96905        .23021       -.16265E-05   -.17266E-03
  30  Prefactor     1.0348        .14649       -.80934E-07   -.28654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.17588
  norm       = 13.0975
  Prefactor  = 1.43648
  norm       = 21.2611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53097
  norm       = 2.55151
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 8.38113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 21.6934
  norm       = 0.0001
  norm       = 86.3429
  Prefactor  = 0.0001
  Prefactor  = 7.77754
  Prefactor  = 0.0001
  Prefactor  = 17.6432
  Prefactor  = 4.74941
  Normalizat = 0.969053
  Prefactor  = 1.03478
 **********
 **   18 **HESSE 
 **********

 FCN=   6411.950     FROM HESSE     STATUS=OK           578 CALLS     4482 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2582        .17904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1759        3.6721        .11163E-03   -1.5211    
   6  norm          13.098        7.1752        .11068E-03   -1.4984    
   7  Prefactor     1.4365        44.879        .17989E-02   -1.5468    
   8  norm          21.261        14.026        .86864E-04   -1.4785    
   9  Prefactor     .10000E-03    42.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6143        .16789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5310        17.192        .34470E-03   -1.5461    
  13  norm          2.5515        1.2505        .59231E-04   -1.5388    
  14  norm          .10000E-03    3.2639        .14072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    116.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3811        10.474        .13849E-03   -1.5129    
  18  Prefactor     .10000E-03    15.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    90.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.693        31.243        .85980E-04   -1.4776    
  22  norm          .10000E-03    6.1883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          86.343        37.839        .43233E-04   -1.3847    
  24  Prefactor     .10000E-03    19.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.7775        5.9269        .14377E-03   -1.5150    
  26  Prefactor     .10000E-03    14.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.643        25.987        .95332E-04   -1.4868    
  28  Prefactor     4.7494        18.006        .92291E-03   -1.5272    
  29  Normalizat    .96905        .26537        .32487E-03   -.94075    
  30  Prefactor     1.0348        .16937        .21627E-03   -.91579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27561e-10
Minuit parameter uncertainties:
  1  1.56978e-06
  2  5.66597e-05
  3  5.35957e-06
  4  1.79369e-05
  5  3.67228
  6  7.17565
  7  16.071
  8  14.0278
  9  4.16675e-05
  10  2.05349e-06
  11  8.3877e-05
  12  10.2639
  13  1.25054
  14  8.8916e-07
  15  0.000126387
  16  0.00142746
  17  10.4758
  18  5.78196e-05
  19  0.000236593
  20  0.000540725
  21  31.2669
  22  7.97258e-07
  23  37.8499
  24  1.7184e-06
  25  5.92739
  26  9.5631e-06
  27  26.0038
  28  18.0266
  29  0.26573
  30  0.169461
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  9.563e-06  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.035e+00  1.695e-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.691e-01  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71599/likelihoodResults_352080001_352339201_4FGL_J2339.6+0242_daily_bin435.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6411.95075645
delta logL = -0.000330492341163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6411.9504269
delta logL = -9.42863152886e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12281E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5214       1.0000          .0000       10.000    
     3 'Normalizat'    .96923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0347       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=   6411.950     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      258 TOTAL
                     EDM=   .84E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.981        .18142E-01** at limit **
   2  Index         1.9082        6.7081        .50000        .15871E-07
   3  Normalizat    .96905        .10760E-01    .32487E-03   -.11433E-03
   4  Prefactor     1.0348        .74253E-02    .21627E-03   -.17005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90817
  Normalizat = 0.969053
  Prefactor  = 1.03478
 **********
 **   18 **HESSE 
 **********

 FCN=   6411.950     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    444.91        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9082        8.6562        .50000       -.66666    
   3  Normalizat    .96905        .25122E-01    .12995E-04   -.94075    
   4  Prefactor     1.0348        .17336E-01    .43255E-04   -.91579    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.48576e-12
Minuit parameter uncertainties:
  1  0.000243382
  2  956.321
  3  0.0251222
  4  0.0173357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71599': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6411.95042474
delta logL = 1.21789253171e-06

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.434e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.908e+00  9.563e+02  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.035e+00  1.734e-02  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  9.691e-01  2.512e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-30 02:51:54.099996', job_id='71599', GAL2='1.03', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632995514.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='435' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 71599: <4FGL_J2339.6+0242_daily_bin435> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin435> 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) <bullet0280>, 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:51:54 2021
Results reported at Thu Sep 30 02:51:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin435 354.904 2.7102 352080001 352339201 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 :                                   799.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

