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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1195
RA = 225.257, Dec = 22.6364
tmin = 549072001, tmax = 549331201
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='937689', job_status='RUN', time_executed='2021-09-10 17:51:20.081265', time_epoch_executed='1631321480.08' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937689/ft1_4FGL_J1501.0+2238_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937689/ft2_4FGL_J1501.0+2238_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937689/ft1_4FGL_J1501.0+2238_daily_bin1195.fits outfile=/scratch/kocevski/937689/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1195.fits ra=225.257 dec=22.6364 rad=12.0 tmin=549072001.0 tmax=549331201.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 2.91
user 2.69
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937689/ft1_filtered_4FGL_J1501.0+2238_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/937689/ft2_4FGL_J1501.0+2238_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/937689/ltcube_549072001_549331201_4FGL_J1501.0+2238_daily_bin1195.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/937689/ft2_4FGL_J1501.0+2238_daily_bin1195.fits
.....................!
real 14.91
user 14.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937689/ft1_filtered_4FGL_J1501.0+2238_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/937689/ft2_4FGL_J1501.0+2238_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/937689/ltcube_549072001_549331201_4FGL_J1501.0+2238_daily_bin1195.fits outfile=/scratch/kocevski/937689/expmap_549072001_549331201_4FGL_J1501.0+2238_daily_bin1195.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/937689/ltcube_549072001_549331201_4FGL_J1501.0+2238_daily_bin1195.fits
.....................!
real 193.38
user 187.62
sys 5.38

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/937689/ft1_filtered_4FGL_J1501.0+2238_daily_bin1195.fits scfile=/scratch/kocevski/937689/ft2_4FGL_J1501.0+2238_daily_bin1195.fits outfile=/scratch/kocevski/937689/cmap_549072001_549331201_4FGL_J1501.0+2238_daily_bin1195.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/937689/ft1_filtered_4FGL_J1501.0+2238_daily_bin1195.fits scfile=/scratch/kocevski/937689/ft2_4FGL_J1501.0+2238_daily_bin1195.fits outfile=/scratch/kocevski/937689/cmap_HighResolution_549072001_549331201_4FGL_J1501.0+2238_daily_bin1195.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.616       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1939       1.0000         .10000E-03   10000.    
     5 'norm      '    5.0277       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.812       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.147       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10736E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3246       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4058       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.540       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93092       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0174       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=   7496.745     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2349 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.320        .70280E-06** at limit **
   2  norm          1.8963        1.4727        .83336E-07   -.22204E-04
   3  Prefactor     18.615        8.8805       -.10500E-07   -.21164E-04
   4  norm          6.1937        3.2465        .80812E-07   -.15468E-03
   5  norm          5.0280        3.6766        .12967E-06   -.85827E-04
   6  Prefactor     .10000E-03    16.703       -.14851E-04** at limit **
   7  Prefactor     31.819        33.685        .27700E-05    .62943E-04
   8  Prefactor     .10000E-03    25.113       -.22940E-04** at limit **
   9  Prefactor     15.153        32.781        .40778E-05    .59724E-04
  10  Prefactor     .10000E-03    52.986        .10644E-04** at limit **
  11  Prefactor     .10000E-03    3.5794        .42187E-08** at limit **
  12  norm          .10000E-03    19.218        .29123E-04** at limit **
  13  Prefactor     .10000E-03    54.264        .16343E-04** at limit **
  14  Prefactor     .10000E-03    2.7436        .36994E-07** at limit **
  15  norm          2.3246        .94565        .74391E-07   -.17775E-03
  16  Prefactor     .10000E-03    94.764       -.29448E-04** at limit **
  17  Prefactor     .10000E-03    2.0312        .26477E-07** at limit **
  18  Prefactor     .10000E-03    6.8948       -.31695E-07** at limit **
  19  Prefactor     1.4058        1.4767        .51066E-07   -.17855E-03
  20  Prefactor     13.566        52.282        .47922E-04    .75910E-05
  21  Normalizat    .93104        .17649       -.10614E-05    .10231E-03
  22  Prefactor     1.0173        .13017       -.19421E-05    .28101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.8963
  Prefactor  = 18.6152
  norm       = 6.19372
  norm       = 5.028
  Prefactor  = 0.0001
  Prefactor  = 31.8186
  Prefactor  = 0.0001
  Prefactor  = 15.1529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.32463
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40584
  Prefactor  = 13.5657
  Normalizat = 0.931042
  Prefactor  = 1.01732
 **********
 **   18 **HESSE 
 **********

 FCN=   7496.745     FROM HESSE     STATUS=OK           340 CALLS     2689 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8963        1.4690        .90068E-04   -1.5433    
   3  Prefactor     18.615        8.8636        .92829E-04   -1.4845    
   4  norm          6.1937        3.2432        .10742E-03   -1.5210    
   5  norm          5.0280        3.6753        .13690E-03   -1.5259    
   6  Prefactor     .10000E-03    16.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.819        33.622        .71041E-04   -1.4579    
   8  Prefactor     .10000E-03    25.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.153        32.712        .10291E-03   -1.4929    
  10  Prefactor     .10000E-03    53.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6000        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    19.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7625        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3246        .94459        .51547E-04   -1.5403    
  16  Prefactor     .10000E-03    95.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0365        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4058        1.4675        .10458E-03   -1.5471    
  20  Prefactor     13.566        52.272        .10886E-03   -1.4971    
  21  Normalizat    .93104        .20653        .29376E-03   -.95378    
  22  Prefactor     1.0173        .15289        .20744E-03   -.92155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3729e-10
