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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin490
RA = 354.904, Dec = 2.7102
tmin = 366336001, tmax = 366595201
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='71701', job_status='RUN', time_executed='2021-09-30 02:39:22.618191', time_epoch_executed='1632994762.62' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71701

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71701/ft1_4FGL_J2339.6+0242_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71701/ft2_4FGL_J2339.6+0242_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71701/ft1_4FGL_J2339.6+0242_daily_bin490.fits outfile=/scratch/kocevski/71701/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin490.fits ra=354.904 dec=2.7102 rad=12.0 tmin=366336001.0 tmax=366595201.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 5.52
user 5.24
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71701/ft2_4FGL_J2339.6+0242_daily_bin490.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/71701/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin490.fits evtable="EVENTS" outfile="/scratch/kocevski/71701/ft1_filtered_4FGL_J2339.6+0242_daily_bin490.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71701/ft1_filtered_4FGL_J2339.6+0242_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/71701/ft2_4FGL_J2339.6+0242_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/71701/ltcube_366336001_366595201_4FGL_J2339.6+0242_daily_bin490.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/71701/ft2_4FGL_J2339.6+0242_daily_bin490.fits
.....................!
real 12.09
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71701/ft1_filtered_4FGL_J2339.6+0242_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/71701/ft2_4FGL_J2339.6+0242_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/71701/ltcube_366336001_366595201_4FGL_J2339.6+0242_daily_bin490.fits outfile=/scratch/kocevski/71701/expmap_366336001_366595201_4FGL_J2339.6+0242_daily_bin490.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/71701/ltcube_366336001_366595201_4FGL_J2339.6+0242_daily_bin490.fits
.....................!
real 191.40
user 185.77
sys 5.19

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/71701/ft1_filtered_4FGL_J2339.6+0242_daily_bin490.fits scfile=/scratch/kocevski/71701/ft2_4FGL_J2339.6+0242_daily_bin490.fits outfile=/scratch/kocevski/71701/cmap_366336001_366595201_4FGL_J2339.6+0242_daily_bin490.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71701/ft1_filtered_4FGL_J2339.6+0242_daily_bin490.fits scfile=/scratch/kocevski/71701/ft2_4FGL_J2339.6+0242_daily_bin490.fits outfile=/scratch/kocevski/71701/cmap_HighResolution_366336001_366595201_4FGL_J2339.6+0242_daily_bin490.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    61.196       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20973E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3770       1.0000         .10000E-03   10000.    
     6 'norm      '    .18493E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4133       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0979       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.495       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4058       1.0000         .10000E-03   10000.    
    14 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4470       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.378       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19144E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.553       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95052       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82425       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=   4732.081     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3929 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2379        .91290E-06** at limit **
   2  Prefactor     61.203        60.574       -.13459E-05   -.93610E-05
   3  Prefactor     .10041E-03    29.901       -.90490E-05** at limit **
   4  Prefactor     .10000E-03    4.7814        .17142E-06** at limit **
   5  norm          2.3751        2.8033       -.17894E-06    .50815E-03
   6  norm          .10021E-03    3.7917       -.26897E-05** at limit **
   7  Prefactor     .10000E-03    8.8320        .24476E-06** at limit **
   8  norm          2.4172        19.343        .11533E-04    .37020E-03
   9  Prefactor     5.0945        68.257        .24789E-05    .15054E-04
  10  Prefactor     .10000E-03    11.452       -.13742E-05** at limit **
  11  Prefactor     16.493        17.871       -.26484E-06   -.94405E-05
  12  Prefactor     .10000E-03    26.294        .30569E-06** at limit **
  13  norm          2.4065        1.3139       -.44161E-07   -.62798E-03
  14  norm          .10000E-03    6.0374        .15021E-05** at limit **
  15  Prefactor     1.4460        11.358        .60678E-06    .10032E-03
  16  Prefactor     .10000E-03    17.989        .65284E-06** at limit **
  17  norm          19.391        12.417        .14916E-05    .97890E-03
  18  Prefactor     .10001E-03    10.679        .38195E-05** at limit **
  19  Prefactor     .10000E-03    94.194       -.18105E-05** at limit **
  20  Prefactor     .10000E-03    30.821        .14896E-05** at limit **
  21  Prefactor     .10000E-03    7.3184       -.93823E-06** at limit **
  22  norm          .10000E-03    17.605        .78484E-06** at limit **
  23  norm          .10000E-03    12.391        .10273E-05** at limit **
  24  Prefactor     .10000E-03    50.735       -.67727E-05** at limit **
  25  Prefactor     .10000E-03    4.5010       -.29042E-06** at limit **
  26  Prefactor     .10000E-03    39.546        .78033E-06** at limit **
  27  Prefactor     21.561        21.772        .23690E-06    .47613E-04
  28  Prefactor     .10000E-03    24.353       -.12850E-05** at limit **
  29  Normalizat    .95064        .21738       -.39740E-06    .32177E-03
  30  Prefactor     .82419        .14475       -.50405E-06    .41761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 61.203
  Prefactor  = 0.000100407
  Prefactor  = 0.0001
  norm       = 2.37506
  norm       = 0.000100211
  Prefactor  = 0.0001
  norm       = 2.41717
  Prefactor  = 5.09454
  Prefactor  = 0.0001
  Prefactor  = 16.4928
  Prefactor  = 0.0001
  norm       = 2.40647
  norm       = 0.0001
  Prefactor  = 1.44597
  Prefactor  = 0.0001
  norm       = 19.3912
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5609
  Prefactor  = 0.0001
  Normalizat = 0.950635
  Prefactor  = 0.82419
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.081     FROM HESSE     STATUS=OK           578 CALLS     4507 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2521        .18079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.203        60.581        .51292E-04   -1.4142    
   3  Prefactor     .10041E-03    101.74        .53337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8052        .14687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3751        2.6067        .11055E-03   -1.5400    
   6  norm          .10021E-03    32.240        .22315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4172        23.427        .13176E-02   -1.5397    
   9  Prefactor     5.0945        67.890        .17807E-03   -1.5257    
  10  Prefactor     .10000E-03    11.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.493        17.863        .98614E-04   -1.4896    
  12  Prefactor     .10000E-03    27.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4065        1.2960        .54453E-04   -1.5398    
  14  norm          .10000E-03    18.773        .31570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4460        11.013        .35832E-03   -1.5467    
  16  Prefactor     .10000E-03    17.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.391        11.368        .90985E-04   -1.4827    
  18  Prefactor     .10001E-03    22.259        .33425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    94.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.672        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    17.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.6406        .28460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    39.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.561        21.784        .86277E-04   -1.4779    
  28  Prefactor     .10000E-03    24.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95064        .24863        .26845E-03   -.94703    
  30  Prefactor     .82419        .16855        .19926E-03   -.98843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25078e-08
