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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1202
RA = 225.257, Dec = 22.6364
tmin = 550886401, tmax = 551145601
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='937699', job_status='RUN', time_executed='2021-09-10 17:53:01.895710', time_epoch_executed='1631321581.9' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937699/ft1_4FGL_J1501.0+2238_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937699/ft1_4FGL_J1501.0+2238_daily_bin1202.fits outfile=/scratch/kocevski/937699/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1202.fits ra=225.257 dec=22.6364 rad=12.0 tmin=550886401.0 tmax=551145601.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.74
user 3.51
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.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/937699/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/937699/ltcube_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.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/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits
.....................!
real 11.98
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/937699/ltcube_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.fits outfile=/scratch/kocevski/937699/expmap_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.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/937699/ltcube_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.fits
.....................!
real 190.15
user 184.88
sys 4.84

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.fits scfile=/scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits outfile=/scratch/kocevski/937699/cmap_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.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=225.257 yref=22.6364 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.fits scfile=/scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits outfile=/scratch/kocevski/937699/cmap_HighResolution_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.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=225.257 yref=22.6364 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.55
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937699/Model_4FGL_J1501.0+2238_daily_bin1202.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/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.fits......................!
real 26.87
user 25.31
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.fits', '/scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits', expMap='/scratch/kocevski/937699/expmap_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.fits', expCube='/scratch/kocevski/937699/ltcube_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/937699/Model_4FGL_J1501.0+2238_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/937699/ft1_filtered_4FGL_J1501.0+2238_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/937699/ft2_4FGL_J1501.0+2238_daily_bin1202.fits
Exposure map: /scratch/kocevski/937699/expmap_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.fits
Exposure cube: /scratch/kocevski/937699/ltcube_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/937699/Model_4FGL_J1501.0+2238_daily_bin1202.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) = 2293.76283191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2062       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2230       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.402       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10309E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6509       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80303       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2293.761     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2286 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0987        .75692E-07** at limit **
   2  norm          2.8212        6.4158        .11752E-05    .14781E-03
   3  Prefactor     .10000E-03    10.984        .17424E-05** at limit **
   4  norm          .10000E-03    3.3242        .89534E-07** at limit **
   5  norm          .10000E-03    3.1064       -.16155E-07** at limit **
   6  Prefactor     .10000E-03    33.288        .33056E-06** at limit **
   7  Prefactor     .10000E-03    24.258       -.94358E-06** at limit **
   8  Prefactor     .10000E-03    22.599        .13733E-05** at limit **
   9  Prefactor     .10001E-03    16.316        .36909E-05** at limit **
  10  Prefactor     .10000E-03    26.069       -.30455E-05** at limit **
  11  Prefactor     2.2128        64.352        .21837E-04   -.23165E-03
  12  norm          .10000E-03    112.96        .34465E-08** at limit **
  13  Prefactor     .10000E-03    29.226       -.34354E-05** at limit **
  14  Prefactor     .10000E-03    13.484       -.34737E-05** at limit **
  15  norm          4.2228        2.4361        .26160E-07   -.65587E-04
  16  Prefactor     44.381        66.603       -.44966E-05   -.21597E-03
  17  Prefactor     .10000E-03    10.070       -.50077E-06** at limit **
  18  Prefactor     .10001E-03    35.397        .58908E-05** at limit **
  19  Prefactor     .10002E-03    4.4288        .94380E-06** at limit **
  20  Prefactor     .10000E-03    114.48       -.32340E-05** at limit **
  21  Normalizat    1.6506        .36117       -.14846E-05   -.12303E-03
  22  Prefactor     .80305        .24842       -.11018E-05   -.14200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.8212
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100004
  Prefactor  = 2.21282
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100005
  norm       = 4.22281
  Prefactor  = 44.3809
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.000100016
  Prefactor  = 0.000100003
  Normalizat = 1.6506
  Prefactor  = 0.803046
 **********
 **   18 **HESSE 
 **********

 FCN=   2293.761     FROM HESSE     STATUS=OK           328 CALLS     2614 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1119        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8212        6.4030        .17438E-03   -1.5372    
   3  Prefactor     .10000E-03    11.146        .15560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.3476        .85254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.1079        .82444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    16.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2128        74.851        .13848E-02   -1.5410    
  12  norm          .10000E-03    113.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.931        .17418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2228        2.4386        .55013E-04   -1.5297    
  16  Prefactor     44.381        68.073        .60166E-04   -1.4375    
  17  Prefactor     .10000E-03    10.099        .14846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    36.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    21.253        .19279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    115.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6506        .42808        .25910E-03   -.73630    
  22  Prefactor     .80305        .29526        .24186E-03   -.99616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28888e-09
Minuit parameter uncertainties:
  1  3.75891e-06
  2  6.40457
  3  0.000218819
  4  1.27059e-06
  5  2.27979e-06
  6  7.49031e-05
  7  0.000195468
  8  0.000255871
  9  0.000614762
  10  0.000633395
  11  25.7742
  12  1.01557e-05
  13  0.000748252
  14  0.000519639
  15  2.43869
  16  68.1926
  17  6.74839e-05
  18  0.00144239
  19  0.00116898
  20  0.0012033
  21  0.429045
  22  0.295842
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.213e+00  2.577e+01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.030e-01  2.958e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.651e+00  4.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 2.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937699/likelihoodResults_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.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) = 2293.60492188
delta logL = 0.156387073053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2293.58397682
delta logL = 0.177332133459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3849       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8819       1.0000          .0000       10.000    
     3 'Normalizat'    1.6037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80872       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2293.584     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      228 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3963        253.97        .54981E-02   -.15791E-03
   2  Index         2.8806        6.4139        .98304E-01    .50814E-04
   3  Normalizat    1.6038        .11489        .59247E-01   -.56681E-04
   4  Prefactor     .80854        .76839E-01    .43831E-01   -.83530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39629
  Index      = 2.88061
  Normalizat = 1.60384
  Prefactor  = 0.808539
 **********
 **   18 **HESSE 
 **********

 FCN=   2293.584     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3963        29.694        .14513E-03   -1.5339    
   2  Index         2.8806        2.3282        .57906E-02   -.43772    
   3  Normalizat    1.6038        .43616        .26199E-03   -.74901    
   4  Prefactor     .80854        .29549        .24094E-03   -.99414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93937e-08
Minuit parameter uncertainties:
  1  20.0979
  2  2.44529
  3  0.437201
  4  0.29607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937699': 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) = 2293.58397618
delta logL = 0.177332773228

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.396e+00  2.010e+01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.881e+00  2.445e+00  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.085e-01  2.961e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.604e+00  4.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 225.257 22.636

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/937699/cmap_HighResolution_550886401_551145601_4FGL_J1501.0+2238_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', job_status='DONE', photon_flux_upper_limit='2.23e-07', time_completed='2021-09-10 18:00:20.461187', job_id='937699', GAL2='0.81', fit_tolerance='1e-08', EG2='1.60', EG='1.65', time_epoch_completed='1631322020.46', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.77e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1202' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:00:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 937699: <4FGL_J1501.0+2238_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1202> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 17:51:10 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:51:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:51:11 2021
Terminated at Fri Sep 10 18:00:21 2021
Results reported at Fri Sep 10 18:00:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1202 225.257 22.6364 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1501.0+2238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   415.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            551 sec.

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

