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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin914
RA = 354.904, Dec = 2.7102
tmin = 476236801, tmax = 476496001
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='73370', job_status='RUN', time_executed='2021-09-30 02:42:51.340595', time_epoch_executed='1632994971.34' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73370

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73370/ft1_4FGL_J2339.6+0242_daily_bin914.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73370/ft2_4FGL_J2339.6+0242_daily_bin914.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73370/ft1_4FGL_J2339.6+0242_daily_bin914.fits outfile=/scratch/kocevski/73370/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin914.fits ra=354.904 dec=2.7102 rad=12.0 tmin=476236801.0 tmax=476496001.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.48
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73370/ft1_filtered_4FGL_J2339.6+0242_daily_bin914.fits" evtable="EVENTS" scfile=/scratch/kocevski/73370/ft2_4FGL_J2339.6+0242_daily_bin914.fits sctable="SC_DATA" outfile=/scratch/kocevski/73370/ltcube_476236801_476496001_4FGL_J2339.6+0242_daily_bin914.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/73370/ft2_4FGL_J2339.6+0242_daily_bin914.fits
.....................!
real 11.92
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73370/ft1_filtered_4FGL_J2339.6+0242_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/73370/ft2_4FGL_J2339.6+0242_daily_bin914.fits sctable="SC_DATA" expcube=/scratch/kocevski/73370/ltcube_476236801_476496001_4FGL_J2339.6+0242_daily_bin914.fits outfile=/scratch/kocevski/73370/expmap_476236801_476496001_4FGL_J2339.6+0242_daily_bin914.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/73370/ltcube_476236801_476496001_4FGL_J2339.6+0242_daily_bin914.fits
.....................!
real 190.50
user 184.92
sys 5.28

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/73370/ft1_filtered_4FGL_J2339.6+0242_daily_bin914.fits scfile=/scratch/kocevski/73370/ft2_4FGL_J2339.6+0242_daily_bin914.fits outfile=/scratch/kocevski/73370/cmap_476236801_476496001_4FGL_J2339.6+0242_daily_bin914.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.52
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    38.843       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.648       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.439       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22231E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .44507       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.241       1.0000         .10000E-03   10000.    
    17 'norm      '    .38600       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11754E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3710       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    24.937       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.146       1.0000         .10000E-03   10000.    
    27 'Prefactor '    60.766       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85120       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0014       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=   5485.825     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4056 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2933       -.71462E-07** at limit **
   2  Prefactor     38.832        57.061        .38695E-06    .41436E-05
   3  Prefactor     .10000E-03    10.128       -.99319E-07** at limit **
   4  Prefactor     .10000E-03    2.8666       -.75483E-07** at limit **
   5  norm          .10000E-03    1.4023       -.15212E-06** at limit **
   6  norm          .10000E-03    1.7420       -.20161E-06** at limit **
   7  Prefactor     16.646        14.820       -.58007E-07    .54174E-04
   8  norm          .10000E-03    9.0326       -.44497E-07** at limit **
   9  Prefactor     .10000E-03    155.04        .86100E-06** at limit **
  10  Prefactor     10.441        14.576        .39161E-06    .20837E-04
  11  Prefactor     23.737        20.077       -.84743E-07   -.70534E-06
  12  Prefactor     .10001E-03    251.43        .90758E-05** at limit **
  13  norm          .44511        .58993       -.47158E-06   -.93187E-03
  14  norm          1.1936        3.4699       -.31717E-06   -.20499E-03
  15  Prefactor     .10000E-03    6.4764        .90322E-07** at limit **
  16  Prefactor     13.220        51.134       -.89572E-06    .33655E-06
  17  norm          .36719        26.467       -.12764E-05    .91636E-04
  18  Prefactor     .10008E-03    18.015        .16095E-05** at limit **
  19  Prefactor     .10001E-03    877.87        .47427E-05** at limit **
  20  Prefactor     3.3718        20.761        .21455E-05   -.60236E-04
  21  Prefactor     .10000E-03    12.759       -.59915E-07** at limit **
  22  norm          .10000E-03    15.400        .11655E-06** at limit **
  23  norm          24.943        31.018       -.72889E-06   -.79369E-04
  24  Prefactor     .10000E-03    20.038       -.30548E-07** at limit **
  25  Prefactor     .10000E-03    5.8394       -.14427E-05** at limit **
  26  Prefactor     12.150        45.352        .36345E-06    .20619E-05
  27  Prefactor     60.762        32.293       -.84779E-07    .29996E-04
  28  Prefactor     .10000E-03    9.8222       -.38157E-06** at limit **
  29  Normalizat    .85127        .24000       -.43150E-05    .10683E-03
  30  Prefactor     1.0014        .15979        .31100E-05    .47741E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.8324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.6457
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.4413
  Prefactor  = 23.7367
  Prefactor  = 0.00010001
  norm       = 0.445111
  norm       = 1.19362
  Prefactor  = 0.0001
  Prefactor  = 13.2196
  norm       = 0.367193
  Prefactor  = 0.000100082
  Prefactor  = 0.00010001
  Prefactor  = 3.37184
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.9426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1496
  Prefactor  = 60.7615
  Prefactor  = 0.0001
  Normalizat = 0.851269
  Prefactor  = 1.00139
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.825     FROM HESSE     STATUS=OK           606 CALLS     4662 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.832        57.075        .64311E-04   -1.4461    
   3  Prefactor     .10000E-03    10.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8699        .12244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4294        .85554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7458        .95337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.646        14.813        .98161E-04   -1.4892    
   8  norm          .10000E-03    9.1269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    157.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.441        14.662        .12401E-03   -1.5062    
  11  Prefactor     23.737        20.080        .82219E-04   -1.4733    
  12  Prefactor     .10001E-03    7.7660        .63591E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .44511        .58449        .67267E-03   -1.5575    
  14  norm          1.1936        3.4988        .23172E-03   -1.5489    
  15  Prefactor     .10000E-03    6.5033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.220        51.053        .11008E-03   -1.4981    
  17  norm          .36719        34.030        .28960E-02   -1.5587    
  18  Prefactor     .10008E-03    9.1066        .50458E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    877.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3718        19.869        .22040E-03   -1.5341    
  21  Prefactor     .10000E-03    12.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          24.943        30.277        .80218E-04   -1.4709    
  24  Prefactor     .10000E-03    20.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.9688        .34780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.150        45.344        .11494E-03   -1.5011    
  27  Prefactor     60.762        32.271        .51472E-04   -1.4147    
  28  Prefactor     .10000E-03    9.8509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85127        .24418        .30066E-03   -.98194    
  30  Prefactor     1.0014        .16298        .19602E-03   -.92683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63362e-10
