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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin390
RA = 354.904, Dec = 2.7102
tmin = 340416001, tmax = 340675201
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='71522', job_status='RUN', time_executed='2021-09-30 02:37:46.724077', time_epoch_executed='1632994666.72' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71522

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71522/ft1_4FGL_J2339.6+0242_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71522/ft2_4FGL_J2339.6+0242_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71522/ft1_4FGL_J2339.6+0242_daily_bin390.fits outfile=/scratch/kocevski/71522/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin390.fits ra=354.904 dec=2.7102 rad=12.0 tmin=340416001.0 tmax=340675201.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.74
user 6.45
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71522/ft2_4FGL_J2339.6+0242_daily_bin390.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/71522/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin390.fits evtable="EVENTS" outfile="/scratch/kocevski/71522/ft1_filtered_4FGL_J2339.6+0242_daily_bin390.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71522/ft1_filtered_4FGL_J2339.6+0242_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/71522/ft2_4FGL_J2339.6+0242_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/71522/ltcube_340416001_340675201_4FGL_J2339.6+0242_daily_bin390.fits outfile=/scratch/kocevski/71522/expmap_340416001_340675201_4FGL_J2339.6+0242_daily_bin390.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/71522/ltcube_340416001_340675201_4FGL_J2339.6+0242_daily_bin390.fits
.....................!
real 190.96
user 185.71
sys 4.93

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/71522/ft1_filtered_4FGL_J2339.6+0242_daily_bin390.fits scfile=/scratch/kocevski/71522/ft2_4FGL_J2339.6+0242_daily_bin390.fits outfile=/scratch/kocevski/71522/cmap_340416001_340675201_4FGL_J2339.6+0242_daily_bin390.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/71522/ft1_filtered_4FGL_J2339.6+0242_daily_bin390.fits scfile=/scratch/kocevski/71522/ft2_4FGL_J2339.6+0242_daily_bin390.fits outfile=/scratch/kocevski/71522/cmap_HighResolution_340416001_340675201_4FGL_J2339.6+0242_daily_bin390.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/71522/ft1_filtered_4FGL_J2339.6+0242_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/71522/ft2_4FGL_J2339.6+0242_daily_bin390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71522/Model_4FGL_J2339.6+0242_daily_bin390.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/71522/ft1_filtered_4FGL_J2339.6+0242_daily_bin390.fits.....................!
real 57.17
user 55.91
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.216       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6630       1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.161       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5607       1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.101       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7366       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.667       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7847       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.580       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.053       1.0000         .10000E-03   10000.    
    27 'Prefactor '    33.465       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90612       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72724       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=   5395.920     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3888 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4154        .80311E-08** at limit **
   2  Prefactor     .10001E-03    34.630        .54172E-05** at limit **
   3  Prefactor     14.218        11.970        .20338E-08   -.38947E-04
   4  Prefactor     9.6639        8.4314        .21981E-06   -.44688E-04
   5  norm          .10000E-03    .82545        .36644E-07** at limit **
   6  norm          11.161        5.4288       -.28920E-06   -.48166E-03
   7  Prefactor     .10000E-03    11.756       -.56766E-06** at limit **
   8  norm          16.714        14.728        .18546E-06    .49723E-05
   9  Prefactor     24.353        33.396       -.49149E-06   -.50652E-04
  10  Prefactor     4.5594        9.9976        .46866E-05   -.51413E-03
  11  Prefactor     44.101        26.308       -.77592E-07   -.44974E-04
  12  Prefactor     .10000E-03    7.5284        .42898E-06** at limit **
  13  norm          2.7367        1.0236        .10502E-07    .11207E-03
  14  norm          .10000E-03    1.8015        .40208E-07** at limit **
  15  Prefactor     11.663        11.030       -.16341E-06    .20787E-04
  16  Prefactor     .10003E-03    39.737       -.88600E-05** at limit **
  17  norm          .10000E-03    4.1617       -.18775E-06** at limit **
  18  Prefactor     7.7838        7.4878        .18679E-05   -.65139E-03
  19  Prefactor     .10001E-03    58.407        .45207E-05** at limit **
  20  Prefactor     .10000E-03    20.007       -.85434E-06** at limit **
  21  Prefactor     .10000E-03    6.3210       -.29331E-07** at limit **
  22  norm          .10000E-03    8.1738       -.85058E-06** at limit **
  23  norm          .10000E-03    13.860        .66929E-06** at limit **
  24  Prefactor     .10000E-03    20.931        .24473E-06** at limit **
  25  Prefactor     10.582        5.7344        .19920E-06    .14211E-03
  26  Prefactor     9.9297        55.385       -.28345E-05   -.51159E-04
  27  Prefactor     33.477        24.785        .68643E-06    .10580E-03
  28  Prefactor     .10000E-03    8.7459        .69958E-06** at limit **
  29  Normalizat    .90577        .20843       -.49059E-06    .25178E-04
  30  Prefactor     .72751        .13330       -.47132E-06    .50023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 14.2183
  Prefactor  = 9.66393
  norm       = 0.0001
  norm       = 11.1613
  Prefactor  = 0.0001
  norm       = 16.7139
  Prefactor  = 24.3531
  Prefactor  = 4.55939
  Prefactor  = 44.1008
  Prefactor  = 0.0001
  norm       = 2.73666
  norm       = 0.0001
  Prefactor  = 11.6632
  Prefactor  = 0.000100031
  norm       = 0.0001
  Prefactor  = 7.78378
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5819
  Prefactor  = 9.92969
  Prefactor  = 33.4771
  Prefactor  = 0.0001
  Normalizat = 0.905774
  Prefactor  = 0.727512
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.920     FROM HESSE     STATUS=OK           582 CALLS     4470 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4194        .15075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    35.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.218        11.985        .10623E-03   -1.4954    
   4  Prefactor     9.6639        8.4503        .12891E-03   -1.5086    
   5  norm          .10000E-03    .83513        .65130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.161        5.4572        .11590E-03   -1.5040    
   7  Prefactor     .10000E-03    11.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.714        14.736        .97961E-04   -1.4890    
   9  Prefactor     24.353        33.442        .81167E-04   -1.4721    
  10  Prefactor     4.5594        10.349        .94249E-03   -1.5281    
  11  Prefactor     44.101        26.341        .60371E-04   -1.4379    
  12  Prefactor     .10000E-03    7.6370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7367        1.0239        .24613E-04   -1.5377    
  14  norm          .10000E-03    1.8067        .96280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.663        11.037        .11728E-03   -1.5025    
  16  Prefactor     .10003E-03    43.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.1816        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7838        7.6396        .71859E-03   -1.5150    
  19  Prefactor     .10001E-03    59.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.582        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.3237        .18037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.2142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    13.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.582        5.7373        .11999E-03   -1.5057    
  26  Prefactor     9.9297        56.141        .12638E-03   -1.5078    
  27  Prefactor     33.477        24.816        .69269E-04   -1.4550    
  28  Prefactor     .10000E-03    8.7882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .90577        .23746        .27947E-03   -.96258    
  30  Prefactor     .72751        .15148        .21009E-03   -1.0246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45652e-09
