/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 139 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 = 7523
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin733
RA = 354.904, Dec = 2.7102
tmin = 429321601, tmax = 429580801
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='73097', job_status='RUN', time_executed='2021-09-30 02:42:51.108597', time_epoch_executed='1632994971.11' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73097/ft1_4FGL_J2339.6+0242_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73097/ft2_4FGL_J2339.6+0242_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73097/ft1_4FGL_J2339.6+0242_daily_bin733.fits outfile=/scratch/kocevski/73097/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin733.fits ra=354.904 dec=2.7102 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.44
user 6.15
sys 0.28

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73097/ft1_filtered_4FGL_J2339.6+0242_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/73097/ft2_4FGL_J2339.6+0242_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/73097/ltcube_429321601_429580801_4FGL_J2339.6+0242_daily_bin733.fits outfile=/scratch/kocevski/73097/expmap_429321601_429580801_4FGL_J2339.6+0242_daily_bin733.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/73097/ltcube_429321601_429580801_4FGL_J2339.6+0242_daily_bin733.fits
.....................!
real 190.78
user 185.92
sys 4.54

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/73097/ft1_filtered_4FGL_J2339.6+0242_daily_bin733.fits scfile=/scratch/kocevski/73097/ft2_4FGL_J2339.6+0242_daily_bin733.fits outfile=/scratch/kocevski/73097/cmap_429321601_429580801_4FGL_J2339.6+0242_daily_bin733.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/73097/ft1_filtered_4FGL_J2339.6+0242_daily_bin733.fits scfile=/scratch/kocevski/73097/ft2_4FGL_J2339.6+0242_daily_bin733.fits outfile=/scratch/kocevski/73097/cmap_HighResolution_429321601_429580801_4FGL_J2339.6+0242_daily_bin733.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3438       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10297E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .74165       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6741       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.583       1.0000         .10000E-03   10000.    
    17 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8606       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6021       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.417       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.6687       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    31.714       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89713       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92777       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=   3389.760     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3863 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6732       -.16060E-07** at limit **
   2  Prefactor     .10000E-03    38.424       -.24510E-06** at limit **
   3  Prefactor     22.362        19.183        .71637E-06    .24390E-04
   4  Prefactor     5.3443        5.3629        .12905E-06    .14189E-04
   5  norm          .10000E-03    1.0260       -.19537E-06** at limit **
   6  norm          11.196        7.0321        .14277E-06    .23768E-04
   7  Prefactor     .10000E-03    6.8008       -.21967E-06** at limit **
   8  norm          .10000E-03    30.074       -.19632E-05** at limit **
   9  Prefactor     .10000E-03    16.408       -.21954E-06** at limit **
  10  Prefactor     .10000E-03    25.881       -.93292E-06** at limit **
  11  Prefactor     .10000E-03    18.274       -.16912E-06** at limit **
  12  Prefactor     .10000E-03    6.1700        .76990E-06** at limit **
  13  norm          .74210        1.2639        .61130E-06    .61465E-03
  14  norm          .10000E-03    2.0714        .36768E-06** at limit **
  15  Prefactor     1.6697        32.002        .31746E-05    .52287E-04
  16  Prefactor     32.646        82.297        .13062E-05    .11834E-04
  17  norm          .10000E-03    13.003       -.19474E-07** at limit **
  18  Prefactor     7.8642        11.858       -.16741E-07   -.29961E-04
  19  Prefactor     .10000E-03    145.15        .21233E-06** at limit **
  20  Prefactor     7.6030        8.3807        .23631E-06    .24020E-04
  21  Prefactor     40.460        42.133       -.80522E-06   -.14426E-04
  22  norm          .10000E-03    10.421       -.83694E-07** at limit **
  23  norm          .10000E-03    12.346        .67321E-07** at limit **
  24  Prefactor     7.8067        136.49        .10089E-05    .35759E-05
  25  Prefactor     .10000E-03    1.6357        .10511E-06** at limit **
  26  Prefactor     .10000E-03    22.923        .25888E-06** at limit **
  27  Prefactor     31.728        33.459        .84591E-06    .15227E-04
  28  Prefactor     .10000E-03    10.874       -.35106E-06** at limit **
  29  Normalizat    .89657        .29341       -.74189E-05    .36464E-04
  30  Prefactor     .92805        .19965        .43656E-05   -.11333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3621
  Prefactor  = 5.34431
  norm       = 0.0001
  norm       = 11.1965
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.742105
  norm       = 0.0001
  Prefactor  = 1.66975
  Prefactor  = 32.6457
  norm       = 0.0001
  Prefactor  = 7.86418
  Prefactor  = 0.0001
  Prefactor  = 7.60304
  Prefactor  = 40.46
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.8067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7281
  Prefactor  = 0.0001
  Normalizat = 0.89657
  Prefactor  = 0.928049
 **********
 **   18 **HESSE 
 **********

 FCN=   3389.760     FROM HESSE     STATUS=OK           580 CALLS     4443 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6761        .12293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.362        19.189        .84717E-04   -1.4762    
   4  Prefactor     5.3443        5.3649        .13151E-03   -1.5246    
   5  norm          .10000E-03    1.0301        .57555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.196        7.0319        .11847E-03   -1.5039    
   7  Prefactor     .10000E-03    6.8124        .14829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2303        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .74210        1.2489        .81421E-04   -1.5536    
  14  norm          .10000E-03    2.0771        .81918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6697        32.362        .32572E-03   -1.5450    
  16  Prefactor     32.646        82.202        .70198E-04   -1.4565    
  17  norm          .10000E-03    13.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8642        11.813        .14302E-03   -1.5147    
  19  Prefactor     .10000E-03    145.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6030        8.3660        .14545E-03   -1.5156    
  21  Prefactor     40.460        41.835        .63051E-04   -1.4435    
  22  norm          .10000E-03    10.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.8067        135.07        .14481E-03   -1.5149    
  25  Prefactor     .10000E-03    1.6438        .72724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     31.728        33.476        .71151E-04   -1.4581    
  28  Prefactor     .10000E-03    10.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89657        .29810        .28635E-03   -.96581    
  30  Prefactor     .92805        .20358        .20147E-03   -.95168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7748e-10
