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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1558
RA = 226.821, Dec = 17.3519
tmin = 643161601, tmax = 643420801
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='72287', job_status='RUN', time_executed='2021-09-11 01:08:56.620842', time_epoch_executed='1631347736.62' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72287/ft1_4FGL_J1507.2+1721_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72287/ft1_4FGL_J1507.2+1721_daily_bin1558.fits outfile=/scratch/kocevski/72287/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1558.fits ra=226.821 dec=17.3519 rad=12.0 tmin=643161601.0 tmax=643420801.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.65
user 3.26
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.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/72287/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1558.fits evtable="EVENTS" outfile="/scratch/kocevski/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.fits" evtable="EVENTS" scfile=/scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits sctable="SC_DATA" outfile=/scratch/kocevski/72287/ltcube_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.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/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits
.....................!
real 11.82
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/72287/ltcube_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.fits outfile=/scratch/kocevski/72287/expmap_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.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/72287/ltcube_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.fits
.....................!
real 192.06
user 187.33
sys 4.11

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 144 point sources and 0 extended sources

Setting source of interest to:
4FGL J1507.2+1721 @ 226.821 17.3519

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.fits scfile=/scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits outfile=/scratch/kocevski/72287/cmap_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.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=226.821 yref=17.3519 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.fits scfile=/scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits outfile=/scratch/kocevski/72287/cmap_HighResolution_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.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=226.821 yref=17.3519 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.63
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/72287/Model_4FGL_J1507.2+1721_daily_bin1558.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/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.fits.....................!
real 49.23
user 47.72
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.fits', '/scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits', expMap='/scratch/kocevski/72287/expmap_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.fits', expCube='/scratch/kocevski/72287/ltcube_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72287/Model_4FGL_J1507.2+1721_daily_bin1558.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1507.2+1721'

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.297e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/72287/ft1_filtered_4FGL_J1507.2+1721_daily_bin1558.fits
Spacecraft file(s): /scratch/kocevski/72287/ft2_4FGL_J1507.2+1721_daily_bin1558.fits
Exposure map: /scratch/kocevski/72287/expmap_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.fits
Exposure cube: /scratch/kocevski/72287/ltcube_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72287/Model_4FGL_J1507.2+1721_daily_bin1558.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) = 6323.83317769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0150       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6438       1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13707E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.013       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .26385E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    7.1349       1.0000         .10000E-03   10000.    
    14 'norm      '    66.095       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.494       1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.940       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7691       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .69894       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6323.824     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2374 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1859       -.17989E-06** at limit **
   2  norm          1.0159        2.7436       -.10666E-05   -.11138E-02
   3  Prefactor     3.6435        3.8356        .47476E-06   -.19057E-03
   4  norm          .10000E-03    1.5913       -.44597E-07** at limit **
   5  norm          .10000E-03    2.5909       -.72005E-07** at limit **
   6  Prefactor     .10000E-03    9.9372       -.18077E-05** at limit **
   7  Prefactor     14.011        16.587       -.15201E-05    .54470E-04
   8  Prefactor     .10000E-03    12.933        .27540E-05** at limit **
   9  Prefactor     .10000E-03    6.0220       -.23836E-05** at limit **
  10  Prefactor     .10000E-03    9.8168       -.14049E-05** at limit **
  11  Prefactor     .10000E-03    5.0167        .75646E-06** at limit **
  12  norm          .26330E-01    .76942E-01   -.11917E-06   -.37118E-02
  13  norm          7.1353        5.6475        .68137E-06    .14361E-02
  14  norm          66.097        52.464        .16973E-05   -.30031E-04
  15  Prefactor     .10000E-03    12.115       -.83666E-06** at limit **
  16  Prefactor     .10000E-03    7.3678        .31114E-05** at limit **
  17  Prefactor     70.488        35.894       -.53912E-05    .24695E-03
  18  Prefactor     72.937        38.522       -.21581E-05    .98888E-04
  19  norm          2.7690        2.3330        .49601E-07   -.25443E-05
  20  Prefactor     .10000E-03    25.847       -.47396E-06** at limit **
  21  Normalizat    .69909        .20657        .20278E-05    .47719E-05
  22  Prefactor     1.1297        .13490        .11317E-06    .62230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.01594
  Prefactor  = 3.64347
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0263301
  norm       = 7.13534
  norm       = 66.0969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.4877
  Prefactor  = 72.9374
  norm       = 2.76904
  Prefactor  = 0.0001
  Normalizat = 0.699093
  Prefactor  = 1.12973
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.824     FROM HESSE     STATUS=OK           338 CALLS     2712 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2213        .15887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0159        2.8271        .21565E-03   -1.5506    
   3  Prefactor     3.6435        3.8255        .15413E-03   -1.5326    
   4  norm          .10000E-03    1.6486        .19578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.0849        .24750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.011        16.530        .10700E-03   -1.4959    
   8  Prefactor     .10000E-03    13.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0303        .17375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .26330E-01    .88162E-01    .36931E-03   -1.5676    
  13  norm          7.1353        5.8728        .75088E-03   -1.5174    
  14  norm          66.097        52.411        .49366E-04   -1.4080    
  15  Prefactor     .10000E-03    12.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.488        34.983        .47812E-04   -1.4027    
  18  Prefactor     72.937        38.401        .47009E-04   -1.3998    
  19  norm          2.7690        2.3363        .10802E-03   -1.5375    
  20  Prefactor     .10000E-03    25.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .69909        .23916        .33112E-03   -1.0393    
  22  Prefactor     1.1297        .15854        .17772E-03   -.88522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47408e-09