Minuit parameter uncertainties:
  1  1.97637e-06
  2  0.00130516
  3  11.9874
  4  8.45136
  5  8.17709e-07
  6  5.4574
  7  5.59967e-05
  8  14.7388
  9  33.4679
  10  10.3526
  11  26.348
  12  3.6114e-05
  13  1.02389
  14  7.09733e-07
  15  11.0393
  16  0.00230628
  17  1.87209e-05
  18  7.64059
  19  0.00141662
  20  0.00014814
  21  2.99442e-06
  22  0.000101106
  23  9.74005e-05
  24  3.81885e-05
  25  5.73763
  26  47.289
  27  24.8232
  28  7.78445e-05
  29  0.237737
  30  0.151568
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  9.930e+00  4.729e+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:  7.275e-01  1.516e-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.058e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71522/likelihoodResults_340416001_340675201_4FGL_J2339.6+0242_daily_bin390.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): 0
logL (Free Index) = 5395.42986689
delta logL = 0.490092531715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5395.41893588
delta logL = 0.501023536109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3178       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9061       1.0000          .0000       10.000    
     3 'Normalizat'    .82793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76126       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5395.419     FROM MIGRAD    STATUS=FAILED        82 CALLS      339 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3187        62.675        .80625E-04    .55922E-02
   2  Index         4.9067        7.4505        .62444E-02    .72281E-03
   3  Normalizat    .82793        .18875        .29105E-03    .82462E-03
   4  Prefactor     .76123        .12616        .20580E-03    .74449E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5395.419     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      426 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3187        62.675        .17791E-03    .55922E-02
   2  Index         4.9067        7.4505        .18829E-02    .72281E-03
   3  Normalizat    .82793        .18875        .22248E-03    .82462E-03
   4  Prefactor     .76123        .12616        .13992E-03    .74449E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5395.419     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      453 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3194        14.584        .32250E-05    .50734E-02
   2  Index         4.9064        3.3100        .24977E-03    .51816E-03
   3  Normalizat    .82793        .23139        .58211E-04    .73610E-03
   4  Prefactor     .76123        .15249        .41159E-04    .66722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31937
  Index      = 4.9064
  Normalizat = 0.827934
  Prefactor  = 0.761231
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.419     FROM HESSE     STATUS=OK            23 CALLS      476 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3194        11.882        .64500E-06   -1.5478    
   2  Index         4.9064        3.0376        .49955E-04   -.18721E-01
   3  Normalizat    .82793        .23142        .11642E-04   -.99041    
   4  Prefactor     .76123        .15248        .82318E-05   -1.0117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36588e-09
Minuit parameter uncertainties:
  1  7.92064
  2  3.26483
  3  0.231695
  4  0.152562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71522': 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) = 5395.41893442
delta logL = 0.501025001267

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.319e+00  7.921e+00  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.906e+00  3.265e+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:  7.612e-01  1.526e-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.279e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.91 +/- 3.26
Photon Flux (Free Index): 8.05e-08 +/- 8.44e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.19e-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/71522/cmap_HighResolution_340416001_340675201_4FGL_J2339.6+0242_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='5.01e-01', photon_flux2='8.05e-08', job_status='DONE', time_completed='2021-09-30 02:50:18.147073', photon_index_error2='3.26', photon_index2='4.91', ts='0.05', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.19e-05', EG='0.91', time_epoch_completed='1632995418.15', return_code='0', job_id='71522', GAL2='0.76', EG2='0.83', return_code2='0', photon_flux_error2='8.44e-08', ts2='1.18', photon_index='2.55' WHERE bin_id='390' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 71522: <4FGL_J2339.6+0242_daily_bin390> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin390> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:17 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:19 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:19 2021
Terminated at Thu Sep 30 02:50:18 2021
Results reported at Thu Sep 30 02:50:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin390 354.904 2.7102 340416001 340675201 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 :                                   749.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

