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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1446
RA = 354.904, Dec = 2.7102
tmin = 614131201, tmax = 614390401
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='76466', job_status='RUN', time_executed='2021-09-30 02:50:49.483121', time_epoch_executed='1632995449.48' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76466

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76466/ft1_4FGL_J2339.6+0242_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76466/ft2_4FGL_J2339.6+0242_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76466/ft1_4FGL_J2339.6+0242_daily_bin1446.fits outfile=/scratch/kocevski/76466/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1446.fits ra=354.904 dec=2.7102 rad=12.0 tmin=614131201.0 tmax=614390401.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 4.68
user 4.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76466/ft1_filtered_4FGL_J2339.6+0242_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/76466/ft2_4FGL_J2339.6+0242_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/76466/ltcube_614131201_614390401_4FGL_J2339.6+0242_daily_bin1446.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/76466/ft2_4FGL_J2339.6+0242_daily_bin1446.fits
.....................!
real 10.89
user 10.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76466/ft1_filtered_4FGL_J2339.6+0242_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/76466/ft2_4FGL_J2339.6+0242_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/76466/ltcube_614131201_614390401_4FGL_J2339.6+0242_daily_bin1446.fits outfile=/scratch/kocevski/76466/expmap_614131201_614390401_4FGL_J2339.6+0242_daily_bin1446.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/76466/ltcube_614131201_614390401_4FGL_J2339.6+0242_daily_bin1446.fits
.....................!
real 189.46
user 184.98
sys 4.16

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/76466/ft1_filtered_4FGL_J2339.6+0242_daily_bin1446.fits scfile=/scratch/kocevski/76466/ft2_4FGL_J2339.6+0242_daily_bin1446.fits outfile=/scratch/kocevski/76466/cmap_614131201_614390401_4FGL_J2339.6+0242_daily_bin1446.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.38
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76466/ft1_filtered_4FGL_J2339.6+0242_daily_bin1446.fits scfile=/scratch/kocevski/76466/ft2_4FGL_J2339.6+0242_daily_bin1446.fits outfile=/scratch/kocevski/76466/cmap_HighResolution_614131201_614390401_4FGL_J2339.6+0242_daily_bin1446.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5480       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.7021       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    88.521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8651       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10445E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8876       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9265       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .59584E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4411       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10555E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13844E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91531       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90157       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=   5195.078     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3890 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5146        23.532        .34451E-05    .18773E-05
   2  Prefactor     39.195        82.045       -.26272E-05    .48236E-04
   3  Prefactor     15.267        11.895        .11138E-06   -.83308E-05
   4  Prefactor     .10000E-03    3.2778        .62134E-06** at limit **
   5  norm          .10000E-03    .76629        .48714E-07** at limit **
   6  norm          8.7040        4.5431        .28677E-07   -.49028E-05
   7  Prefactor     .10000E-03    5.3406       -.74963E-08** at limit **
   8  norm          88.544        23.178        .76966E-07   -.45165E-04
   9  Prefactor     43.544        42.255       -.21311E-06    .81040E-05
  10  Prefactor     1.8651        11.922        .12808E-05   -.16569E-04
  11  Prefactor     .10000E-03    11.453       -.15188E-06** at limit **
  12  Prefactor     .10000E-03    2.6212       -.12763E-07** at limit **
  13  norm          .10000E-03    .50914       -.17941E-06** at limit **
  14  norm          .10000E-03    2.2586       -.23501E-07** at limit **
  15  Prefactor     7.8828        13.879        .42908E-05   -.46803E-04
  16  Prefactor     .10000E-03    34.635       -.17687E-06** at limit **
  17  norm          .10000E-03    5.7839       -.49374E-06** at limit **
  18  Prefactor     7.9263        6.4593       -.16575E-06   -.13403E-04
  19  Prefactor     .10000E-03    312.10        .11244E-06** at limit **
  20  Prefactor     5.4260        9.1733        .37654E-06    .41962E-04
  21  Prefactor     .10000E-03    29.513       -.52184E-06** at limit **
  22  norm          .10000E-03    10.624        .57052E-08** at limit **
  23  norm          .10000E-03    17.848       -.93452E-07** at limit **
  24  Prefactor     .10000E-03    45.950       -.15437E-07** at limit **
  25  Prefactor     .10000E-03    4.3308       -.76293E-07** at limit **
  26  Prefactor     .10000E-03    36.490       -.31019E-06** at limit **
  27  Prefactor     .10000E-03    15.826       -.12318E-06** at limit **
  28  Prefactor     .10000E-03    13.039        .35622E-06** at limit **
  29  Normalizat    .91531        .21264       -.11050E-05    .42541E-04
  30  Prefactor     .90144        .14337       -.87229E-07    .19377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.51459
  Prefactor  = 39.1951
  Prefactor  = 15.267
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.70403
  Prefactor  = 0.0001
  norm       = 88.5442
  Prefactor  = 43.5443
  Prefactor  = 1.86506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.88281
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.92626
  Prefactor  = 0.0001
  Prefactor  = 5.42603
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.915307
  Prefactor  = 0.901443
 **********
 **   18 **HESSE 
 **********

 FCN=   5195.078     FROM HESSE     STATUS=OK           580 CALLS     4470 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5146        23.071        .17057E-03   -1.5238    
   2  Prefactor     39.195        80.675        .64125E-04   -1.4455    
   3  Prefactor     15.267        11.910        .10251E-03   -1.4926    
   4  Prefactor     .10000E-03    3.2871        .12744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .77023        .61595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.7040        4.5434        .10798E-03   -1.5118    
   7  Prefactor     .10000E-03    5.3610        .16267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          88.544        23.159        .21352E-03   -1.3823    
   9  Prefactor     43.544        42.251        .60789E-04   -1.4387    
  10  Prefactor     1.8651        11.906        .30506E-03   -1.5435    
  11  Prefactor     .10000E-03    11.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6221        .11397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .77430        .97499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2652        .10577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8828        13.890        .71385E-03   -1.5146    
  16  Prefactor     .10000E-03    34.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.8772        .16973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9263        6.4521        .14242E-03   -1.5145    
  19  Prefactor     .10000E-03    312.81        .18950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4260        9.0913        .17226E-03   -1.5242    
  21  Prefactor     .10000E-03    29.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    17.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    45.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.4582        .29146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    36.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91531        .24324        .28459E-03   -.95924    
  30  Prefactor     .90144        .16568        .20217E-03   -.96091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94096e-10
