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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin512
RA = 354.904, Dec = 2.7102
tmin = 372038401, tmax = 372297601
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='71736', job_status='RUN', time_executed='2021-09-30 02:38:40.347923', time_epoch_executed='1632994720.35' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71736/ft1_4FGL_J2339.6+0242_daily_bin512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71736/ft2_4FGL_J2339.6+0242_daily_bin512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71736/ft1_4FGL_J2339.6+0242_daily_bin512.fits outfile=/scratch/kocevski/71736/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin512.fits ra=354.904 dec=2.7102 rad=12.0 tmin=372038401.0 tmax=372297601.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.42
user 4.17
sys 0.22

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71736/ft1_filtered_4FGL_J2339.6+0242_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/71736/ft2_4FGL_J2339.6+0242_daily_bin512.fits sctable="SC_DATA" expcube=/scratch/kocevski/71736/ltcube_372038401_372297601_4FGL_J2339.6+0242_daily_bin512.fits outfile=/scratch/kocevski/71736/expmap_372038401_372297601_4FGL_J2339.6+0242_daily_bin512.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/71736/ltcube_372038401_372297601_4FGL_J2339.6+0242_daily_bin512.fits
.....................!
real 191.12
user 185.56
sys 5.24

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2339.6+0242 @ 354.904 2.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/71736/ft1_filtered_4FGL_J2339.6+0242_daily_bin512.fits scfile=/scratch/kocevski/71736/ft2_4FGL_J2339.6+0242_daily_bin512.fits outfile=/scratch/kocevski/71736/cmap_372038401_372297601_4FGL_J2339.6+0242_daily_bin512.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71736/ft1_filtered_4FGL_J2339.6+0242_daily_bin512.fits scfile=/scratch/kocevski/71736/ft2_4FGL_J2339.6+0242_daily_bin512.fits outfile=/scratch/kocevski/71736/cmap_HighResolution_372038401_372297601_4FGL_J2339.6+0242_daily_bin512.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/71736/ft1_filtered_4FGL_J2339.6+0242_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/71736/ft2_4FGL_J2339.6+0242_daily_bin512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71736/Model_4FGL_J2339.6+0242_daily_bin512.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/71736/ft1_filtered_4FGL_J2339.6+0242_daily_bin512.fits.....................!
real 56.49
user 55.19
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.041       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4713       1.0000         .10000E-03   10000.    
     6 'norm      '    4.0473       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.383       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.512       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0208       1.0000         .10000E-03   10000.    
    14 'norm      '    .14527E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8525       1.0000         .10000E-03   10000.    
    16 'Prefactor '    99.905       1.0000         .10000E-03   10000.    
    17 'norm      '    30.742       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39281       1.0000         .10000E-03   10000.    
    22 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14327E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69048       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0389       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=   5231.979     FROM MIGRAD    STATUS=CONVERGED    253 CALLS     3456 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7088        .28004E-06** at limit **
   2  Prefactor     .10866E-03    37.475        .21833E-05** at limit **
   3  Prefactor     .10000E-03    11.085       -.48901E-06** at limit **
   4  Prefactor     16.062        10.393        .85772E-07   -.45510E-04
   5  norm          2.4741        2.1824       -.50739E-07    .10417E-04
   6  norm          4.0555        4.8567        .60489E-06    .52159E-03
   7  Prefactor     17.418        1.9289        .27759E-07   -.94778E-03
   8  norm          .10000E-03    5.7102        .25942E-06** at limit **
   9  Prefactor     36.600        8.3807        .35764E-06    .10107E-01
  10  Prefactor     .10000E-03    5.0985        .82720E-07** at limit **
  11  Prefactor     .10000E-03    6.6121       -.50392E-06** at limit **
  12  Prefactor     12.534        11.700       -.44686E-06    .53715E-02
  13  norm          3.0221        1.2200       -.89096E-07   -.64919E-03
  14  norm          .10277E-03    52.893        .38018E-06** at limit **
  15  Prefactor     3.8658        9.5952        .23709E-05    .36038E-03
  16  Prefactor     99.557        63.806       -.12001E-05    .36773E-02
  17  norm          30.777        10.954       -.67339E-06    .11828E-03
  18  Prefactor     .10000E-03    3.3617        .19650E-07** at limit **
  19  Prefactor     .10254E-03    65.798       -.83402E-06** at limit **
  20  Prefactor     .10000E-03    3.8920       -.13835E-06** at limit **
  21  Prefactor     .10078E-03    1552.0        .15530E-04** at limit **
  22  norm          .10000E-03    20.650        .53166E-06** at limit **
  23  norm          .10000E-03    15.968        .42940E-06** at limit **
  24  Prefactor     .10036E-03    88.573       -.26447E-05** at limit **
  25  Prefactor     .10000E-03    2.1817        .15470E-06** at limit **
  26  Prefactor     2.9123        116.25        .64196E-05    .81193E-05
  27  Prefactor     .10583E-03    37.977        .34697E-05** at limit **
  28  Prefactor     .10000E-03    7.9995        .93350E-06** at limit **
  29  Normalizat    .68840        .25051        .11717E-05    .19506E-03
  30  Prefactor     1.0386        .17371       -.13667E-06    .31730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000108656
  Prefactor  = 0.0001
  Prefactor  = 16.062
  norm       = 2.47408
  norm       = 4.05547
  Prefactor  = 17.4178
  norm       = 0.0001
  Prefactor  = 36.6005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5344
  norm       = 3.02212
  norm       = 0.000102773
  Prefactor  = 3.86581
  Prefactor  = 99.5566
  norm       = 30.7767
  Prefactor  = 0.0001
  Prefactor  = 0.000102542
  Prefactor  = 0.0001
  Prefactor  = 0.000100784
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100364
  Prefactor  = 0.0001
  Prefactor  = 2.91226
  Prefactor  = 0.000105827
  Prefactor  = 0.0001
  Normalizat = 0.688401
  Prefactor  = 1.03857
 **********
 **   18 **HESSE 
 **********

 FCN=   5231.979     FROM HESSE     STATUS=OK           652 CALLS     4108 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10866E-03    59.868        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.062        10.406        .25000E-02   -1.4906    
   5  norm          2.4741        2.1893        .65027E-02   -1.5393    
   6  norm          4.0555        4.9731        .50107E-02   -1.5305    
   7  Prefactor     17.418        15.705        .24016E-02   -1.4873    
   8  norm          .10000E-03    5.6887        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.600        34.714        .16589E-02   -1.4497    
  10  Prefactor     .10000E-03    5.0934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.534        13.215        .28311E-02   -1.5000    
  13  norm          3.0221        1.2277        .58374E-02   -1.5360    
  14  norm          .10277E-03    7.8700        .57332E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8658        9.7074        .51401E-02   -1.5315    
  16  Prefactor     99.557        66.869        .10055E-02   -1.3709    
  17  norm          30.777        11.213        .18066E-02   -1.4598    
  18  Prefactor     .10000E-03    3.3543        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10254E-03    73.726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10078E-03    23.798        .11936       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    20.476        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    15.894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10036E-03    90.927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.9123        117.21        .10253E-01   -1.5367    
  27  Prefactor     .10583E-03    51.801        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.9638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .68840        .22451        .74841E-01   -1.0435    
  30  Prefactor     1.0386        .15105        .40611E-01   -.91455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61136e-07
