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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1106
RA = 225.257, Dec = 22.6364
tmin = 526003201, tmax = 526262401
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='936642', job_status='RUN', time_executed='2021-09-10 17:47:08.725847', time_epoch_executed='1631321228.73' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936642

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936642/ft1_4FGL_J1501.0+2238_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936642/ft2_4FGL_J1501.0+2238_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936642/ft1_4FGL_J1501.0+2238_daily_bin1106.fits outfile=/scratch/kocevski/936642/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1106.fits ra=225.257 dec=22.6364 rad=12.0 tmin=526003201.0 tmax=526262401.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.72
user 3.51
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936642/ft1_filtered_4FGL_J1501.0+2238_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/936642/ft2_4FGL_J1501.0+2238_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/936642/ltcube_526003201_526262401_4FGL_J1501.0+2238_daily_bin1106.fits outfile=/scratch/kocevski/936642/expmap_526003201_526262401_4FGL_J1501.0+2238_daily_bin1106.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/936642/ltcube_526003201_526262401_4FGL_J1501.0+2238_daily_bin1106.fits
.....................!
real 190.60
user 185.25
sys 4.98

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/936642/ft1_filtered_4FGL_J1501.0+2238_daily_bin1106.fits scfile=/scratch/kocevski/936642/ft2_4FGL_J1501.0+2238_daily_bin1106.fits outfile=/scratch/kocevski/936642/cmap_526003201_526262401_4FGL_J1501.0+2238_daily_bin1106.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=225.257 yref=22.6364 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936642/ft1_filtered_4FGL_J1501.0+2238_daily_bin1106.fits scfile=/scratch/kocevski/936642/ft2_4FGL_J1501.0+2238_daily_bin1106.fits outfile=/scratch/kocevski/936642/cmap_HighResolution_526003201_526262401_4FGL_J1501.0+2238_daily_bin1106.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10484E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7156       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4070       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.177       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1803       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    143.47       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5989       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15968E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.699       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0501       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0566       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=   7342.581     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2446 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0632       -.14357E-06** at limit **
   2  norm          .10000E-03    1.8219        .15683E-06** at limit **
   3  Prefactor     5.7156        5.7803        .25451E-05   -.67253E-03
   4  norm          8.4074        4.1790       -.17143E-06   -.11663E-03
   5  norm          .10000E-03    2.3997        .17490E-07** at limit **
   6  Prefactor     .10000E-03    13.855       -.28976E-05** at limit **
   7  Prefactor     .10000E-03    9.6344       -.52126E-06** at limit **
   8  Prefactor     .10000E-03    6.1561        .60121E-08** at limit **
   9  Prefactor     .10000E-03    27.344        .90077E-06** at limit **
  10  Prefactor     23.172        41.933       -.68978E-06   -.61915E-04
  11  Prefactor     2.1809        8.2026        .96947E-06   -.45125E-04
  12  norm          .10000E-03    12.812        .12365E-05** at limit **
  13  Prefactor     143.45        66.600       -.19253E-05   -.29127E-03
  14  Prefactor     .10000E-03    3.6925        .50792E-07** at limit **
  15  norm          4.2332        1.6669        .12709E-08   -.19691E-03
  16  Prefactor     .10000E-03    58.026       -.22507E-05** at limit **
  17  Prefactor     7.5992        9.1175        .78480E-07   -.62312E-04
  18  Prefactor     .10000E-03    12.634        .15285E-05** at limit **
  19  Prefactor     .10092E-03    1.1624        .38997E-06** at limit **
  20  Prefactor     29.693        32.779       -.77625E-06   -.11842E-03
  21  Normalizat    1.0500        .20437       -.14568E-06   -.11913E-03
  22  Prefactor     1.0565        .13968       -.21116E-06   -.14726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.71559
  norm       = 8.40744
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.1724
  Prefactor  = 2.18093
  norm       = 0.000100001
  Prefactor  = 143.454
  Prefactor  = 0.0001
  norm       = 4.23321
  Prefactor  = 0.000100001
  Prefactor  = 7.59924
  Prefactor  = 0.000100001
  Prefactor  = 0.000100925
  Prefactor  = 29.6926
  Normalizat = 1.05004
  Prefactor  = 1.05653
 **********
 **   18 **HESSE 
 **********

 FCN=   7342.581     FROM HESSE     STATUS=OK           344 CALLS     2790 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0741        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.7811        .22346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7156        5.9500        .84005E-03   -1.5230    
   4  norm          8.4074        4.1790        .11638E-03   -1.5128    
   5  norm          .10000E-03    2.4275        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.172        42.027        .83202E-04   -1.4745    
  11  Prefactor     2.1809        8.1908        .27881E-03   -1.5413    
  12  norm          .10000E-03    12.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     143.45        68.236        .16818E-03   -1.3307    
  14  Prefactor     .10000E-03    3.7048        .16079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2332        1.6744        .61918E-04   -1.5296    
  16  Prefactor     .10000E-03    58.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.5992        9.1451        .14548E-03   -1.5157    
  18  Prefactor     .10000E-03    12.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10092E-03    2.3298        .32627E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.693        32.925        .73518E-04   -1.4618    
  21  Normalizat    1.0500        .23860        .31015E-03   -.91372    
  22  Prefactor     1.0565        .16329        .21503E-03   -.90868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6628e-09
