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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin741
RA = 354.904, Dec = 2.7102
tmin = 431395201, tmax = 431654401
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='73109', job_status='RUN', time_executed='2021-09-30 02:42:24.366493', time_epoch_executed='1632994944.37' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73109/ft1_4FGL_J2339.6+0242_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73109/ft2_4FGL_J2339.6+0242_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73109/ft1_4FGL_J2339.6+0242_daily_bin741.fits outfile=/scratch/kocevski/73109/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin741.fits ra=354.904 dec=2.7102 rad=12.0 tmin=431395201.0 tmax=431654401.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 5.63
user 5.35
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73109/ft1_filtered_4FGL_J2339.6+0242_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/73109/ft2_4FGL_J2339.6+0242_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/73109/ltcube_431395201_431654401_4FGL_J2339.6+0242_daily_bin741.fits outfile=/scratch/kocevski/73109/expmap_431395201_431654401_4FGL_J2339.6+0242_daily_bin741.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/73109/ltcube_431395201_431654401_4FGL_J2339.6+0242_daily_bin741.fits
.....................!
real 191.17
user 186.11
sys 4.71

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/73109/ft1_filtered_4FGL_J2339.6+0242_daily_bin741.fits scfile=/scratch/kocevski/73109/ft2_4FGL_J2339.6+0242_daily_bin741.fits outfile=/scratch/kocevski/73109/cmap_431395201_431654401_4FGL_J2339.6+0242_daily_bin741.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.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.806       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.0926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.763       1.0000         .10000E-03   10000.    
     8 'norm      '    24.162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12630E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7460       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5536       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    270.01       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1528       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.239       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10790E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.131       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1011       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0548       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2656       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=   2227.208     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3947 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.092        29.695       -.15165E-06   -.88441E-04
   2  Prefactor     46.807        76.183       -.88766E-07   -.14157E-04
   3  Prefactor     6.2544        18.937       -.22478E-06   -.85354E-04
   4  Prefactor     .10000E-03    8.4478       -.66154E-08** at limit **
   5  norm          .10000E-03    1.4574       -.32386E-08** at limit **
   6  norm          7.0927        7.2669       -.60603E-07   -.12507E-03
   7  Prefactor     16.764        19.880       -.33040E-06   -.12643E-03
   8  norm          24.163        24.799       -.16516E-06   -.13124E-03
   9  Prefactor     47.174        58.917       -.21163E-06   -.39513E-04
  10  Prefactor     .10000E-03    11.029        .24197E-07** at limit **
  11  Prefactor     .10001E-03    112.34        .24126E-06** at limit **
  12  Prefactor     .10002E-03    125.20       -.26081E-06** at limit **
  13  norm          3.7427        2.9756       -.66318E-07   -.66824E-03
  14  norm          3.5474        17.467        .68607E-06   -.90919E-04
  15  Prefactor     .10000E-03    9.0699        .12453E-06** at limit **
  16  Prefactor     269.97        145.07       -.13814E-06   -.29264E-03
  17  norm          3.1528        14.685        .83350E-07    .66051E-04
  18  Prefactor     15.240        14.759       -.37130E-06    .29660E-04
  19  Prefactor     .10003E-03    331.25        .10428E-05** at limit **
  20  Prefactor     4.4733        100.84        .22687E-05   -.12306E-03
  21  Prefactor     32.132        29.633       -.23974E-06   -.48927E-04
  22  norm          .10000E-03    13.609        .23068E-07** at limit **
  23  norm          .10001E-03    39.961        .30260E-06** at limit **
  24  Prefactor     .10000E-03    58.129        .14309E-06** at limit **
  25  Prefactor     1.0914        32.834       -.17098E-05   -.15910E-03
  26  Prefactor     .10001E-03    40.858       -.64748E-06** at limit **
  27  Prefactor     2.0564        51.028        .65932E-05   -.21260E-03
  28  Prefactor     .10000E-03    16.108       -.15532E-07** at limit **
  29  Normalizat    .10000E-01    .27709        .12907E-04** at limit **
  30  Prefactor     1.2656        .13973       -.21092E-05   -.64187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.0918
  Prefactor  = 46.8068
  Prefactor  = 6.25436
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.09272
  Prefactor  = 16.7643
  norm       = 24.1627
  Prefactor  = 47.1738
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100023
  norm       = 3.74275
  norm       = 3.54742
  Prefactor  = 0.0001
  Prefactor  = 269.973
  norm       = 3.15284
  Prefactor  = 15.2396
  Prefactor  = 0.000100027
  Prefactor  = 4.4733
  Prefactor  = 32.1315
  norm       = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.09142
  Prefactor  = 0.000100008
  Prefactor  = 2.05641
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.2656
 **********
 **   18 **HESSE 
 **********

 FCN=   2227.208     FROM HESSE     STATUS=OK           578 CALLS     4525 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.092        29.701        .68633E-04   -1.4540    
   2  Prefactor     46.807        76.186        .58608E-04   -1.4339    
   3  Prefactor     6.2544        18.946        .16052E-03   -1.5208    
   4  Prefactor     .10000E-03    8.4866        .13396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4619        .55609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.0927        7.2648        .12084E-03   -1.5175    
   7  Prefactor     16.764        19.880        .97824E-04   -1.4889    
   8  norm          24.163        24.858        .81491E-04   -1.4724    
   9  Prefactor     47.174        59.104        .58382E-04   -1.4333    
  10  Prefactor     .10000E-03    11.053        .15310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    114.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    129.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7427        2.9507        .61524E-04   -1.5321    
  14  norm          3.5474        16.827        .21441E-03   -1.5331    
  15  Prefactor     .10000E-03    9.1121        .13871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     269.97        145.88        .12339E-03   -1.2407    
  17  norm          3.1528        14.197        .22828E-03   -1.5353    
  18  Prefactor     15.240        14.574        .10260E-03   -1.4927    
  19  Prefactor     .10003E-03    333.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4733        62.667        .19134E-03   -1.5285    
  21  Prefactor     32.132        29.622        .70688E-04   -1.4574    
  22  norm          .10000E-03    13.610        .17007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    40.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    58.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0914        20.886        .28824E-03   -1.5499    
  26  Prefactor     .10001E-03    41.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.0564        54.886        .14417E-02   -1.5421    
  28  Prefactor     .10000E-03    16.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .94913        .13051E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.2656        .14374        .16730E-03   -.84336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60217e-09