Minuit parameter uncertainties:
  1  1.54666e-06
  2  1.1957e-06
  3  19.1941
  4  5.36541
  5  1.92701e-06
  6  7.03239
  7  6.85094e-06
  8  0.000163318
  9  1.91848e-05
  10  9.0969e-05
  11  2.05782e-06
  12  3.29592e-05
  13  1.24898
  14  8.84722e-06
  15  14.7106
  16  82.4895
  17  2.09821e-05
  18  11.816
  19  9.43283e-05
  20  8.36724
  21  41.8653
  22  9.5529e-06
  23  1.61575e-06
  24  65.1181
  25  3.48717e-06
  26  4.94638e-05
  27  33.4961
  28  4.44308e-07
  29  0.298651
  30  0.20375
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  4.946e-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:  9.280e-01  2.038e-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:  8.966e-01  2.987e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73097/likelihoodResults_429321601_429580801_4FGL_J2339.6+0242_daily_bin733.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) = 3389.76021502
delta logL = -0.000207522109122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3389.76000752
delta logL = -1.39457370096e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4604       1.0000          .0000       10.000    
     3 'Normalizat'    .89657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92805       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.

 FCN=   3389.760     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7193.0        .90712E-02** at limit **
   2  Index         2.4616        6.3764        .50000       -.51642E-06
   3  Normalizat    .89657        .18364        .64741E-01    .83703E-05
   4  Prefactor     .92805        .13156        .45362E-01    .31927E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46164
  Normalizat = 0.896567
  Prefactor  = 0.928051
 **********
 **   18 **HESSE 
 **********

 FCN=   3389.760     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4616        6.2308        .50000       -.53248    
   3  Normalizat    .89657        .27645        .28637E-03   -.96581    
   4  Prefactor     .92805        .19914        .20147E-03   -.95168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96001e-13
Minuit parameter uncertainties:
  1  8.54175e-06
  2  4.48737
  3  0.276884
  4  0.199296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73097': 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) = 3389.76000751
delta logL = -1.1407337297e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.281e-01  1.993e-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:  8.966e-01  2.769e-01  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/73097/cmap_HighResolution_429321601_429580801_4FGL_J2339.6+0242_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-30 02:52:43.879833', job_id='73097', GAL2='0.93', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632995563.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-1.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='733' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:52:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 73097: <4FGL_J2339.6+0242_daily_bin733> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin733> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:23 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:25 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:40:25 2021
Terminated at Thu Sep 30 02:52:44 2021
Results reported at Thu Sep 30 02:52:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin733 354.904 2.7102 429321601 429580801 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 :                                   578.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

