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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1042
RA = 226.821, Dec = 17.3519
tmin = 509414401, tmax = 509673601
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='70257', job_status='RUN', time_executed='2021-09-11 01:05:00.150986', time_epoch_executed='1631347500.15' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70257/ft1_4FGL_J1507.2+1721_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70257/ft2_4FGL_J1507.2+1721_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70257/ft1_4FGL_J1507.2+1721_daily_bin1042.fits outfile=/scratch/kocevski/70257/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1042.fits ra=226.821 dec=17.3519 rad=12.0 tmin=509414401.0 tmax=509673601.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.41
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70257/ft1_filtered_4FGL_J1507.2+1721_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/70257/ft2_4FGL_J1507.2+1721_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/70257/ltcube_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.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/70257/ft2_4FGL_J1507.2+1721_daily_bin1042.fits
.....................!
real 17.83
user 17.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70257/ft1_filtered_4FGL_J1507.2+1721_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/70257/ft2_4FGL_J1507.2+1721_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/70257/ltcube_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.fits outfile=/scratch/kocevski/70257/expmap_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.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/70257/ltcube_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.fits
.....................!
real 191.57
user 185.91
sys 5.22

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/70257/ft1_filtered_4FGL_J1507.2+1721_daily_bin1042.fits scfile=/scratch/kocevski/70257/ft2_4FGL_J1507.2+1721_daily_bin1042.fits outfile=/scratch/kocevski/70257/cmap_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70257/ft1_filtered_4FGL_J1507.2+1721_daily_bin1042.fits scfile=/scratch/kocevski/70257/ft2_4FGL_J1507.2+1721_daily_bin1042.fits outfile=/scratch/kocevski/70257/cmap_HighResolution_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.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.59
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70257/ft1_filtered_4FGL_J1507.2+1721_daily_bin1042.fits', '/scratch/kocevski/70257/ft2_4FGL_J1507.2+1721_daily_bin1042.fits', expMap='/scratch/kocevski/70257/expmap_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.fits', expCube='/scratch/kocevski/70257/ltcube_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70257/Model_4FGL_J1507.2+1721_daily_bin1042.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/70257/ft1_filtered_4FGL_J1507.2+1721_daily_bin1042.fits
Spacecraft file(s): /scratch/kocevski/70257/ft2_4FGL_J1507.2+1721_daily_bin1042.fits
Exposure map: /scratch/kocevski/70257/expmap_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.fits
Exposure cube: /scratch/kocevski/70257/ltcube_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70257/Model_4FGL_J1507.2+1721_daily_bin1042.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) = 7083.03400877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3261       1.0000         .10000E-03   10000.    
     2 'norm      '    10.354       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .97872       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8465       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7273       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .83114       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.924       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.929       1.0000         .10000E-03   10000.    
    19 'norm      '    .77790E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4631       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78095       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=   7083.027     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2412 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3187        9.4048        .23907E-05    .21372E-04
   2  norm          10.354        3.6165        .79372E-07    .12816E-03
   3  Prefactor     .99295        5.0182       -.21236E-05    .11722E-03
   4  norm          6.8459        3.3888       -.43487E-07    .24466E-03
   5  norm          .10000E-03    1.0672        .20133E-06** at limit **
   6  Prefactor     8.7202        28.173        .10306E-04    .45784E-04
   7  Prefactor     .10000E-03    19.937        .34691E-06** at limit **
   8  Prefactor     .10000E-03    13.488       -.35759E-06** at limit **
   9  Prefactor     .10000E-03    28.253       -.18292E-06** at limit **
  10  Prefactor     .10000E-03    421.93       -.76280E-05** at limit **
  11  Prefactor     .10000E-03    6.1325        .10113E-06** at limit **
  12  norm          .83115        .22603        .10970E-07   -.72172E-05
  13  norm          .10000E-03    3.4348        .26800E-06** at limit **
  14  norm          11.938        36.581       -.34318E-05   -.51469E-05
  15  Prefactor     21.939        55.485        .67259E-05   -.16791E-05
  16  Prefactor     .10000E-03    2.1754        .55763E-08** at limit **
  17  Prefactor     .10000E-03    90.362        .34753E-05** at limit **
  18  Prefactor     35.930        32.993       -.11290E-05    .18743E-04
  19  norm          .71642E-02    1.0002       -.53701E-06    .12317E-02
  20  Prefactor     .10000E-03    24.523       -.53001E-06** at limit **
  21  Normalizat    1.4630        .22134       -.90937E-06    .28596E-03
  22  Prefactor     .78099        .13057       -.30933E-06    .21872E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31866
  norm       = 10.3544
  Prefactor  = 0.992951
  norm       = 6.8459
  norm       = 0.0001
  Prefactor  = 8.72015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.831151
  norm       = 0.0001
  norm       = 11.9379
  Prefactor  = 21.9393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.9295
  norm       = 0.00716415
  Prefactor  = 0.0001
  Normalizat = 1.46302
  Prefactor  = 0.780986
 **********
 **   18 **HESSE 
 **********

 FCN=   7083.027     FROM HESSE     STATUS=OK           352 CALLS     2764 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3187        9.3409        .22195E-03   -1.5344    
   2  norm          10.354        3.6186        .92167E-04   -1.5064    
   3  Prefactor     .99295        16.945        .31371E-02   -1.5509    
   4  norm          6.8459        3.3769        .10387E-03   -1.5185    
   5  norm          .10000E-03    1.0688        .84908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7202        28.403        .13568E-03   -1.5117    
   7  Prefactor     .10000E-03    20.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    438.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .83115        .22608        .19955E-04   -1.5526    
  13  norm          .10000E-03    3.4494        .15233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.938        36.639        .11597E-03   -1.5017    
  15  Prefactor     21.939        55.283        .85544E-04   -1.4771    
  16  Prefactor     .10000E-03    2.1803        .12122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    92.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.930        33.051        .66859E-04   -1.4508    
  19  norm          .71642E-02    1.3829        .31446E-01   -1.5691    
  20  Prefactor     .10000E-03    24.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4630        .26436        .28088E-03   -.78823    
  22  Prefactor     .78099        .15682        .22563E-03   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85065e-09