Minuit parameter uncertainties:
  1  8.51549e-06
  2  2.82746
  3  3.82575
  4  5.05552e-06
  5  4.96828e-05
  6  3.22193e-05
  7  16.5354
  8  0.000102779
  9  3.99938e-05
  10  3.09675e-05
  11  2.31638e-05
  12  0.0881622
  13  5.87328
  14  52.448
  15  2.69404e-05
  16  9.51453e-05
  17  34.9929
  18  38.4139
  19  2.33642
  20  7.18557e-05
  21  0.239513
  22  0.158604
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  6.610e+01  5.245e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.130e+00  1.586e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  6.991e-01  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.82
Ra Dec: 226.821 17.352
Photon Index (Fixed Index): 1.53 +/- 0.00
Photon Flux (Fixed Index): 1.11e-08 +/- 8.84e-09
Energy Flux (Fixed Index): 3.74e-05 +/- 2.97e-05

TS (Fixed Index): 3.82
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 3.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72287/likelihoodResults_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.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) = 6322.95625831
delta logL = 0.867475316296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6322.92066193
delta logL = 0.903071697448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.047       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4247       1.0000          .0000       5.0000    
     3 'Normalizat'    .69488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+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=   6322.921     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.096        42.925        .35954E-03    .40583E-03
   2  alpha         2.4246        .75679        .97813E-02    .92161E-04
   3  Normalizat    .69490        .23312        .33189E-03   -.72413E-04
   4  Prefactor     1.1271        .15683        .17777E-03    .21828E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 31.0964
  alpha      = 2.42458
  Normalizat = 0.694901
  Prefactor  = 1.12712
 **********
 **   18 **HESSE 
 **********

 FCN=   6322.921     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.096        38.321        .71909E-04   -1.4592    
   2  alpha         2.4246        .67771        .39125E-03   -.30172E-01
   3  Normalizat    .69490        .23319        .13276E-04   -1.0409    
   4  Prefactor     1.1271        .15693        .35554E-04   -.88604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09645e-10
Minuit parameter uncertainties:
  1  38.3509
  2  0.686304
  3  0.233526
  4  0.156995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72287': 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) = 6322.92065962
delta logL = 0.903074002534

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.110e+01  3.835e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  2.425e+00  6.863e-01  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.127e+00  1.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  6.949e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.62
Ra Dec: 226.821 17.352
Photon Index (Free Index): 2.42 +/- 0.69
Photon Flux (Free Index): 2.24e-08 +/- 1.83e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.44e-05

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/72287/cmap_HighResolution_643161601_643420801_4FGL_J1507.2+1721_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-04', comment='SUCCESS', photon_flux='1.11e-08', energy_flux2='1.73e-05', photon_flux_error='8.84e-09', dlogl='9.03e-01', energy_flux='3.74e-05', photon_flux2='2.24e-08', job_status='DONE', time_completed='2021-09-11 01:18:38.429176', photon_index_error2='0.69', photon_index2='2.42', ts='3.82', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='3.47e-08', energy_flux_error2='1.44e-05', EG='0.70', time_epoch_completed='1631348318.43', return_code='0', job_id='72287', GAL2='1.13', EG2='0.69', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='1.83e-08', ts2='5.62', photon_index='1.53' WHERE bin_id='1558' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:18:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 72287: <4FGL_J1507.2+1721_daily_bin1558> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1558> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 01:06:22 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:06:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 01:06:24 2021
Terminated at Sat Sep 11 01:18:39 2021
Results reported at Sat Sep 11 01:18:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1558 226.821 17.3519 643161601 643420801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1507.2+1721 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

