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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1585
RA = 225.257, Dec = 22.6364
tmin = 650160001, tmax = 650419201
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='939284', job_status='RUN', time_executed='2021-09-10 17:59:41.278337', time_epoch_executed='1631321981.28' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939284/ft1_4FGL_J1501.0+2238_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939284/ft2_4FGL_J1501.0+2238_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939284/ft1_4FGL_J1501.0+2238_daily_bin1585.fits outfile=/scratch/kocevski/939284/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1585.fits ra=225.257 dec=22.6364 rad=12.0 tmin=650160001.0 tmax=650419201.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.33
user 4.08
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939284/ft1_filtered_4FGL_J1501.0+2238_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/939284/ft2_4FGL_J1501.0+2238_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/939284/ltcube_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.fits outfile=/scratch/kocevski/939284/expmap_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.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/939284/ltcube_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.fits
.....................!
real 191.56
user 186.86
sys 4.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 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/939284/ft1_filtered_4FGL_J1501.0+2238_daily_bin1585.fits scfile=/scratch/kocevski/939284/ft2_4FGL_J1501.0+2238_daily_bin1585.fits outfile=/scratch/kocevski/939284/cmap_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939284/ft1_filtered_4FGL_J1501.0+2238_daily_bin1585.fits scfile=/scratch/kocevski/939284/ft2_4FGL_J1501.0+2238_daily_bin1585.fits outfile=/scratch/kocevski/939284/cmap_HighResolution_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/939284/ft1_filtered_4FGL_J1501.0+2238_daily_bin1585.fits', '/scratch/kocevski/939284/ft2_4FGL_J1501.0+2238_daily_bin1585.fits', expMap='/scratch/kocevski/939284/expmap_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.fits', expCube='/scratch/kocevski/939284/ltcube_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/939284/Model_4FGL_J1501.0+2238_daily_bin1585.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/939284/ft1_filtered_4FGL_J1501.0+2238_daily_bin1585.fits
Spacecraft file(s): /scratch/kocevski/939284/ft2_4FGL_J1501.0+2238_daily_bin1585.fits
Exposure map: /scratch/kocevski/939284/expmap_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.fits
Exposure cube: /scratch/kocevski/939284/ltcube_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/939284/Model_4FGL_J1501.0+2238_daily_bin1585.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) = 6809.4584646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.628       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44964E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8309       1.0000         .10000E-03   10000.    
     5 'norm      '    29.062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    106.84       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.959       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2351       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8512       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.930       1.0000         .10000E-03   10000.    
    15 'norm      '    .93996       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6538       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.640       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94488       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94917       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=   6809.451     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2381 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.637        11.363       -.76164E-06   -.16607E-03
   2  norm          1.5478        1.5231        .76517E-09    .75766E-04
   3  Prefactor     .10000E-03    5.1756        .45486E-06** at limit **
   4  norm          5.8312        2.7318        .36097E-08   -.73651E-04
   5  norm          29.062        8.2367       -.15818E-06   -.24625E-04
   6  Prefactor     106.85        57.938        .89260E-05   -.86886E-05
   7  Prefactor     .10000E-03    20.840       -.11858E-06** at limit **
   8  Prefactor     10.959        11.834       -.10107E-06   -.25734E-04
   9  Prefactor     5.2319        18.951        .54862E-06   -.35824E-04
  10  Prefactor     .10000E-03    12.340       -.64412E-06** at limit **
  11  Prefactor     5.8509        7.9106       -.12824E-06   -.10439E-03
  12  norm          .10000E-03    13.438       -.36541E-06** at limit **
  13  Prefactor     .10000E-03    82.799        .97163E-06** at limit **
  14  Prefactor     11.930        8.5673       -.11256E-06   -.39375E-04
  15  norm          .94013        1.1516       -.17143E-06   -.12642E-02
  16  Prefactor     9.6060        31.364       -.12357E-04   -.98275E-05
  17  Prefactor     .10000E-03    3.0920        .19305E-07** at limit **
  18  Prefactor     .10000E-03    12.832        .10719E-05** at limit **
  19  Prefactor     3.6539        3.0993       -.54047E-07   -.30501E-03
  20  Prefactor     18.638        37.562       -.13282E-05    .21028E-05
  21  Normalizat    .94472        .21634       -.24340E-05    .59583E-04
  22  Prefactor     .94927        .13908        .16389E-05   -.21243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6368
  norm       = 1.54776
  Prefactor  = 0.0001
  norm       = 5.83123
  norm       = 29.0622
  Prefactor  = 106.854
  Prefactor  = 0.0001
  Prefactor  = 10.959
  Prefactor  = 5.2319
  Prefactor  = 0.0001
  Prefactor  = 5.85089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9299
  norm       = 0.940128
  Prefactor  = 9.60597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65391
  Prefactor  = 18.6383
  Normalizat = 0.944725
  Prefactor  = 0.949271
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.451     FROM HESSE     STATUS=OK           350 CALLS     2731 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.637        10.843        .11748E-03   -1.5026    
   2  norm          1.5478        1.5245        .98372E-04   -1.5459    
   3  Prefactor     .10000E-03    12.891        .34262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8312        2.7293        .90271E-04   -1.5225    
   5  norm          29.062        8.2411        .74318E-04   -1.4629    
   6  Prefactor     106.85        58.030        .38907E-04   -1.3637    
   7  Prefactor     .10000E-03    20.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.959        11.830        .12102E-03   -1.5046    
   9  Prefactor     5.2319        18.926        .17568E-03   -1.5250    
  10  Prefactor     .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8509        7.9084        .16602E-03   -1.5224    
  12  norm          .10000E-03    13.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    83.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.930        8.5646        .11598E-03   -1.5017    
  15  norm          .94013        1.0569        .94033E-03   -1.5514    
  16  Prefactor     9.6060        31.477        .12923E-03   -1.5088    
  17  Prefactor     .10000E-03    3.0967        .14163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6539        3.0962        .12746E-03   -1.5326    
  20  Prefactor     18.638        37.581        .92768E-04   -1.4844    
  21  Normalizat    .94472        .25375        .31304E-03   -.94906    
  22  Prefactor     .94927        .16427        .21320E-03   -.94440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70976e-10