Minuit parameter uncertainties:
  1  3.20619e-05
  2  0.0455747
  3  5.80323e-05
  4  10.4075
  5  2.18938
  6  4.97357
  7  15.709
  8  2.02171e-05
  9  34.7334
  10  8.11077e-06
  11  4.66797e-05
  12  13.2185
  13  1.2277
  14  0.00934409
  15  9.71138
  16  66.92
  17  11.2133
  18  6.89929e-07
  19  0.027412
  20  1.02055e-05
  21  0.00864057
  22  2.63978e-05
  23  9.35452e-05
  24  0.0115252
  25  8.84974e-06
  26  37.0279
  27  0.0347776
  28  9.69219e-05
  29  0.224814
  30  0.151116
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.912e+00  3.703e+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.039e+00  1.511e-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.884e-01  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71736/likelihoodResults_372038401_372297601_4FGL_J2339.6+0242_daily_bin512.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) = 5231.97272442
delta logL = 0.00618740340724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5231.96725814
delta logL = 0.0116536794158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4237       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1368       1.0000          .0000       10.000    
     3 'Normalizat'    .68995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0363       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=   5231.967     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      339 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5506        69.884        .73599E-03   -.33056E-05
   2  Index         2.1366        1.9431        .14044E-01    .12183E-05
   3  Normalizat    .68995        .24220        .33095E-03    .20199E-04
   4  Prefactor     1.0363        .17285        .19385E-03    .24128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.55063
  Index      = 2.13657
  Normalizat = 0.689953
  Prefactor  = 1.03626
 **********
 **   18 **HESSE 
 **********

 FCN=   5231.967     FROM HESSE     STATUS=OK            25 CALLS      364 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5506        68.209        .29440E-04   -1.5158    
   2  Index         2.1366        1.9224        .56174E-03   -.60978    
   3  Normalizat    .68995        .24233        .13238E-04   -1.0429    
   4  Prefactor     1.0363        .17288        .38769E-04   -.91530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27789e-12
Minuit parameter uncertainties:
  1  45.4568
  2  2.00092
  3  0.242701
  4  0.172973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71736': 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) = 5231.96725423
delta logL = 0.0116575908269

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.551e+00  4.546e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  2.137e+00  2.001e+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.036e+00  1.730e-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.900e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/71736/cmap_HighResolution_372038401_372297601_4FGL_J2339.6+0242_daily_bin512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-30 02:50:35.253195', job_id='71736', GAL2='1.04', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632995435.25', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.17e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='512' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 71736: <4FGL_J2339.6+0242_daily_bin512> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin512 354.904 2.7102 372038401 372297601 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