Minuit parameter uncertainties:
  1  22.5737
  2  80.9011
  3  11.9116
  4  1.81047e-06
  5  7.60294e-07
  6  4.54361
  7  3.0325e-06
  8  23.1616
  9  42.2798
  10  9.42693
  11  9.48135e-06
  12  8.36264e-07
  13  1.59929e-05
  14  2.26699e-06
  15  13.8953
  16  3.0496e-05
  17  6.15528e-05
  18  6.45262
  19  0.000376055
  20  9.09357
  21  9.34137e-05
  22  9.03591e-06
  23  1.91263e-05
  24  5.75735e-05
  25  4.49489e-06
  26  5.09894e-05
  27  2.42997e-06
  28  2.30143e-05
  29  0.243537
  30  0.165771
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  5.099e-05  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.014e-01  1.658e-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.153e-01  2.435e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/76466/likelihoodResults_614131201_614390401_4FGL_J2339.6+0242_daily_bin1446.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) = 5195.07771268
delta logL = -0.000130086849822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5195.07758253
delta logL = 5.69207259105e-08

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 'Index     '    3.1310       1.0000          .0000       10.000    
     3 'Normalizat'    .91530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90144       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=   5195.078     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.103        .90712E-02** at limit **
   2  Index         3.1213        6.7733        .50000        .23434E-05
   3  Normalizat    .91531        .49357E-02    .45097E-01    .27678E-04
   4  Prefactor     .90144        .35014E-02    .45023E-01    .17691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.12131
  Normalizat = 0.915307
  Prefactor  = 0.901443
 **********
 **   18 **HESSE 
 **********

 FCN=   5195.078     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    348.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1213        6.1409        .50000       -.38519    
   3  Normalizat    .91531        .15830E-01    .28460E-03   -.95924    
   4  Prefactor     .90144        .11232E-01    .20217E-03   -.96091    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32219e-07
Minuit parameter uncertainties:
  1  0.000452885
  2  730.618
  3  0.0158304
  4  0.0112316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76466': 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) = 5195.07758253
delta logL = 6.20948412688e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  4.529e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  3.121e+00  7.306e+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:  9.014e-01  1.123e-02  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.153e-01  1.583e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2021-09-30 03:02:50.895767', job_id='76466', GAL2='0.90', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632996170.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.21e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1446' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:02:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 76466: <4FGL_J2339.6+0242_daily_bin1446> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1446> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:50:37 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:50: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:50:38 2021
Terminated at Thu Sep 30 03:02:51 2021
Results reported at Thu Sep 30 03:02:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1446 354.904 2.7102 614131201 614390401 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 :                                   715.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             370.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            734 sec.

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

