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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin541
RA = 354.904, Dec = 2.7102
tmin = 379555201, tmax = 379814401
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='71788', job_status='RUN', time_executed='2021-09-30 02:39:50.783505', time_epoch_executed='1632994790.78' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71788/ft1_4FGL_J2339.6+0242_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71788/ft2_4FGL_J2339.6+0242_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71788/ft1_4FGL_J2339.6+0242_daily_bin541.fits outfile=/scratch/kocevski/71788/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin541.fits ra=354.904 dec=2.7102 rad=12.0 tmin=379555201.0 tmax=379814401.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 2.86
user 2.65
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71788/ft1_filtered_4FGL_J2339.6+0242_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/71788/ft2_4FGL_J2339.6+0242_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/71788/ltcube_379555201_379814401_4FGL_J2339.6+0242_daily_bin541.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/71788/ft2_4FGL_J2339.6+0242_daily_bin541.fits
.....................!
real 9.55
user 9.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71788/ft1_filtered_4FGL_J2339.6+0242_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/71788/ft2_4FGL_J2339.6+0242_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/71788/ltcube_379555201_379814401_4FGL_J2339.6+0242_daily_bin541.fits outfile=/scratch/kocevski/71788/expmap_379555201_379814401_4FGL_J2339.6+0242_daily_bin541.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/71788/ltcube_379555201_379814401_4FGL_J2339.6+0242_daily_bin541.fits
.....................!
real 150.06
user 145.75
sys 4.06

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/71788/ft1_filtered_4FGL_J2339.6+0242_daily_bin541.fits scfile=/scratch/kocevski/71788/ft2_4FGL_J2339.6+0242_daily_bin541.fits outfile=/scratch/kocevski/71788/cmap_379555201_379814401_4FGL_J2339.6+0242_daily_bin541.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71788/ft1_filtered_4FGL_J2339.6+0242_daily_bin541.fits scfile=/scratch/kocevski/71788/ft2_4FGL_J2339.6+0242_daily_bin541.fits outfile=/scratch/kocevski/71788/cmap_HighResolution_379555201_379814401_4FGL_J2339.6+0242_daily_bin541.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.46
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2310       1.0000         .10000E-03   10000.    
     6 'norm      '    10.597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9949       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1798       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.556       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.884       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6936       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9577       1.0000         .10000E-03   10000.    
    19 'Prefactor '    150.73       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.3316       1.0000         .10000E-03   10000.    
    23 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.946       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.3961       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.706       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.994       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3405       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .60800       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=   5776.527     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3841 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1513        .15492E-06** at limit **
   2  Prefactor     .10000E-03    58.365        .56552E-06** at limit **
   3  Prefactor     .10000E-03    8.5759        .59821E-07** at limit **
   4  Prefactor     .10000E-03    2.5878        .63442E-07** at limit **
   5  norm          1.2294        2.4825        .59632E-06    .23901E-04
   6  norm          10.597        5.3626        .39536E-07   -.99497E-05
   7  Prefactor     .10000E-03    6.6897        .13597E-06** at limit **
   8  norm          16.874        13.742        .20423E-06   -.19467E-05
   9  Prefactor     4.9930        29.179        .51182E-06   -.44236E-05
  10  Prefactor     5.1803        7.9575        .21054E-05   -.63425E-04
  11  Prefactor     32.550        22.532        .22386E-06   -.20298E-04
  12  Prefactor     12.880        9.3270        .20601E-07   -.16623E-04
  13  norm          2.6924        1.1401       -.20669E-07   -.23847E-04
  14  norm          .10000E-03    3.8300       -.32036E-07** at limit **
  15  Prefactor     3.3418        6.7840       -.33039E-06   -.44815E-04
  16  Prefactor     .10000E-03    36.912        .19261E-06** at limit **
  17  norm          .10000E-03    5.5729       -.10819E-05** at limit **
  18  Prefactor     4.9590        7.3565        .63634E-05   -.12093E-03
  19  Prefactor     150.99        135.02        .24074E-05    .16891E-03
  20  Prefactor     .10000E-03    3.3160        .34907E-06** at limit **
  21  Prefactor     .10000E-03    38.530       -.82897E-06** at limit **
  22  norm          7.3308        17.835       -.93680E-06   -.19668E-04
  23  norm          .10000E-03    7.5141        .31718E-06** at limit **
  24  Prefactor     13.892        57.726       -.42653E-06   -.48926E-04
  25  Prefactor     .10000E-03    1.0864        .18865E-06** at limit **
  26  Prefactor     5.3864        52.442        .46253E-06   -.10938E-04
  27  Prefactor     16.679        29.629       -.30333E-06   -.60681E-04
  28  Prefactor     10.991        12.852        .62135E-07   -.10841E-04
  29  Normalizat    1.3410        .21191        .35285E-06   -.93502E-04
  30  Prefactor     .60776        .13480       -.23357E-05    .16231E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22942
  norm       = 10.5966
  Prefactor  = 0.0001
  norm       = 16.8739
  Prefactor  = 4.993
  Prefactor  = 5.18035
  Prefactor  = 32.55
  Prefactor  = 12.8798
  norm       = 2.69238
  norm       = 0.0001
  Prefactor  = 3.34179
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.95895
  Prefactor  = 150.986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.33077
  norm       = 0.0001
  Prefactor  = 13.8922
  Prefactor  = 0.0001
  Prefactor  = 5.38644
  Prefactor  = 16.6789
  Prefactor  = 10.9906
  Normalizat = 1.34098
  Prefactor  = 0.607761
 **********
 **   18 **HESSE 
 **********

 FCN=   5776.527     FROM HESSE     STATUS=OK           588 CALLS     4429 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5944        .11939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2294        2.4521        .16159E-03   -1.5486    
   6  norm          10.597        5.3656        .12157E-03   -1.5057    
   7  Prefactor     .10000E-03    6.7146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.874        13.751        .97494E-04   -1.4886    
   9  Prefactor     4.9930        29.178        .17994E-03   -1.5261    
  10  Prefactor     5.1803        7.9432        .88317E-03   -1.5253    
  11  Prefactor     32.550        22.544        .70227E-04   -1.4566    
  12  Prefactor     12.880        9.3275        .11159E-03   -1.4990    
  13  norm          2.6924        1.1390        .50300E-04   -1.5380    
  14  norm          .10000E-03    3.8667        .14511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3418        6.7617        .22148E-03   -1.5342    
  16  Prefactor     .10000E-03    36.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.7041        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9590        7.4051        .90312E-03   -1.5263    
  19  Prefactor     150.99        135.61        .16415E-03   -1.3244    
  20  Prefactor     .10000E-03    3.3205        .13516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.3308        17.829        .14813E-03   -1.5166    
  23  norm          .10000E-03    7.5199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.892        58.185        .10726E-03   -1.4962    
  25  Prefactor     .10000E-03    1.0886        .77354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.3864        52.438        .17299E-03   -1.5244    
  27  Prefactor     16.679        29.735        .97991E-04   -1.4891    
  28  Prefactor     10.991        12.869        .12083E-03   -1.5045    
  29  Normalizat    1.3410        .24724        .25315E-03   -.82351    
  30  Prefactor     .60776        .15479        .23857E-03   -1.0726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28827e-10
