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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin856
RA = 354.904, Dec = 2.7102
tmin = 461203201, tmax = 461462401
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='73284', job_status='RUN', time_executed='2021-09-30 02:42:48.957591', time_epoch_executed='1632994968.96' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73284/ft1_4FGL_J2339.6+0242_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73284/ft2_4FGL_J2339.6+0242_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73284/ft1_4FGL_J2339.6+0242_daily_bin856.fits outfile=/scratch/kocevski/73284/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin856.fits ra=354.904 dec=2.7102 rad=12.0 tmin=461203201.0 tmax=461462401.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.42
user 3.23
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73284/ft1_filtered_4FGL_J2339.6+0242_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/73284/ft2_4FGL_J2339.6+0242_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/73284/ltcube_461203201_461462401_4FGL_J2339.6+0242_daily_bin856.fits outfile=/scratch/kocevski/73284/expmap_461203201_461462401_4FGL_J2339.6+0242_daily_bin856.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/73284/ltcube_461203201_461462401_4FGL_J2339.6+0242_daily_bin856.fits
.....................!
real 189.93
user 184.93
sys 4.68

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/73284/ft1_filtered_4FGL_J2339.6+0242_daily_bin856.fits scfile=/scratch/kocevski/73284/ft2_4FGL_J2339.6+0242_daily_bin856.fits outfile=/scratch/kocevski/73284/cmap_461203201_461462401_4FGL_J2339.6+0242_daily_bin856.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8229       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4882       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3475       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.052       1.0000         .10000E-03   10000.    
     8 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.194       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.251       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4957       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2545       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.784       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.3498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4049       1.0000         .10000E-03   10000.    
    19 'Prefactor '    107.93       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.4160       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .20319E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86000       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83323       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=   7074.252     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3907 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7971        .37449E-06** at limit **
   2  Prefactor     .10000E-03    9.2645        .14316E-05** at limit **
   3  Prefactor     .10000E-03    29.631       -.51662E-06** at limit **
   4  Prefactor     3.8230        4.6874       -.31729E-06   -.33429E-03
   5  norm          1.4874        2.0889       -.36789E-06   -.90922E-03
   6  norm          2.3477        2.2950       -.69277E-09    .10836E-03
   7  Prefactor     10.054        11.243       -.55256E-07   -.52540E-04
   8  norm          .10000E-03    18.095        .53271E-05** at limit **
   9  Prefactor     28.197        32.321        .73038E-06   -.21333E-04
  10  Prefactor     .10000E-03    5.2118       -.12904E-06** at limit **
  11  Prefactor     30.253        18.257       -.61809E-06   -.53309E-05
  12  Prefactor     5.5024        7.7571       -.39601E-06   -.18789E-03
  13  norm          1.2545        .70938        .11037E-06   -.34903E-03
  14  norm          .10000E-03    3.3334        .59245E-07** at limit **
  15  Prefactor     10.786        10.050       -.15936E-05   -.16068E-02
  16  Prefactor     .10000E-03    32.033        .69137E-05** at limit **
  17  norm          7.3493        8.6249        .44565E-06   -.79927E-04
  18  Prefactor     3.4086        8.3600       -.87507E-06   -.31884E-03
  19  Prefactor     107.90        105.54       -.26058E-04    .19070E-03
  20  Prefactor     .10000E-03    2.1999        .80456E-07** at limit **
  21  Prefactor     .10000E-03    6.5868       -.53826E-06** at limit **
  22  norm          .10000E-03    10.521       -.18075E-05** at limit **
  23  norm          .10000E-03    4.1610        .58967E-07** at limit **
  24  Prefactor     .10000E-03    29.576       -.40623E-05** at limit **
  25  Prefactor     .10000E-03    2.3217        .33471E-06** at limit **
  26  Prefactor     .10000E-03    21.213       -.65194E-05** at limit **
  27  Prefactor     8.4154        19.660       -.90009E-06   -.35664E-05
  28  Prefactor     .10000E-03    7.7291       -.19147E-06** at limit **
  29  Normalizat    .85983        .17609        .11432E-05   -.28496E-04
  30  Prefactor     .83322        .11607        .24695E-06   -.78036E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82304
  norm       = 1.48739
  norm       = 2.3477
  Prefactor  = 10.0545
  norm       = 0.000100001
  Prefactor  = 28.1966
  Prefactor  = 0.0001
  Prefactor  = 30.2535
  Prefactor  = 5.5024
  norm       = 1.25446
  norm       = 0.0001
  Prefactor  = 10.7859
  Prefactor  = 0.000100001
  norm       = 7.34932
  Prefactor  = 3.40859
  Prefactor  = 107.9
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.41537
  Prefactor  = 0.000100001
  Normalizat = 0.859829
  Prefactor  = 0.833218
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.252     FROM HESSE     STATUS=OK           588 CALLS     4495 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8230        4.6903        .19484E-03   -1.5317    
   5  norm          1.4874        2.0789        .13525E-03   -1.5464    
   6  norm          2.3477        2.2975        .12199E-03   -1.5402    
   7  Prefactor     10.054        11.245        .12638E-03   -1.5074    
   8  norm          .10000E-03    18.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.197        32.293        .75451E-04   -1.4645    
  10  Prefactor     .10000E-03    5.2233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.253        18.258        .72847E-04   -1.4607    
  12  Prefactor     5.5024        7.7229        .17139E-03   -1.5239    
  13  norm          1.2545        .69924        .50846E-04   -1.5484    
  14  norm          .10000E-03    3.3810        .29812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.786        10.478        .61001E-03   -1.5051    
  16  Prefactor     .10000E-03    31.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.3493        8.5300        .14794E-03   -1.5166    
  18  Prefactor     3.4086        8.2480        .21924E-03   -1.5339    
  19  Prefactor     107.90        103.03        .19356E-03   -1.3627    
  20  Prefactor     .10000E-03    2.2048        .12182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.1627        .16756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.4228        .25007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.4154        19.654        .13819E-03   -1.5128    
  28  Prefactor     .10000E-03    80.299        .44407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85983        .20095        .27079E-03   -.97886    
  30  Prefactor     .83322        .13508        .19505E-03   -.98515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77819e-09
