/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 227 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 = 7491
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin225
RA = 354.904, Dec = 2.7102
tmin = 297648001, tmax = 297907201
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='69950', job_status='RUN', time_executed='2021-09-30 02:34:32.526931', time_epoch_executed='1632994472.53' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69950/ft1_4FGL_J2339.6+0242_daily_bin225.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69950/ft2_4FGL_J2339.6+0242_daily_bin225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69950/ft1_4FGL_J2339.6+0242_daily_bin225.fits outfile=/scratch/kocevski/69950/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin225.fits ra=354.904 dec=2.7102 rad=12.0 tmin=297648001.0 tmax=297907201.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.69
user 3.48
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69950/ft1_filtered_4FGL_J2339.6+0242_daily_bin225.fits" evtable="EVENTS" scfile=/scratch/kocevski/69950/ft2_4FGL_J2339.6+0242_daily_bin225.fits sctable="SC_DATA" outfile=/scratch/kocevski/69950/ltcube_297648001_297907201_4FGL_J2339.6+0242_daily_bin225.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/69950/ft2_4FGL_J2339.6+0242_daily_bin225.fits
.....................!
real 11.85
user 11.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69950/ft1_filtered_4FGL_J2339.6+0242_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/69950/ft2_4FGL_J2339.6+0242_daily_bin225.fits sctable="SC_DATA" expcube=/scratch/kocevski/69950/ltcube_297648001_297907201_4FGL_J2339.6+0242_daily_bin225.fits outfile=/scratch/kocevski/69950/expmap_297648001_297907201_4FGL_J2339.6+0242_daily_bin225.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/69950/ltcube_297648001_297907201_4FGL_J2339.6+0242_daily_bin225.fits
.....................!
real 191.06
user 186.48
sys 4.27

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/69950/ft1_filtered_4FGL_J2339.6+0242_daily_bin225.fits scfile=/scratch/kocevski/69950/ft2_4FGL_J2339.6+0242_daily_bin225.fits outfile=/scratch/kocevski/69950/cmap_HighResolution_297648001_297907201_4FGL_J2339.6+0242_daily_bin225.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7007       1.0000         .10000E-03   10000.    
     5 'norm      '    .13251E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.7016       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9719       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6233       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9924       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.778       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.466       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.517       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2597       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.697       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.656       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75664       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0287       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=   5181.530     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     4451 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5661       -.12365E-05** at limit **
   2  Prefactor     .10000E-03    31.962        .19856E-05** at limit **
   3  Prefactor     .10000E-03    7.1674       -.21630E-06** at limit **
   4  Prefactor     2.6985        6.3892        .25191E-05   -.16636E-02
   5  norm          .10000E-03    1.7056        .10645E-06** at limit **
   6  norm          3.7015        3.9640        .14392E-06   -.11568E-04
   7  Prefactor     3.9703        10.895        .11589E-05   -.78509E-03
   8  norm          5.6236        12.346        .15599E-06   -.24770E-04
   9  Prefactor     6.8602        28.037       -.22166E-05   -.27884E-04
  10  Prefactor     .10000E-03    4.8274       -.11914E-05** at limit **
  11  Prefactor     8.9930        13.134        .90270E-07   -.40447E-05
  12  Prefactor     .10000E-03    2.5175       -.19968E-07** at limit **
  13  norm          .10000E-03    .23342       -.79827E-08** at limit **
  14  norm          .10000E-03    1.7675       -.89504E-08** at limit **
  15  Prefactor     17.779        12.411        .74345E-07    .79107E-05
  16  Prefactor     .10000E-03    57.946       -.10105E-04** at limit **
  17  norm          2.7753        7.2420        .11628E-06   -.90956E-04
  18  Prefactor     10.467        9.3564        .41489E-07   -.37407E-04
  19  Prefactor     33.556        196.45        .42681E-04    .49875E-04
  20  Prefactor     .10000E-03    4.9467        .17574E-05** at limit **
  21  Prefactor     7.2599        13.215        .77792E-07    .49953E-06
  22  norm          .10000E-03    13.639        .28544E-05** at limit **
  23  norm          .10000E-03    13.167        .45459E-05** at limit **
  24  Prefactor     .10000E-03    53.196        .78345E-05** at limit **
  25  Prefactor     10.698        5.1251       -.52456E-06   -.20807E-03
  26  Prefactor     .10000E-03    9.9401       -.20742E-05** at limit **
  27  Prefactor     .10000E-03    15.276       -.67369E-05** at limit **
  28  Prefactor     27.653        20.053       -.46122E-06   -.61175E-04
  29  Normalizat    .75658        .21545        .35794E-06   -.64466E-04
  30  Prefactor     1.0287        .14492       -.69931E-06    .45506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.69846
  norm       = 0.000100002
  norm       = 3.7015
  Prefactor  = 3.97026
  norm       = 5.62356
  Prefactor  = 6.86025
  Prefactor  = 0.0001
  Prefactor  = 8.99296
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7789
  Prefactor  = 0.000100003
  norm       = 2.77535
  Prefactor  = 10.4669
  Prefactor  = 33.5558
  Prefactor  = 0.0001
  Prefactor  = 7.25991
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.6975
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.6534
  Normalizat = 0.756584
  Prefactor  = 1.02872
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.530     FROM HESSE     STATUS=OK           584 CALLS     5035 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5806        .16591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6985        9.5951        .12394E-02   -1.5379    
   5  norm          .10000E-03    6.6432        .17639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.7015        3.9547        .14297E-03   -1.5323    
   7  Prefactor     3.9703        11.694        .10119E-02   -1.5309    
   8  norm          5.6236        12.349        .16940E-03   -1.5234    
   9  Prefactor     6.8602        28.097        .15315E-03   -1.5184    
  10  Prefactor     .10000E-03    4.8382        .15450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9930        13.138        .13366E-03   -1.5108    
  12  Prefactor     .10000E-03    2.5188        .11154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .23777        .33943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7756        .93457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.779        12.362        .94989E-04   -1.4864    
  16  Prefactor     .10000E-03    58.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7753        7.1362        .24428E-03   -1.5375    
  18  Prefactor     10.467        9.2885        .12385E-03   -1.5061    
  19  Prefactor     33.556        198.07        .69216E-04   -1.4549    
  20  Prefactor     .10000E-03    4.9519        .15604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2599        13.199        .14887E-03   -1.5169    
  22  norm          .10000E-03    13.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    13.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    53.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.698        5.1464        .10549E-03   -1.5054    
  26  Prefactor     .10000E-03    9.9543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     27.653        20.117        .76180E-04   -1.4656    
  29  Normalizat    .75658        .24658        .30602E-03   -1.0170    
  30  Prefactor     1.0287        .16756        .19068E-03   -.91778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22015e-08
