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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin139
RA = 354.904, Dec = 2.7102
tmin = 275356801, tmax = 275616001
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='69814', job_status='RUN', time_executed='2021-09-30 02:34:09.847011', time_epoch_executed='1632994449.85' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69814

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69814/ft1_4FGL_J2339.6+0242_daily_bin139.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69814/ft2_4FGL_J2339.6+0242_daily_bin139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69814/ft1_4FGL_J2339.6+0242_daily_bin139.fits outfile=/scratch/kocevski/69814/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin139.fits ra=354.904 dec=2.7102 rad=12.0 tmin=275356801.0 tmax=275616001.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.65
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69814/ft1_filtered_4FGL_J2339.6+0242_daily_bin139.fits" evtable="EVENTS" scfile=/scratch/kocevski/69814/ft2_4FGL_J2339.6+0242_daily_bin139.fits sctable="SC_DATA" outfile=/scratch/kocevski/69814/ltcube_275356801_275616001_4FGL_J2339.6+0242_daily_bin139.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/69814/ft2_4FGL_J2339.6+0242_daily_bin139.fits
.....................!
real 10.69
user 10.39
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69814/ft1_filtered_4FGL_J2339.6+0242_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/69814/ft2_4FGL_J2339.6+0242_daily_bin139.fits sctable="SC_DATA" expcube=/scratch/kocevski/69814/ltcube_275356801_275616001_4FGL_J2339.6+0242_daily_bin139.fits outfile=/scratch/kocevski/69814/expmap_275356801_275616001_4FGL_J2339.6+0242_daily_bin139.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/69814/ltcube_275356801_275616001_4FGL_J2339.6+0242_daily_bin139.fits
.....................!
real 151.32
user 147.18
sys 3.87

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/69814/ft1_filtered_4FGL_J2339.6+0242_daily_bin139.fits scfile=/scratch/kocevski/69814/ft2_4FGL_J2339.6+0242_daily_bin139.fits outfile=/scratch/kocevski/69814/cmap_275356801_275616001_4FGL_J2339.6+0242_daily_bin139.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69814/ft1_filtered_4FGL_J2339.6+0242_daily_bin139.fits scfile=/scratch/kocevski/69814/ft2_4FGL_J2339.6+0242_daily_bin139.fits outfile=/scratch/kocevski/69814/cmap_HighResolution_275356801_275616001_4FGL_J2339.6+0242_daily_bin139.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.48
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2907       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.8288       1.0000         .10000E-03   10000.    
     6 'norm      '    .34645E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2682       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8936       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6369       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2349       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10820E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1154       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.152       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .21858       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.014       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8616       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84859       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4632.049     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     3388 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2869        1.0657        .10259E-07    .27152E-03
   2  Prefactor     .10001E-03    28.984       -.15375E-06** at limit **
   3  Prefactor     .12562E-03    1054.5       -.35621E-04** at limit **
   4  Prefactor     .10000E-03    9.0600        .13680E-05** at limit **
   5  norm          4.8405        3.7380        .27174E-07   -.10517E-04
   6  norm          .10105E-03    19.169        .46464E-05** at limit **
   7  Prefactor     .10000E-03    7.8059       -.35312E-06** at limit **
   8  norm          3.2696        1.5431       -.53587E-07    .11662E-02
   9  Prefactor     .10000E-03    17.581       -.87051E-06** at limit **
  10  Prefactor     3.7994        1.8556        .59989E-07   -.10034E-02
  11  Prefactor     19.789        1.5904       -.85089E-07   -.22777E-03
  12  Prefactor     2.8834        2.5300        .24040E-06    .12933E-03
  13  norm          .10000E-03    .53253        .10285E-06** at limit **
  14  norm          2.6379        5.7383        .60274E-07   -.29221E-03
  15  Prefactor     5.2214        4.5761       -.12499E-07   -.39312E-02
  16  Prefactor     .10083E-03    91.297        .81430E-05** at limit **
  17  norm          .10066E-03    55.865        .59836E-05** at limit **
  18  Prefactor     .10000E-03    4.5096        .11199E-06** at limit **
  19  Prefactor     .10008E-03    24.394        .44776E-05** at limit **
  20  Prefactor     5.1252        7.3560       -.13435E-06   -.21331E-02
  21  Prefactor     19.122        3.0488       -.32918E-07   -.29908E-02
  22  norm          .10000E-03    11.939       -.51677E-06** at limit **
  23  norm          .19102        11.603       -.78618E-06   -.12544E-02
  24  Prefactor     29.870        13.278       -.12994E-05    .96731E-02
  25  Prefactor     .10000E-03    2.0009       -.29345E-06** at limit **
  26  Prefactor     .10025E-03    36.765        .41549E-05** at limit **
  27  Prefactor     .10000E-03    5.6370        .48678E-06** at limit **
  28  Prefactor     5.8612        1.3533        .50175E-07    .29664E-03
  29  Normalizat    .84929        .25659        .60748E-07    .42107E-04
  30  Prefactor     1.0103        .17896        .37812E-06    .69932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.28687
  Prefactor  = 0.000100005
  Prefactor  = 0.00012562
  Prefactor  = 0.0001
  norm       = 4.84051
  norm       = 0.000101049
  Prefactor  = 0.0001
  norm       = 3.26956
  Prefactor  = 0.0001
  Prefactor  = 3.79944
  Prefactor  = 19.7887
  Prefactor  = 2.88336
  norm       = 0.0001
  norm       = 2.63793
  Prefactor  = 5.22137
  Prefactor  = 0.000100829
  norm       = 0.00010066
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 5.12525
  Prefactor  = 19.1215
  norm       = 0.0001
  norm       = 0.191025
  Prefactor  = 29.8699
  Prefactor  = 0.0001
  Prefactor  = 0.000100251
  Prefactor  = 0.0001
  Prefactor  = 5.86117
  Normalizat = 0.849295
  Prefactor  = 1.01033
 **********
 **   18 **HESSE 
 **********

 FCN=   4632.049     FROM HESSE     STATUS=OK           666 CALLS     4054 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2869        15.371        .37137E-02   -1.5168    
   2  Prefactor     .10001E-03    29.143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12562E-03    30.634        .10161       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9419        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.8405        4.4393        .45767E-02   -1.5268    
   6  norm          .10105E-03    2.5840        .65631E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2696        9.8294        .56000E-02   -1.5346    
   9  Prefactor     .10000E-03    17.587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7994        8.9568        .51769E-02   -1.5318    
  11  Prefactor     19.789        23.741        .22505E-02   -1.4818    
  12  Prefactor     2.8834        24.591        .59723E-02   -1.5368    
  13  norm          .10000E-03    .51082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6379        8.2387        .62774E-02   -1.5383    
  15  Prefactor     5.2214        13.550        .43921E-02   -1.5251    
  16  Prefactor     .10083E-03    104.61        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10066E-03    8.4983        .64842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10008E-03    61.058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1252        8.2677        .44441E-02   -1.5255    
  21  Prefactor     19.122        29.400        .22880E-02   -1.4833    
  22  norm          .10000E-03    11.946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .19102        17.414        .10062       -1.5621    
  24  Prefactor     29.870        87.419        .18283E-02   -1.4614    
  25  Prefactor     .10000E-03    1.9875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10025E-03    58.689        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.6351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.8612        16.640        .41469E-02   -1.5224    
  29  Normalizat    .84929        .22859        .66742E-01   -.98265    
  30  Prefactor     1.0103        .15356        .43220E-01   -.92386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68617e-06
