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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin955
RA = 226.821, Dec = 17.3519
tmin = 486864001, tmax = 487123201
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='68961', job_status='RUN', time_executed='2021-09-11 00:59:32.591322', time_epoch_executed='1631347172.59' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68961/ft1_4FGL_J1507.2+1721_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68961/ft2_4FGL_J1507.2+1721_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68961/ft1_4FGL_J1507.2+1721_daily_bin955.fits outfile=/scratch/kocevski/68961/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin955.fits ra=226.821 dec=17.3519 rad=12.0 tmin=486864001.0 tmax=487123201.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.60
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/68961/ft1_filtered_4FGL_J1507.2+1721_daily_bin955.fits" evtable="EVENTS" scfile=/scratch/kocevski/68961/ft2_4FGL_J1507.2+1721_daily_bin955.fits sctable="SC_DATA" outfile=/scratch/kocevski/68961/ltcube_486864001_487123201_4FGL_J1507.2+1721_daily_bin955.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/68961/ft2_4FGL_J1507.2+1721_daily_bin955.fits
.....................!
real 11.69
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68961/ft1_filtered_4FGL_J1507.2+1721_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/68961/ft2_4FGL_J1507.2+1721_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/68961/ltcube_486864001_487123201_4FGL_J1507.2+1721_daily_bin955.fits outfile=/scratch/kocevski/68961/expmap_486864001_487123201_4FGL_J1507.2+1721_daily_bin955.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/68961/ltcube_486864001_487123201_4FGL_J1507.2+1721_daily_bin955.fits
.....................!
real 190.14
user 185.01
sys 4.82

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/68961/ft1_filtered_4FGL_J1507.2+1721_daily_bin955.fits scfile=/scratch/kocevski/68961/ft2_4FGL_J1507.2+1721_daily_bin955.fits outfile=/scratch/kocevski/68961/cmap_486864001_487123201_4FGL_J1507.2+1721_daily_bin955.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/68961/ft1_filtered_4FGL_J1507.2+1721_daily_bin955.fits scfile=/scratch/kocevski/68961/ft2_4FGL_J1507.2+1721_daily_bin955.fits outfile=/scratch/kocevski/68961/cmap_HighResolution_486864001_487123201_4FGL_J1507.2+1721_daily_bin955.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.57
user 0.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.555       1.0000         .10000E-03   10000.    
     2 'norm      '    5.5538       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.556       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7780       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.128       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.917       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6494       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5073       1.0000         .10000E-03   10000.    
    13 'norm      '    6.2188       1.0000         .10000E-03   10000.    
    14 'norm      '    14.549       1.0000         .10000E-03   10000.    
    15 'Prefactor '    97.224       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.957       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29817E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6016       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.456       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0345       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98431       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=   7333.295     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2406 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.555        8.1482        .20768E-06   -.57536E-03
   2  norm          5.5538        2.7065        .16846E-07    .52236E-04
   3  Prefactor     .10008E-03    4.8484        .25584E-05** at limit **
   4  norm          10.556        3.7079        .74467E-07   -.61663E-03
   5  norm          3.7779        3.4018        .17323E-06    .66943E-04
   6  Prefactor     15.127        18.934        .69535E-06   -.89315E-04
   7  Prefactor     11.815        30.533       -.47230E-05   -.30322E-04
   8  Prefactor     .10000E-03    12.773        .34934E-05** at limit **
   9  Prefactor     18.917        20.033        .22043E-06   -.34679E-04
  10  Prefactor     .10000E-03    13.962       -.11910E-04** at limit **
  11  Prefactor     6.6492        6.8920       -.78747E-06   -.11386E-03
  12  norm          1.5073        .30981        .28629E-07   -.63049E-03
  13  norm          6.2186        6.2112        .58574E-06    .83285E-04
  14  norm          14.545        29.271       -.26911E-05   -.36284E-05
  15  Prefactor     97.225        48.312        .61383E-06    .11116E-04
  16  Prefactor     .10000E-03    4.4748        .18529E-06** at limit **
  17  Prefactor     34.961        30.284        .17665E-05    .25685E-04
  18  Prefactor     .10002E-03    17.755       -.22758E-05** at limit **
  19  norm          1.6012        2.5279       -.72565E-06   -.90268E-03
  20  Prefactor     24.472        30.990        .10823E-04    .84767E-04
  21  Normalizat    1.0344        .22359       -.10922E-05   -.16601E-03
  22  Prefactor     .98445        .13654       -.73020E-07   -.19556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5548
  norm       = 5.55378
  Prefactor  = 0.000100083
  norm       = 10.5556
  norm       = 3.77794
  Prefactor  = 15.1266
  Prefactor  = 11.8149
  Prefactor  = 0.0001
  Prefactor  = 18.9165
  Prefactor  = 0.0001
  Prefactor  = 6.64919
  norm       = 1.50734
  norm       = 6.21856
  norm       = 14.5445
  Prefactor  = 97.2248
  Prefactor  = 0.0001
  Prefactor  = 34.9608
  Prefactor  = 0.000100019
  norm       = 1.60125
  Prefactor  = 24.4723
  Normalizat = 1.03437
  Prefactor  = 0.984455
 **********
 **   18 **HESSE 
 **********

 FCN=   7333.295     FROM HESSE     STATUS=OK           356 CALLS     2762 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.555        8.0109        .11785E-03   -1.5028    
   2  norm          5.5538        2.7077        .95804E-04   -1.5237    
   3  Prefactor     .10008E-03    14.430        .34689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.556        3.7002        .93743E-04   -1.5058    
   5  norm          3.7779        3.4073        .14547E-03   -1.5319    
   6  Prefactor     15.127        18.913        .10298E-03   -1.4930    
   7  Prefactor     11.815        30.590        .11651E-03   -1.5020    
   8  Prefactor     .10000E-03    12.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.917        20.038        .92088E-04   -1.4838    
  10  Prefactor     .10000E-03    13.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6492        6.8973        .15562E-03   -1.5192    
  12  norm          1.5073        .31003        .20156E-04   -1.5462    
  13  norm          6.2186        6.2204        .16098E-03   -1.5209    
  14  norm          14.545        29.277        .10501E-03   -1.4945    
  15  Prefactor     97.225        48.347        .40766E-04   -1.3733    
  16  Prefactor     .10000E-03    4.5431        .17688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.961        30.297        .67780E-04   -1.4525    
  18  Prefactor     .10002E-03    140.30        .68597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6012        2.5400        .16549E-03   -1.5455    
  20  Prefactor     24.472        31.018        .81001E-04   -1.4718    
  21  Normalizat    1.0344        .26387        .33061E-03   -.91888    
  22  Prefactor     .98445        .16256        .21307E-03   -.93250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36765e-09