Minuit parameter uncertainties:
  1  3.04364e-05
  2  0.000119669
  3  9.75634e-06
  4  9.60058
  5  0.000242585
  6  3.95498
  7  11.7012
  8  12.3544
  9  27.7895
  10  2.63433e-05
  11  13.1417
  12  1.47041e-06
  13  1.34876e-06
  14  1.9037e-06
  15  12.3641
  16  0.000778902
  17  7.13834
  18  9.28977
  19  163.873
  20  1.3411e-05
  21  13.2046
  22  0.000112103
  23  0.000129334
  24  0.000581524
  25  5.14662
  26  6.83356e-05
  27  0.00026557
  28  20.1221
  29  0.246944
  30  0.167647
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  6.834e-05  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.029e+00  1.676e-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.566e-01  2.469e-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: 6.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/69950/likelihoodResults_297648001_297907201_4FGL_J2339.6+0242_daily_bin225.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) = 5181.53030549
delta logL = -0.000477705186313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5181.52982997
delta logL = -2.18100831262e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12781E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5279       1.0000          .0000       10.000    
     3 'Normalizat'    .75689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0285       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=   5181.530     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      257 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.769        .18142E-01** at limit **
   2  Index         1.8709        5.8179        .50000        .36289E-07
   3  Normalizat    .75658        .10404E-01    .30602E-03   -.24688E-02
   4  Prefactor     1.0287        .75091E-02    .19068E-03   -.39214E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8709
  Normalizat = 0.756579
  Prefactor  = 1.02871
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.530     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    393.44        .26096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8709        5.5732        .50000       -.67618    
   3  Normalizat    .75658        .28281E-01    .61204E-04   -1.0170    
   4  Prefactor     1.0287        .20412E-01    .38136E-04   -.91778    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51085e-09
Minuit parameter uncertainties:
  1  0.000657579
  2  1108.27
  3  0.0282814
  4  0.0204118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69950': 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) = 5181.5298264
delta logL = 1.39114672493e-06

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.000e-04  6.576e-04  1.000e-04  1.000e+04 ( 1.000e-13)
464        Index:  1.871e+00  1.108e+03  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.029e+00  2.041e-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:  7.566e-01  2.828e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/69950/cmap_HighResolution_297648001_297907201_4FGL_J2339.6+0242_daily_bin225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-30 02:46:59.427584', job_id='69950', GAL2='1.03', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632995219.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='225' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 02:46:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 69950: <4FGL_J2339.6+0242_daily_bin225> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin225> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 02:30:37 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 02:30:39 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:30:39 2021
Terminated at Thu Sep 30 02:46:59 2021
Results reported at Thu Sep 30 02:46:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin225 354.904 2.7102 297648001 297907201 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 :                                   744.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

