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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin498
RA = 354.904, Dec = 2.7102
tmin = 368409601, tmax = 368668801
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='71714', job_status='RUN', time_executed='2021-09-30 02:35:47.865790', time_epoch_executed='1632994547.87' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71714

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71714/ft1_4FGL_J2339.6+0242_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71714/ft2_4FGL_J2339.6+0242_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71714/ft1_4FGL_J2339.6+0242_daily_bin498.fits outfile=/scratch/kocevski/71714/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin498.fits ra=354.904 dec=2.7102 rad=12.0 tmin=368409601.0 tmax=368668801.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.28
user 3.08
sys 0.19

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71714/ft1_filtered_4FGL_J2339.6+0242_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/71714/ft2_4FGL_J2339.6+0242_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/71714/ltcube_368409601_368668801_4FGL_J2339.6+0242_daily_bin498.fits outfile=/scratch/kocevski/71714/expmap_368409601_368668801_4FGL_J2339.6+0242_daily_bin498.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/71714/ltcube_368409601_368668801_4FGL_J2339.6+0242_daily_bin498.fits
.....................!
real 190.13
user 184.94
sys 4.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/71714/ft1_filtered_4FGL_J2339.6+0242_daily_bin498.fits scfile=/scratch/kocevski/71714/ft2_4FGL_J2339.6+0242_daily_bin498.fits outfile=/scratch/kocevski/71714/cmap_368409601_368668801_4FGL_J2339.6+0242_daily_bin498.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71714/ft1_filtered_4FGL_J2339.6+0242_daily_bin498.fits scfile=/scratch/kocevski/71714/ft2_4FGL_J2339.6+0242_daily_bin498.fits outfile=/scratch/kocevski/71714/cmap_HighResolution_368409601_368668801_4FGL_J2339.6+0242_daily_bin498.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0440       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17370E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.741       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.861       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.062       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93145E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .56842       1.0000         .10000E-03   10000.    
    14 'norm      '    .67549       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.112       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.056       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1259       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    65.393       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95966       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95239       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=   6343.831     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3911 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9200        .11347E-08** at limit **
   2  Prefactor     .10000E-03    47.313        .22336E-05** at limit **
   3  Prefactor     .10000E-03    5.7114       -.10543E-07** at limit **
   4  Prefactor     .10000E-03    1.9953        .51232E-08** at limit **
   5  norm          3.0436        2.5598       -.14723E-08   -.86403E-04
   6  norm          3.0599        4.3040        .33785E-06    .14016E-03
   7  Prefactor     .10000E-03    31.629       -.31046E-05** at limit **
   8  norm          11.741        10.757       -.14864E-07    .15177E-04
   9  Prefactor     18.856        43.238       -.13907E-05   -.50084E-04
  10  Prefactor     .10000E-03    3.4440        .43916E-08** at limit **
  11  Prefactor     10.058        22.761        .74564E-06    .19226E-04
  12  Prefactor     .10003E-03    8.2008       -.31238E-05** at limit **
  13  norm          .56791        1.0474       -.73742E-07   -.31960E-03
  14  norm          .68783        6.3464        .37520E-05   -.15968E-03
  15  Prefactor     .10000E-03    3.2864        .81566E-08** at limit **
  16  Prefactor     20.097        70.045       -.67897E-05   -.92862E-04
  17  norm          .10000E-03    7.2212        .80274E-07** at limit **
  18  Prefactor     .10000E-03    5.1591        .33607E-07** at limit **
  19  Prefactor     .10000E-03    125.84       -.10380E-05** at limit **
  20  Prefactor     15.054        11.955        .18732E-06    .69781E-04
  21  Prefactor     .10000E-03    23.030        .30540E-05** at limit **
  22  norm          3.1253        15.095        .16355E-06   -.43137E-04
  23  norm          .10000E-03    9.6672       -.30945E-06** at limit **
  24  Prefactor     .10000E-03    20.555       -.12529E-05** at limit **
  25  Prefactor     .10000E-03    1.5133       -.27698E-08** at limit **
  26  Prefactor     65.391        50.495       -.15957E-06   -.49904E-04
  27  Prefactor     .10000E-03    10.777       -.14496E-07** at limit **
  28  Prefactor     .10000E-03    10.459        .40963E-06** at limit **
  29  Normalizat    .95975        .19638        .24843E-06    .16192E-03
  30  Prefactor     .95236        .13096       -.16563E-07    .18034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04357
  norm       = 3.05988
  Prefactor  = 0.000100003
  norm       = 11.7409
  Prefactor  = 18.856
  Prefactor  = 0.0001
  Prefactor  = 10.0579
  Prefactor  = 0.000100025
  norm       = 0.567912
  norm       = 0.687825
  Prefactor  = 0.0001
  Prefactor  = 20.0973
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0545
  Prefactor  = 0.000100002
  norm       = 3.12529
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.3914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.959753
  Prefactor  = 0.952357
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.831     FROM HESSE     STATUS=OK           578 CALLS     4489 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9251        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0000        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0436        2.5643        .11075E-03   -1.5359    
   6  norm          3.0599        4.2909        .18902E-03   -1.5358    
   7  Prefactor     .10000E-03    33.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.741        10.757        .11691E-03   -1.5023    
   9  Prefactor     18.856        43.561        .92223E-04   -1.4839    
  10  Prefactor     .10000E-03    3.4461        .14436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.058        22.742        .12632E-03   -1.5074    
  12  Prefactor     .10003E-03    25.084        .38918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .56791        1.0027        .99194E-04   -1.5557    
  14  norm          .68783        7.9109        .41811E-03   -1.5542    
  15  Prefactor     .10000E-03    3.2917        .14100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.097        72.290        .89310E-04   -1.4811    
  17  norm          .10000E-03    7.3490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2415        .17654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    125.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.054        11.883        .10322E-03   -1.4932    
  21  Prefactor     .10000E-03    23.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1253        15.119        .22931E-03   -1.5354    
  23  norm          .10000E-03    9.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.5186        .95541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     65.391        50.574        .49628E-04   -1.4089    
  27  Prefactor     .10000E-03    10.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95975        .22982        .28851E-03   -.94391    
  30  Prefactor     .95236        .15385        .20141E-03   -.94335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81275e-09
