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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1124
RA = 225.257, Dec = 22.6364
tmin = 530668801, tmax = 530928001
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='937585', job_status='RUN', time_executed='2021-09-10 17:54:07.243968', time_epoch_executed='1631321647.24' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937585

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937585/ft1_4FGL_J1501.0+2238_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937585/ft2_4FGL_J1501.0+2238_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937585/ft1_4FGL_J1501.0+2238_daily_bin1124.fits outfile=/scratch/kocevski/937585/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1124.fits ra=225.257 dec=22.6364 rad=12.0 tmin=530668801.0 tmax=530928001.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.62
user 3.41
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937585/ft1_filtered_4FGL_J1501.0+2238_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/937585/ft2_4FGL_J1501.0+2238_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/937585/ltcube_530668801_530928001_4FGL_J1501.0+2238_daily_bin1124.fits outfile=/scratch/kocevski/937585/expmap_530668801_530928001_4FGL_J1501.0+2238_daily_bin1124.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/937585/ltcube_530668801_530928001_4FGL_J1501.0+2238_daily_bin1124.fits
.....................!
real 191.52
user 185.76
sys 5.41

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/937585/ft1_filtered_4FGL_J1501.0+2238_daily_bin1124.fits scfile=/scratch/kocevski/937585/ft2_4FGL_J1501.0+2238_daily_bin1124.fits outfile=/scratch/kocevski/937585/cmap_530668801_530928001_4FGL_J1501.0+2238_daily_bin1124.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937585/ft1_filtered_4FGL_J1501.0+2238_daily_bin1124.fits scfile=/scratch/kocevski/937585/ft2_4FGL_J1501.0+2238_daily_bin1124.fits outfile=/scratch/kocevski/937585/cmap_HighResolution_530668801_530928001_4FGL_J1501.0+2238_daily_bin1124.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/937585/ft1_filtered_4FGL_J1501.0+2238_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/937585/ft2_4FGL_J1501.0+2238_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937585/Model_4FGL_J1501.0+2238_daily_bin1124.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/937585/ft1_filtered_4FGL_J1501.0+2238_daily_bin1124.fits.....................!
real 54.01
user 52.58
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.5050       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9350       1.0000         .10000E-03   10000.    
     5 'norm      '    9.1461       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7175       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9161       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    88.043       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6761       1.0000         .10000E-03   10000.    
    15 'norm      '    .46109       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1817       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.621       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5160       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3744       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79865       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=   7013.242     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2430 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7281        .69537E-08** at limit **
   2  norm          6.5046        2.9192       -.42216E-07   -.35045E-05
   3  Prefactor     11.533        6.9802       -.11490E-06   -.81247E-05
   4  norm          5.9352        3.3876        .87233E-06   -.35224E-03
   5  norm          9.1457        4.8237       -.49052E-07   -.49137E-04
   6  Prefactor     .10000E-03    17.966        .30695E-06** at limit **
   7  Prefactor     4.6778        34.204       -.16575E-05   -.35111E-04
   8  Prefactor     6.9078        17.582        .60612E-06    .40345E-04
   9  Prefactor     .10000E-03    9.1196        .16015E-07** at limit **
  10  Prefactor     .10000E-03    11.021       -.23974E-06** at limit **
  11  Prefactor     3.9149        7.4515        .23637E-06   -.13234E-04
  12  norm          .10000E-03    16.844       -.69830E-06** at limit **
  13  Prefactor     88.027        54.491       -.14247E-05   -.14390E-03
  14  Prefactor     8.6741        10.644        .27645E-06    .30029E-04
  15  norm          .45872        1.1611       -.82600E-07   -.11720E-03
  16  Prefactor     2.1730        41.679        .27267E-05    .29631E-04
  17  Prefactor     13.636        12.946       -.25069E-06   -.24201E-03
  18  Prefactor     8.5112        30.090       -.76627E-06   -.48700E-04
  19  Prefactor     .10000E-03    1.7139       -.39105E-07** at limit **
  20  Prefactor     .10000E-03    13.346        .53540E-06** at limit **
  21  Normalizat    1.3748        .21299        .85554E-06   -.46581E-04
  22  Prefactor     .79852        .14075       -.74823E-06    .44923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.5046
  Prefactor  = 11.5325
  norm       = 5.93518
  norm       = 9.14574
  Prefactor  = 0.0001
  Prefactor  = 4.67781
  Prefactor  = 6.90782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.91493
  norm       = 0.0001
  Prefactor  = 88.0271
  Prefactor  = 8.67411
  norm       = 0.458719
  Prefactor  = 2.17299
  Prefactor  = 13.6359
  Prefactor  = 8.5112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37478
  Prefactor  = 0.798515
 **********
 **   18 **HESSE 
 **********

 FCN=   7013.242     FROM HESSE     STATUS=OK           350 CALLS     2780 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7304        .13508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5046        2.9197        .92980E-04   -1.5198    
   3  Prefactor     11.533        6.9790        .11797E-03   -1.5029    
   4  norm          5.9352        3.4656        .56835E-03   -1.5221    
   5  norm          9.1457        4.8253        .12942E-03   -1.5103    
   6  Prefactor     .10000E-03    17.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6778        34.384        .18526E-03   -1.5275    
   8  Prefactor     6.9078        17.593        .15267E-03   -1.5182    
   9  Prefactor     .10000E-03    9.1252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9149        7.4380        .20387E-03   -1.5312    
  12  norm          .10000E-03    16.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     88.027        55.882        .42819E-04   -1.3829    
  14  Prefactor     8.6741        10.663        .13609E-03   -1.5119    
  15  norm          .45872        .98851        .11578E-02   -1.5573    
  16  Prefactor     2.1730        41.938        .27871E-03   -1.5413    
  17  Prefactor     13.636        12.324        .10853E-03   -1.4969    
  18  Prefactor     8.5112        30.164        .13737E-03   -1.5124    
  19  Prefactor     .10000E-03    1.7512        .10697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3748        .24989        .27872E-03   -.81361    
  22  Prefactor     .79852        .16441        .23852E-03   -.99783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02567e-08
