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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1229
RA = 226.821, Dec = 17.3519
tmin = 557884801, tmax = 558144001
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='70544', job_status='RUN', time_executed='2021-09-11 01:03:31.649468', time_epoch_executed='1631347411.65' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70544/ft1_4FGL_J1507.2+1721_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70544/ft2_4FGL_J1507.2+1721_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70544/ft1_4FGL_J1507.2+1721_daily_bin1229.fits outfile=/scratch/kocevski/70544/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1229.fits ra=226.821 dec=17.3519 rad=12.0 tmin=557884801.0 tmax=558144001.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 4.03
user 3.81
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70544/ft2_4FGL_J1507.2+1721_daily_bin1229.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/70544/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/70544/ft1_filtered_4FGL_J1507.2+1721_daily_bin1229.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70544/ft1_filtered_4FGL_J1507.2+1721_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/70544/ft2_4FGL_J1507.2+1721_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/70544/ltcube_557884801_558144001_4FGL_J1507.2+1721_daily_bin1229.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/70544/ft2_4FGL_J1507.2+1721_daily_bin1229.fits
.....................!
real 11.70
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70544/ft1_filtered_4FGL_J1507.2+1721_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/70544/ft2_4FGL_J1507.2+1721_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/70544/ltcube_557884801_558144001_4FGL_J1507.2+1721_daily_bin1229.fits outfile=/scratch/kocevski/70544/expmap_557884801_558144001_4FGL_J1507.2+1721_daily_bin1229.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/70544/ltcube_557884801_558144001_4FGL_J1507.2+1721_daily_bin1229.fits
.....................!
real 190.63
user 185.92
sys 4.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 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/70544/ft1_filtered_4FGL_J1507.2+1721_daily_bin1229.fits scfile=/scratch/kocevski/70544/ft2_4FGL_J1507.2+1721_daily_bin1229.fits outfile=/scratch/kocevski/70544/cmap_557884801_558144001_4FGL_J1507.2+1721_daily_bin1229.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/70544/ft1_filtered_4FGL_J1507.2+1721_daily_bin1229.fits scfile=/scratch/kocevski/70544/ft2_4FGL_J1507.2+1721_daily_bin1229.fits outfile=/scratch/kocevski/70544/cmap_HighResolution_557884801_558144001_4FGL_J1507.2+1721_daily_bin1229.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.7064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.2182       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0326       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10963E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0971       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0866       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6763       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6616       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1438       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.088       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4002       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.8086       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61307       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=   6058.233     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2351 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7271        .62185E-07** at limit **
   2  norm          7.7064        5.0852       -.22512E-06   -.20799E-03
   3  Prefactor     .10000E-03    3.3143        .22938E-07** at limit **
   4  norm          8.2168        4.9623       -.39310E-07   -.11409E-03
   5  norm          .10000E-03    3.6586        .54051E-08** at limit **
   6  Prefactor     .10000E-03    104.94       -.91624E-06** at limit **
   7  Prefactor     .10000E-03    10.131        .90868E-07** at limit **
   8  Prefactor     2.0227        46.800        .22515E-05    .16211E-05
   9  Prefactor     .10000E-03    51.429        .10197E-05** at limit **
  10  Prefactor     .10000E-03    16.962       -.63376E-06** at limit **
  11  Prefactor     .10000E-03    4.1177       -.42059E-07** at limit **
  12  norm          1.0971        .23088        .13008E-08   -.52810E-03
  13  norm          2.0868        3.0978        .64981E-07   -.15224E-04
  14  norm          .10000E-03    19.090        .21206E-05** at limit **
  15  Prefactor     4.6438        165.32       -.10175E-04   -.59976E-04
  16  Prefactor     4.6603        20.145        .80672E-05   -.40758E-04
  17  Prefactor     1.1520        31.483        .23212E-05   -.11823E-03
  18  Prefactor     13.092        28.780        .27327E-07   -.10271E-04
  19  norm          1.4006        2.1164        .22463E-06   -.13182E-04
  20  Prefactor     .10000E-03    21.602       -.16424E-05** at limit **
  21  Normalizat    1.8085        .26708       -.69483E-07   -.17708E-03
  22  Prefactor     .61303        .14487       -.78798E-06   -.14792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.70641
  Prefactor  = 0.0001
  norm       = 8.21678
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09714
  norm       = 2.0868
  norm       = 0.000100001
  Prefactor  = 4.64384
  Prefactor  = 4.66025
  Prefactor  = 1.15204
  Prefactor  = 13.092
  norm       = 1.40063
  Prefactor  = 0.000100001
  Normalizat = 1.80851
  Prefactor  = 0.613025
 **********
 **   18 **HESSE 
 **********

 FCN=   6058.233     FROM HESSE     STATUS=OK           344 CALLS     2695 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7418        .16527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7064        5.0974        .13947E-03   -1.5153    
   3  Prefactor     .10000E-03    3.3222        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.2168        4.9716        .13013E-03   -1.5135    
   5  norm          .10000E-03    3.6640        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    109.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0227        47.072        .29015E-03   -1.5424    
   9  Prefactor     .10000E-03    52.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1198        .15425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0971        .23173        .16276E-04   -1.5498    
  13  norm          2.0868        3.0807        .16274E-03   -1.5419    
  14  norm          .10000E-03    19.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6438        177.13        .18610E-03   -1.5277    
  16  Prefactor     4.6603        21.113        .93199E-03   -1.5276    
  17  Prefactor     1.1520        236.10        .78862E-02   -1.5493    
  18  Prefactor     13.092        28.781        .11072E-03   -1.4984    
  19  norm          1.4006        2.0874        .13385E-03   -1.5471    
  20  Prefactor     .10000E-03    21.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.8085        .32885        .27565E-03   -.69442    
  22  Prefactor     .61303        .17559        .24971E-03   -1.0704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0505e-09
