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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1140
RA = 225.257, Dec = 22.6364
tmin = 534816001, tmax = 535075201
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='937608', job_status='RUN', time_executed='2021-09-10 17:54:41.653788', time_epoch_executed='1631321681.65' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937608/ft1_4FGL_J1501.0+2238_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937608/ft2_4FGL_J1501.0+2238_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937608/ft1_4FGL_J1501.0+2238_daily_bin1140.fits outfile=/scratch/kocevski/937608/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1140.fits ra=225.257 dec=22.6364 rad=12.0 tmin=534816001.0 tmax=535075201.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.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937608/ft1_filtered_4FGL_J1501.0+2238_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/937608/ft2_4FGL_J1501.0+2238_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/937608/ltcube_534816001_535075201_4FGL_J1501.0+2238_daily_bin1140.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/937608/ft2_4FGL_J1501.0+2238_daily_bin1140.fits
.....................!
real 11.89
user 11.58
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937608/ft1_filtered_4FGL_J1501.0+2238_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/937608/ft2_4FGL_J1501.0+2238_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/937608/ltcube_534816001_535075201_4FGL_J1501.0+2238_daily_bin1140.fits outfile=/scratch/kocevski/937608/expmap_534816001_535075201_4FGL_J1501.0+2238_daily_bin1140.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/937608/ltcube_534816001_535075201_4FGL_J1501.0+2238_daily_bin1140.fits
.....................!
real 190.62
user 185.13
sys 5.08

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/937608/ft1_filtered_4FGL_J1501.0+2238_daily_bin1140.fits scfile=/scratch/kocevski/937608/ft2_4FGL_J1501.0+2238_daily_bin1140.fits outfile=/scratch/kocevski/937608/cmap_534816001_535075201_4FGL_J1501.0+2238_daily_bin1140.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/937608/ft1_filtered_4FGL_J1501.0+2238_daily_bin1140.fits scfile=/scratch/kocevski/937608/ft2_4FGL_J1501.0+2238_daily_bin1140.fits outfile=/scratch/kocevski/937608/cmap_HighResolution_534816001_535075201_4FGL_J1501.0+2238_daily_bin1140.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/937608/ft1_filtered_4FGL_J1501.0+2238_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/937608/ft2_4FGL_J1501.0+2238_daily_bin1140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937608/Model_4FGL_J1501.0+2238_daily_bin1140.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/937608/ft1_filtered_4FGL_J1501.0+2238_daily_bin1140.fits.....................!
real 48.38
user 47.00
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.8615       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3554       1.0000         .10000E-03   10000.    
     4 'norm      '    17.965       1.0000         .10000E-03   10000.    
     5 'norm      '    8.6070       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5030       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8931       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21530E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1784       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.895       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   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'    .91747       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0236       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=   5928.437     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2337 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3618        .38354E-06** at limit **
   2  norm          6.8616        3.3402       -.23067E-06    .22634E-05
   3  Prefactor     8.3499        7.5468       -.31069E-05   -.11620E-03
   4  norm          17.965        4.9302        .11350E-06    .61243E-04
   5  norm          8.6074        6.3098        .20604E-05   -.92115E-04
   6  Prefactor     4.4995        55.262       -.97973E-05   -.17310E-04
   7  Prefactor     .10000E-03    22.552        .41211E-05** at limit **
   8  Prefactor     9.8846        17.362        .82567E-06    .12228E-03
   9  Prefactor     .10000E-03    18.302       -.29272E-05** at limit **
  10  Prefactor     .10000E-03    97.075       -.66790E-04** at limit **
  11  Prefactor     6.1791        10.242       -.48784E-07   -.79027E-04
  12  norm          .10000E-03    27.445       -.98196E-05** at limit **
  13  Prefactor     48.865        50.743       -.29621E-04    .20130E-04
  14  Prefactor     .10000E-03    23.302       -.14956E-05** at limit **
  15  norm          2.2321        2.0564       -.23562E-06   -.87975E-03
  16  Prefactor     .10000E-03    21.639        .75885E-05** at limit **
  17  Prefactor     15.008        16.019       -.37548E-06   -.35295E-03
  18  Prefactor     .10000E-03    75.174        .58864E-04** at limit **
  19  Prefactor     .10000E-03    .96026       -.10225E-07** at limit **
  20  Prefactor     .10000E-03    31.057       -.30734E-05** at limit **
  21  Normalizat    .91763        .22328        .32198E-05    .25510E-04
  22  Prefactor     1.0235        .15135        .13144E-05    .10164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.86156
  Prefactor  = 8.34995
  norm       = 17.965
  norm       = 8.60744
  Prefactor  = 4.49951
  Prefactor  = 0.0001
  Prefactor  = 9.88456
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.17909
  norm       = 0.0001
  Prefactor  = 48.8653
  Prefactor  = 0.0001
  norm       = 2.23208
  Prefactor  = 0.0001
  Prefactor  = 15.0079
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.917635
  Prefactor  = 1.02346
 **********
 **   18 **HESSE 
 **********

 FCN=   5928.437     FROM HESSE     STATUS=OK           342 CALLS     2679 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8616        3.3401        .95079E-04   -1.5184    
   3  Prefactor     8.3499        7.5478        .13869E-03   -1.5130    
   4  norm          17.965        4.9318        .85659E-04   -1.4860    
   5  norm          8.6074        6.3066        .13663E-03   -1.5121    
   6  Prefactor     4.4995        56.020        .18973E-03   -1.5284    
   7  Prefactor     .10000E-03    22.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.8846        17.356        .12740E-03   -1.5079    
   9  Prefactor     .10000E-03    18.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    98.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1791        10.237        .16151E-03   -1.5211    
  12  norm          .10000E-03    27.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.865        50.834        .57348E-04   -1.4309    
  14  Prefactor     .10000E-03    24.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2321        2.0627        .79307E-04   -1.5409    
  16  Prefactor     .10000E-03    21.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.008        16.161        .10338E-03   -1.4933    
  18  Prefactor     .10000E-03    75.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .96678        .73663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91763        .26031        .31777E-03   -.95843    
  22  Prefactor     1.0235        .17685        .21408E-03   -.91952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01496e-10
