/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 178 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 = 7560
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin56
RA = 226.821, Dec = 17.3519
tmin = 253843201, tmax = 254102401
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='63605', job_status='RUN', time_executed='2021-09-11 00:49:05.766390', time_epoch_executed='1631346545.77' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63605/ft1_4FGL_J1507.2+1721_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63605/ft2_4FGL_J1507.2+1721_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63605/ft1_4FGL_J1507.2+1721_daily_bin56.fits outfile=/scratch/kocevski/63605/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin56.fits ra=226.821 dec=17.3519 rad=12.0 tmin=253843201.0 tmax=254102401.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 1.49
user 1.30
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63605/ft1_filtered_4FGL_J1507.2+1721_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/63605/ft2_4FGL_J1507.2+1721_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/63605/ltcube_253843201_254102401_4FGL_J1507.2+1721_daily_bin56.fits outfile=/scratch/kocevski/63605/expmap_253843201_254102401_4FGL_J1507.2+1721_daily_bin56.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/63605/ltcube_253843201_254102401_4FGL_J1507.2+1721_daily_bin56.fits
.....................!
real 190.59
user 185.11
sys 4.47

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/63605/ft1_filtered_4FGL_J1507.2+1721_daily_bin56.fits scfile=/scratch/kocevski/63605/ft2_4FGL_J1507.2+1721_daily_bin56.fits outfile=/scratch/kocevski/63605/cmap_253843201_254102401_4FGL_J1507.2+1721_daily_bin56.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63605/ft1_filtered_4FGL_J1507.2+1721_daily_bin56.fits scfile=/scratch/kocevski/63605/ft2_4FGL_J1507.2+1721_daily_bin56.fits outfile=/scratch/kocevski/63605/cmap_HighResolution_253843201_254102401_4FGL_J1507.2+1721_daily_bin56.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.4288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .47507       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4512       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.336       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6011       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1235       1.0000         .10000E-03   10000.    
    13 'norm      '    .11468E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    72.329       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.487       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8887       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91702       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=   8015.785     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2399 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7492        .13170E-07** at limit **
   2  norm          7.4283        3.3923       -.64944E-07    .37500E-04
   3  Prefactor     .10000E-03    1.4438        .17602E-07** at limit **
   4  norm          .48807        1.8551       -.30266E-06    .77177E-04
   5  norm          6.4501        5.3016        .62739E-06   -.13355E-02
   6  Prefactor     19.316        25.731       -.96589E-06    .72266E-05
   7  Prefactor     .13230        15.103       -.97798E-07   -.33002E-04
   8  Prefactor     .10000E-03    6.1221        .43187E-08** at limit **
   9  Prefactor     .10000E-03    12.007        .49314E-06** at limit **
  10  Prefactor     .10000E-03    13.743        .99631E-06** at limit **
  11  Prefactor     3.5995        4.9161        .22521E-05   -.19218E-02
  12  norm          3.1240        .35624        .68901E-10    .35147E-03
  13  norm          .10000E-03    4.8364        .68503E-07** at limit **
  14  norm          .10000E-03    36.619       -.37436E-06** at limit **
  15  Prefactor     72.345        46.820        .53876E-06    .26166E-04
  16  Prefactor     3.3738        5.6891       -.36639E-06   -.17149E-03
  17  Prefactor     14.447        29.527       -.11884E-04   -.41073E-03
  18  Prefactor     .10000E-03    8.9484        .79019E-09** at limit **
  19  norm          1.8885        1.8442        .39135E-07   -.36117E-05
  20  Prefactor     .10000E-03    13.095       -.14657E-05** at limit **
  21  Normalizat    1.0824        .21539        .15891E-05    .20416E-04
  22  Prefactor     .91718        .12819       -.42443E-06    .20453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.42833
  Prefactor  = 0.0001
  norm       = 0.488071
  norm       = 6.45008
  Prefactor  = 19.3163
  Prefactor  = 0.132302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59952
  norm       = 3.124
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 72.3453
  Prefactor  = 3.37376
  Prefactor  = 14.447
  Prefactor  = 0.0001
  norm       = 1.88852
  Prefactor  = 0.0001
  Normalizat = 1.08236
  Prefactor  = 0.917179
 **********
 **   18 **HESSE 
 **********

 FCN=   8015.785     FROM HESSE     STATUS=OK           352 CALLS     2751 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7595        .11564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.4283        3.3911        .10820E-03   -1.5163    
   3  Prefactor     .10000E-03    1.4492        .10505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .48807        6.1804        .21835E-02   -1.5568    
   5  norm          6.4501        5.5513        .79008E-03   -1.5200    
   6  Prefactor     19.316        25.742        .91084E-04   -1.4829    
   7  Prefactor     .13230        16.235        .10339       -1.5635    
   8  Prefactor     .10000E-03    6.1433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5995        6.0169        .10647E-02   -1.5328    
  12  norm          3.1240        .35399        .16860E-04   -1.5354    
  13  norm          .10000E-03    24.546        .37943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    36.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     72.345        46.998        .47205E-04   -1.4005    
  16  Prefactor     3.3738        5.6900        .22026E-03   -1.5341    
  17  Prefactor     14.447        31.664        .10523E-03   -1.4948    
  18  Prefactor     .10000E-03    8.9601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8885        1.8402        .11655E-03   -1.5433    
  20  Prefactor     .10000E-03    13.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0824        .26008        .31997E-03   -.90320    
  22  Prefactor     .91718        .15409        .21707E-03   -.95543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13694e-09