Minuit parameter uncertainties:
  1  1.86786e-06
  2  5.09769
  3  6.29169e-07
  4  4.97186
  5  2.20533e-07
  6  0.000191209
  7  3.11997e-06
  8  19.5323
  9  0.000197888
  10  9.43985e-05
  11  3.59654e-08
  12  0.231732
  13  3.08093
  14  0.000337721
  15  57.5445
  16  19.8502
  17  33.1164
  18  28.8117
  19  2.08753
  20  0.000281457
  21  0.329258
  22  0.175752
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  3.377e-04  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:  6.130e-01  1.758e-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.809e+00  3.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/70544/likelihoodResults_557884801_558144001_4FGL_J1507.2+1721_daily_bin1229.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) = 6058.23275892
delta logL = -6.48064724373e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6058.23269638
delta logL = -2.26351494348e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8342       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61303       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=   6058.233     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      274 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    768.06        .18142E-01** at limit **
   2  alpha         1.3967        4.0085        .16650        .85349E-08
   3  Normalizat    1.8085        .41099E-01    .27565E-03   -.94380E-04
   4  Prefactor     .61303        .23266E-01    .24971E-03   -.96792E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.39673
  Normalizat = 1.80851
  Prefactor  = 0.613025
 **********
 **   18 **HESSE 
 **********

 FCN=   6058.233     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.921        .33753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3967        2.7992        .66601E-02   -.45706    
   3  Normalizat    1.8085        .30766        .55130E-04   -.69442    
   4  Prefactor     .61303        .17420        .99883E-05   -1.0704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98831e-11
Minuit parameter uncertainties:
  1  6.2326e-05
  2  666.837
  3  0.307993
  4  0.174351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70544': 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) = 6058.23269409
delta logL = 2.12749000639e-08

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  6.233e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.397e+00  6.668e+02  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:  6.130e-01  1.744e-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.809e+00  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

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/70544/cmap_HighResolution_557884801_558144001_4FGL_J1507.2+1721_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-05', job_status='DONE', photon_flux_upper_limit='1.89e-08', time_completed='2021-09-11 01:13:39.302553', job_id='70544', GAL2='0.61', fit_tolerance='1e-08', EG2='1.81', EG='1.81', time_epoch_completed='1631348019.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1229' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:13:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 70544: <4FGL_J1507.2+1721_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1229> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 01:01:25 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:01:26 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:26 2021
Terminated at Sat Sep 11 01:13:40 2021
Results reported at Sat Sep 11 01:13:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1229 226.821 17.3519 557884801 558144001 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 :                                   549.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            735 sec.

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

