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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin174
RA = 354.904, Dec = 2.7102
tmin = 284428801, tmax = 284688001
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='69867', job_status='RUN', time_executed='2021-09-30 02:33:09.984065', time_epoch_executed='1632994389.98' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69867

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69867/ft1_4FGL_J2339.6+0242_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69867/ft2_4FGL_J2339.6+0242_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69867/ft1_4FGL_J2339.6+0242_daily_bin174.fits outfile=/scratch/kocevski/69867/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin174.fits ra=354.904 dec=2.7102 rad=12.0 tmin=284428801.0 tmax=284688001.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.55
user 3.35
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/69867/ft2_4FGL_J2339.6+0242_daily_bin174.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/69867/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin174.fits evtable="EVENTS" outfile="/scratch/kocevski/69867/ft1_filtered_4FGL_J2339.6+0242_daily_bin174.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.75
user 0.34
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69867/ft1_filtered_4FGL_J2339.6+0242_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/69867/ft2_4FGL_J2339.6+0242_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/69867/ltcube_284428801_284688001_4FGL_J2339.6+0242_daily_bin174.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/69867/ft2_4FGL_J2339.6+0242_daily_bin174.fits
.....................!
real 11.81
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69867/ft1_filtered_4FGL_J2339.6+0242_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/69867/ft2_4FGL_J2339.6+0242_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/69867/ltcube_284428801_284688001_4FGL_J2339.6+0242_daily_bin174.fits outfile=/scratch/kocevski/69867/expmap_284428801_284688001_4FGL_J2339.6+0242_daily_bin174.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/69867/ltcube_284428801_284688001_4FGL_J2339.6+0242_daily_bin174.fits
.....................!
real 190.06
user 185.33
sys 4.37

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/69867/ft1_filtered_4FGL_J2339.6+0242_daily_bin174.fits scfile=/scratch/kocevski/69867/ft2_4FGL_J2339.6+0242_daily_bin174.fits outfile=/scratch/kocevski/69867/cmap_284428801_284688001_4FGL_J2339.6+0242_daily_bin174.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69867/ft1_filtered_4FGL_J2339.6+0242_daily_bin174.fits scfile=/scratch/kocevski/69867/ft2_4FGL_J2339.6+0242_daily_bin174.fits outfile=/scratch/kocevski/69867/cmap_HighResolution_284428801_284688001_4FGL_J2339.6+0242_daily_bin174.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6860       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .75946       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.313       1.0000         .10000E-03   10000.    
    13 'norm      '    .76326       1.0000         .10000E-03   10000.    
    14 'norm      '    .10695E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6932       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13948E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75222E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    86.088       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.4519       1.0000         .10000E-03   10000.    
    23 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98515       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83711       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=   5227.019     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3928 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.592        11.688        .60369E-06    .82626E-04
   2  Prefactor     .10000E-03    22.583        .21126E-06** at limit **
   3  Prefactor     3.6869        8.5259        .30609E-07   -.10978E-05
   4  Prefactor     .10000E-03    1.8676       -.24428E-08** at limit **
   5  norm          .75887        2.1379        .80586E-06    .25512E-03
   6  norm          .10000E-03    2.1736        .56818E-07** at limit **
   7  Prefactor     .10000E-03    6.7666        .29638E-07** at limit **
   8  norm          .10000E-03    18.002       -.30370E-06** at limit **
   9  Prefactor     15.865        33.751       -.88703E-07   -.10702E-04
  10  Prefactor     .10000E-03    3.4573        .19924E-07** at limit **
  11  Prefactor     .10000E-03    33.824       -.17687E-06** at limit **
  12  Prefactor     17.309        13.589        .66224E-06    .12313E-03
  13  norm          .76389        1.0304       -.69752E-06   -.16057E-02
  14  norm          .10000E-03    4.4643       -.39697E-07** at limit **
  15  Prefactor     5.6941        11.008        .37501E-06   -.10536E-03
  16  Prefactor     .10000E-03    281.41       -.66583E-06** at limit **
  17  norm          20.102        10.392        .93293E-07   -.85462E-03
  18  Prefactor     .10076E-03    8.8939        .26616E-05** at limit **
  19  Prefactor     85.890        162.30        .12466E-05   -.38013E-04
  20  Prefactor     .10000E-03    4.2010       -.73948E-06** at limit **
  21  Prefactor     .10000E-03    12.739        .55481E-07** at limit **
  22  norm          5.4509        11.440        .37595E-05    .21414E-03
  23  norm          .10000E-03    6.4232       -.31347E-06** at limit **
  24  Prefactor     .10000E-03    30.525       -.10473E-06** at limit **
  25  Prefactor     .10000E-03    1.5269       -.43734E-06** at limit **
  26  Prefactor     .10000E-03    28.840        .11881E-06** at limit **
  27  Prefactor     .10000E-03    8.2614        .89971E-07** at limit **
  28  Prefactor     .10000E-03    9.9870       -.49759E-07** at limit **
  29  Normalizat    .98536        .19744       -.27258E-06   -.20897E-03
  30  Prefactor     .83693        .13266       -.68699E-07   -.23674E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5918
  Prefactor  = 0.0001
  Prefactor  = 3.68688
  Prefactor  = 0.0001
  norm       = 0.758873
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3088
  norm       = 0.763892
  norm       = 0.0001
  Prefactor  = 5.6941
  Prefactor  = 0.0001
  norm       = 20.1022
  Prefactor  = 0.000100763
  Prefactor  = 85.8899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.45088
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985358
  Prefactor  = 0.836932
 **********
 **   18 **HESSE 
 **********

 FCN=   5227.019     FROM HESSE     STATUS=OK           580 CALLS     4508 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.592        11.680        .58831E-03   -1.5027    
   2  Prefactor     .10000E-03    22.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6869        8.4719        .21037E-03   -1.5324    
   4  Prefactor     .10000E-03    1.8691        .96488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .75887        2.0967        .16604E-03   -1.5534    
   6  norm          .10000E-03    2.2084        .10408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.865        33.736        .10048E-03   -1.4911    
  10  Prefactor     .10000E-03    3.4603        .13129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.309        13.606        .96256E-04   -1.4876    
  13  norm          .76389        .98608        .81768E-03   -1.5533    
  14  norm          .10000E-03    4.4816        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6941        10.962        .16835E-03   -1.5231    
  16  Prefactor     .10000E-03    285.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.102        9.6760        .89305E-04   -1.4811    
  18  Prefactor     .10076E-03    49.954        .34930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     85.890        161.74        .21649E-03   -1.3852    
  20  Prefactor     .10000E-03    4.1945        .14442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.4509        11.345        .86046E-03   -1.5241    
  23  norm          .10000E-03    6.4236        .17893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.5287        .87035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    28.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.2782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98536        .22438        .26149E-03   -.93523    
  30  Prefactor     .83693        .15328        .19742E-03   -.98381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48976e-08