Minuit parameter uncertainties:
  1  6.71582e-05
  2  3.34018
  3  7.54871
  4  4.93189
  5  6.30708
  6  31.7894
  7  1.84893e-05
  8  17.3644
  9  2.90796e-05
  10  0.000845324
  11  10.2403
  12  9.16023e-06
  13  50.8791
  14  8.79543e-05
  15  2.06276
  16  4.12722e-05
  17  16.1658
  18  0.000712236
  19  3.34364e-06
  20  1.43208e-05
  21  0.260664
  22  0.176946
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  6.179e+00  1.024e+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.023e+00  1.769e-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.176e-01  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937608/likelihoodResults_534816001_535075201_4FGL_J1501.0+2238_daily_bin1140.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) = 5927.98425939
delta logL = 0.452685033831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5927.93943601
delta logL = 0.497508412323

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6572       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2810       1.0000          .0000       10.000    
     3 'Normalizat'    .92382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0205       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=   5927.939     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6696        13.415        .32238E-02    .11579E-03
   2  Index         1.2812        .55745        .26343       -.92579E-04
   3  Normalizat    .92389        .21058        .71557E-01   -.14176E-04
   4  Prefactor     1.0205        .14996        .42090E-01   -.73161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.66958
  Index      = 1.2812
  Normalizat = 0.923886
  Prefactor  = 1.02048
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.939     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6696        12.452        .12895E-03   -1.5086    
   2  Index         1.2812        .59169        .10154E-01   -.83868    
   3  Normalizat    .92389        .24439        .31661E-03   -.95626    
   4  Prefactor     1.0205        .17481        .21427E-03   -.92050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89611e-11
Minuit parameter uncertainties:
  1  12.4555
  2  0.594822
  3  0.244688
  4  0.174911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937608': 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) = 5927.93943547
delta logL = 0.49750895728

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  9.670e+00  1.246e+01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.281e+00  5.948e-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.020e+00  1.749e-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.239e-01  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 225.257 22.636
Photon Index (Free Index): 1.28 +/- 0.59
Photon Flux (Free Index): 1.19e-08 +/- 1.74e-08
Energy Flux (Free Index): 7.77e-05 +/- 1.15e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/937608/cmap_HighResolution_534816001_535075201_4FGL_J1501.0+2238_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', comment='SUCCESS', energy_flux2='7.77e-05', dlogl='4.98e-01', photon_flux2='1.19e-08', job_status='DONE', time_completed='2021-09-10 18:04:25.255282', photon_index_error2='0.59', photon_index2='1.28', ts='0.46', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='9.99e-08', energy_flux_error2='1.15e-04', EG='0.92', time_epoch_completed='1631322265.26', return_code='0', job_id='937608', GAL2='1.02', EG2='0.92', return_code2='0', photon_flux_error2='1.74e-08', ts2='1.45', photon_index='2.00' WHERE bin_id='1140' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:04:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 937608: <4FGL_J1501.0+2238_daily_bin1140> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1140 225.257 22.6364 534816001 535075201 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 :                                   573.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            803 sec.

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