Minuit parameter uncertainties:
  1  5.60091e-07
  2  3.39118
  3  4.13804e-07
  4  3.47368
  5  5.55177
  6  25.7565
  7  2.93087
  8  1.03577e-06
  9  4.43938e-05
  10  8.88262e-05
  11  6.01788
  12  0.353994
  13  0.00021132
  14  6.00818e-05
  15  47.0223
  16  5.69093
  17  31.7012
  18  7.18795e-06
  19  1.84022
  20  0.000125059
  21  0.26039
  22  0.154162
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  6.008e-05  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.172e-01  1.542e-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.082e+00  2.604e-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: 2.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63605/likelihoodResults_253843201_254102401_4FGL_J1507.2+1721_daily_bin56.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) = 8015.78477575
delta logL = -0.000129769944579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8015.48446671
delta logL = 0.300179275133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33785E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93147       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=   8015.484     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      351 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33776E-01    .50721E-01    .22637E-03    .27965E-01
   2  alpha         5.0000        1.1245        .50000    ** at limit **
   3  Normalizat    1.0386        .24907        .32560E-03   -.65712E-04
   4  Prefactor     .93116        .15385        .21551E-03   -.94533E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.033776
  alpha      = 5
  Normalizat = 1.03861
  Prefactor  = 0.931156
 **********
 **   18 **HESSE 
 **********

 FCN=   8015.484     FROM HESSE     STATUS=OK            31 CALLS      382 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33776E-01    .49675E-01    .45274E-04   -1.5671    
   2  alpha         5.0000        1.0852        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0386        .24962        .13024E-04   -.91748    
   4  Prefactor     .93116        .15407        .86203E-05   -.95061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98459e-11
Minuit parameter uncertainties:
  1  0.0496748
  2  6.28994e-06
  3  0.249901
  4  0.15414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63605': 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) = 8015.48445926
delta logL = 0.300186718257

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.378e-02  4.967e-02  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  5.000e+00  6.290e-06  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.312e-01  1.541e-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.039e+00  2.499e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/63605/cmap_HighResolution_253843201_254102401_4FGL_J1507.2+1721_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-05', job_status='DONE', photon_flux_upper_limit='2.03e-08', time_completed='2021-09-11 01:00:03.972111', job_id='63605', GAL2='0.93', fit_tolerance='1e-08', EG2='1.04', EG='1.08', time_epoch_completed='1631347203.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.00e-01', ts2='0.63', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='56' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:00:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 63605: <4FGL_J1507.2+1721_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin56 226.821 17.3519 253843201 254102401 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 :                                   656.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            847 sec.

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

