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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin488
RA = 354.904, Dec = 2.7102
tmin = 365817601, tmax = 366076801
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='71697', job_status='RUN', time_executed='2021-09-30 02:38:42.094930', time_epoch_executed='1632994722.09' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71697/ft1_4FGL_J2339.6+0242_daily_bin488.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71697/ft2_4FGL_J2339.6+0242_daily_bin488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71697/ft1_4FGL_J2339.6+0242_daily_bin488.fits outfile=/scratch/kocevski/71697/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin488.fits ra=354.904 dec=2.7102 rad=12.0 tmin=365817601.0 tmax=366076801.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.52
user 3.30
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71697/ft1_filtered_4FGL_J2339.6+0242_daily_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/71697/ft2_4FGL_J2339.6+0242_daily_bin488.fits sctable="SC_DATA" expcube=/scratch/kocevski/71697/ltcube_365817601_366076801_4FGL_J2339.6+0242_daily_bin488.fits outfile=/scratch/kocevski/71697/expmap_365817601_366076801_4FGL_J2339.6+0242_daily_bin488.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/71697/ltcube_365817601_366076801_4FGL_J2339.6+0242_daily_bin488.fits
.....................!
real 191.10
user 186.51
sys 4.22

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/71697/ft1_filtered_4FGL_J2339.6+0242_daily_bin488.fits scfile=/scratch/kocevski/71697/ft2_4FGL_J2339.6+0242_daily_bin488.fits outfile=/scratch/kocevski/71697/cmap_365817601_366076801_4FGL_J2339.6+0242_daily_bin488.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71697/ft1_filtered_4FGL_J2339.6+0242_daily_bin488.fits scfile=/scratch/kocevski/71697/ft2_4FGL_J2339.6+0242_daily_bin488.fits outfile=/scratch/kocevski/71697/cmap_HighResolution_365817601_366076801_4FGL_J2339.6+0242_daily_bin488.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.061       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1495       1.0000         .10000E-03   10000.    
     6 'norm      '    10.246       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    28.057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6114       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8420       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.676       1.0000         .10000E-03   10000.    
    17 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8532       1.0000         .10000E-03   10000.    
    22 'norm      '    5.4270       1.0000         .10000E-03   10000.    
    23 'norm      '    9.8622       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.089       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6671       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17142E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    44.541       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9650       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2945       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70930       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=   6287.779     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3921 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3886        .12349E-07** at limit **
   2  Prefactor     51.063        47.029        .53441E-07   -.22543E-05
   3  Prefactor     .10000E-03    12.017        .60472E-07** at limit **
   4  Prefactor     .10000E-03    8.8827        .82357E-07** at limit **
   5  norm          1.1497        1.4551        .45130E-07    .12779E-04
   6  norm          10.245        5.7456        .10462E-06   -.79331E-05
   7  Prefactor     .10000E-03    3.4243        .10956E-07** at limit **
   8  norm          28.056        14.700        .86795E-07   -.16901E-04
   9  Prefactor     24.267        41.866        .10963E-05   -.45435E-05
  10  Prefactor     3.6097        9.8352        .17667E-05    .18495E-05
  11  Prefactor     .10000E-03    10.743       -.14870E-06** at limit **
  12  Prefactor     .10000E-03    26.136        .21933E-05** at limit **
  13  norm          .10000E-03    .34064        .41791E-07** at limit **
  14  norm          3.8427        6.4533        .12015E-05   -.11548E-03
  15  Prefactor     .10000E-03    4.2193       -.83203E-08** at limit **
  16  Prefactor     58.587        74.552        .72984E-05    .21080E-05
  17  norm          .10000E-03    5.6431        .53622E-07** at limit **
  18  Prefactor     1.2526        8.3463        .11462E-05    .55525E-05
  19  Prefactor     .10000E-03    61.913        .59757E-06** at limit **
  20  Prefactor     .10000E-03    8.3279       -.13647E-06** at limit **
  21  Prefactor     8.8468        16.570        .90061E-07   -.92903E-05
  22  norm          5.4232        17.040        .29100E-06   -.45655E-05
  23  norm          9.8645        16.520       -.12419E-06   -.71470E-05
  24  Prefactor     15.089        28.972       -.11828E-08   -.67837E-05
  25  Prefactor     4.6652        6.0481       -.18996E-06   -.54387E-04
  26  Prefactor     .10000E-03    85.885       -.22800E-05** at limit **
  27  Prefactor     44.532        30.193        .47653E-06   -.54684E-05
  28  Prefactor     6.9639        19.528        .64670E-06   -.27396E-05
  29  Normalizat    1.2946        .21698       -.64303E-06   -.36457E-04
  30  Prefactor     .70925        .13576       -.86156E-06   -.58784E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.0627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14971
  norm       = 10.2451
  Prefactor  = 0.0001
  norm       = 28.056
  Prefactor  = 24.2671
  Prefactor  = 3.60972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.84268
  Prefactor  = 0.0001
  Prefactor  = 58.5868
  norm       = 0.0001
  Prefactor  = 1.25265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.84679
  norm       = 5.42318
  norm       = 9.86455
  Prefactor  = 15.0886
  Prefactor  = 4.66518
  Prefactor  = 0.0001
  Prefactor  = 44.5323
  Prefactor  = 6.96392
  Normalizat = 1.29464
  Prefactor  = 0.709247
 **********
 **   18 **HESSE 
 **********

 FCN=   6287.779     FROM HESSE     STATUS=OK           590 CALLS     4511 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3902        .14256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.063        47.016        .56124E-04   -1.4278    
   3  Prefactor     .10000E-03    12.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.1248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1497        1.4317        .10426E-03   -1.5494    
   6  norm          10.245        5.7516        .12518E-03   -1.5068    
   7  Prefactor     .10000E-03    3.4276        .14330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          28.056        14.702        .37817E-03   -1.4648    
   9  Prefactor     24.267        41.964        .81298E-04   -1.4722    
  10  Prefactor     3.6097        9.8132        .10631E-02   -1.5328    
  11  Prefactor     .10000E-03    10.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .34744        .45102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8427        6.4900        .10295E-02   -1.5316    
  15  Prefactor     .10000E-03    4.2472        .15904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     58.587        74.543        .26188E-03   -1.4176    
  17  norm          .10000E-03    5.6937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2526        8.2894        .39901E-03   -1.5484    
  19  Prefactor     .10000E-03    61.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.3428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.8468        16.545        .13471E-03   -1.5113    
  22  norm          5.4232        17.011        .17249E-03   -1.5242    
  23  norm          9.8645        16.463        .12760E-03   -1.5080    
  24  Prefactor     15.089        28.964        .10311E-03   -1.4931    
  25  Prefactor     4.6652        6.0583        .18629E-03   -1.5276    
  26  Prefactor     .10000E-03    86.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     44.532        30.317        .60073E-04   -1.4372    
  28  Prefactor     6.9639        19.649        .15201E-03   -1.5180    
  29  Normalizat    1.2946        .25723        .26561E-03   -.83726    
  30  Prefactor     .70925        .15846        .23286E-03   -1.0317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31369e-11
