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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1525
RA = 225.257, Dec = 22.6364
tmin = 634608001, tmax = 634867201
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='939194', job_status='RUN', time_executed='2021-09-10 17:58:55.256435', time_epoch_executed='1631321935.26' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939194/ft1_4FGL_J1501.0+2238_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939194/ft2_4FGL_J1501.0+2238_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939194/ft1_4FGL_J1501.0+2238_daily_bin1525.fits outfile=/scratch/kocevski/939194/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1525.fits ra=225.257 dec=22.6364 rad=12.0 tmin=634608001.0 tmax=634867201.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.07
user 2.85
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939194/ft1_filtered_4FGL_J1501.0+2238_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/939194/ft2_4FGL_J1501.0+2238_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/939194/ltcube_634608001_634867201_4FGL_J1501.0+2238_daily_bin1525.fits outfile=/scratch/kocevski/939194/expmap_634608001_634867201_4FGL_J1501.0+2238_daily_bin1525.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/939194/ltcube_634608001_634867201_4FGL_J1501.0+2238_daily_bin1525.fits
.....................!
real 191.28
user 186.12
sys 4.77

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/939194/ft1_filtered_4FGL_J1501.0+2238_daily_bin1525.fits scfile=/scratch/kocevski/939194/ft2_4FGL_J1501.0+2238_daily_bin1525.fits outfile=/scratch/kocevski/939194/cmap_634608001_634867201_4FGL_J1501.0+2238_daily_bin1525.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939194/ft1_filtered_4FGL_J1501.0+2238_daily_bin1525.fits scfile=/scratch/kocevski/939194/ft2_4FGL_J1501.0+2238_daily_bin1525.fits outfile=/scratch/kocevski/939194/cmap_HighResolution_634608001_634867201_4FGL_J1501.0+2238_daily_bin1525.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/939194/ft1_filtered_4FGL_J1501.0+2238_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/939194/ft2_4FGL_J1501.0+2238_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/939194/Model_4FGL_J1501.0+2238_daily_bin1525.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/939194/ft1_filtered_4FGL_J1501.0+2238_daily_bin1525.fits.....................!
real 59.35
user 58.00
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7699       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4158       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3574       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9535       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .89421E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9523       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.766       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76695       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1427       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=   8297.778     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     2775 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7705        6.2721        .31478E-03   -.14858E-03
   2  norm          3.4161        2.0520        .98281E-04    .43031E-04
   3  Prefactor     9.3606        7.4105        .13101E-03    .13728E-03
   4  norm          2.9539        2.4099        .12296E-03    .73965E-05
   5  norm          .10000E-03    1.0525        .90860E-03** at limit **
   6  Prefactor     .10000E-03    140.23        .77846E-02** at limit **
   7  Prefactor     .10000E-03    36.216        .18142E-02** at limit **
   8  Prefactor     .10000E-03    16.120        .18142E-02** at limit **
   9  Prefactor     .10000E-03    47.075        .18142E-02** at limit **
  10  Prefactor     .10000E-03    14.177        .18142E-02** at limit **
  11  Prefactor     .10000E-03    33.545        .37629E-02** at limit **
  12  norm          .10000E-03    15.223        .18142E-02** at limit **
  13  Prefactor     .10000E-03    33.263        .18142E-02** at limit **
  14  Prefactor     6.9542        6.3024        .15215E-03    .43935E-04
  15  norm          .10000E-03    .62246        .94851E-03** at limit **
  16  Prefactor     .10000E-03    17.810        .18142E-02** at limit **
  17  Prefactor     .21914        6.5063        .26641E-02    .27437E-03
  18  Prefactor     .10000E-03    7.2157        .18142E-02** at limit **
  19  Prefactor     .10000E-03    2.1644        .18641E-02** at limit **
  20  Prefactor     22.775        24.851        .83950E-04    .89379E-05
  21  Normalizat    .76668        .18468        .29796E-03    .34721E-03
  22  Prefactor     1.1427        .13539        .18328E-03    .18092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77049
  norm       = 3.41614
  Prefactor  = 9.36055
  norm       = 2.95393
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.95415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.219141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7751
  Normalizat = 0.766684
  Prefactor  = 1.14271
 **********
 **   18 **HESSE 
 **********

 FCN=   8297.778     FROM HESSE     STATUS=OK           322 CALLS     3097 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7705        6.2702        .12591E-04   -1.5442    
   2  norm          3.4161        2.0520        .39312E-05   -1.5338    
   3  Prefactor     9.3606        7.4078        .52405E-05   -1.5096    
   4  norm          2.9539        2.4097        .49185E-05   -1.5364    
   5  norm          .10000E-03    1.0526        .18172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    143.77        .31138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.636        .15052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9542        6.3020        .60861E-05   -1.5180    
  15  norm          .10000E-03    .62512        .18970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21914        6.5441        .10657E-03   -1.5614    
  18  Prefactor     .10000E-03    7.2159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1718        .37282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.775        24.847        .33580E-05   -1.4753    
  21  Normalizat    .76668        .18455        .11918E-04   -1.0132    
  22  Prefactor     1.1427        .13541        .36657E-04   -.88113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18017e-10
Minuit parameter uncertainties:
  1  6.27257
  2  2.05203
  3  7.40853
  4  2.4098
  5  1.23358e-06
  6  0.00049547
  7  4.31074e-06
  8  3.90188e-06
  9  5.77734e-05
  10  1.13503e-05
  11  0.000250575
  12  2.19049e-06
  13  3.80074e-05
  14  6.30256
  15  2.50182e-06
  16  5.48133e-05
  17  2.39481
  18  3.1607e-07
  19  1.72615e-05
  20  24.8584
  21  0.184705
  22  0.135452
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  2.506e-04  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.143e+00  1.355e-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:  7.667e-01  1.847e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939194/likelihoodResults_634608001_634867201_4FGL_J1501.0+2238_daily_bin1525.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) = 8297.77847269
delta logL = -0.000138716146466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8297.77833394
delta logL = 3.47608875018e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9715       1.0000          .0000       10.000    
     3 'Normalizat'    .76667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1427       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=   8297.778     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      229 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .69714E-01    .90712E-01** at limit **
   2  Index         1.9587        6.4382        .50000        .12859E-05
   3  Normalizat    .76668        .56308E-03    .67343E-01    .19993E-04
   4  Prefactor     1.1427        .41689E-03    .36151E-01   -.10783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95867
  Normalizat = 0.766681
  Prefactor  = 1.14271
 **********
 **   18 **HESSE 
 **********

 FCN=   8297.778     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      264 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.704        .33008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9587        6.2226        .50000       -.65387    
   3  Normalizat    .76668        .48648E-02    .29796E-03   -1.0132    
   4  Prefactor     1.1427        .36079E-02    .18328E-03   -.88113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.66531e-10
Minuit parameter uncertainties:
  1  0.000104817
  2  84.2062
  3  0.00486484
  4  0.00360786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939194': 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) = 8297.77833393
delta logL = 4.41723386757e-08

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.048e-04  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.959e+00  8.421e+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.143e+00  3.608e-03  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:  7.667e-01  4.865e-03  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/939194/cmap_HighResolution_634608001_634867201_4FGL_J1501.0+2238_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.36e-08', time_completed='2021-09-10 18:11:07.650737', job_id='939194', GAL2='1.14', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1631322667.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1525' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:11:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 939194: <4FGL_J1501.0+2238_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1525> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 17:56:05 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:56:06 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:56:06 2021
Terminated at Fri Sep 10 18:11:08 2021
Results reported at Fri Sep 10 18:11:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1525 225.257 22.6364 634608001 634867201 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