Minuit parameter uncertainties:
  1  1.64487e-07
  2  2.91978
  3  6.97952
  4  3.46574
  5  4.8255
  6  3.6209e-05
  7  25.3849
  8  17.6062
  9  4.40759e-06
  10  3.10665e-05
  11  7.43974
  12  0.000105006
  13  55.9159
  14  10.6657
  15  0.988543
  16  19.1075
  17  12.326
  18  30.2181
  19  1.37771e-06
  20  7.04283e-05
  21  0.250107
  22  0.164511
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.915e+00  7.440e+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:  7.985e-01  1.645e-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.375e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937585/likelihoodResults_530668801_530928001_4FGL_J1501.0+2238_daily_bin1124.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) = 7013.22673979
delta logL = 0.0149481950439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7013.22298367
delta logL = 0.0187043179076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9574       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5295       1.0000          .0000       10.000    
     3 'Normalizat'    1.3590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80298       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7013.223     FROM MIGRAD    STATUS=FAILED       107 CALLS      281 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9430        331.20        .11398E-02   -.26013E-04
   2  Index         2.5329        8.6942        .13732E-01    .47705E-03
   3  Normalizat    1.3589        .37697        .28006E-03   -.15182E-04
   4  Prefactor     .80306        .12177        .23790E-03   -.83151E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7013.223     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      371 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9430        331.20        .31713E-03   -.26013E-04
   2  Index         2.5329        8.6942        .45177E-02    .47705E-03
   3  Normalizat    1.3589        .37697        .22924E-03   -.15182E-04
   4  Prefactor     .80306        .12177        .11504E-03   -.83151E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7013.223     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      402 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9430        357.18        .45591E-04   -.61592E-04
   2  Index         2.5329        8.7182        .27463E-02   -.49427E-05
   3  Normalizat    1.3589        .74659        .11202E-04   -.11772E-04
   4  Prefactor     .80306        .33397        .95159E-05   -.13142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.943
  Index      = 2.53293
  Normalizat = 1.35891
  Prefactor  = 0.803061
 **********
 **   18 **HESSE 
 **********

 FCN=   7013.223     FROM HESSE     STATUS=OK            25 CALLS      427 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9430        24.999        .18236E-05   -1.5365    
   2  Index         2.5329        6.2593        .10985E-03   -.51601    
   3  Normalizat    1.3589        .30456        .22405E-05   -.81825    
   4  Prefactor     .80306        .17878        .19032E-05   -.99616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11912e-12
Minuit parameter uncertainties:
  1  17.1641
  2  4.91549
  3  0.30497
  4  0.178911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937585': 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) = 7013.22298321
delta logL = 0.0187047743302

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.943e+00  1.716e+01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.533e+00  4.915e+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:  8.031e-01  1.789e-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.359e+00  3.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
Ra Dec: 225.257 22.636

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/937585/cmap_HighResolution_530668801_530928001_4FGL_J1501.0+2238_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.15e-08', time_completed='2021-09-10 18:04:43.348129', job_id='937585', GAL2='0.80', fit_tolerance='1e-08', EG2='1.36', EG='1.37', time_epoch_completed='1631322283.35', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.87e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1124' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 937585: <4FGL_J1501.0+2238_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1124 225.257 22.6364 530668801 530928001 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 :                                   634.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

