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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin300
RA = 225.257, Dec = 22.6364
tmin = 317088001, tmax = 317347201
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='933203', job_status='RUN', time_executed='2021-09-10 17:36:20.352403', time_epoch_executed='1631320580.35' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933203/ft1_4FGL_J1501.0+2238_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933203/ft2_4FGL_J1501.0+2238_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933203/ft1_4FGL_J1501.0+2238_daily_bin300.fits outfile=/scratch/kocevski/933203/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin300.fits ra=225.257 dec=22.6364 rad=12.0 tmin=317088001.0 tmax=317347201.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.85
user 3.64
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933203/ft1_filtered_4FGL_J1501.0+2238_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/933203/ft2_4FGL_J1501.0+2238_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/933203/ltcube_317088001_317347201_4FGL_J1501.0+2238_daily_bin300.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/933203/ft2_4FGL_J1501.0+2238_daily_bin300.fits
.....................!
real 12.00
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933203/ft1_filtered_4FGL_J1501.0+2238_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/933203/ft2_4FGL_J1501.0+2238_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/933203/ltcube_317088001_317347201_4FGL_J1501.0+2238_daily_bin300.fits outfile=/scratch/kocevski/933203/expmap_317088001_317347201_4FGL_J1501.0+2238_daily_bin300.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/933203/ltcube_317088001_317347201_4FGL_J1501.0+2238_daily_bin300.fits
.....................!
real 190.47
user 185.08
sys 5.02

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/933203/ft1_filtered_4FGL_J1501.0+2238_daily_bin300.fits scfile=/scratch/kocevski/933203/ft2_4FGL_J1501.0+2238_daily_bin300.fits outfile=/scratch/kocevski/933203/cmap_317088001_317347201_4FGL_J1501.0+2238_daily_bin300.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933203/ft1_filtered_4FGL_J1501.0+2238_daily_bin300.fits scfile=/scratch/kocevski/933203/ft2_4FGL_J1501.0+2238_daily_bin300.fits outfile=/scratch/kocevski/933203/cmap_HighResolution_317088001_317347201_4FGL_J1501.0+2238_daily_bin300.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.807       1.0000         .10000E-03   10000.    
     2 'norm      '    10.596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .25852E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.980       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.329       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5708       1.0000         .10000E-03   10000.    
    15 'norm      '    13.546       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0343       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.380       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2327       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2137       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0776       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97505       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=   7134.471     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2108 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.795        12.808        .88374E-06   -.14238E-04
   2  norm          10.595        3.5503        .38449E-07    .32866E-04
   3  Prefactor     .10000E-03    9.8605        .49132E-06** at limit **
   4  norm          .10003E-03    1.1977       -.16082E-06** at limit **
   5  norm          .10001E-03    2.6991       -.18210E-06** at limit **
   6  Prefactor     .10000E-03    9.8665        .36095E-06** at limit **
   7  Prefactor     20.799        25.530       -.55494E-06    .63335E-05
   8  Prefactor     23.981        18.514       -.97933E-06   -.23633E-06
   9  Prefactor     29.331        22.787       -.49686E-06    .17318E-05
  10  Prefactor     .10000E-03    29.923       -.41407E-06** at limit **
  11  Prefactor     .10000E-03    3.5852        .77979E-06** at limit **
  12  norm          .10000E-03    15.902        .12401E-05** at limit **
  13  Prefactor     .10000E-03    15.628        .10949E-05** at limit **
  14  Prefactor     1.5716        1.2416       -.12866E-06   -.41596E-03
  15  norm          13.546        2.0260       -.16335E-07   -.90437E-04
  16  Prefactor     1.9633        138.99       -.70013E-05   -.16714E-04
  17  Prefactor     .10000E-03    6.2218        .35468E-06** at limit **
  18  Prefactor     18.379        18.014       -.20558E-06   -.25566E-05
  19  Prefactor     1.2328        1.7207       -.15035E-07   -.34405E-04
  20  Prefactor     1.2087        130.29        .31472E-04   -.20310E-04
  21  Normalizat    1.0776        .19890       -.83215E-06   -.74980E-04
  22  Prefactor     .97507        .14003       -.27981E-07   -.14929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.795
  norm       = 10.5954
  Prefactor  = 0.0001
  norm       = 0.000100028
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 20.7987
  Prefactor  = 23.9808
  Prefactor  = 29.3305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.57161
  norm       = 13.5457
  Prefactor  = 1.96331
  Prefactor  = 0.0001
  Prefactor  = 18.3795
  Prefactor  = 1.23283
  Prefactor  = 1.20867
  Normalizat = 1.0776
  Prefactor  = 0.975066
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.471     FROM HESSE     STATUS=OK           352 CALLS     2460 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.795        12.774        .94914E-04   -1.4864    
   2  norm          10.595        3.5537        .89129E-04   -1.5057    
   3  Prefactor     .10000E-03    10.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10003E-03    16.875        .17754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    16.296        .26821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.8819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.799        25.496        .87815E-04   -1.4796    
   8  Prefactor     23.981        18.506        .81799E-04   -1.4728    
   9  Prefactor     29.331        22.777        .73980E-04   -1.4624    
  10  Prefactor     .10000E-03    29.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6057        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5716        11.296        .16959E-02   -1.5457    
  15  norm          13.546        2.0279        .44647E-04   -1.4972    
  16  Prefactor     1.9633        140.39        .29000E-03   -1.5428    
  17  Prefactor     .10000E-03    6.3026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.379        18.013        .93423E-04   -1.4850    
  19  Prefactor     1.2328        1.6839        .12663E-03   -1.5486    
  20  Prefactor     1.2087        131.10        .41027E-03   -1.5488    
  21  Normalizat    1.0776        .23905        .29539E-03   -.90474    
  22  Prefactor     .97507        .16704        .22082E-03   -.93565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62927e-09
