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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1550
RA = 226.821, Dec = 17.3519
tmin = 641088001, tmax = 641347201
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='72275', job_status='RUN', time_executed='2021-09-11 01:08:31.532816', time_epoch_executed='1631347711.53' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72275/ft1_4FGL_J1507.2+1721_daily_bin1550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72275/ft2_4FGL_J1507.2+1721_daily_bin1550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72275/ft1_4FGL_J1507.2+1721_daily_bin1550.fits outfile=/scratch/kocevski/72275/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1550.fits ra=226.821 dec=17.3519 rad=12.0 tmin=641088001.0 tmax=641347201.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.09
user 2.80
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72275/ft2_4FGL_J1507.2+1721_daily_bin1550.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/72275/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1550.fits evtable="EVENTS" outfile="/scratch/kocevski/72275/ft1_filtered_4FGL_J1507.2+1721_daily_bin1550.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.74
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72275/ft1_filtered_4FGL_J1507.2+1721_daily_bin1550.fits" evtable="EVENTS" scfile=/scratch/kocevski/72275/ft2_4FGL_J1507.2+1721_daily_bin1550.fits sctable="SC_DATA" outfile=/scratch/kocevski/72275/ltcube_641088001_641347201_4FGL_J1507.2+1721_daily_bin1550.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/72275/ft2_4FGL_J1507.2+1721_daily_bin1550.fits
.....................!
real 12.50
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72275/ft1_filtered_4FGL_J1507.2+1721_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/72275/ft2_4FGL_J1507.2+1721_daily_bin1550.fits sctable="SC_DATA" expcube=/scratch/kocevski/72275/ltcube_641088001_641347201_4FGL_J1507.2+1721_daily_bin1550.fits outfile=/scratch/kocevski/72275/expmap_641088001_641347201_4FGL_J1507.2+1721_daily_bin1550.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/72275/ltcube_641088001_641347201_4FGL_J1507.2+1721_daily_bin1550.fits
.....................!
real 190.45
user 185.16
sys 4.74

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/72275/ft1_filtered_4FGL_J1507.2+1721_daily_bin1550.fits scfile=/scratch/kocevski/72275/ft2_4FGL_J1507.2+1721_daily_bin1550.fits outfile=/scratch/kocevski/72275/cmap_641088001_641347201_4FGL_J1507.2+1721_daily_bin1550.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.3718       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2428       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9522       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9917       1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.611       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24201E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    38.753       1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.416       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.781       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.267       1.0000         .10000E-03   10000.    
    18 'Prefactor '    82.724       1.0000         .10000E-03   10000.    
    19 'norm      '    13.625       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81915       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85343       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=   4965.457     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2391 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0827       -.28923E-06** at limit **
   2  norm          5.3719        2.9809       -.17381E-07   -.30897E-04
   3  Prefactor     6.2430        12.253        .36993E-05   -.43389E-03
   4  norm          5.9523        4.3277        .96926E-06   -.10040E-02
   5  norm          3.9915        4.8431        .32509E-06   -.23006E-04
   6  Prefactor     59.237        44.870       -.17687E-05   -.14961E-03
   7  Prefactor     19.643        50.499        .87059E-05    .25409E-03
   8  Prefactor     16.824        31.055        .28539E-06    .58822E-05
   9  Prefactor     .10000E-03    36.569       -.73036E-07** at limit **
  10  Prefactor     .10000E-03    165.36        .84585E-06** at limit **
  11  Prefactor     .10000E-03    2.3508        .48844E-08** at limit **
  12  norm          .10000E-03    .11811        .96732E-07** at limit **
  13  norm          .10000E-03    8.1370        .62650E-07** at limit **
  14  norm          38.755        40.195        .29870E-06    .24601E-04
  15  Prefactor     67.413        48.111        .28649E-07   -.63545E-04
  16  Prefactor     18.782        10.491        .19758E-06   -.63894E-04
  17  Prefactor     11.267        49.514        .11588E-05   -.10469E-04
  18  Prefactor     82.719        53.007       -.51234E-07   -.10668E-03
  19  norm          13.625        4.7126        .55818E-07   -.20641E-04
  20  Prefactor     .10000E-03    21.864       -.48018E-07** at limit **
  21  Normalizat    .81914        .25444       -.82708E-06   -.55798E-04
  22  Prefactor     .85345        .14702       -.90395E-06   -.16251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.37187
  Prefactor  = 6.243
  norm       = 5.95229
  norm       = 3.99154
  Prefactor  = 59.2375
  Prefactor  = 19.6434
  Prefactor  = 16.8244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 38.7549
  Prefactor  = 67.4134
  Prefactor  = 18.7817
  Prefactor  = 11.2666
  Prefactor  = 82.719
  norm       = 13.625
  Prefactor  = 0.0001
  Normalizat = 0.819142
  Prefactor  = 0.853449
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.457     FROM HESSE     STATUS=OK           342 CALLS     2733 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1054        .16983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3719        2.9813        .87775E-04   -1.5244    
   3  Prefactor     6.2430        12.593        .80331E-03   -1.5208    
   4  norm          5.9523        4.3739        .59103E-03   -1.5220    
   5  norm          3.9915        4.8408        .16100E-03   -1.5308    
   6  Prefactor     59.237        45.011        .52124E-04   -1.4167    
   7  Prefactor     19.643        54.509        .90443E-04   -1.4821    
   8  Prefactor     16.824        30.998        .97657E-04   -1.4887    
   9  Prefactor     .10000E-03    36.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    167.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3535        .10551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .13049        .47000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.1744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          38.755        40.203        .64385E-04   -1.4462    
  15  Prefactor     67.413        48.208        .48883E-04   -1.4064    
  16  Prefactor     18.782        10.524        .92419E-04   -1.4841    
  17  Prefactor     11.267        49.519        .11935E-03   -1.5037    
  18  Prefactor     82.719        53.238        .44163E-04   -1.3886    
  19  norm          13.625        4.7134        .86361E-04   -1.4970    
  20  Prefactor     .10000E-03    21.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81914        .29571        .33734E-03   -.99363    
  22  Prefactor     .85345        .17137        .20183E-03   -.97787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72133e-09
