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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin170
RA = 354.904, Dec = 2.7102
tmin = 283392001, tmax = 283651201
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='69861', job_status='RUN', time_executed='2021-09-30 02:34:00.206768', time_epoch_executed='1632994440.21' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69861

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69861/ft1_4FGL_J2339.6+0242_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69861/ft2_4FGL_J2339.6+0242_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69861/ft1_4FGL_J2339.6+0242_daily_bin170.fits outfile=/scratch/kocevski/69861/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin170.fits ra=354.904 dec=2.7102 rad=12.0 tmin=283392001.0 tmax=283651201.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.59
user 3.37
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69861/ft1_filtered_4FGL_J2339.6+0242_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/69861/ft2_4FGL_J2339.6+0242_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/69861/ltcube_283392001_283651201_4FGL_J2339.6+0242_daily_bin170.fits outfile=/scratch/kocevski/69861/expmap_283392001_283651201_4FGL_J2339.6+0242_daily_bin170.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/69861/ltcube_283392001_283651201_4FGL_J2339.6+0242_daily_bin170.fits
.....................!
real 189.94
user 185.39
sys 4.24

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/69861/ft1_filtered_4FGL_J2339.6+0242_daily_bin170.fits scfile=/scratch/kocevski/69861/ft2_4FGL_J2339.6+0242_daily_bin170.fits outfile=/scratch/kocevski/69861/cmap_283392001_283651201_4FGL_J2339.6+0242_daily_bin170.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9555       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .81920       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.643       1.0000         .10000E-03   10000.    
     8 'norm      '    .67690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4949       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46091E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .70844       1.0000         .10000E-03   10000.    
    14 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9889       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4799       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.889       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.7026       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .32187E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.9420       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4411       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76541       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=   5905.576     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3400 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7423        .25399E-07** at limit **
   2  Prefactor     .10000E-03    147.95        .85692E-05** at limit **
   3  Prefactor     6.9534        11.483        .18887E-05   -.17954E-04
   4  Prefactor     .10000E-03    2.3478        .15949E-07** at limit **
   5  norm          .82166        2.7684        .65204E-06   -.83860E-04
   6  norm          .10000E-03    2.8679        .85407E-07** at limit **
   7  Prefactor     28.648        18.461       -.38244E-06   -.17500E-04
   8  norm          .67745        10.078        .46355E-05   -.38850E-04
   9  Prefactor     .10000E-03    16.363        .67530E-07** at limit **
  10  Prefactor     3.4981        14.655        .38886E-06    .48942E-06
  11  Prefactor     .10000E-03    9.6838        .96252E-07** at limit **
  12  Prefactor     .10006E-03    9.4670       -.33804E-07** at limit **
  13  norm          .70831        .83321        .17032E-06    .26934E-03
  14  norm          .10000E-03    5.9532       -.24770E-06** at limit **
  15  Prefactor     8.9893        6.9947       -.15724E-06   -.32329E-05
  16  Prefactor     .10000E-03    67.944       -.29685E-05** at limit **
  17  norm          2.4799        5.7155        .27894E-06   -.17265E-04
  18  Prefactor     .10000E-03    10.563       -.45773E-06** at limit **
  19  Prefactor     .10000E-03    49.295        .14724E-05** at limit **
  20  Prefactor     .10000E-03    3.2979       -.77609E-09** at limit **
  21  Prefactor     .10000E-03    26.629        .89642E-07** at limit **
  22  norm          12.890        22.623        .40235E-07    .10499E-05
  23  norm          .10000E-03    6.2944        .28500E-07** at limit **
  24  Prefactor     9.5513        55.854       -.70485E-05   -.49666E-04
  25  Prefactor     .10000E-03    1.6908       -.86303E-08** at limit **
  26  Prefactor     .10003E-03    16.124       -.80935E-06** at limit **
  27  Prefactor     .10000E-03    26.530        .17607E-06** at limit **
  28  Prefactor     4.9427        8.2910        .38126E-07   -.89245E-07
  29  Normalizat    1.4406        .21332        .13566E-05   -.46374E-04
  30  Prefactor     .76555        .13931       -.13837E-05    .85856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.9534
  Prefactor  = 0.0001
  norm       = 0.821658
  norm       = 0.0001
  Prefactor  = 28.6484
  norm       = 0.677449
  Prefactor  = 0.0001
  Prefactor  = 3.49812
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  norm       = 0.708313
  norm       = 0.000100003
  Prefactor  = 8.98926
  Prefactor  = 0.0001
  norm       = 2.47985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8904
  norm       = 0.0001
  Prefactor  = 9.55135
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 4.9427
  Normalizat = 1.44065
  Prefactor  = 0.76555
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.576     FROM HESSE     STATUS=OK           592 CALLS     3992 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    151.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9534        11.366        .76059E-03   -1.5181    
   4  Prefactor     .10000E-03    2.3513        .11499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .82166        2.7267        .21317E-03   -1.5527    
   6  norm          .10000E-03    2.8892        .12699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.648        18.443        .74858E-04   -1.4637    
   8  norm          .67745        10.379        .47664E-03   -1.5543    
   9  Prefactor     .10000E-03    16.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4981        14.612        .21628E-03   -1.5334    
  11  Prefactor     .10000E-03    9.7121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10006E-03    117.50        .42081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .70831        .79027        .72770E-03   -1.5540    
  14  norm          .10000E-03    18.439        .33349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.9893        6.9895        .13368E-03   -1.5108    
  16  Prefactor     .10000E-03    68.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4799        5.6889        .25961E-03   -1.5393    
  18  Prefactor     .10000E-03    10.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3051        .13628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.890        22.615        .11157E-03   -1.4990    
  23  norm          .10000E-03    6.2973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.5513        58.382        .12865E-03   -1.5090    
  25  Prefactor     .10000E-03    1.7035        .97556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10003E-03    99.264        .59174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.9427        8.2815        .18092E-03   -1.5263    
  29  Normalizat    1.4406        .24255        .25541E-03   -.79460    
  30  Prefactor     .76555        .16040        .22935E-03   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08304e-09
