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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1273
RA = 226.821, Dec = 17.3519
tmin = 569289601, tmax = 569548801
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='70609', job_status='RUN', time_executed='2021-09-11 01:01:40.528589', time_epoch_executed='1631347300.53' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70609

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70609/ft1_4FGL_J1507.2+1721_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70609/ft2_4FGL_J1507.2+1721_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70609/ft1_4FGL_J1507.2+1721_daily_bin1273.fits outfile=/scratch/kocevski/70609/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1273.fits ra=226.821 dec=17.3519 rad=12.0 tmin=569289601.0 tmax=569548801.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.59
user 3.33
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70609/ft1_filtered_4FGL_J1507.2+1721_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/70609/ft2_4FGL_J1507.2+1721_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/70609/ltcube_569289601_569548801_4FGL_J1507.2+1721_daily_bin1273.fits outfile=/scratch/kocevski/70609/expmap_569289601_569548801_4FGL_J1507.2+1721_daily_bin1273.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/70609/ltcube_569289601_569548801_4FGL_J1507.2+1721_daily_bin1273.fits
.....................!
real 191.56
user 185.26
sys 5.88

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/70609/ft1_filtered_4FGL_J1507.2+1721_daily_bin1273.fits scfile=/scratch/kocevski/70609/ft2_4FGL_J1507.2+1721_daily_bin1273.fits outfile=/scratch/kocevski/70609/cmap_569289601_569548801_4FGL_J1507.2+1721_daily_bin1273.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70609/ft1_filtered_4FGL_J1507.2+1721_daily_bin1273.fits scfile=/scratch/kocevski/70609/ft2_4FGL_J1507.2+1721_daily_bin1273.fits outfile=/scratch/kocevski/70609/cmap_HighResolution_569289601_569548801_4FGL_J1507.2+1721_daily_bin1273.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6364       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8985       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5274       1.0000         .10000E-03   10000.    
     4 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10844E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16720E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30614E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .82645       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    28.101       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16498E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .90473E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.7893       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3140       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90709       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=   8053.244     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     3187 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6374        4.0428        .18433E-03   -.48661E-04
   2  norm          2.8986        1.9512        .10022E-03   -.13272E-04
   3  Prefactor     3.5259        6.2410        .21524E-03    .15598E-03
   4  norm          .10000E-03    .72312        .74219E-03** at limit **
   5  norm          .10000E-03    5.2770        .24023E-02** at limit **
   6  Prefactor     44.244        26.338        .60240E-04    .96249E-05
   7  Prefactor     .10000E-03    16.603        .18142E-02** at limit **
   8  Prefactor     .10000E-03    16.498        .18142E-02** at limit **
   9  Prefactor     .10006E-03    113.86        .69472E-02** at limit **
  10  Prefactor     .10000E-03    27.858        .18142E-02** at limit **
  11  Prefactor     .10002E-03    6.9195        .66460E-01** at limit **
  12  norm          .82646        .21733        .20479E-04    .38472E-03
  13  norm          .10000E-03    3.4827        .16273E-02** at limit **
  14  norm          28.104        31.701        .75576E-04    .13238E-04
  15  Prefactor     .10000E-03    29.411        .18142E-02** at limit **
  16  Prefactor     .10005E-03    3.2491        .57002E-01** at limit **
  17  Prefactor     .30069E-01    28.902        .11515        .50244E-04
  18  Prefactor     .10000E-03    15.379        .18142E-02** at limit **
  19  norm          6.7896        2.9400        .98082E-04   -.14141E-04
  20  Prefactor     .10000E-03    12.753        .18142E-02** at limit **
  21  Normalizat    1.3139        .24538        .28444E-03   -.72344E-05
  22  Prefactor     .90704        .14933        .21193E-03    .10332E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.63744
  norm       = 2.89859
  Prefactor  = 3.52589
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 44.2437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.826459
  norm       = 0.0001
  norm       = 28.1037
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.0300689
  Prefactor  = 0.0001
  norm       = 6.78965
  Prefactor  = 0.0001
  Normalizat = 1.31395
  Prefactor  = 0.907042
 **********
 **   18 **HESSE 
 **********

 FCN=   8053.244     FROM HESSE     STATUS=OK           350 CALLS     3537 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6374        4.0426        .73733E-05   -1.5327    
   2  norm          2.8986        1.9512        .40087E-05   -1.5367    
   3  Prefactor     3.5259        6.2401        .86094E-05   -1.5332    
   4  norm          .10000E-03    .72316        .14844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.3308        .48047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.244        26.316        .24096E-05   -1.4377    
   7  Prefactor     .10000E-03    16.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10006E-03    117.09        .27789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    6.6343        .68659E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .82646        .21733        .81914E-06   -1.5526    
  13  norm          .10000E-03    3.4838        .32545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          28.104        31.700        .30230E-05   -1.4647    
  15  Prefactor     .10000E-03    29.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10005E-03    3.2526        .56937E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .30069E-01    27.886        .11767       -1.5673    
  18  Prefactor     .10000E-03    15.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.7896        2.9401        .39233E-05   -1.5187    
  20  Prefactor     .10000E-03    12.754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3139        .24566        .11377E-04   -.83151    
  22  Prefactor     .90704        .14951        .84772E-05   -.95895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18522e-09
