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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1090
RA = 225.257, Dec = 22.6364
tmin = 521856001, tmax = 522115201
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='936626', job_status='RUN', time_executed='2021-09-10 17:49:59.819923', time_epoch_executed='1631321399.82' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936626/ft1_4FGL_J1501.0+2238_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936626/ft2_4FGL_J1501.0+2238_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936626/ft1_4FGL_J1501.0+2238_daily_bin1090.fits outfile=/scratch/kocevski/936626/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1090.fits ra=225.257 dec=22.6364 rad=12.0 tmin=521856001.0 tmax=522115201.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.73
user 3.49
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936626/ft2_4FGL_J1501.0+2238_daily_bin1090.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/936626/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/936626/ft1_filtered_4FGL_J1501.0+2238_daily_bin1090.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.50
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936626/ft1_filtered_4FGL_J1501.0+2238_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/936626/ft2_4FGL_J1501.0+2238_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/936626/ltcube_521856001_522115201_4FGL_J1501.0+2238_daily_bin1090.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/936626/ft2_4FGL_J1501.0+2238_daily_bin1090.fits
.....................!
real 11.75
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936626/ft1_filtered_4FGL_J1501.0+2238_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/936626/ft2_4FGL_J1501.0+2238_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/936626/ltcube_521856001_522115201_4FGL_J1501.0+2238_daily_bin1090.fits outfile=/scratch/kocevski/936626/expmap_521856001_522115201_4FGL_J1501.0+2238_daily_bin1090.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/936626/ltcube_521856001_522115201_4FGL_J1501.0+2238_daily_bin1090.fits
.....................!
real 190.50
user 185.31
sys 4.85

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/936626/ft1_filtered_4FGL_J1501.0+2238_daily_bin1090.fits scfile=/scratch/kocevski/936626/ft2_4FGL_J1501.0+2238_daily_bin1090.fits outfile=/scratch/kocevski/936626/cmap_521856001_522115201_4FGL_J1501.0+2238_daily_bin1090.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936626/ft1_filtered_4FGL_J1501.0+2238_daily_bin1090.fits scfile=/scratch/kocevski/936626/ft2_4FGL_J1501.0+2238_daily_bin1090.fits outfile=/scratch/kocevski/936626/cmap_HighResolution_521856001_522115201_4FGL_J1501.0+2238_daily_bin1090.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1993       1.0000         .10000E-03   10000.    
     2 'norm      '    9.1862       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4950       1.0000         .10000E-03   10000.    
     5 'norm      '    9.9899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6052       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.628       1.0000         .10000E-03   10000.    
    12 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .61879E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14008       1.0000         .10000E-03   10000.    
    15 'norm      '    7.5738       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.483       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13615       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.472       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5264       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .69681       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=   7446.081     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2444 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1971        5.7334        .10393E-06    .30707E-04
   2  norm          9.1864        3.3526       -.21833E-07    .64172E-04
   3  Prefactor     .10000E-03    1.7335        .24030E-07** at limit **
   4  norm          1.4953        1.5748        .98545E-07    .20550E-03
   5  norm          9.9911        5.1658       -.15799E-06   -.35986E-05
   6  Prefactor     .10000E-03    27.858        .96861E-07** at limit **
   7  Prefactor     6.6038        20.150       -.15107E-04   -.22668E-04
   8  Prefactor     .10000E-03    4.4613       -.10630E-07** at limit **
   9  Prefactor     .10000E-03    11.746        .29449E-06** at limit **
  10  Prefactor     13.592        22.192        .10832E-05    .79412E-05
  11  Prefactor     13.633        8.6298       -.10542E-05    .93050E-04
  12  norm          .10000E-03    13.828       -.15188E-06** at limit **
  13  Prefactor     .10056E-03    44.859       -.23999E-05** at limit **
  14  Prefactor     .15433        5.4370       -.74578E-06    .99363E-04
  15  norm          7.5738        1.8664       -.11593E-07    .31626E-03
  16  Prefactor     41.472        43.900        .59469E-05    .52870E-04
  17  Prefactor     .10000E-03    4.7085       -.12176E-07** at limit **
  18  Prefactor     .10000E-03    11.181       -.12686E-06** at limit **
  19  Prefactor     .12802        1.1393       -.54110E-06   -.16438E-03
  20  Prefactor     29.474        37.693       -.36701E-05    .21973E-04
  21  Normalizat    1.5263        .20981        .11953E-06    .34283E-03
  22  Prefactor     .69677        .13586        .11725E-05    .27128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.19714
  norm       = 9.18643
  Prefactor  = 0.0001
  norm       = 1.49525
  norm       = 9.99105
  Prefactor  = 0.0001
  Prefactor  = 6.6038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5924
  Prefactor  = 13.6327
  norm       = 0.0001
  Prefactor  = 0.000100559
  Prefactor  = 0.154333
  norm       = 7.57375
  Prefactor  = 41.4722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.128023
  Prefactor  = 29.4745
  Normalizat = 1.52632
  Prefactor  = 0.696766
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.081     FROM HESSE     STATUS=OK           364 CALLS     2808 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1971        5.7345        .16123E-03   -1.5210    
   2  norm          9.1864        3.3548        .92365E-04   -1.5102    
   3  Prefactor     .10000E-03    1.7369        .11094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4953        1.5772        .10798E-03   -1.5463    
   5  norm          9.9911        5.1710        .12678E-03   -1.5076    
   6  Prefactor     .10000E-03    27.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6038        20.301        .15614E-03   -1.5194    
   8  Prefactor     .10000E-03    4.4648        .17800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.592        22.187        .10867E-03   -1.4970    
  11  Prefactor     13.633        8.6257        .10850E-03   -1.4969    
  12  norm          .10000E-03    13.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10056E-03    41.318        .15276       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15433        10.438        .62063E-01   -1.5629    
  15  norm          7.5738        1.8694        .56140E-04   -1.5157    
  16  Prefactor     41.472        44.040        .62239E-04   -1.4419    
  17  Prefactor     .10000E-03    4.7196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12802        5.0977        .17794E-02   -1.5636    
  20  Prefactor     29.474        37.729        .73801E-04   -1.4622    
  21  Normalizat    1.5263        .24898        .27248E-03   -.77042    
  22  Prefactor     .69677        .16007        .25341E-03   -1.0365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11154e-08