Minuit parameter uncertainties:
  1  8.01162
  2  2.70778
  3  0.00218801
  4  3.70025
  5  3.40748
  6  18.9201
  7  30.6305
  8  5.87624e-06
  9  20.0448
  10  1.67188e-06
  11  6.89812
  12  0.310034
  13  6.22106
  14  29.3059
  15  48.3668
  16  4.71223e-06
  17  30.3103
  18  0.00324399
  19  2.54018
  20  31.0384
  21  0.264205
  22  0.162638
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.454e+01  2.931e+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:  9.845e-01  1.626e-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.034e+00  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/68961/likelihoodResults_486864001_487123201_4FGL_J1507.2+1721_daily_bin955.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) = 7333.01664817
delta logL = 0.278699157664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7332.96688284
delta logL = 0.32846448869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6617       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6327       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98093       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=   7332.967     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      254 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6653        20.804        .14488E-03    .17727E-03
   2  alpha         2.6327        1.4270        .17383E-01    .84593E-04
   3  Normalizat    1.0348        .25230        .33049E-03   -.80701E-04
   4  Prefactor     .98099        .16011        .21331E-03   -.52123E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.66525
  alpha      = 2.63272
  Normalizat = 1.03477
  Prefactor  = 0.980987
 **********
 **   18 **HESSE 
 **********

 FCN=   7332.967     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6653        17.628        .57950E-05   -1.5154    
   2  alpha         2.6327        1.2310        .69533E-03    .53113E-01
   3  Normalizat    1.0348        .25246        .13220E-04   -.91874    
   4  Prefactor     .98099        .16025        .85325E-05   -.93366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04147e-09
Minuit parameter uncertainties:
  1  17.6398
  2  1.2873
  3  0.252751
  4  0.160332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68961': 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) = 7332.96688263
delta logL = 0.328464692847

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  7.665e+00  1.764e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  2.633e+00  1.287e+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:  9.810e-01  1.603e-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.035e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 226.821 17.352
Photon Index (Free Index): 2.63 +/- 1.29
Photon Flux (Free Index): 8.87e-09 +/- 1.63e-08
Energy Flux (Free Index): 5.21e-06 +/- 7.47e-06

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/68961/cmap_HighResolution_486864001_487123201_4FGL_J1507.2+1721_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-05', comment='SUCCESS', energy_flux2='5.21e-06', dlogl='3.28e-01', photon_flux2='8.87e-09', job_status='DONE', time_completed='2021-09-11 01:09:57.388582', photon_index_error2='1.29', photon_index2='2.63', ts='0.38', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='2.12e-08', energy_flux_error2='7.47e-06', EG='1.03', time_epoch_completed='1631347797.39', return_code='0', job_id='68961', GAL2='0.98', EG2='1.03', return_code2='0', photon_flux_error2='1.63e-08', ts2='1.04', photon_index='1.53' WHERE bin_id='955' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:09:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 68961: <4FGL_J1507.2+1721_daily_bin955> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin955> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:56:55 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:56:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:56:56 2021
Terminated at Sat Sep 11 01:09:58 2021
Results reported at Sat Sep 11 01:09:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin955 226.821 17.3519 486864001 487123201 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 :                                   613.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