Minuit parameter uncertainties:
  1  15.3793
  2  0.000781101
  3  0.0560589
  4  5.74498e-05
  5  4.43961
  6  0.00329253
  7  1.25418e-05
  8  9.83427
  9  5.14557e-05
  10  8.95997
  11  23.7526
  12  16.85
  13  1.03913e-06
  14  8.24219
  15  13.5577
  16  0.0186559
  17  0.00473622
  18  3.5986e-06
  19  0.00438993
  20  8.26953
  21  29.4222
  22  6.42326e-05
  23  3.64791
  24  87.7977
  25  5.90794e-06
  26  0.00767828
  27  1.67799e-05
  28  16.6531
  29  0.22885
  30  0.153631
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.003e-04  7.678e-03  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:  1.010e+00  1.536e-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.493e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/69814/likelihoodResults_275356801_275616001_4FGL_J2339.6+0242_daily_bin139.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) = 4632.04907506
delta logL = -8.04909514045e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4632.04907506
delta logL = -8.04867431725e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4632.049     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      200 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.714        .90713E-02** at limit **
   2  Index         2.5849        6.2885        .50000       -.55762E-05
   3  Normalizat    .84929        .21200        .66742E-01   -.26808E-04
   4  Prefactor     1.0103        .15117        .43279E-01   -.47767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58491
  Normalizat = 0.849294
  Prefactor  = 1.01033
 **********
 **   18 **HESSE 
 **********

 FCN=   4632.049     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.267        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5849        6.2905        .50000       -.50410    
   3  Normalizat    .84929        .24795        .29526E-03   -.98265    
   4  Prefactor     1.0103        .17709        .19341E-03   -.92386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11285e-11
Minuit parameter uncertainties:
  1  0.000347096
  2  4.49642
  3  0.24828
  4  0.177195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69814': 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) = 4632.04899452
delta logL = 4.72609826829e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.471e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.585e+00  4.496e+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:  1.010e+00  1.772e-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.493e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/69814/cmap_HighResolution_275356801_275616001_4FGL_J2339.6+0242_daily_bin139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-30 02:42:53.771184', job_id='69814', GAL2='1.01', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632994973.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='139' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:42:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 69814: <4FGL_J2339.6+0242_daily_bin139> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin139> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:27 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 02:30:29 2021
Terminated at Thu Sep 30 02:42:54 2021
Results reported at Thu Sep 30 02:42:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin139 354.904 2.7102 275356801 275616001 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 :                                   521.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             221.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

