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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin940
RA = 354.904, Dec = 2.7102
tmin = 482976001, tmax = 483235201
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='73408', job_status='RUN', time_executed='2021-09-30 02:42:56.185297', time_epoch_executed='1632994976.19' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73408/ft1_4FGL_J2339.6+0242_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73408/ft2_4FGL_J2339.6+0242_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73408/ft1_4FGL_J2339.6+0242_daily_bin940.fits outfile=/scratch/kocevski/73408/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin940.fits ra=354.904 dec=2.7102 rad=12.0 tmin=482976001.0 tmax=483235201.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.16
user 3.89
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73408/ft2_4FGL_J2339.6+0242_daily_bin940.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/73408/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin940.fits evtable="EVENTS" outfile="/scratch/kocevski/73408/ft1_filtered_4FGL_J2339.6+0242_daily_bin940.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/73408/ft1_filtered_4FGL_J2339.6+0242_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/73408/ft2_4FGL_J2339.6+0242_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/73408/ltcube_482976001_483235201_4FGL_J2339.6+0242_daily_bin940.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/73408/ft2_4FGL_J2339.6+0242_daily_bin940.fits
.....................!
real 11.64
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73408/ft1_filtered_4FGL_J2339.6+0242_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/73408/ft2_4FGL_J2339.6+0242_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/73408/ltcube_482976001_483235201_4FGL_J2339.6+0242_daily_bin940.fits outfile=/scratch/kocevski/73408/expmap_482976001_483235201_4FGL_J2339.6+0242_daily_bin940.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/73408/ltcube_482976001_483235201_4FGL_J2339.6+0242_daily_bin940.fits
.....................!
real 191.12
user 185.50
sys 5.30

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/73408/ft1_filtered_4FGL_J2339.6+0242_daily_bin940.fits scfile=/scratch/kocevski/73408/ft2_4FGL_J2339.6+0242_daily_bin940.fits outfile=/scratch/kocevski/73408/cmap_482976001_483235201_4FGL_J2339.6+0242_daily_bin940.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73408/ft1_filtered_4FGL_J2339.6+0242_daily_bin940.fits scfile=/scratch/kocevski/73408/ft2_4FGL_J2339.6+0242_daily_bin940.fits outfile=/scratch/kocevski/73408/cmap_HighResolution_482976001_483235201_4FGL_J2339.6+0242_daily_bin940.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7231       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.5663       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.964       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0157       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0962       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.108       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.355       1.0000         .10000E-03   10000.    
    17 'norm      '    .23321E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13507       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5158       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11735E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.827       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.237       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1950       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71843       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=   6311.843     FROM MIGRAD    STATUS=CONVERGED   1354 CALLS     4503 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7230        6.3808        .83949E-03    .15033E-03
   2  Prefactor     .10000E-03    22.963        .18142E-02** at limit **
   3  Prefactor     .10000E-03    8.3442        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.5292        .12299E-02** at limit **
   5  norm          .10000E-03    .90868        .73354E-03** at limit **
   6  norm          8.5662        5.3614        .13696E-03    .68813E-04
   7  Prefactor     .10000E-03    5.5665        .18142E-02** at limit **
   8  norm          19.962        14.362        .89641E-04    .23336E-04
   9  Prefactor     .10000E-03    15.005        .18142E-02** at limit **
  10  Prefactor     .10000E-03    3.6188        .14754E-02** at limit **
  11  Prefactor     .10000E-03    13.648        .18142E-02** at limit **
  12  Prefactor     .10000E-03    13.684        .36285E-03** at limit **
  13  norm          1.0156        .75977        .58263E-04    .59221E-03
  14  norm          3.0968        5.1793        .22437E-03    .15910E-04
  15  Prefactor     11.057        13.011        .12020E-03    .80656E-03
  16  Prefactor     17.345        43.271        .96139E-04    .10470E-03
  17  norm          .10034E-03    44.477        .35251E-02** at limit **
  18  Prefactor     .10674        11.304        .53924E-01    .48045E-03
  19  Prefactor     .10001E-03    58.520        .18142E-02** at limit **
  20  Prefactor     3.5183        8.8267        .21561E-03    .54996E-04
  21  Prefactor     .10000E-03    13.638        .18142E-02** at limit **
  22  norm          .10000E-03    8.2513        .18142E-02** at limit **
  23  norm          .10000E-03    8.5404        .18142E-02** at limit **
  24  Prefactor     .10000E-03    15.609        .18142E-02** at limit **
  25  Prefactor     .10009E-03    18.368        .19424E-02** at limit **
  26  Prefactor     12.812        30.799        .11184E-03    .13123E-03
  27  Prefactor     16.232        20.960        .99396E-04    .69084E-04
  28  Prefactor     .10000E-03    6.3098        .18142E-02** at limit **
  29  Normalizat    1.1952        .23250        .25299E-03    .64648E-03
  30  Prefactor     .71836        .15186        .21687E-03    .46356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.56624
  Prefactor  = 0.0001
  norm       = 19.9622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.01562
  norm       = 3.09679
  Prefactor  = 11.0575
  Prefactor  = 17.345
  norm       = 0.000100343
  Prefactor  = 0.106735
  Prefactor  = 0.000100006
  Prefactor  = 3.51832
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 12.8123
  Prefactor  = 16.2316
  Prefactor  = 0.0001
  Normalizat = 1.19518
  Prefactor  = 0.718355
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.843     FROM HESSE     STATUS=OK           566 CALLS     5069 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7230        6.3805        .33580E-04   -1.5229    
   2  Prefactor     .10000E-03    22.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5295        .24597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .90876        .14671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.5662        5.3610        .54784E-05   -1.5123    
   7  Prefactor     .10000E-03    5.5672        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.962        14.360        .35856E-05   -1.4814    
   9  Prefactor     .10000E-03    15.006        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6189        .29508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.684        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0156        .75968        .23305E-05   -1.5506    
  14  norm          3.0968        5.1786        .89750E-05   -1.5356    
  15  Prefactor     11.057        12.975        .48082E-05   -1.5043    
  16  Prefactor     17.345        43.266        .19228E-04   -1.4875    
  17  norm          .10034E-03    44.724        .70503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10674        9.5650        .59332E-01   -1.5643    
  19  Prefactor     .10001E-03    58.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5183        8.8158        .86243E-05   -1.5333    
  21  Prefactor     .10000E-03    13.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.2515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.5406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10009E-03    18.731        .38847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.812        30.784        .44738E-05   -1.4992    
  27  Prefactor     16.232        20.956        .39758E-05   -1.4902    
  28  Prefactor     .10000E-03    6.3111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1952        .23238        .50598E-04   -.86752    
  30  Prefactor     .71836        .15198        .43374E-04   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39875e-08