Minuit parameter uncertainties:
  1  6.64553e-08
  2  57.1552
  3  1.41697e-05
  4  8.18895e-07
  5  4.4546e-06
  6  7.69391e-06
  7  14.8167
  8  1.47825e-06
  9  0.00085713
  10  14.6675
  11  20.0855
  12  0.000569629
  13  0.584501
  14  3.49938
  15  9.24713e-06
  16  51.2227
  17  7.07295
  18  0.00172758
  19  0.0059636
  20  16.3782
  21  1.30147e-06
  22  6.87655e-06
  23  30.2954
  24  4.84196e-06
  25  7.28768e-05
  26  45.4732
  27  32.28
  28  1.63725e-06
  29  0.244498
  30  0.163061
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.215e+01  4.547e+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.001e+00  1.631e-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.513e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/73370/likelihoodResults_476236801_476496001_4FGL_J2339.6+0242_daily_bin914.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) = 5483.96388403
delta logL = 1.86084572019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5483.9366238
delta logL = 1.88810594653

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3762       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8985       1.0000          .0000       10.000    
     3 'Normalizat'    .71266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0599       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=   5483.937     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3806        23.788        .66441E-02    .54909E-03
   2  Index         4.8980        2.9240        .10210        .16006E-03
   3  Normalizat    .71259        .70726E-01    .73417E-01    .72106E-04
   4  Prefactor     1.0599        .49328E-01    .39364E-01    .46268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.3806
  Index      = 4.89801
  Normalizat = 0.712592
  Prefactor  = 1.05989
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.937     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      299 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3806        39.739        .63517E-04   -1.5399    
   2  Index         4.8980        3.9226        .40622E-02   -.20399E-01
   3  Normalizat    .71259        .22148        .32496E-03   -1.0340    
   4  Prefactor     1.0599        .15316        .19082E-03   -.90759    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95102e-10
Minuit parameter uncertainties:
  1  19.4677
  2  4.50997
  3  0.221759
  4  0.153226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73370': 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) = 5483.93662249
delta logL = 1.88810725605

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.381e+00  1.947e+01  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  4.898e+00  4.510e+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.060e+00  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:  7.126e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 354.904 2.710
Photon Index (Free Index): 4.90 +/- 4.51
Photon Flux (Free Index): 1.43e-07 +/- 8.48e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.43e-05

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/73370/cmap_HighResolution_476236801_476496001_4FGL_J2339.6+0242_daily_bin914.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.92e-05', dlogl='1.89e+00', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-30 02:55:18.737729', photon_index_error2='4.51', photon_index2='4.90', ts='0.09', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.43e-05', EG='0.85', time_epoch_completed='1632995718.74', return_code='0', job_id='73370', GAL2='1.06', EG2='0.71', return_code2='102', photon_flux_error2='8.48e-08', ts2='4.24', photon_index='2.55' WHERE bin_id='914' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:55:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 73370: <4FGL_J2339.6+0242_daily_bin914> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin914 354.904 2.7102 476236801 476496001 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

