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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin911
RA = 354.904, Dec = 2.7102
tmin = 475459201, tmax = 475718401
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='73365', job_status='RUN', time_executed='2021-09-30 02:41:08.074781', time_epoch_executed='1632994868.07' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='911'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73365

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73365/ft1_4FGL_J2339.6+0242_daily_bin911.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73365/ft2_4FGL_J2339.6+0242_daily_bin911.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73365/ft1_4FGL_J2339.6+0242_daily_bin911.fits outfile=/scratch/kocevski/73365/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin911.fits ra=354.904 dec=2.7102 rad=12.0 tmin=475459201.0 tmax=475718401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.57
user 3.35
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73365/ft1_filtered_4FGL_J2339.6+0242_daily_bin911.fits evtable="EVENTS" scfile=/scratch/kocevski/73365/ft2_4FGL_J2339.6+0242_daily_bin911.fits sctable="SC_DATA" expcube=/scratch/kocevski/73365/ltcube_475459201_475718401_4FGL_J2339.6+0242_daily_bin911.fits outfile=/scratch/kocevski/73365/expmap_475459201_475718401_4FGL_J2339.6+0242_daily_bin911.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/73365/ltcube_475459201_475718401_4FGL_J2339.6+0242_daily_bin911.fits
.....................!
real 190.08
user 185.27
sys 4.50

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/73365/ft1_filtered_4FGL_J2339.6+0242_daily_bin911.fits scfile=/scratch/kocevski/73365/ft2_4FGL_J2339.6+0242_daily_bin911.fits outfile=/scratch/kocevski/73365/cmap_475459201_475718401_4FGL_J2339.6+0242_daily_bin911.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4411       1.0000         .10000E-03   10000.    
     5 'norm      '    .42776       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .67847E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    79.366       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.392       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.119       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3146       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1801       1.0000         .10000E-03   10000.    
    14 'norm      '    .10610E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .27734E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10495E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.742       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.346       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.199       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89273       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=   6547.094     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3957 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.515        .19703E-05** at limit **
   2  Prefactor     .10001E-03    53.674        .40536E-05** at limit **
   3  Prefactor     18.812        23.524       -.91649E-07   -.15135E-03
   4  Prefactor     2.4414        4.2605        .32222E-06    .87821E-05
   5  norm          .43607        3.5340        .51940E-06   -.28267E-03
   6  norm          .10000E-03    2.1702        .30901E-07** at limit **
   7  Prefactor     .10000E-03    4.2493        .58365E-08** at limit **
   8  norm          .10381E-03    7.0065       -.24841E-05** at limit **
   9  Prefactor     79.366        47.470        .20607E-06    .10660E-04
  10  Prefactor     16.392        15.779        .79305E-06   -.42328E-04
  11  Prefactor     43.118        25.135        .12872E-06    .97539E-04
  12  Prefactor     2.3133        11.155        .16293E-05    .29147E-03
  13  norm          1.1802        .86464       -.10344E-06    .54728E-03
  14  norm          .10012E-03    4.4763       -.10810E-05** at limit **
  15  Prefactor     .10000E-03    3.2374        .17214E-08** at limit **
  16  Prefactor     .10001E-03    13.728       -.33821E-05** at limit **
  17  norm          .10003E-03    6.8430        .61535E-06** at limit **
  18  Prefactor     .10000E-03    6.6301        .14817E-07** at limit **
  19  Prefactor     .10000E-03    87.954       -.27298E-05** at limit **
  20  Prefactor     7.2482        9.6576        .39237E-05   -.12923E-04
  21  Prefactor     .10001E-03    30.496       -.41388E-05** at limit **
  22  norm          .10000E-03    5.8281        .23657E-07** at limit **
  23  norm          .10000E-03    56.383        .12498E-05** at limit **
  24  Prefactor     33.744        41.600        .40292E-06    .66582E-04
  25  Prefactor     .10000E-03    1.3737       -.22951E-06** at limit **
  26  Prefactor     .10000E-03    18.222        .30982E-05** at limit **
  27  Prefactor     24.350        22.067        .16789E-06   -.11687E-04
  28  Prefactor     15.206        17.902       -.54155E-07   -.52750E-04
  29  Normalizat    1.0508        .20651       -.11856E-05    .20857E-03
  30  Prefactor     .89285        .13170       -.12728E-06    .16201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100007
  Prefactor  = 18.812
  Prefactor  = 2.44138
  norm       = 0.43607
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000103808
  Prefactor  = 79.3662
  Prefactor  = 16.3915
  Prefactor  = 43.1179
  Prefactor  = 2.31334
  norm       = 1.18019
  norm       = 0.000100121
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 7.24824
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 33.7441
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 24.3497
  Prefactor  = 15.2058
  Normalizat = 1.05077
  Prefactor  = 0.892855
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.094     FROM HESSE     STATUS=OK           600 CALLS     4557 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    54.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.812        22.355        .46181E-03   -1.4840    
   4  Prefactor     2.4414        4.2347        .21406E-03   -1.5395    
   5  norm          .43607        6.0673        .21874E-02   -1.5576    
   6  norm          .10000E-03    2.1970        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2559        .16289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10381E-03    8.5075        .70032E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     79.366        47.484        .45080E-04   -1.3924    
  10  Prefactor     16.392        15.789        .49462E-03   -1.4898    
  11  Prefactor     43.118        25.142        .61051E-04   -1.4394    
  12  Prefactor     2.3133        8.9072        .26966E-03   -1.5404    
  13  norm          1.1802        .85637        .60216E-04   -1.5491    
  14  norm          .10012E-03    42.800        .27599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2438        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    14.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10003E-03    7.9464        .58002E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    88.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.2482        9.9579        .74482E-03   -1.5169    
  21  Prefactor     .10001E-03    31.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    58.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.744        41.614        .68986E-04   -1.4546    
  25  Prefactor     .10000E-03    1.3910        .92759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.350        22.100        .81183E-04   -1.4721    
  28  Prefactor     15.206        17.972        .10273E-03   -1.4928    
  29  Normalizat    1.0508        .23989        .28685E-03   -.91349    
  30  Prefactor     .89285        .15363        .21330E-03   -.96391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94257e-08