Minuit parameter uncertainties:
  1  1.95619e-06
  2  0.000507245
  3  2.19027e-06
  4  9.84886e-07
  5  2.56438
  6  4.29132
  7  0.000624306
  8  10.7588
  9  43.635
  10  2.28187e-07
  11  22.7619
  12  0.00159384
  13  1.0027
  14  4.66575
  15  8.21279e-08
  16  72.6073
  17  3.31372e-06
  18  6.05071e-06
  19  0.000419957
  20  11.8853
  21  0.000484435
  22  13.7533
  23  3.3976e-05
  24  0.000202291
  25  4.6149e-07
  26  50.6069
  27  5.78153e-06
  28  3.61483e-05
  29  0.230055
  30  0.153922
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.539e+01  5.061e+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:  9.524e-01  1.539e-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.598e-01  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 7.91e-08 +/- 6.12e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.69e-05

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

Saving results to:
/scratch/kocevski/71714/likelihoodResults_368409601_368668801_4FGL_J2339.6+0242_daily_bin498.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) = 6343.69929627
delta logL = 0.131620298762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6343.69874668
delta logL = 0.132169888593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.795       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2783       1.0000          .0000       10.000    
     3 'Normalizat'    .97571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94320       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=   6343.699     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      263 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.724        63.558        .22205E-03   -.17151E-04
   2  Index         2.2785        .49953        .69156E-02    .14739E-04
   3  Normalizat    .97571        .21974        .28617E-03   -.42905E-04
   4  Prefactor     .94322        .15263        .20222E-03    .50374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.7239
  Index      = 2.27855
  Normalizat = 0.975708
  Prefactor  = 0.943221
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.699     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.724        62.767        .88821E-05   -1.3897    
   2  Index         2.2785        .49302        .27663E-03   -.57554    
   3  Normalizat    .97571        .21984        .11447E-04   -.93849    
   4  Prefactor     .94322        .15269        .80886E-05   -.94647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63185e-11
Minuit parameter uncertainties:
  1  62.8178
  2  0.494164
  3  0.220045
  4  0.152756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71714': 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) = 6343.69874603
delta logL = 0.132170539922

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  9.432e-01  1.528e-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.757e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.28 +/- 0.49
Photon Flux (Free Index): 6.88e-08 +/- 5.76e-08
Energy Flux (Free Index): 2.69e-05 +/- 2.25e-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/71714/cmap_HighResolution_368409601_368668801_4FGL_J2339.6+0242_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='7.91e-08', energy_flux2='2.69e-05', photon_flux_error='6.12e-08', dlogl='1.32e-01', energy_flux='2.18e-05', photon_flux2='6.88e-08', job_status='DONE', time_completed='2021-09-30 02:49:00.459112', photon_index_error2='0.49', photon_index2='2.28', ts='2.20', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='2.25e-05', EG='0.96', time_epoch_completed='1632995340.46', return_code='0', job_id='71714', GAL2='0.94', EG2='0.98', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='5.76e-08', ts2='2.46', photon_index='2.55' WHERE bin_id='498' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 71714: <4FGL_J2339.6+0242_daily_bin498> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin498 354.904 2.7102 368409601 368668801 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 :                                   787.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

