/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 165 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1501.0+2238_daily_bin90
RA = 225.257, Dec = 22.6364
tmin = 262656001, tmax = 262915201
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='931929', job_status='RUN', time_executed='2021-09-10 17:34:18.042178', time_epoch_executed='1631320458.04' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931929/ft1_4FGL_J1501.0+2238_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931929/ft2_4FGL_J1501.0+2238_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931929/ft1_4FGL_J1501.0+2238_daily_bin90.fits outfile=/scratch/kocevski/931929/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin90.fits ra=225.257 dec=22.6364 rad=12.0 tmin=262656001.0 tmax=262915201.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 1.41
user 1.22
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931929/ft2_4FGL_J1501.0+2238_daily_bin90.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/931929/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/931929/ft1_filtered_4FGL_J1501.0+2238_daily_bin90.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/931929/ft1_filtered_4FGL_J1501.0+2238_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/931929/ft2_4FGL_J1501.0+2238_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/931929/ltcube_262656001_262915201_4FGL_J1501.0+2238_daily_bin90.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/931929/ft2_4FGL_J1501.0+2238_daily_bin90.fits
.....................!
real 12.93
user 12.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931929/ft1_filtered_4FGL_J1501.0+2238_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/931929/ft2_4FGL_J1501.0+2238_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/931929/ltcube_262656001_262915201_4FGL_J1501.0+2238_daily_bin90.fits outfile=/scratch/kocevski/931929/expmap_262656001_262915201_4FGL_J1501.0+2238_daily_bin90.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/931929/ltcube_262656001_262915201_4FGL_J1501.0+2238_daily_bin90.fits
.....................!
real 193.12
user 187.66
sys 5.06

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/931929/ft1_filtered_4FGL_J1501.0+2238_daily_bin90.fits scfile=/scratch/kocevski/931929/ft2_4FGL_J1501.0+2238_daily_bin90.fits outfile=/scratch/kocevski/931929/cmap_262656001_262915201_4FGL_J1501.0+2238_daily_bin90.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931929/ft1_filtered_4FGL_J1501.0+2238_daily_bin90.fits scfile=/scratch/kocevski/931929/ft2_4FGL_J1501.0+2238_daily_bin90.fits outfile=/scratch/kocevski/931929/cmap_HighResolution_262656001_262915201_4FGL_J1501.0+2238_daily_bin90.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1778       1.0000         .10000E-03   10000.    
     2 'norm      '    5.1195       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10724E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    77.286       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.822       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.123       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.206       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2869       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6388       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9511       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85769       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0773       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=   6664.965     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2338 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1784        6.4631        .74177E-06   -.18376E-03
   2  norm          5.1198        2.7445       -.15771E-06    .90015E-04
   3  Prefactor     .10000E-03    2.2559       -.41896E-07** at limit **
   4  norm          .10000E-03    1.3268       -.58739E-06** at limit **
   5  norm          .10000E-03    1.6621        .11517E-07** at limit **
   6  Prefactor     14.343        27.679       -.37611E-04    .14407E-04
   7  Prefactor     .10000E-03    16.006        .38796E-05** at limit **
   8  Prefactor     77.285        33.032       -.64926E-06   -.52145E-05
   9  Prefactor     56.816        39.401       -.55591E-05   -.17593E-04
  10  Prefactor     .10000E-03    58.735        .66139E-05** at limit **
  11  Prefactor     20.122        9.8664       -.35295E-06    .34575E-04
  12  norm          .10000E-03    18.674       -.61585E-05** at limit **
  13  Prefactor     .10000E-03    20.741        .19613E-05** at limit **
  14  Prefactor     .10000E-03    3.7632       -.75671E-07** at limit **
  15  norm          11.206        2.1780       -.11462E-06    .15000E-03
  16  Prefactor     7.2842        46.111       -.86466E-05    .15791E-05
  17  Prefactor     .10000E-03    4.8686        .29007E-07** at limit **
  18  Prefactor     21.048        21.902       -.71937E-06    .43627E-05
  19  Prefactor     2.6385        2.3358       -.33365E-06   -.35974E-03
  20  Prefactor     5.9444        39.836       -.15872E-04   -.10833E-04
  21  Normalizat    .85725        .22199        .86407E-05   -.64948E-04
  22  Prefactor     1.0777        .15141       -.91516E-06    .40588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17835
  norm       = 5.11983
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 14.3429
  Prefactor  = 0.0001
  Prefactor  = 77.2852
  Prefactor  = 56.8158
  Prefactor  = 0.0001
  Prefactor  = 20.1224
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2056
  Prefactor  = 7.28415
  Prefactor  = 0.0001
  Prefactor  = 21.0483
  Prefactor  = 2.63852
  Prefactor  = 5.94441
  Normalizat = 0.857248
  Prefactor  = 1.07771
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.965     FROM HESSE     STATUS=OK           344 CALLS     2682 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1784        6.4487        .19718E-03   -1.5299    
   2  norm          5.1198        2.7441        .96093E-04   -1.5255    
   3  Prefactor     .10000E-03    2.2627        .11972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.026        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6719        .10277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.343        27.692        .10563E-03   -1.4950    
   7  Prefactor     .10000E-03    16.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     77.285        33.035        .45678E-04   -1.3947    
   9  Prefactor     56.816        39.401        .53218E-04   -1.4199    
  10  Prefactor     .10000E-03    59.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.122        9.8681        .89286E-04   -1.4811    
  12  norm          .10000E-03    18.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7946        .15465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.206        2.1802        .50675E-04   -1.5038    
  16  Prefactor     7.2842        46.017        .14859E-03   -1.5168    
  17  Prefactor     .10000E-03    4.8780        .17579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.048        21.901        .87301E-04   -1.4790    
  19  Prefactor     2.6385        2.3280        .11329E-03   -1.5383    
  20  Prefactor     5.9444        39.801        .16461E-03   -1.5220    
  21  Normalizat    .85725        .25382        .33524E-03   -.97979    
  22  Prefactor     1.0777        .17505        .21764E-03   -.90182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84341e-10
