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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1133
RA = 225.257, Dec = 22.6364
tmin = 533001601, tmax = 533260801
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='937598', job_status='RUN', time_executed='2021-09-10 17:53:50.748270', time_epoch_executed='1631321630.75' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937598/ft1_4FGL_J1501.0+2238_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937598/ft2_4FGL_J1501.0+2238_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937598/ft1_4FGL_J1501.0+2238_daily_bin1133.fits outfile=/scratch/kocevski/937598/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1133.fits ra=225.257 dec=22.6364 rad=12.0 tmin=533001601.0 tmax=533260801.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.51
user 3.32
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937598/ft1_filtered_4FGL_J1501.0+2238_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/937598/ft2_4FGL_J1501.0+2238_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/937598/ltcube_533001601_533260801_4FGL_J1501.0+2238_daily_bin1133.fits outfile=/scratch/kocevski/937598/expmap_533001601_533260801_4FGL_J1501.0+2238_daily_bin1133.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/937598/ltcube_533001601_533260801_4FGL_J1501.0+2238_daily_bin1133.fits
.....................!
real 191.60
user 185.86
sys 5.26

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/937598/ft1_filtered_4FGL_J1501.0+2238_daily_bin1133.fits scfile=/scratch/kocevski/937598/ft2_4FGL_J1501.0+2238_daily_bin1133.fits outfile=/scratch/kocevski/937598/cmap_533001601_533260801_4FGL_J1501.0+2238_daily_bin1133.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.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73049E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    5.9008       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.312       1.0000         .10000E-03   10000.    
     4 'norm      '    11.256       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9462       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19971E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6093       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0389       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3579       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5338       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87613       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=   7403.150     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2063 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    30.874        .13837E-04** at limit **
   2  norm          5.9009        2.7481       -.89675E-08    .84866E-04
   3  Prefactor     11.321        6.7521        .52870E-07   -.47615E-03
   4  norm          11.257        3.6640       -.13089E-07   -.92825E-04
   5  norm          .10000E-03    2.3061       -.11646E-06** at limit **
   6  Prefactor     .10000E-03    24.863       -.85576E-06** at limit **
   7  Prefactor     .10000E-03    11.498       -.18603E-06** at limit **
   8  Prefactor     .10002E-03    27.507       -.53284E-06** at limit **
   9  Prefactor     .10000E-03    27.069       -.16779E-06** at limit **
  10  Prefactor     .10001E-03    97.102       -.18701E-06** at limit **
  11  Prefactor     .10000E-03    3.5794       -.92114E-07** at limit **
  12  norm          .10000E-03    51.998        .14103E-06** at limit **
  13  Prefactor     .10000E-03    13.154        .65045E-07** at limit **
  14  Prefactor     .10000E-03    6.2815       -.48458E-07** at limit **
  15  norm          3.9427        1.5558       -.91134E-07   -.24528E-03
  16  Prefactor     2.1504        106.66        .95791E-06    .83890E-04
  17  Prefactor     .10000E-03    39.813        .16529E-04** at limit **
  18  Prefactor     2.6122        65.684        .89565E-06    .78638E-04
  19  Prefactor     1.0400        1.7531       -.12037E-05   -.15204E-02
  20  Prefactor     7.3928        37.717       -.85749E-06    .63915E-04
  21  Normalizat    1.5337        .20402        .15332E-05   -.12863E-03
  22  Prefactor     .87613        .14424       -.10653E-05   -.50928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  norm       = 5.90086
  Prefactor  = 11.3208
  norm       = 11.2569
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94274
  Prefactor  = 2.15035
  Prefactor  = 0.000100004
  Prefactor  = 2.61222
  Prefactor  = 1.04003
  Prefactor  = 7.3928
  Normalizat = 1.53374
  Prefactor  = 0.876134
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.150     FROM HESSE     STATUS=OK           346 CALLS     2409 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    64.476        .39108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.9009        2.7480        .94464E-04   -1.5222    
   3  Prefactor     11.321        6.5113        .11912E-03   -1.5035    
   4  norm          11.257        3.6633        .90541E-04   -1.5037    
   5  norm          .10000E-03    2.3349        .12762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    28.188        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    97.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5896        .15899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    52.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9427        1.4525        .59860E-04   -1.5311    
  16  Prefactor     2.1504        107.31        .28158E-03   -1.5415    
  17  Prefactor     .10000E-03    61.415        .40297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6122        63.111        .25253E-03   -1.5385    
  19  Prefactor     1.0400        1.6998        .16581E-02   -1.5504    
  20  Prefactor     7.3928        37.741        .14786E-03   -1.5164    
  21  Normalizat    1.5337        .24034        .26947E-03   -.76834    
  22  Prefactor     .87613        .17043        .24369E-03   -.96980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09556e-09
Minuit parameter uncertainties:
  1  0.0023761
  2  2.74807
  3  6.51173
  4  3.66338
  5  2.77649e-05
  6  5.34195e-05
  7  7.31751e-05
  8  0.00134101
  9  0.000455234
  10  0.00230225
  11  2.85846e-05
  12  0.000286923
  13  2.26455e-05
  14  5.87518e-05
  15  1.45249
  16  30.4385
  17  0.00102222
  18  25.7095
  19  1.69989
  20  33.4404
  21  0.240523
  22  0.170538
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.761e-01  1.705e-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.534e+00  2.405e-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: 5.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937598/likelihoodResults_533001601_533260801_4FGL_J1501.0+2238_daily_bin1133.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) = 7403.15136284
delta logL = -0.00132297949858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7403.15003986
delta logL = -3.99541022489e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9908       1.0000          .0000       10.000    
     3 'Normalizat'    1.5338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87610       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=   7403.150     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    40.249        .15972E-02** at limit **
   2  Index         1.9603        8.9993        .50000        .19841E-04
   3  Normalizat    1.5337        .17283E-01    .26947E-03    .36705E-05
   4  Prefactor     .87614        .12305E-01    .24369E-03    .79776E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010036
  Index      = 1.96029
  Normalizat = 1.53374
  Prefactor  = 0.876137
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.150     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-03    178.68        .31943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9603        5.1253        .50000       -.65347    
   3  Normalizat    1.5337        .38185E-01    .10779E-04   -.76835    
   4  Prefactor     .87614        .27183E-01    .97476E-05   -.96980    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70765e-08
Minuit parameter uncertainties:
  1  0.0160954
  2  456.514
  3  0.0381859
  4  0.0271831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937598': 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) = 7403.15003968
delta logL = 1.80302777153e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.004e-04  1.610e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.960e+00  4.565e+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:  8.761e-01  2.718e-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.534e+00  3.819e-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/937598/cmap_HighResolution_533001601_533260801_4FGL_J1501.0+2238_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.38e-08', time_completed='2021-09-10 18:04:37.720875', job_id='937598', GAL2='0.88', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631322277.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1133' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:04:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 937598: <4FGL_J1501.0+2238_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1133 225.257 22.6364 533001601 533260801 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 :                                   643.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