Minuit parameter uncertainties:
  1  1.30129e-05
  2  3.27953e-05
  3  6.9864e-05
  4  4.69076
  5  2.07898
  6  2.29761
  7  11.2478
  8  0.000316797
  9  32.3133
  10  4.02059e-07
  11  18.2613
  12  7.72429
  13  0.699243
  14  8.91378e-06
  15  10.4799
  16  0.000292456
  17  8.53145
  18  8.25076
  19  103.2
  20  1.06317e-05
  21  1.53671e-05
  22  4.32781e-05
  23  1.03717e-05
  24  0.00017232
  25  4.96963e-05
  26  0.000229157
  27  19.6686
  28  0.00047366
  29  0.201128
  30  0.135135
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  2.292e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.332e-01  1.351e-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:  8.598e-01  2.011e-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: 7.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73284/likelihoodResults_461203201_461462401_4FGL_J2339.6+0242_daily_bin856.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) = 7074.25182635
delta logL = -0.000225045292609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7074.25160212
delta logL = -8.11101926956e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0800       1.0000          .0000       10.000    
     3 'Normalizat'    .85983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83322       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=   7074.252     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10288E-03    7.2847        .18142E-01** at limit **
   2  Index         2.9897        5.2831        .50000        .11247E-04
   3  Normalizat    .85983        .27191E-02    .27079E-03    .74144E-04
   4  Prefactor     .83322        .19425E-02    .19505E-03    .72623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010288
  Index      = 2.98965
  Normalizat = 0.85983
  Prefactor  = 0.833218
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.252     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10288E-03    430.09        .66936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9897        5.3382        .50000       -.41378    
   3  Normalizat    .85983        .21324E-01    .10831E-04   -.97886    
   4  Prefactor     .83322        .15233E-01    .78021E-05   -.98515    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42266e-08
Minuit parameter uncertainties:
  1  0.0709088
  2  874.193
  3  0.0213246
  4  0.0152335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73284': 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) = 7074.25160196
delta logL = -6.55576513964e-07

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.029e-04  7.091e-02  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.990e+00  8.742e+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:  8.332e-01  1.523e-02  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:  8.598e-01  2.132e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/73284/cmap_HighResolution_461203201_461462401_4FGL_J2339.6+0242_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='7.61e-08', time_completed='2021-09-30 02:57:14.372418', job_id='73284', GAL2='0.83', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632995834.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-6.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='856' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 73284: <4FGL_J2339.6+0242_daily_bin856> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin856 354.904 2.7102 461203201 461462401 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 :                                   857.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