Minuit parameter uncertainties:
  1  1.23349e-05
  2  4.57256e-05
  3  5.95058
  4  4.17916
  5  2.88803e-06
  6  0.000482394
  7  6.55837e-05
  8  6.07874e-06
  9  0.000273271
  10  42.0806
  11  8.19501
  12  0.000193196
  13  68.2734
  14  1.90627e-06
  15  1.67441
  16  0.000523967
  17  9.14681
  18  0.00023116
  19  0.0029355
  20  32.9447
  21  0.23884
  22  0.163366
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.181e+00  8.195e+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.057e+00  1.634e-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.050e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/936642/likelihoodResults_526003201_526262401_4FGL_J1501.0+2238_daily_bin1106.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7341.22772904
delta logL = 1.353352249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7341.14746205
delta logL = 1.43361923725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48970E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.7989       1.0000          .0000       10.000    
     3 'Normalizat'    .91336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1108       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=   7341.147     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      296 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48377E-01    .36901        .25572E-02    .56711E-02
   2  Index         4.8037        1.6729        .87735E-01    .27305E-03
   3  Normalizat    .91332        .49606E-01    .74434E-01    .34220E-04
   4  Prefactor     1.1110        .34538E-01    .37191E-01    .13722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0483773
  Index      = 4.80366
  Normalizat = 0.913319
  Prefactor  = 1.11096
 **********
 **   18 **HESSE 
 **********

 FCN=   7341.147     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      329 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48377E-01    .90108        .11523E-04   -1.5664    
   2  Index         4.8037        3.0679        .32375E-02   -.39278E-01
   3  Normalizat    .91332        .20564        .32939E-03   -.95994    
   4  Prefactor     1.1110        .14054        .21011E-03   -.89117    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.07519e-10
Minuit parameter uncertainties:
  1  0.417149
  2  3.30335
  3  0.205814
  4  0.140587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936642': 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) = 7341.14745806
delta logL = 1.43362322357

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.111e+00  1.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.133e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 225.257 22.636
Photon Index (Free Index): 4.80 +/- 3.30
Photon Flux (Free Index): 1.37e-07 +/- 8.66e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.24e-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/936642/cmap_HighResolution_526003201_526262401_4FGL_J1501.0+2238_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', comment='SUCCESS', energy_flux2='1.85e-05', dlogl='1.43e+00', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-10 17:59:52.447753', photon_index_error2='3.30', photon_index2='4.80', ts='0.08', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.01e-08', energy_flux_error2='1.24e-05', EG='1.05', time_epoch_completed='1631321992.45', return_code='0', job_id='936642', GAL2='1.11', EG2='0.91', return_code2='102', photon_flux_error2='8.66e-08', ts2='3.21', photon_index='2.00' WHERE bin_id='1106' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:59:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 936642: <4FGL_J1501.0+2238_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1106 225.257 22.6364 526003201 526262401 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 :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            776 sec.

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

