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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin92
RA = 225.257, Dec = 22.6364
tmin = 263174401, tmax = 263433601
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='931932', job_status='RUN', time_executed='2021-09-10 17:33:54.106754', time_epoch_executed='1631320434.11' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931932

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931932/ft1_4FGL_J1501.0+2238_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931932/ft2_4FGL_J1501.0+2238_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931932/ft1_4FGL_J1501.0+2238_daily_bin92.fits outfile=/scratch/kocevski/931932/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin92.fits ra=225.257 dec=22.6364 rad=12.0 tmin=263174401.0 tmax=263433601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.56
user 1.18
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931932/ft2_4FGL_J1501.0+2238_daily_bin92.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/931932/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/931932/ft1_filtered_4FGL_J1501.0+2238_daily_bin92.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.48
user 0.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931932/ft1_filtered_4FGL_J1501.0+2238_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/931932/ft2_4FGL_J1501.0+2238_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/931932/ltcube_263174401_263433601_4FGL_J1501.0+2238_daily_bin92.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/931932/ft2_4FGL_J1501.0+2238_daily_bin92.fits
.....................!
real 11.62
user 11.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931932/ft1_filtered_4FGL_J1501.0+2238_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/931932/ft2_4FGL_J1501.0+2238_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/931932/ltcube_263174401_263433601_4FGL_J1501.0+2238_daily_bin92.fits outfile=/scratch/kocevski/931932/expmap_263174401_263433601_4FGL_J1501.0+2238_daily_bin92.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/931932/ltcube_263174401_263433601_4FGL_J1501.0+2238_daily_bin92.fits
.....................!
real 190.22
user 185.82
sys 4.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/931932/ft1_filtered_4FGL_J1501.0+2238_daily_bin92.fits scfile=/scratch/kocevski/931932/ft2_4FGL_J1501.0+2238_daily_bin92.fits outfile=/scratch/kocevski/931932/cmap_263174401_263433601_4FGL_J1501.0+2238_daily_bin92.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24564E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    13.330       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0970       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8406       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37700E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11226E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.643       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5257       1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.264       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1813       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0551       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=   7549.722     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2362 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    5.7634        .24572E-06** at limit **
   2  norm          13.331        3.9957       -.38493E-07   -.59644E-04
   3  Prefactor     2.0943        7.8290        .19521E-05    .59996E-05
   4  norm          1.8406        3.0512        .27891E-06   -.20440E-05
   5  norm          1.1790        3.7979        .17658E-05    .68790E-04
   6  Prefactor     .10000E-03    19.090        .15179E-06** at limit **
   7  Prefactor     .10000E-03    12.434       -.11477E-05** at limit **
   8  Prefactor     .10000E-03    52.833       -.98531E-05** at limit **
   9  Prefactor     45.088        34.061        .89830E-08   -.51458E-04
  10  Prefactor     .10000E-03    34.615       -.21123E-05** at limit **
  11  Prefactor     32.645        12.363       -.46703E-07   -.16085E-04
  12  norm          .10000E-03    33.569        .10463E-06** at limit **
  13  Prefactor     19.305        24.768        .92836E-07    .53864E-05
  14  Prefactor     .10000E-03    2.3041        .73324E-07** at limit **
  15  norm          8.5270        1.9286       -.63656E-07   -.95886E-04
  16  Prefactor     59.954        42.675        .10287E-06    .37894E-04
  17  Prefactor     .10000E-03    11.698        .16996E-06** at limit **
  18  Prefactor     .10000E-03    15.706        .73231E-07** at limit **
  19  Prefactor     .10000E-03    .78856        .90010E-07** at limit **
  20  Prefactor     11.248        34.471        .34140E-07   -.27466E-04
  21  Normalizat    1.1810        .22923        .15223E-05   -.29889E-04
  22  Prefactor     1.0553        .15758       -.15508E-05    .89355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100077
  norm       = 13.3308
  Prefactor  = 2.09431
  norm       = 1.84063
  norm       = 1.17899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0878
  Prefactor  = 0.0001
  Prefactor  = 32.6451
  norm       = 0.0001
  Prefactor  = 19.3053
  Prefactor  = 0.0001
  norm       = 8.52704
  Prefactor  = 59.9542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2483
  Normalizat = 1.18101
  Prefactor  = 1.05526
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.722     FROM HESSE     STATUS=OK           342 CALLS     2704 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    33.030        .37268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.331        3.9968        .92190E-04   -1.4978    
   3  Prefactor     2.0943        7.4718        .28501E-03   -1.5419    
   4  norm          1.8406        3.0213        .18524E-03   -1.5437    
   5  norm          1.1790        3.7811        .29298E-03   -1.5491    
   6  Prefactor     .10000E-03    19.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    53.164        .42581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.088        33.992        .59679E-04   -1.4364    
  10  Prefactor     .10000E-03    34.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.645        12.369        .70134E-04   -1.4565    
  12  norm          .10000E-03    33.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.305        24.771        .91160E-04   -1.4829    
  14  Prefactor     .10000E-03    2.3091        .12881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5270        1.9313        .54630E-04   -1.5124    
  16  Prefactor     59.954        42.710        .51821E-04   -1.4158    
  17  Prefactor     .10000E-03    11.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .79347        .75342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.248        34.471        .11937E-03   -1.5037    
  21  Normalizat    1.1810        .26545        .31914E-03   -.87192    
  22  Prefactor     1.0553        .18098        .23763E-03   -.90910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37387e-09