Minuit parameter uncertainties:
  1  10.8451
  2  1.52457
  3  0.000134354
  4  2.72935
  5  8.24144
  6  58.0607
  7  6.7829e-06
  8  11.8326
  9  18.9478
  10  4.19348e-06
  11  7.90986
  12  1.27983e-07
  13  0.000273186
  14  8.56545
  15  1.05697
  16  31.5312
  17  2.72578e-06
  18  2.82585e-06
  19  3.09638
  20  37.6287
  21  0.254077
  22  0.164353
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  5.851e+00  7.910e+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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.493e-01  1.644e-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:  9.447e-01  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939284/likelihoodResults_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.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) = 6809.36606749
delta logL = 0.0853398252457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6809.36377475
delta logL = 0.0876325583986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2805       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5203       1.0000          .0000       10.000    
     3 'Normalizat'    .95163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94966       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6809.364     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      258 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2768        8.3987        .17491E-03    .64997E-05
   2  Index         1.5201        1.0186        .15126E-01   -.22497E-03
   3  Normalizat    .95160        .23125        .31200E-03   -.14940E-05
   4  Prefactor     .94968        .15913        .21315E-03    .30935E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.27678
  Index      = 1.52015
  Normalizat = 0.951597
  Prefactor  = 0.949684
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.364     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2768        8.6447        .69964E-05   -1.5249    
   2  Index         1.5201        1.0480        .30252E-02   -.76977    
   3  Normalizat    .95160        .23144        .12480E-04   -.94670    
   4  Prefactor     .94968        .15929        .85262E-05   -.94426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08973e-12
Minuit parameter uncertainties:
  1  8.64675
  2  1.06349
  3  0.231688
  4  0.159365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939284': 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) = 6809.36377464
delta logL = 0.0876326703201

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  5.277e+00  8.647e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.520e+00  1.063e+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:  9.497e-01  1.594e-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:  9.516e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.52 +/- 1.06
Photon Flux (Free Index): 7.98e-09 +/- 2.02e-08
Energy Flux (Free Index): 2.36e-05 +/- 4.72e-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/939284/cmap_HighResolution_650160001_650419201_4FGL_J1501.0+2238_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', comment='SUCCESS', energy_flux2='2.36e-05', dlogl='8.76e-02', photon_flux2='7.98e-09', job_status='DONE', time_completed='2021-09-10 18:10:04.389126', photon_index_error2='1.06', photon_index2='1.52', ts='0.87', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.63e-08', energy_flux_error2='4.72e-05', EG='0.94', time_epoch_completed='1631322604.39', return_code='0', job_id='939284', GAL2='0.95', EG2='0.95', return_code2='0', photon_flux_error2='2.02e-08', ts2='1.04', photon_index='2.00' WHERE bin_id='1585' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:10:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 939284: <4FGL_J1501.0+2238_daily_bin1585> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1585> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 17:56:12 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:56:13 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:56:13 2021
Terminated at Fri Sep 10 18:10:05 2021
Results reported at Fri Sep 10 18:10:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1585 225.257 22.6364 650160001 650419201 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 :                                   619.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