Minuit parameter uncertainties:
  1  9.34505
  2  3.61863
  3  8.20605
  4  3.37704
  5  2.95779e-07
  6  28.4473
  7  1.37893e-05
  8  3.47245e-05
  9  0.000177448
  10  0.0013003
  11  1.59721e-06
  12  0.226083
  13  1.46428e-06
  14  36.7082
  15  55.4124
  16  7.34906e-07
  17  1.04865e-05
  18  33.0679
  19  0.197682
  20  4.20465e-05
  21  0.264605
  22  0.156909
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.194e+01  3.671e+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:  7.810e-01  1.569e-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:  1.463e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 2.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70257/likelihoodResults_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.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) = 7081.57281809
delta logL = 1.45465469855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7081.55433526
delta logL = 1.47313752149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46697       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4949       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80980       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.

 FCN=   7081.554     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      260 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46902        4.3780        .79847E-02   -.79567E-04
   2  alpha         4.4940        4.0227        .26192        .37104E-04
   3  Normalizat    1.3546        .58510E-01    .65462E-01   -.59356E-04
   4  Prefactor     .80969        .35496E-01    .43845E-01   -.62237E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.469016
  alpha      = 4.49403
  Normalizat = 1.35461
  Prefactor  = 0.809692
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.554     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46902        9.2108        .36189E-03   -1.5571    
   2  alpha         4.4940        4.5981        .11732E-02    .92332    
   3  Normalizat    1.3546        .24060        .28958E-03   -.81951    
   4  Prefactor     .80969        .14387        .22163E-03   -.99372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.52941e-11
Minuit parameter uncertainties:
  1  4.15721
  2  3.01738
  3  0.240802
  4  0.143935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70257': 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) = 7081.55433057
delta logL = 1.47314221121

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  4.690e-01  4.157e+00  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  4.494e+00  3.017e+00  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:  8.097e-01  1.439e-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:  1.355e+00  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 226.821 17.352
Photon Index (Free Index): 4.49 +/- 3.02
Photon Flux (Free Index): 1.08e-07 +/- 9.57e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.29e-05

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/70257/cmap_HighResolution_509414401_509673601_4FGL_J1507.2+1721_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-05', comment='SUCCESS', energy_flux2='1.92e-05', dlogl='1.47e+00', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-11 01:16:21.788982', photon_index_error2='3.02', photon_index2='4.49', ts='0.14', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='2.44e-08', energy_flux_error2='1.29e-05', EG='1.46', time_epoch_completed='1631348181.79', return_code='0', job_id='70257', GAL2='0.81', EG2='1.35', return_code2='102', photon_flux_error2='9.57e-08', ts2='3.17', photon_index='1.53' WHERE bin_id='1042' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 70257: <4FGL_J1507.2+1721_daily_bin1042> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1042> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 01:01:04 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:01:06 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:01:06 2021
Terminated at Sat Sep 11 01:16:22 2021
Results reported at Sat Sep 11 01:16:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1042 226.821 17.3519 509414401 509673601 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 :                                   608.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             261.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