Minuit parameter uncertainties:
  1  5.73506
  2  3.35485
  3  2.63596e-06
  4  1.57722
  5  5.17127
  6  1.40367e-05
  7  20.3218
  8  3.96645e-06
  9  3.46295e-05
  10  22.1999
  11  8.62652
  12  7.28584e-07
  13  0.00961967
  14  2.53809
  15  1.86945
  16  44.075
  17  1.05109e-08
  18  2.05953e-07
  19  1.61521
  20  37.7592
  21  0.249185
  22  0.160177
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.363e+01  8.627e+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:  6.968e-01  1.602e-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.526e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.03
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.42e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.93e-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) = 7445.36051905
delta logL = 0.720273364283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7445.3418734
delta logL = 0.738919015519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.492       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3692       1.0000          .0000       10.000    
     3 'Normalizat'    1.5464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69582       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=   7445.342     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.489        8.6450        .28333E-02   -.88916E-03
   2  Index         1.3691        .38168        .23245       -.57831E-04
   3  Normalizat    1.5464        .20294        .61283E-01   -.20566E-04
   4  Prefactor     .69580        .13387        .42346E-01    .34307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.489
  Index      = 1.36913
  Normalizat = 1.54643
  Prefactor  = 0.695797
 **********
 **   18 **HESSE 
 **********

 FCN=   7445.342     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.489        9.8360        .56667E-03   -1.5001    
   2  Index         1.3691        .48202        .91992E-02   -.81274    
   3  Normalizat    1.5464        .23866        .27102E-03   -.76482    
   4  Prefactor     .69580        .15775        .25365E-03   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07667e-09
Minuit parameter uncertainties:
  1  9.83726
  2  0.483614
  3  0.238835
  4  0.157848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936626': 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) = 7445.34187332
delta logL = 0.738919096541

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.249e+01  9.837e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.369e+00  4.836e-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:  6.958e-01  1.578e-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.546e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.49
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.37 +/- 0.48
Photon Flux (Free Index): 1.63e-08 +/- 1.67e-08
Energy Flux (Free Index): 7.98e-05 +/- 8.59e-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/936626/cmap_HighResolution_521856001_522115201_4FGL_J1501.0+2238_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.42e-08', energy_flux2='7.98e-05', photon_flux_error='2.80e-08', dlogl='7.39e-01', energy_flux='3.04e-05', photon_flux2='1.63e-08', job_status='DONE', time_completed='2021-09-10 18:01:46.103699', photon_index_error2='0.48', photon_index2='1.37', ts='13.03', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='8.59e-05', EG='1.53', time_epoch_completed='1631322106.1', return_code='0', job_id='936626', GAL2='0.70', EG2='1.55', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='1.67e-08', ts2='14.49', photon_index='2.00' WHERE bin_id='1090' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 936626: <4FGL_J1501.0+2238_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1090> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Sep 10 17:46:55 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:46:57 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:46:57 2021
Terminated at Fri Sep 10 18:01:46 2021
Results reported at Fri Sep 10 18:01:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1090 225.257 22.6364 521856001 522115201 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 :                                   596.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