Minuit parameter uncertainties:
  1  9.68362e-07
  2  47.0501
  3  1.28437e-05
  4  1.64127e-05
  5  1.43173
  6  5.75192
  7  1.12779e-06
  8  14.7039
  9  42.0155
  10  9.81761
  11  1.22972e-05
  12  5.19282e-05
  13  5.16548e-07
  14  6.49114
  15  9.04021e-07
  16  74.6625
  17  4.07415e-06
  18  6.4458
  19  4.18087e-06
  20  1.49553e-05
  21  16.5533
  22  17.0261
  23  16.4704
  24  28.9913
  25  6.0591
  26  0.000305675
  27  30.327
  28  19.6672
  29  0.257484
  30  0.158565
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.057e-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:  7.092e-01  1.586e-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.295e+00  2.575e-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.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71697/likelihoodResults_365817601_366076801_4FGL_J2339.6+0242_daily_bin488.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) = 6287.77934692
delta logL = -5.47827166884e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6287.77929216
delta logL = -2.8419890441e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5023       1.0000          .0000       10.000    
     3 'Normalizat'    1.2946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70925       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=   6287.779     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8270.8        .90712E-02** at limit **
   2  Index         2.5215        8.7358        .50000       -.21035E-05
   3  Normalizat    1.2946        .62336E-01    .60055E-01    .33917E-04
   4  Prefactor     .70925        .41877E-01    .42524E-01    .44014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.52146
  Normalizat = 1.29464
  Prefactor  = 0.709248
 **********
 **   18 **HESSE 
 **********

 FCN=   6287.779     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    298.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5215        5.3877        .50000       -.51865    
   3  Normalizat    1.2946        .22900        .26561E-03   -.83726    
   4  Prefactor     .70925        .15420        .23286E-03   -1.0317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29985e-11
Minuit parameter uncertainties:
  1  0.00105803
  2  8.31295
  3  0.229183
  4  0.154289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71697': 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) = 6287.77929215
delta logL = -1.33031790028e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.092e-01  1.543e-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.295e+00  2.292e-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/71697/cmap_HighResolution_365817601_366076801_4FGL_J2339.6+0242_daily_bin488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-30 02:51:43.172389', job_id='71697', GAL2='0.71', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632995503.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-1.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='488' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:51:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 71697: <4FGL_J2339.6+0242_daily_bin488> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin488 354.904 2.7102 365817601 366076801 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 :                                   779.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

