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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin444
RA = 354.904, Dec = 2.7102
tmin = 354412801, tmax = 354672001
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='71615', job_status='RUN', time_executed='2021-09-30 02:35:36.235413', time_epoch_executed='1632994536.24' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71615

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71615/ft1_4FGL_J2339.6+0242_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71615/ft2_4FGL_J2339.6+0242_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71615/ft1_4FGL_J2339.6+0242_daily_bin444.fits outfile=/scratch/kocevski/71615/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin444.fits ra=354.904 dec=2.7102 rad=12.0 tmin=354412801.0 tmax=354672001.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.45
user 3.23
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71615/ft1_filtered_4FGL_J2339.6+0242_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/71615/ft2_4FGL_J2339.6+0242_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/71615/ltcube_354412801_354672001_4FGL_J2339.6+0242_daily_bin444.fits outfile=/scratch/kocevski/71615/expmap_354412801_354672001_4FGL_J2339.6+0242_daily_bin444.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/71615/ltcube_354412801_354672001_4FGL_J2339.6+0242_daily_bin444.fits
.....................!
real 191.53
user 185.58
sys 5.63

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/71615/ft1_filtered_4FGL_J2339.6+0242_daily_bin444.fits scfile=/scratch/kocevski/71615/ft2_4FGL_J2339.6+0242_daily_bin444.fits outfile=/scratch/kocevski/71615/cmap_354412801_354672001_4FGL_J2339.6+0242_daily_bin444.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71615/ft1_filtered_4FGL_J2339.6+0242_daily_bin444.fits scfile=/scratch/kocevski/71615/ft2_4FGL_J2339.6+0242_daily_bin444.fits outfile=/scratch/kocevski/71615/cmap_HighResolution_354412801_354672001_4FGL_J2339.6+0242_daily_bin444.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8561       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61237E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0650       1.0000         .10000E-03   10000.    
     6 'norm      '    14.596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.255       1.0000         .10000E-03   10000.    
     8 'norm      '    .12981E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27181E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .81559       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    96.663       1.0000         .10000E-03   10000.    
    17 'norm      '    6.5209       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1138       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.983       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12141E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .67235       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3645       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=   7073.438     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3928 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8536        12.231        .58793E-05   -.65885E-04
   2  Prefactor     .10000E-03    40.228        .39486E-06** at limit **
   3  Prefactor     .10000E-03    8.9387       -.33093E-07** at limit **
   4  Prefactor     .10000E-03    4.8392       -.48418E-06** at limit **
   5  norm          5.0645        2.7109        .63298E-07    .44277E-04
   6  norm          14.597        7.6129        .91598E-07   -.21292E-06
   7  Prefactor     32.260        19.293        .74236E-07   -.97619E-05
   8  norm          .10013E-03    12.136       -.15584E-07** at limit **
   9  Prefactor     .10000E-03    12.252       -.32334E-06** at limit **
  10  Prefactor     .10000E-03    5.6666        .65978E-09** at limit **
  11  Prefactor     .10000E-03    6.5113        .70200E-07** at limit **
  12  Prefactor     .10000E-03    3.7406       -.20807E-07** at limit **
  13  norm          .81469        .94563        .19627E-06    .27924E-03
  14  norm          .10000E-03    2.5126       -.35049E-07** at limit **
  15  Prefactor     .10000E-03    6.8825       -.12558E-07** at limit **
  16  Prefactor     96.725        55.090        .23164E-05    .25077E-03
  17  norm          6.5281        10.973        .77466E-06   -.28626E-04
  18  Prefactor     .10000E-03    15.263        .41718E-06** at limit **
  19  Prefactor     .10000E-03    61.850        .34943E-05** at limit **
  20  Prefactor     7.1216        9.1948        .15120E-06   -.32667E-04
  21  Prefactor     16.973        31.249        .22348E-06    .15754E-04
  22  norm          .10000E-03    22.646        .12545E-05** at limit **
  23  norm          .10000E-03    39.755        .63546E-06** at limit **
  24  Prefactor     .10000E-03    20.348       -.15332E-05** at limit **
  25  Prefactor     .10000E-03    2.9884        .58865E-09** at limit **
  26  Prefactor     .10000E-03    49.583       -.21272E-05** at limit **
  27  Prefactor     .10000E-03    50.027       -.24616E-05** at limit **
  28  Prefactor     .10000E-03    10.794        .12508E-06** at limit **
  29  Normalizat    .67229        .22064       -.15267E-05    .82417E-05
  30  Prefactor     1.3645        .14918       -.84982E-07    .38855E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.85363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.06446
  norm       = 14.5966
  Prefactor  = 32.26
  norm       = 0.000100127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.814691
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.7248
  norm       = 6.52809
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 7.12163
  Prefactor  = 16.9728
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.672293
  Prefactor  = 1.36447
 **********
 **   18 **HESSE 
 **********

 FCN=   7073.438     FROM HESSE     STATUS=OK           592 CALLS     4520 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8536        12.404        .91271E-03   -1.5267    
   2  Prefactor     .10000E-03    40.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.686        .35603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0645        2.7087        .97005E-04   -1.5258    
   6  norm          14.597        7.6069        .10484E-03   -1.4944    
   7  Prefactor     32.260        19.283        .70553E-04   -1.4571    
   8  norm          .10013E-03    14.999        .79381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.251        .38987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7489        .15885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .81469        .86539        .82968E-03   -1.5527    
  14  norm          .10000E-03    2.5243        .13015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     96.725        56.475        .20442E-03   -1.3738    
  17  norm          6.5281        10.818        .15716E-03   -1.5197    
  18  Prefactor     .10000E-03    15.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    62.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1216        9.1175        .15040E-03   -1.5174    
  21  Prefactor     16.973        31.090        .97189E-04   -1.4884    
  22  norm          .10000E-03    22.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    40.561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.0484        .14167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    50.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    51.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .67229        .24658        .38382E-03   -1.0500    
  30  Prefactor     1.3645        .17047        .19946E-03   -.81410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82746e-10
