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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1095
RA = 354.904, Dec = 2.7102
tmin = 523152001, tmax = 523411201
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='74735', job_status='RUN', time_executed='2021-09-30 02:45:46.506585', time_epoch_executed='1632995146.51' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74735

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74735/ft1_4FGL_J2339.6+0242_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74735/ft2_4FGL_J2339.6+0242_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74735/ft1_4FGL_J2339.6+0242_daily_bin1095.fits outfile=/scratch/kocevski/74735/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1095.fits ra=354.904 dec=2.7102 rad=12.0 tmin=523152001.0 tmax=523411201.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.20
user 4.01
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74735/ft2_4FGL_J2339.6+0242_daily_bin1095.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/74735/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1095.fits evtable="EVENTS" outfile="/scratch/kocevski/74735/ft1_filtered_4FGL_J2339.6+0242_daily_bin1095.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.60
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74735/ft1_filtered_4FGL_J2339.6+0242_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/74735/ft2_4FGL_J2339.6+0242_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/74735/ltcube_523152001_523411201_4FGL_J2339.6+0242_daily_bin1095.fits outfile=/scratch/kocevski/74735/expmap_523152001_523411201_4FGL_J2339.6+0242_daily_bin1095.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/74735/ltcube_523152001_523411201_4FGL_J2339.6+0242_daily_bin1095.fits
.....................!
real 190.49
user 184.82
sys 5.35

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/74735/ft1_filtered_4FGL_J2339.6+0242_daily_bin1095.fits scfile=/scratch/kocevski/74735/ft2_4FGL_J2339.6+0242_daily_bin1095.fits outfile=/scratch/kocevski/74735/cmap_523152001_523411201_4FGL_J2339.6+0242_daily_bin1095.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74735/ft1_filtered_4FGL_J2339.6+0242_daily_bin1095.fits scfile=/scratch/kocevski/74735/ft2_4FGL_J2339.6+0242_daily_bin1095.fits outfile=/scratch/kocevski/74735/cmap_HighResolution_523152001_523411201_4FGL_J2339.6+0242_daily_bin1095.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0994       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.5097       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3407       1.0000         .10000E-03   10000.    
     8 'norm      '    .30019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.253       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .49769       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4836       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8676       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49419E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .40508E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.100       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.9284       1.0000         .10000E-03   10000.    
    26 'Prefactor '    27.188       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.175       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8770       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .67569       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5435.062     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     3295 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0958        1.0464       -.73385E-09   -.21629E-05
   2  Prefactor     .10001E-03    21.996        .28014E-05** at limit **
   3  Prefactor     .10001E-03    6.8679        .31891E-06** at limit **
   4  Prefactor     .10000E-03    1.8900       -.26345E-06** at limit **
   5  norm          .10000E-03    1.0231       -.84148E-06** at limit **
   6  norm          5.5089        4.1473        .12670E-06   -.26821E-05
   7  Prefactor     8.3359        1.1015        .22665E-07   -.55789E-04
   8  norm          .10004E-03    1.4914       -.13393E-06** at limit **
   9  Prefactor     20.244        1.5083       -.16172E-06   -.96693E-03
  10  Prefactor     .10000E-03    5.3771       -.16486E-06** at limit **
  11  Prefactor     .10000E-03    17.142        .38031E-05** at limit **
  12  Prefactor     .10001E-03    8.8251       -.12510E-06** at limit **
  13  norm          .49855        .65784       -.59533E-07   -.21538E-04
  14  norm          .10001E-03    28.785       -.13976E-05** at limit **
  15  Prefactor     4.4847        1.0912        .61544E-07   -.55247E-03
  16  Prefactor     1.8497        3.0377       -.18615E-05    .42991E-03
  17  norm          .10000E-03    2.4393        .11463E-06** at limit **
  18  Prefactor     .10911E-03    543.03       -.30890E-04** at limit **
  19  Prefactor     .11230E-02    21.154       -.78935E-05** at limit **
  20  Prefactor     .10000E-03    6.2132       -.88220E-07** at limit **
  21  Prefactor     12.107        1.5983        .90111E-07    .14985E-02
  22  norm          .10000E-03    7.2423       -.44379E-06** at limit **
  23  norm          .10000E-03    9.1951        .11400E-05** at limit **
  24  Prefactor     .10009E-03    71.402        .15101E-04** at limit **
  25  Prefactor     9.9276        5.2407       -.68641E-06   -.45338E-03
  26  Prefactor     27.182        1.5180       -.19418E-06   -.12005E-03
  27  Prefactor     23.170        1.5203       -.19898E-06   -.89738E-03
  28  Prefactor     5.8646        1.6964       -.28184E-07   -.99331E-03
  29  Normalizat    .67589        .22874       -.31333E-05   -.20478E-04
  30  Prefactor     1.1298        .16622       -.95696E-06   -.34399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.09582
  Prefactor  = 0.000100013
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.50892
  Prefactor  = 8.33593
  norm       = 0.000100039
  Prefactor  = 20.2442
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100008
  norm       = 0.498554
  norm       = 0.000100014
  Prefactor  = 4.4847
  Prefactor  = 1.8497
  norm       = 0.0001
  Prefactor  = 0.000109114
  Prefactor  = 0.001123
  Prefactor  = 0.0001
  Prefactor  = 12.1072
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100093
  Prefactor  = 9.92761
  Prefactor  = 27.182
  Prefactor  = 23.1699
  Prefactor  = 5.86464
  Normalizat = 0.67589
  Prefactor  = 1.12984
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.062     FROM HESSE     STATUS=OK           662 CALLS     3957 TOTAL
                     EDM=   .99E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0958        12.451        .37638E-02   -1.5175    
   2  Prefactor     .10001E-03    22.208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    15.115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.5089        4.2167        .42793E-02   -1.5239    
   7  Prefactor     8.3359        12.837        .34703E-02   -1.5130    
   8  norm          .10004E-03    9.4200        .10695       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.244        25.626        .22250E-02   -1.4808    
  10  Prefactor     .10000E-03    5.3709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    14.858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .49855        .75806        .16090E-01   -1.5567    
  14  norm          .10001E-03    5.2641        .56388E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4847        6.5180        .47538E-02   -1.5284    
  16  Prefactor     1.8497        320.62        .76204E-02   -1.5436    
  17  norm          .10000E-03    2.4378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10911E-03    3.4694        .76158E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11230E-02    1037.1        .97394E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.2027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.107        16.864        .28790E-02   -1.5012    
  22  norm          .10000E-03    7.2580        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.1925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10009E-03    71.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.9276        5.2989        .31793E-02   -1.5078    
  26  Prefactor     27.182        33.515        .19208E-02   -1.4665    
  27  Prefactor     23.170        24.145        .20802E-02   -1.4745    
  28  Prefactor     5.8646        17.733        .41413E-02   -1.5224    
  29  Normalizat    .67589        .21375        .73296E-01   -1.0485    
  30  Prefactor     1.1298        .14705        .36552E-01   -.88519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94417e-07