Minuit parameter uncertainties:
  1  11.6827
  2  9.32963e-05
  3  8.47468
  4  7.2355e-07
  5  2.09686
  6  1.37338e-06
  7  2.72844e-06
  8  4.99558e-05
  9  33.7768
  10  5.30057e-07
  11  9.69914e-05
  12  13.6087
  13  0.986098
  14  5.83551e-06
  15  10.9662
  16  5.67943e-05
  17  9.67671
  18  0.0123586
  19  162.575
  20  1.83304e-05
  21  4.27124e-06
  22  11.3496
  23  9.18398e-06
  24  2.16694e-05
  25  6.14718e-06
  26  4.99834e-05
  27  7.40173e-06
  28  1.14158e-05
  29  0.224598
  30  0.15336
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.369e-01  1.534e-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.854e-01  2.246e-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: 8.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69867/likelihoodResults_284428801_284688001_4FGL_J2339.6+0242_daily_bin174.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) = 5227.0189522
delta logL = -0.000164647831298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5227.01878813
delta logL = -5.72069438931e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9705       1.0000          .0000       10.000    
     3 'Normalizat'    .98536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83693       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=   5227.019     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10265E-03    13.028        .18142E-01** at limit **
   2  Index         2.8921        5.4240        .50000        .93160E-05
   3  Normalizat    .98536        .36940E-02    .26149E-03    .77302E-04
   4  Prefactor     .83693        .26049E-02    .19742E-03    .74285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102653
  Index      = 2.89206
  Normalizat = 0.985359
  Prefactor  = 0.836932
 **********
 **   18 **HESSE 
 **********

 FCN=   5227.019     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10265E-03    486.44        .67712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8921        8.5527        .50000       -.43520    
   3  Normalizat    .98536        .22941E-01    .10459E-04   -.93523    
   4  Prefactor     .83693        .16178E-01    .78969E-05   -.98381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.77663e-09
Minuit parameter uncertainties:
  1  0.0724478
  2  760.216
  3  0.0229416
  4  0.0161778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69867': 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) = 5227.018788
delta logL = -4.47359525424e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.027e-04  7.245e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.892e+00  7.602e+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:  8.369e-01  1.618e-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.854e-01  2.294e-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/69867/cmap_HighResolution_284428801_284688001_4FGL_J2339.6+0242_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='8.93e-08', time_completed='2021-09-30 02:45:18.932603', job_id='69867', GAL2='0.84', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632995118.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-4.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='174' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:45:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 69867: <4FGL_J2339.6+0242_daily_bin174> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin174 354.904 2.7102 284428801 284688001 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