Minuit parameter uncertainties:
  1  12.7762
  2  3.55373
  3  2.58649e-05
  4  0.00136417
  5  0.000634074
  6  3.92258e-06
  7  25.5092
  8  18.5102
  9  22.7837
  10  4.20752e-05
  11  2.46607e-06
  12  1.18289e-06
  13  4.66259e-06
  14  8.42889
  15  2.0279
  16  33.2846
  17  5.66325e-06
  18  18.0185
  19  1.68401
  20  25.2319
  21  0.239287
  22  0.167131
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  2.466e-06  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.751e-01  1.671e-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.078e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/933203/likelihoodResults_317088001_317347201_4FGL_J1501.0+2238_daily_bin300.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7134.47200319
delta logL = -0.0013195540896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7134.47068365
delta logL = -1.32331479108e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0025       1.0000          .0000       10.000    
     3 'Normalizat'    1.0776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97507       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=   7134.471     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0298        .90712E-02** at limit **
   2  Index         2.0033        8.4228        .50000       -.17943E-05
   3  Normalizat    1.0776        .45426E-02    .66770E-01    .10284E-05
   4  Prefactor     .97507        .32640E-02    .45955E-01   -.65508E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00333
  Normalizat = 1.0776
  Prefactor  = 0.975067
 **********
 **   18 **HESSE 
 **********

 FCN=   7134.471     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.818        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0033        8.8370        .50000       -.64267    
   3  Normalizat    1.0776        .17823E-01    .29539E-03   -.90474    
   4  Prefactor     .97507        .12818E-01    .22082E-03   -.93565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49567e-08
Minuit parameter uncertainties:
  1  1.16072e-05
  2  269.219
  3  0.0178234
  4  0.0128178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933203': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7134.47068364
delta logL = 7.4396666605e-10

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.161e-05  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.003e+00  2.692e+02  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.751e-01  1.282e-02  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.078e+00  1.782e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

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/933203/cmap_HighResolution_317088001_317347201_4FGL_J1501.0+2238_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-10 17:46:43.469501', job_id='933203', GAL2='0.98', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631321203.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.44e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='300' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:46:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 933203: <4FGL_J1501.0+2238_daily_bin300> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin300> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 17:36:02 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:36:04 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:36:04 2021
Terminated at Fri Sep 10 17:46:44 2021
Results reported at Fri Sep 10 17:46:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin300 225.257 22.6364 317088001 317347201 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 :                                   622.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            642 sec.

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