Minuit parameter uncertainties:
  1  12.4559
  2  0.00107897
  3  0.000585842
  4  3.32107e-07
  5  1.4101e-06
  6  4.21693
  7  12.8408
  8  0.00121196
  9  25.6401
  10  1.52778e-06
  11  0.000490498
  12  0.000696766
  13  0.758076
  14  0.000544084
  15  6.51906
  16  48.9723
  17  2.51727e-07
  18  0.0112472
  19  2.09747
  20  3.26696e-06
  21  16.8701
  22  4.36342e-06
  23  1.37366e-06
  24  0.00516595
  25  5.2992
  26  33.538
  27  24.1551
  28  17.7488
  29  0.214013
  30  0.147101
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.718e+01  3.354e+01  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.130e+00  1.471e-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.759e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74735/likelihoodResults_523152001_523411201_4FGL_J2339.6+0242_daily_bin1095.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): 0
logL (Free Index) = 5435.04078808
delta logL = 0.0210754173931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5435.03506492
delta logL = 0.0267985825985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.220       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3187       1.0000          .0000       10.000    
     3 'Normalizat'    .68309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1264       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=   5435.035     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      273 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.204        40.483        .71710E-04    .83264E-04
   2  Index         2.3196        .95968        .11007E-01   -.64635E-05
   3  Normalizat    .68283        .22812        .32292E-03    .40839E-05
   4  Prefactor     1.1265        .16614        .18716E-03    .13023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2036
  Index      = 2.31959
  Normalizat = 0.682831
  Prefactor  = 1.12655
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.035     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.204        39.842        .14342E-04   -1.4590    
   2  Index         2.3196        .94422        .44029E-03   -.56579    
   3  Normalizat    .68283        .22815        .12917E-04   -1.0457    
   4  Prefactor     1.1265        .16619        .37432E-04   -.88623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51271e-11
Minuit parameter uncertainties:
  1  39.8762
  2  0.952282
  3  0.228466
  4  0.166262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74735': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5435.03506387
delta logL = 0.0267996266994

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.120e+01  3.988e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.320e+00  9.523e-01  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.127e+00  1.663e-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.828e-01  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.32 +/- 0.95
Photon Flux (Free Index): 2.77e-08 +/- 4.22e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.37e-05

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/74735/cmap_HighResolution_523152001_523411201_4FGL_J2339.6+0242_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='2.68e-02', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-30 03:01:28.343640', photon_index_error2='0.95', photon_index2='2.32', ts='0.96', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.37e-05', EG='0.68', time_epoch_completed='1632996088.34', return_code='0', job_id='74735', GAL2='1.13', EG2='0.68', return_code2='0', photon_flux_error2='4.22e-08', ts2='1.02', photon_index='2.55' WHERE bin_id='1095' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 03:01:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 74735: <4FGL_J2339.6+0242_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1095 354.904 2.7102 523152001 523411201 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