Minuit parameter uncertainties:
  1  12.4108
  2  8.07444e-05
  3  2.94542e-06
  4  0.000172341
  5  2.70878
  6  7.60743
  7  19.2871
  8  0.00276276
  9  3.92371e-05
  10  5.82294e-05
  11  4.99765e-07
  12  5.69794e-07
  13  0.865402
  14  1.71829e-07
  15  6.71809e-06
  16  56.5065
  17  10.8211
  18  4.35127e-05
  19  0.00102763
  20  9.11927
  21  31.1198
  22  0.000227121
  23  9.01018e-05
  24  0.00025345
  25  1.74196e-06
  26  0.000563428
  27  0.000440904
  28  2.37315e-05
  29  0.246983
  30  0.170542
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  5.634e-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:  1.364e+00  1.705e-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:  6.723e-01  2.470e-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: 9.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71615/likelihoodResults_354412801_354672001_4FGL_J2339.6+0242_daily_bin444.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) = 7073.43836403
delta logL = -9.462570506e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7073.43826952
delta logL = -1.09323991637e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0836       1.0000          .0000       10.000    
     3 'Normalizat'    .67229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3645       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=   7073.438     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      296 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10152E-03    .26170        .10942    ** at limit **
   2  Index         3.0100        7.1436        .50000        .25283E-05
   3  Normalizat    .67229        .68012E-03    .38382E-03    .21267E-04
   4  Prefactor     1.3645        .48943E-03    .19946E-03    .29753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101518
  Index      = 3.00996
  Normalizat = 0.672292
  Prefactor  = 1.36447
 **********
 **   18 **HESSE 
 **********

 FCN=   7073.438     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      327 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10152E-03    116.45        .63942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0100        6.3282        .50000       -.40935    
   3  Normalizat    .67229        .81794E-02    .15353E-04   -1.0500    
   4  Prefactor     1.3645        .58861E-02    .79784E-05   -.81410    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12263e-10
Minuit parameter uncertainties:
  1  0.0266414
  2  522.359
  3  0.00817937
  4  0.00588612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71615': 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) = 7073.43826948
delta logL = -7.74716681917e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.015e-04  2.664e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.010e+00  5.224e+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:  1.364e+00  5.886e-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:  6.723e-01  8.179e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/71615/cmap_HighResolution_354412801_354672001_4FGL_J2339.6+0242_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.66e-08', time_completed='2021-09-30 02:49:54.707748', job_id='71615', GAL2='1.36', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632995394.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='-7.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='444' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 71615: <4FGL_J2339.6+0242_daily_bin444> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin444 354.904 2.7102 354412801 354672001 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 :                                   853.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            870 sec.

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