Minuit parameter uncertainties:
  1  0.00319684
  2  3.99684
  3  7.4751
  4  3.02153
  5  3.7819
  6  3.36114e-05
  7  1.84052e-06
  8  0.000204731
  9  34.007
  10  4.62e-05
  11  12.37
  12  4.0777e-05
  13  24.7846
  14  1.23457e-06
  15  1.9313
  16  42.7315
  17  7.07371e-06
  18  4.52146e-06
  19  8.17409e-07
  20  34.5321
  21  0.265756
  22  0.181082
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.265e+01  1.237e+01  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.055e+00  1.811e-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.181e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.08
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 4.01e-08
Energy Flux (Fixed Index): 7.29e-05 +/- 2.76e-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) = 7549.67186575
delta logL = 0.0500263674985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7549.64352426
delta logL = 0.0783678646658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.027       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8822       1.0000          .0000       10.000    
     3 'Normalizat'    1.1914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0528       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=   7549.644     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      283 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.025        16.035        .66768E-04    .43793E-04
   2  Index         1.8822        .30433        .47831E-02    .45949E-03
   3  Normalizat    1.1913        .25283        .31799E-03    .31426E-04
   4  Prefactor     1.0528        .17937        .23793E-03    .37891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.025
  Index      = 1.88219
  Normalizat = 1.19133
  Prefactor  = 1.05281
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.644     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.025        15.809        .13354E-04   -1.4507    
   2  Index         1.8822        .29993        .95661E-03   -.67329    
   3  Normalizat    1.1913        .25302        .12720E-04   -.86871    
   4  Prefactor     1.0528        .17954        .95171E-05   -.90989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94698e-12
Minuit parameter uncertainties:
  1  15.8106
  2  0.30022
  3  0.253277
  4  0.179643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931932': 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) = 7549.64352423
delta logL = 0.0783678938769

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.053e+00  1.796e-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.191e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.16
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.88 +/- 0.30
Photon Flux (Free Index): 9.38e-08 +/- 4.76e-08
Energy Flux (Free Index): 8.85e-05 +/- 5.69e-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/931932/cmap_HighResolution_263174401_263433601_4FGL_J1501.0+2238_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='8.85e-05', photon_flux_error='4.01e-08', dlogl='7.84e-02', energy_flux='7.29e-05', photon_flux2='9.38e-08', job_status='DONE', time_completed='2021-09-10 17:43:53.801490', photon_index_error2='0.30', photon_index2='1.88', ts='21.08', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.69e-05', EG='1.18', time_epoch_completed='1631321033.8', return_code='0', job_id='931932', GAL2='1.05', EG2='1.19', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='4.76e-08', ts2='21.16', photon_index='2.00' WHERE bin_id='92' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:43:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 931932: <4FGL_J1501.0+2238_daily_bin92> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin92> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:31:23 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:31:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:31:24 2021
Terminated at Fri Sep 10 17:43:54 2021
Results reported at Fri Sep 10 17:43:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin92 225.257 22.6364 263174401 263433601 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 :                                   600.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