Minuit parameter uncertainties:
  1  1.27239e-05
  2  0.0001259
  3  6.06108e-07
  4  8.44359e-08
  5  2.45234
  6  5.36585
  7  7.06827e-06
  8  13.7532
  9  24.1578
  10  7.94479
  11  22.5495
  12  9.32855
  13  1.13905
  14  7.76274e-06
  15  6.76322
  16  5.01857e-05
  17  0.00013085
  18  7.4065
  19  135.889
  20  5.92288e-07
  21  0.00012772
  22  17.8422
  23  6.28991e-06
  24  56.9567
  25  4.33227e-07
  26  33.6511
  27  29.7615
  28  12.8723
  29  0.247461
  30  0.154897
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.386e+00  3.365e+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:  6.078e-01  1.549e-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.341e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71788/likelihoodResults_379555201_379814401_4FGL_J2339.6+0242_daily_bin541.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) = 5776.5259027
delta logL = 0.000674943710692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5776.52585272
delta logL = 0.000724930762772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1667       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6567       1.0000          .0000       10.000    
     3 'Normalizat'    1.3400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60809       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=   5776.526     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      274 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1534        55.668        .17686E-03   -.10478E-03
   2  Index         2.6578        2.7929        .11909E-01   -.48930E-04
   3  Normalizat    1.3401        .23286        .25322E-03   -.26923E-02
   4  Prefactor     .60811        .15302        .23851E-03   -.25892E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15341
  Index      = 2.65778
  Normalizat = 1.34009
  Prefactor  = 0.608111
 **********
 **   18 **HESSE 
 **********

 FCN=   5776.526     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1534        52.095        .70744E-05   -1.5254    
   2  Index         2.6578        2.7145        .47635E-03   -.48753    
   3  Normalizat    1.3401        .23305        .50645E-04   -.82378    
   4  Prefactor     .60811        .15307        .47702E-04   -1.0725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02905e-09
Minuit parameter uncertainties:
  1  32.8067
  2  2.92317
  3  0.233232
  4  0.153171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71788': 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) = 5776.5258516
delta logL = 0.000726045394003

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.153e+00  3.281e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.658e+00  2.923e+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:  6.081e-01  1.532e-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.340e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/71788/cmap_HighResolution_379555201_379814401_4FGL_J2339.6+0242_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.10e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-30 02:49:23.932392', job_id='71788', GAL2='0.61', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632995363.93', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='7.26e-04', ts2='0.03', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='541' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:49:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 71788: <4FGL_J2339.6+0242_daily_bin541> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin541> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 02:35:42 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:35:44 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:35:44 2021
Terminated at Thu Sep 30 02:49:24 2021
Results reported at Thu Sep 30 02:49:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin541 354.904 2.7102 379555201 379814401 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 :                                   570.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