Minuit parameter uncertainties:
  1  2.56181e-05
  2  1.46902
  3  8.86421
  4  3.24329
  5  3.67546
  6  6.34822e-05
  7  33.6418
  8  1.78003e-05
  9  32.7511
  10  7.70915e-05
  11  7.95076e-06
  12  4.98342e-07
  13  0.000145591
  14  7.19283e-06
  15  0.944595
  16  0.000663243
  17  2.65299e-06
  18  3.28622e-06
  19  1.46752
  20  52.4498
  21  0.206707
  22  0.152952
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  7.951e-06  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.017e+00  1.530e-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.310e-01  2.067e-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: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937689/likelihoodResults_549072001_549331201_4FGL_J1501.0+2238_daily_bin1195.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) = 7496.74680664
delta logL = -0.00132291391219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7496.7454837
delta logL = 2.0801962819e-08

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 'Index     '    2.0079       1.0000          .0000       10.000    
     3 'Normalizat'    .93104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0173       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=   7496.745     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      246 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    35.507        .16017E-02** at limit **
   2  Index         2.0247        5.8521        .50000       -.12268E-04
   3  Normalizat    .93104        .14179E-01    .29376E-03   -.21595E-04
   4  Prefactor     1.0173        .10485E-01    .20744E-03   -.22689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100121
  Index      = 2.02472
  Normalizat = 0.931043
  Prefactor  = 1.01731
 **********
 **   18 **HESSE 
 **********

 FCN=   7496.745     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    174.29        .32034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0247        5.0058        .50000       -.63733    
   3  Normalizat    .93104        .32945E-01    .11750E-04   -.95378    
   4  Prefactor     1.0173        .24359E-01    .82975E-05   -.92155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.00242e-09
Minuit parameter uncertainties:
  1  0.00921445
  2  403.988
  3  0.0329458
  4  0.0243591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937689': 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) = 7496.74548367
delta logL = 5.80730556976e-08

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.310e-01  3.295e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/937689/cmap_HighResolution_549072001_549331201_4FGL_J1501.0+2238_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-03', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-09-10 18:03:07.426637', job_id='937689', GAL2='1.02', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631322187.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1195' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:03:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 937689: <4FGL_J1501.0+2238_daily_bin1195> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1195> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 17:51:09 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:51:10 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:10 2021
Terminated at Fri Sep 10 18:03:10 2021
Results reported at Fri Sep 10 18:03:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1195 225.257 22.6364 549072001 549331201 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 :                                   649.44 sec.
    Max Memory :                                 1153 MB
    Average Memory :                             328.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            721 sec.

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