Minuit parameter uncertainties:
  1  2.67949e-05
  2  60.6419
  3  0.0128848
  4  2.9255e-05
  5  2.60681
  6  0.00521797
  7  8.96723e-06
  8  15.0577
  9  37.2465
  10  2.26431e-05
  11  17.8684
  12  3.15178e-05
  13  1.296
  14  2.07945e-05
  15  7.98289
  16  2.17955e-06
  17  11.3688
  18  0.000934622
  19  8.3908e-05
  20  0.000381337
  21  2.0146e-05
  22  2.85869e-05
  23  2.08478e-05
  24  0.000116534
  25  3.50597e-05
  26  6.49502e-05
  27  21.7916
  28  8.78683e-05
  29  0.248932
  30  0.16866
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  6.495e-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.242e-01  1.687e-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.506e-01  2.489e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71701/likelihoodResults_366336001_366595201_4FGL_J2339.6+0242_daily_bin490.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) = 4732.08149387
delta logL = -0.000119466565593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4732.08137603
delta logL = -1.62151263794e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9419       1.0000          .0000       10.000    
     3 'Normalizat'    .95063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82419       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=   4732.081     FROM MIGRAD    STATUS=FAILED        97 CALLS      277 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13772E-03    28.304        .18142E-01** at limit **
   2  Index         2.6188        7.7386        .50000        .17291E-04
   3  Normalizat    .95063        .47799E-02    .26845E-03   -.21598E-05
   4  Prefactor     .82419        .33445E-02    .19926E-03    .70177E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4732.081     FROM SIMPLEX   STATUS=PROGRESS      98 CALLS      375 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13275E-03    28.304        .72515E-03** at limit **
   2  Index         2.5787        7.7386        .12661E-01    .17291E-04
   3  Normalizat    .95060        .47799E-02    .16018E-04   -.21598E-05
   4  Prefactor     .82418        .33445E-02    .71603E-05    .70177E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4732.081     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      464 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1339.9        .14514E-02** at limit **
   2  Index         2.1070        7.3107        .50000        .60923E-07
   3  Normalizat    .95063        .24198E-01    .21476E-05   -.86816E-04
   4  Prefactor     .82419        .16930E-01    .15941E-05    .48496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.10704
  Normalizat = 0.950632
  Prefactor  = 0.824191
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.081     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      491 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7451.1        .29028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1070        5.9922        .50000       -.61700    
   3  Normalizat    .95063        .54771E-01    .42952E-06   -.94703    
   4  Prefactor     .82419        .38321E-01    .31882E-06   -.98843    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.64626e-12
Minuit parameter uncertainties:
  1  0.00482138
  2  2304.33
  3  0.0547744
  4  0.038322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71701': 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) = 4732.08137389
delta logL = 5.1618735597e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  4.821e-03  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.107e+00  2.304e+03  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.242e-01  3.832e-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.506e-01  5.477e-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/71701/cmap_HighResolution_366336001_366595201_4FGL_J2339.6+0242_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-30 02:51:01.295224', job_id='71701', GAL2='0.82', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632995461.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='490' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 71701: <4FGL_J2339.6+0242_daily_bin490> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin490 354.904 2.7102 366336001 366595201 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 :                                   696.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