Minuit parameter uncertainties:
  1  0.000278361
  2  0.00127164
  3  22.3652
  4  4.23523
  5  3.25318
  6  2.36758e-06
  7  1.17469e-06
  8  0.0113856
  9  47.5062
  10  15.7932
  11  25.1484
  12  8.91233
  13  0.856383
  14  0.00454617
  15  4.84385e-07
  16  0.000578383
  17  0.00101626
  18  3.46831e-06
  19  0.00117705
  20  9.96018
  21  0.00100099
  22  2.60277e-06
  23  3.60903e-05
  24  41.6494
  25  1.55902e-05
  26  0.000598484
  27  22.1079
  28  17.9787
  29  0.24014
  30  0.1537
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  5.985e-04  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.929e-01  1.537e-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:  1.051e+00  2.401e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73365/likelihoodResults_475459201_475718401_4FGL_J2339.6+0242_daily_bin911.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) = 6547.09462819
delta logL = -0.000254594065154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6547.09437459
delta logL = -9.96632479655e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1735       1.0000          .0000       10.000    
     3 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6547.094     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10320E-03    7.0371        .18142E-01** at limit **
   2  Index         3.0709        5.2443        .50000        .12107E-04
   3  Normalizat    1.0508        .34470E-02    .28685E-03    .38126E-04
   4  Prefactor     .89286        .23969E-02    .21330E-03    .32033E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103198
  Index      = 3.07088
  Normalizat = 1.05076
  Prefactor  = 0.892855
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.094     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10320E-03    98.538        .30080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0709        6.2038        .50000       -.39610    
   3  Normalizat    1.0508        .12854E-01    .11474E-04   -.91349    
   4  Prefactor     .89286        .89382E-02    .85321E-05   -.96391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.49361e-09
Minuit parameter uncertainties:
  1  0.0355635
  2  471.557
  3  0.0128543
  4  0.00893824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73365': 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) = 6547.0943744
delta logL = -8.09653101896e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.929e-01  8.938e-03  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:  1.051e+00  1.285e-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/73365/cmap_HighResolution_475459201_475718401_4FGL_J2339.6+0242_daily_bin911.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-30 02:54:40.734918', job_id='73365', GAL2='0.89', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632995680.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-8.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='911' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:54:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 73365: <4FGL_J2339.6+0242_daily_bin911> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin911 354.904 2.7102 475459201 475718401 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 :                                   804.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

