/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 89 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin12
RA = 354.904, Dec = 2.7102
tmin = 242438401, tmax = 242697601
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='68317', job_status='RUN', time_executed='2021-09-30 02:27:36.441493', time_epoch_executed='1632994056.44' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68317

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68317/ft1_4FGL_J2339.6+0242_daily_bin12.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68317/ft2_4FGL_J2339.6+0242_daily_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68317/ft1_4FGL_J2339.6+0242_daily_bin12.fits outfile=/scratch/kocevski/68317/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin12.fits ra=354.904 dec=2.7102 rad=12.0 tmin=242438401.0 tmax=242697601.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 1.45
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68317/ft1_filtered_4FGL_J2339.6+0242_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/68317/ft2_4FGL_J2339.6+0242_daily_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/68317/ltcube_242438401_242697601_4FGL_J2339.6+0242_daily_bin12.fits outfile=/scratch/kocevski/68317/expmap_242438401_242697601_4FGL_J2339.6+0242_daily_bin12.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/68317/ltcube_242438401_242697601_4FGL_J2339.6+0242_daily_bin12.fits
.....................!
real 191.68
user 185.26
sys 5.18

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/68317/ft1_filtered_4FGL_J2339.6+0242_daily_bin12.fits scfile=/scratch/kocevski/68317/ft2_4FGL_J2339.6+0242_daily_bin12.fits outfile=/scratch/kocevski/68317/cmap_242438401_242697601_4FGL_J2339.6+0242_daily_bin12.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68317/ft1_filtered_4FGL_J2339.6+0242_daily_bin12.fits scfile=/scratch/kocevski/68317/ft2_4FGL_J2339.6+0242_daily_bin12.fits outfile=/scratch/kocevski/68317/cmap_HighResolution_242438401_242697601_4FGL_J2339.6+0242_daily_bin12.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.847       1.0000         .10000E-03   10000.    
     5 'norm      '    .47592       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4124       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.142       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .60281E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7823       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2219       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.5515       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.504       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6163       1.0000         .10000E-03   10000.    
    21 'Prefactor '    75.923       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2392       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.324       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.089       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0104       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98056       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=   6249.250     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3972 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2328        .14137E-06** at limit **
   2  Prefactor     .10000E-03    13.873        .13514E-05** at limit **
   3  Prefactor     12.234        14.440       -.56566E-06   -.43196E-04
   4  Prefactor     14.849        9.1527        .26127E-06   -.32868E-03
   5  norm          .47710        3.2562        .14003E-05   -.38884E-03
   6  norm          2.4125        3.6100        .10711E-06   -.12364E-03
   7  Prefactor     .10000E-03    3.3802        .17392E-07** at limit **
   8  norm          .10000E-03    3.2733        .29409E-07** at limit **
   9  Prefactor     35.114        38.918       -.77389E-05   -.47965E-03
  10  Prefactor     .10000E-03    8.4619        .56459E-06** at limit **
  11  Prefactor     .10000E-03    5.8985       -.20155E-06** at limit **
  12  Prefactor     .10000E-03    11.499       -.93776E-06** at limit **
  13  norm          .60031E-01    .46908       -.23908E-07    .29785E-03
  14  norm          3.7833        4.4593       -.80710E-06   -.44451E-03
  15  Prefactor     7.2218        7.7941       -.30264E-06   -.20278E-04
  16  Prefactor     .10000E-03    26.529        .20675E-05** at limit **
  17  norm          4.5510        7.7093        .46589E-05   -.10278E-02
  18  Prefactor     16.504        9.1502       -.70146E-06   -.45904E-04
  19  Prefactor     .10000E-03    82.158        .23945E-05** at limit **
  20  Prefactor     4.6357        21.593        .36591E-07   -.57181E-04
  21  Prefactor     75.916        30.201       -.12448E-05   -.22198E-03
  22  norm          .10000E-03    9.2749       -.57007E-06** at limit **
  23  norm          2.2091        65.773       -.51138E-05   -.22482E-03
  24  Prefactor     26.317        48.525       -.28184E-05   -.97313E-04
  25  Prefactor     .10000E-03    2.7417        .10160E-05** at limit **
  26  Prefactor     .10000E-03    22.719       -.23632E-05** at limit **
  27  Prefactor     29.091        25.263        .33744E-06    .24751E-04
  28  Prefactor     .10000E-03    16.786        .37750E-06** at limit **
  29  Normalizat    1.0101        .22038       -.16037E-05   -.13712E-03
  30  Prefactor     .98086        .14515        .96250E-06   -.28748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2342
  Prefactor  = 14.8489
  norm       = 0.477099
  norm       = 2.41254
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.1139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0600313
  norm       = 3.78326
  Prefactor  = 7.22179
  Prefactor  = 0.000100001
  norm       = 4.55104
  Prefactor  = 16.5041
  Prefactor  = 0.000100001
  Prefactor  = 4.63571
  Prefactor  = 75.9155
  norm       = 0.0001
  norm       = 2.20907
  Prefactor  = 26.3168
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 29.0914
  Prefactor  = 0.0001
  Normalizat = 1.01006
  Prefactor  = 0.980857
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.250     FROM HESSE     STATUS=OK           586 CALLS     4558 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2571        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.234        14.049        .11450E-03   -1.5008    
   4  Prefactor     14.849        9.1636        .51973E-03   -1.4937    
   5  norm          .47710        3.1908        .24621E-03   -1.5570    
   6  norm          2.4125        3.5963        .17822E-03   -1.5397    
   7  Prefactor     .10000E-03    3.3858        .14194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.2767        .13968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.114        40.484        .67601E-04   -1.4522    
  10  Prefactor     .10000E-03    8.5145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60031E-01    1.9699        .99479E-03   -1.5659    
  14  norm          3.7833        4.4588        .17517E-03   -1.5319    
  15  Prefactor     7.2218        7.7949        .14926E-03   -1.5170    
  16  Prefactor     .10000E-03    26.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.5510        8.2132        .94347E-03   -1.5281    
  18  Prefactor     16.504        9.1775        .98589E-04   -1.4895    
  19  Prefactor     .10000E-03    82.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6357        17.720        .18733E-03   -1.5277    
  21  Prefactor     75.916        30.192        .46083E-04   -1.3963    
  22  norm          .10000E-03    9.2857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2091        60.072        .27467E-03   -1.5411    
  24  Prefactor     26.317        48.802        .78079E-04   -1.4682    
  25  Prefactor     .10000E-03    7.1855        .22274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     29.091        25.285        .74283E-04   -1.4629    
  28  Prefactor     .10000E-03    17.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0101        .25915        .29559E-03   -.92694    
  30  Prefactor     .98086        .17190        .21399E-03   -.93370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31662e-09