Minuit parameter uncertainties:
  1  4.04293
  2  1.95124
  3  6.2413
  4  1.1667e-06
  5  0.000220758
  6  26.3227
  7  8.45723e-06
  8  9.76489e-06
  9  0.00542445
  10  0.000117565
  11  0.000706213
  12  0.217332
  13  1.63847e-08
  14  31.7189
  15  6.33497e-05
  16  0.000786624
  17  1.82921
  18  2.45094e-05
  19  2.94011
  20  7.48828e-06
  21  0.245878
  22  0.149575
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  2.810e+01  3.172e+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.070e-01  1.496e-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.314e+00  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 226.821 17.352
Photon Index (Fixed Index): 1.53 +/- 0.00
Photon Flux (Fixed Index): 4.74e-09 +/- 5.34e-09
Energy Flux (Fixed Index): 1.59e-05 +/- 1.79e-05

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

Saving results to:
/scratch/kocevski/70609/likelihoodResults_569289601_569548801_4FGL_J1507.2+1721_daily_bin1273.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) = 8052.72307782
delta logL = 0.521296507926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8052.66317014
delta logL = 0.581204185688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.502       1.0000         .10000E-03   10000.    
     2 'alpha     '    .46305       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90991       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=   8052.663     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.510        26.277        .35079E-05    .95943E-04
   2  alpha         .46302        .87586        .82600E-04   -.40055E-05
   3  Normalizat    1.3114        .19251        .12568E-07    .74656E-04
   4  Prefactor     .90983        .12244       -.51005E-07    .10296E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.5104
  alpha      = 0.463017
  Normalizat = 1.31144
  Prefactor  = 0.909829
 **********
 **   18 **HESSE 
 **********

 FCN=   8052.663     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.510        25.043        .95736E-04   -1.4871    
   2  alpha         .46302        .84375        .47176E-01   -.95237    
   3  Normalizat    1.3114        .23280        .28462E-03   -.83226    
   4  Prefactor     .90983        .14816        .21162E-03   -.95798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52975e-09
Minuit parameter uncertainties:
  1  25.0577
  2  0.900591
  3  0.232984
  4  0.148223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70609': 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) = 8052.66316983
delta logL = 0.581204492818

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.751e+01  2.506e+01  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  4.630e-01  9.006e-01  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.098e-01  1.482e-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.311e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.58
Ra Dec: 226.821 17.352
Photon Index (Free Index): 0.46 +/- 0.90
Photon Flux (Free Index): 2.90e-09 +/- 3.12e-09
Energy Flux (Free Index): 5.17e-05 +/- 7.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/70609/cmap_HighResolution_569289601_569548801_4FGL_J1507.2+1721_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.94e-05', comment='SUCCESS', photon_flux='4.74e-09', energy_flux2='5.17e-05', photon_flux_error='5.34e-09', dlogl='5.81e-01', energy_flux='1.59e-05', photon_flux2='2.90e-09', job_status='DONE', time_completed='2021-09-11 01:13:43.042504', photon_index_error2='0.90', photon_index2='0.46', ts='2.42', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.37e-08', energy_flux_error2='7.41e-05', EG='1.31', time_epoch_completed='1631348023.04', return_code='0', job_id='70609', GAL2='0.91', EG2='1.31', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='3.12e-09', ts2='3.58', photon_index='1.53' WHERE bin_id='1273' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:13:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 70609: <4FGL_J1507.2+1721_daily_bin1273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1273 226.821 17.3519 569289601 569548801 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 :                                   717.32 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