Minuit parameter uncertainties:
  1  6.38129
  2  9.85173e-05
  3  1.08247e-05
  4  6.88455e-06
  5  3.10725e-06
  6  5.36125
  7  2.31029e-06
  8  14.3628
  9  4.58757e-06
  10  2.77942e-06
  11  8.49658e-07
  12  0.000268286
  13  0.759686
  14  5.17939
  15  12.978
  16  43.344
  17  0.00783849
  18  2.02019
  19  0.00113842
  20  8.81908
  21  3.19594e-05
  22  0.000104337
  23  0.000103845
  24  1.98326e-05
  25  0.00255297
  26  30.8226
  27  20.9651
  28  1.8857e-05
  29  0.232586
  30  0.152068
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.281e+01  3.082e+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:  7.184e-01  1.521e-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.195e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/73408/likelihoodResults_482976001_483235201_4FGL_J2339.6+0242_daily_bin940.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) = 6311.56268455
delta logL = 0.279955293794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6311.46964899
delta logL = 0.37299084857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.449       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7662       1.0000          .0000       10.000    
     3 'Normalizat'    1.2097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70751       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=   6311.470     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      230 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.495        45.417        .19474E-02    .31875E-05
   2  Index         1.7657        .70816        .27336       -.52100E-04
   3  Normalizat    1.2097        .18619        .56903E-01   -.83261E-04
   4  Prefactor     .70747        .12768        .42501E-01   -.53760E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4953
  Index      = 1.76569
  Normalizat = 1.20973
  Prefactor  = 0.707474
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.470     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.495        35.018        .77895E-04   -1.4678    
   2  Index         1.7657        .70695        .10742E-01   -.70346    
   3  Normalizat    1.2097        .22051        .25164E-03   -.86303    
   4  Prefactor     .70747        .15122        .21821E-03   -1.0323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20592e-11
Minuit parameter uncertainties:
  1  35.0449
  2  0.711066
  3  0.220684
  4  0.151309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73408': 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) = 6311.46964749
delta logL = 0.372992351949

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.075e-01  1.513e-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.210e+00  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/73408/cmap_HighResolution_482976001_483235201_4FGL_J2339.6+0242_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-30 02:57:19.086533', job_id='73408', GAL2='0.71', fit_tolerance='1e-08', EG2='1.21', EG='1.20', time_epoch_completed='1632995839.09', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.73e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='940' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 73408: <4FGL_J2339.6+0242_daily_bin940> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin940 354.904 2.7102 482976001 483235201 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 :                                   817.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