Minuit parameter uncertainties:
  1  29.7135
  2  76.3451
  3  18.9643
  4  2.5704e-06
  5  4.11292e-07
  6  7.26571
  7  19.8879
  8  24.8682
  9  59.1775
  10  2.63315e-06
  11  0.00217616
  12  0.00348256
  13  2.95081
  14  15.4589
  15  5.62857e-06
  16  146.082
  17  13.3859
  18  14.5779
  19  0.00607169
  20  33.5282
  21  29.6356
  22  4.70825e-06
  23  0.000921072
  24  0.00031452
  25  9.55233
  26  0.00113933
  27  21.2691
  28  1.29983e-05
  29  1.22407e-05
  30  0.143785
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  1.139e-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:  1.266e+00  1.438e-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.000e-02  1.224e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/73109/likelihoodResults_431395201_431654401_4FGL_J2339.6+0242_daily_bin741.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) = 2227.20776417
delta logL = -0.000119050145713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2227.20764513
delta logL = -1.18916432257e-08

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 'Index     '    2.4830       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2656       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=   2227.208     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      252 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8412.5        .90712E-02** at limit **
   2  Index         2.4865        6.4970        .50000       -.78940E-06
   3  Normalizat    .10000E-01    .25137        .21370    ** at limit **
   4  Prefactor     1.2656        .14098        .33238E-01    .35055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4865
  Normalizat = 0.01
  Prefactor  = 1.2656
 **********
 **   18 **HESSE 
 **********

 FCN=   2227.208     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4865        6.2422        .50000       -.52672    
   3  Normalizat    .10000E-01    .68726        .13020E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2656        .12107        .16730E-03   -.84336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71196e-12
Minuit parameter uncertainties:
  1  3.52191e-06
  2  4.63884
  3  3.7835e-07
  4  0.121096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73109': 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) = 2227.20764513
delta logL = -1.10921973828e-08

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  3.522e-06  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.486e+00  4.639e+00  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.266e+00  1.211e-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.000e-02  3.784e-07  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/73109/cmap_HighResolution_431395201_431654401_4FGL_J2339.6+0242_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-30 02:50:46.320307', job_id='73109', GAL2='1.27', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632995446.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='-1.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='741' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 73109: <4FGL_J2339.6+0242_daily_bin741> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin741> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 02:40:24 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:40:26 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:40:26 2021
Terminated at Thu Sep 30 02:50:47 2021
Results reported at Thu Sep 30 02:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin741 354.904 2.7102 431395201 431654401 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 :                                   493.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            623 sec.

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