Minuit parameter uncertainties:
  1  3.29226e-05
  2  2.98142
  3  12.598
  4  4.3741
  5  4.84126
  6  45.0364
  7  54.6472
  8  31.0281
  9  3.22531e-05
  10  0.000496712
  11  1.48098e-06
  12  1.56259e-06
  13  6.80388e-06
  14  40.2313
  15  48.2357
  16  10.5248
  17  47.306
  18  53.2688
  19  4.71349
  20  1.8881e-05
  21  0.296293
  22  0.17148
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.875e+01  4.023e+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:  8.534e-01  1.715e-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:  8.191e-01  2.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 226.821 17.352
Photon Index (Fixed Index): 1.53 +/- 0.00
Photon Flux (Fixed Index): 6.53e-09 +/- 6.78e-09
Energy Flux (Fixed Index): 2.19e-05 +/- 2.28e-05

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) = 4963.31861896
delta logL = 2.13835968798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4962.85269001
delta logL = 2.60428864025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.242       1.0000         .10000E-03   10000.    
     2 'alpha     '    .78990E-07   1.0000          .0000       5.0000    
     3 'Normalizat'    .81584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85697       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=   4962.853     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      220 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.242        15.737        .26533E-02   -.12942E-02
   2  alpha         .58287E-14    .51219        .46437    ** at limit **
   3  Normalizat    .81588        .23595        .76312E-01    .19074E-04
   4  Prefactor     .85694        .14486        .44454E-01    .47237E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2421
  alpha      = 5.82867e-15
  Normalizat = 0.815877
  Prefactor  = 0.856939
 **********
 **   18 **HESSE 
 **********

 FCN=   4962.853     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.242        14.308        .10613E-03   -1.4953    
   2  alpha         .58287E-14    .63372        .40676E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81588        .27530        .33779E-03   -.99482    
   4  Prefactor     .85694        .16935        .20140E-03   -.97662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35161e-09
Minuit parameter uncertainties:
  1  14.3111
  2  1.25492e-07
  3  0.275772
  4  0.169457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72275': 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) = 4962.85268994
delta logL = 2.60428871289

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.424e+01  1.431e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  5.829e-15  1.255e-07  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.569e-01  1.695e-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:  8.159e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.62
Ra Dec: 226.821 17.352
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.24e-09 +/- 4.26e-09
Energy Flux (Free Index): 1.21e-04 +/- 1.21e-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/72275/cmap_HighResolution_641088001_641347201_4FGL_J1507.2+1721_daily_bin1550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.53e-09', energy_flux2='1.21e-04', photon_flux_error='6.78e-09', dlogl='2.60e+00', energy_flux='2.19e-05', photon_flux2='4.24e-09', job_status='DONE', time_completed='2021-09-11 01:16:21.051694', photon_index_error2='0.00', photon_index2='0.00', ts='4.41', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.21e-04', EG='0.82', time_epoch_completed='1631348181.05', return_code='0', job_id='72275', GAL2='0.86', EG2='0.82', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='4.26e-09', ts2='9.62', photon_index='1.53' WHERE bin_id='1550' 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@bullet0274>
Subject: Job 72275: <4FGL_J1507.2+1721_daily_bin1550> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1550 226.821 17.3519 641088001 641347201 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 :                                   464.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            600 sec.

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