Minuit parameter uncertainties:
  1  7.25832e-06
  2  0.000137566
  3  14.0531
  4  9.16446
  5  2.46759
  6  3.59666
  7  2.05355e-08
  8  1.205e-06
  9  40.5153
  10  5.87772e-05
  11  6.97226e-06
  12  2.75456e-05
  13  0.687215
  14  4.45914
  15  7.79603
  16  0.00026367
  17  8.21527
  18  9.1783
  19  0.000575214
  20  17.7406
  21  30.1978
  22  4.96177e-05
  23  23.0646
  24  48.8762
  25  0.000125301
  26  0.00033641
  27  25.2947
  28  1.13631e-05
  29  0.259474
  30  0.171997
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.364e-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:  9.809e-01  1.720e-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.010e+00  2.595e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/68317/likelihoodResults_242438401_242697601_4FGL_J2339.6+0242_daily_bin12.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) = 6249.25035924
delta logL = -0.000208601501072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6249.25015195
delta logL = -1.30900389195e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0313       1.0000          .0000       10.000    
     3 'Normalizat'    1.0101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98086       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=   6249.250     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      273 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10538E-03    10.731        .18142E-01** at limit **
   2  Index         2.9087        6.9569        .50000        .14756E-04
   3  Normalizat    1.0101        .41066E-02    .29559E-03    .57269E-04
   4  Prefactor     .98086        .29520E-02    .21399E-03    .50895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010538
  Index      = 2.90872
  Normalizat = 1.01006
  Prefactor  = 0.980858
 **********
 **   18 **HESSE 
 **********

 FCN=   6249.250     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10538E-03    101.10        .31568E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9087        6.6970        .50000       -.43152    
   3  Normalizat    1.0101        .12619E-01    .11824E-04   -.92694    
   4  Prefactor     .98086        .90708E-02    .85597E-05   -.93370    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.85428e-09
Minuit parameter uncertainties:
  1  0.0467243
  2  424.883
  3  0.012619
  4  0.00907084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68317': 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) = 6249.25015157
delta logL = -9.26102075027e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.054e-04  4.672e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.909e+00  4.249e+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.809e-01  9.071e-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:  1.010e+00  1.262e-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/68317/cmap_HighResolution_242438401_242697601_4FGL_J2339.6+0242_daily_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.43e-08', time_completed='2021-09-30 02:41:17.018952', job_id='68317', GAL2='0.98', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632994877.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-9.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='12' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:41:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 68317: <4FGL_J2339.6+0242_daily_bin12> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin12> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:25:58 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:26:00 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:26:00 2021
Terminated at Thu Sep 30 02:41:17 2021
Results reported at Thu Sep 30 02:41:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin12 354.904 2.7102 242438401 242697601 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 :                                   813.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