Minuit parameter uncertainties:
  1  6.44976
  2  2.74419
  3  1.00737e-05
  4  0.000306616
  5  3.38547e-06
  6  27.7165
  7  4.31298e-05
  8  33.0427
  9  39.4189
  10  0.000150455
  11  9.86889
  12  2.23879e-06
  13  2.47797e-05
  14  1.48757e-05
  15  2.18021
  16  36.6581
  17  4.90119e-06
  18  21.9096
  19  2.32811
  20  30.7927
  21  0.25417
  22  0.175142
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.012e+01  9.869e+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:  1.078e+00  1.751e-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:  8.572e-01  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.94
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.53e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 4.49e-05 +/- 2.20e-05

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) = 6664.58160597
delta logL = 0.383559843233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6664.5813847
delta logL = 0.383781114847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.453       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7053       1.0000          .0000       10.000    
     3 'Normalizat'    .87277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0729       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=   6664.581     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      261 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.427        330.80        .19851E-02    .11798E-05
   2  Index         1.7045        5.7986        .15024        .63993E-04
   3  Normalizat    .87282        .21093        .75130E-01    .14978E-04
   4  Prefactor     1.0729        .10531        .38721E-01   -.79189E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4266
  Index      = 1.70454
  Normalizat = 0.872822
  Prefactor  = 1.07294
 **********
 **   18 **HESSE 
 **********

 FCN=   6664.581     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.427        13.407        .79402E-04   -1.4699    
   2  Index         1.7045        .32816        .58229E-02   -.71961    
   3  Normalizat    .87282        .23954        .33250E-03   -.97422    
   4  Prefactor     1.0729        .17376        .21810E-03   -.90336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08307e-12
Minuit parameter uncertainties:
  1  13.4086
  2  0.328581
  3  0.239835
  4  0.173847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931929': 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) = 6664.58137821
delta logL = 0.383787611208

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.543e+01  1.341e+01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.705e+00  3.286e-01  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:  1.073e+00  1.738e-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:  8.728e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.66
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.70 +/- 0.33
Photon Flux (Free Index): 4.94e-08 +/- 3.08e-08
Energy Flux (Free Index): 7.94e-05 +/- 6.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/931929/cmap_HighResolution_262656001_262915201_4FGL_J1501.0+2238_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.53e-08', energy_flux2='7.94e-05', photon_flux_error='3.20e-08', dlogl='3.84e-01', energy_flux='4.49e-05', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-09-10 17:43:57.371191', photon_index_error2='0.33', photon_index2='1.70', ts='14.94', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='6.78e-05', EG='0.86', time_epoch_completed='1631321037.37', return_code='0', job_id='931929', GAL2='1.07', EG2='0.87', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='3.08e-08', ts2='15.66', photon_index='2.00' WHERE bin_id='90' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:43:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 931929: <4FGL_J1501.0+2238_daily_bin90> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin90> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:31:23 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:31:24 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:31:24 2021
Terminated at Fri Sep 10 17:43:58 2021
Results reported at Fri Sep 10 17:43:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin90 225.257 22.6364 262656001 262915201 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 :                                   567.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