Minuit parameter uncertainties:
  1  2.37081e-06
  2  0.000980229
  3  11.3696
  4  1.94357e-06
  5  2.72711
  6  5.31344e-07
  7  18.4464
  8  5.30392
  9  1.33372e-06
  10  14.3047
  11  6.39309e-07
  12  0.00524846
  13  0.790277
  14  0.000448571
  15  6.99017
  16  0.000361177
  17  5.69011
  18  1.75924e-05
  19  0.000153316
  20  1.31165e-06
  21  5.31861e-06
  22  22.6304
  23  3.92809e-07
  24  47.2969
  25  1.03404e-08
  26  0.00353828
  27  1.13048e-05
  28  8.28342
  29  0.242748
  30  0.160501
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.538e-03  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.656e-01  1.605e-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.441e+00  2.427e-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: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69861/likelihoodResults_283392001_283651201_4FGL_J2339.6+0242_daily_bin170.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) = 5905.57639443
delta logL = -4.71989114885e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5905.57634708
delta logL = 1.49073457578e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8160       1.0000          .0000       10.000    
     3 'Normalizat'    1.4406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76555       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=   5905.576     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      252 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .53553        .11578    ** at limit **
   2  Index         2.8297        5.8959        .50000       -.65115E-06
   3  Normalizat    1.4406        .98540E-03    .57758E-01    .35801E-04
   4  Prefactor     .76555        .67231E-03    .43267E-01    .42011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.82966
  Normalizat = 1.44065
  Prefactor  = 0.765549
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.576     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      289 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    195.56        .59326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8297        5.0040        .50000       -.44900    
   3  Normalizat    1.4406        .62641E-02    .25541E-03   -.79460    
   4  Prefactor     .76555        .42740E-02    .22935E-03   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58575e-09
Minuit parameter uncertainties:
  1  0.000888633
  2  254.71
  3  0.00626407
  4  0.00427398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69861': 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) = 5905.57634708
delta logL = 1.56307578436e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  8.886e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.830e+00  2.547e+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:  7.655e-01  4.274e-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.441e+00  6.264e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/69861/cmap_HighResolution_283392001_283651201_4FGL_J2339.6+0242_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-30 02:46:23.163377', job_id='69861', GAL2='0.77', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632995183.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='170' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 69861: <4FGL_J2339.6+0242_daily_bin170> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:31 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:32 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:30:32 2021
Terminated at Thu Sep 30 02:46:23 2021
Results reported at Thu Sep 30 02:46:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin170 354.904 2.7102 283392001 283651201 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 :                                   740.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            952 sec.

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

