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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin747
RA = 226.821, Dec = 17.3519
tmin = 432950401, tmax = 433209601
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='68624', job_status='RUN', time_executed='2021-09-11 00:56:41.476637', time_epoch_executed='1631347001.48' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/68624

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/68624/ft1_4FGL_J1507.2+1721_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/68624/ft2_4FGL_J1507.2+1721_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/68624/ft1_4FGL_J1507.2+1721_daily_bin747.fits outfile=/scratch/kocevski/68624/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin747.fits ra=226.821 dec=17.3519 rad=12.0 tmin=432950401.0 tmax=433209601.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 5.73
user 5.42
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/68624/ft2_4FGL_J1507.2+1721_daily_bin747.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/68624/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/68624/ft1_filtered_4FGL_J1507.2+1721_daily_bin747.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.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/68624/ft1_filtered_4FGL_J1507.2+1721_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/68624/ft2_4FGL_J1507.2+1721_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/68624/ltcube_432950401_433209601_4FGL_J1507.2+1721_daily_bin747.fits outfile=/scratch/kocevski/68624/expmap_432950401_433209601_4FGL_J1507.2+1721_daily_bin747.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/68624/ltcube_432950401_433209601_4FGL_J1507.2+1721_daily_bin747.fits
.....................!
real 192.57
user 187.69
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/68624/ft1_filtered_4FGL_J1507.2+1721_daily_bin747.fits scfile=/scratch/kocevski/68624/ft2_4FGL_J1507.2+1721_daily_bin747.fits outfile=/scratch/kocevski/68624/cmap_432950401_433209601_4FGL_J1507.2+1721_daily_bin747.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/68624/ft1_filtered_4FGL_J1507.2+1721_daily_bin747.fits scfile=/scratch/kocevski/68624/ft2_4FGL_J1507.2+1721_daily_bin747.fits outfile=/scratch/kocevski/68624/cmap_HighResolution_432950401_433209601_4FGL_J1507.2+1721_daily_bin747.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/68624/ft1_filtered_4FGL_J1507.2+1721_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/68624/ft2_4FGL_J1507.2+1721_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/68624/Model_4FGL_J1507.2+1721_daily_bin747.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/68624/ft1_filtered_4FGL_J1507.2+1721_daily_bin747.fits.....................!
real 64.39
user 63.04
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3982       1.0000         .10000E-03   10000.    
    12 'norm      '    .16952E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3518       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36493E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.862       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3191       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87397       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=   9215.833     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2424 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0527        .30037E-07** at limit **
   2  norm          12.848        4.6119        .67112E-07    .13305E-03
   3  Prefactor     .10000E-03    3.0258       -.17793E-06** at limit **
   4  norm          .10000E-03    1.3181        .32462E-07** at limit **
   5  norm          4.1864        4.8650        .17313E-06   -.90884E-04
   6  Prefactor     .10000E-03    10.217        .16577E-06** at limit **
   7  Prefactor     3.4495        25.109        .34360E-05    .10444E-03
   8  Prefactor     .10000E-03    5.3636        .38737E-07** at limit **
   9  Prefactor     .10000E-03    9.9214       -.70861E-07** at limit **
  10  Prefactor     15.572        30.615        .11256E-05    .62835E-04
  11  Prefactor     7.3978        7.2469        .13520E-05   -.41142E-03
  12  norm          .16923E-01    .57665E-01    .42196E-07   -.25379E-02
  13  norm          3.3516        5.0212        .63571E-07   -.18838E-03
  14  norm          .10000E-03    12.743        .25873E-07** at limit **
  15  Prefactor     .10037E-03    37.364       -.62102E-06** at limit **
  16  Prefactor     .10000E-03    2.6658        .53067E-08** at limit **
  17  Prefactor     11.864        24.898       -.13324E-05   -.12293E-03
  18  Prefactor     .10000E-03    19.636       -.44902E-07** at limit **
  19  norm          .10000E-03    .79255        .22074E-07** at limit **
  20  Prefactor     .10000E-03    9.0056        .19050E-06** at limit **
  21  Normalizat    1.3191        .18295       -.54189E-06    .34604E-04
  22  Prefactor     .87403        .10700        .21919E-07   -.25085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.848
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 4.18641
  Prefactor  = 0.0001
  Prefactor  = 3.44951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.572
  Prefactor  = 7.39785
  norm       = 0.0169232
  norm       = 3.35159
  norm       = 0.0001
  Prefactor  = 0.000100366
  Prefactor  = 0.0001
  Prefactor  = 11.8642
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31911
  Prefactor  = 0.874032
 **********
 **   18 **HESSE 
 **********

 FCN=   9215.833     FROM HESSE     STATUS=OK           356 CALLS     2780 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.848        4.6130        .11175E-03   -1.4991    
   3  Prefactor     .10000E-03    9.3790        .32113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0295        .21354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1864        4.8647        .19696E-03   -1.5299    
   6  Prefactor     .10000E-03    10.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4495        27.173        .21772E-03   -1.5336    
   8  Prefactor     .10000E-03    5.3806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.572        30.843        .10149E-03   -1.4919    
  11  Prefactor     7.3978        7.6058        .73728E-03   -1.5164    
  12  norm          .16923E-01    .92255E-01    .40543E-03   -1.5682    
  13  norm          3.3516        5.0395        .22106E-03   -1.5342    
  14  norm          .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10037E-03    34.686        .14991       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6776        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.864        25.714        .11631E-03   -1.5019    
  18  Prefactor     .10000E-03    19.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0012        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.0268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3191        .22020        .27474E-03   -.82998    
  22  Prefactor     .87403        .12968        .20281E-03   -.97054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03548e-10
Minuit parameter uncertainties:
  1  8.19916e-06
  2  4.61316
  3  0.000152123
  4  9.57474e-07
  5  4.86521
  6  1.74267e-05
  7  19.3752
  8  3.11391e-06
  9  1.96832e-05
  10  30.8749
  11  7.60684
  12  0.0787915
  13  5.04017
  14  3.05316e-06
  15  0.00712875
  16  8.64562e-07
  17  25.7383
  18  1.91829e-05
  19  6.17478e-06
  20  2.43759e-05
  21  0.220354
  22  0.129729
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  3.053e-06  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.740e-01  1.297e-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.319e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/68624/likelihoodResults_432950401_433209601_4FGL_J1507.2+1721_daily_bin747.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) = 9215.8331147
delta logL = -0.000370200823454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9215.8327445
delta logL = 1.80989445653e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5259       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87402       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=   9215.833     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      244 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2226.7        .18142E-02** at limit **
   2  alpha         1.3160        3.1525        .18412        .49768E-07
   3  Normalizat    1.3191        .86863E-01    .27474E-03   -.17379E-04
   4  Prefactor     .87403        .53745E-01    .20281E-03   -.16032E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.31599
  Normalizat = 1.31911
  Prefactor  = 0.874033
 **********
 **   18 **HESSE 
 **********

 FCN=   9215.833     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3160        2.9756        .73647E-02   -.49338    
   3  Normalizat    1.3191        .20746        .10990E-04   -.82998    
   4  Prefactor     .87403        .12839        .81125E-05   -.97054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6622e-10
Minuit parameter uncertainties:
  1  0.000227009
  2  434.498
  3  0.207589
  4  0.128433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/68624': 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) = 9215.83274437
delta logL = 1.30814441945e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  2.270e-04  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.316e+00  4.345e+02  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  8.740e-01  1.284e-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.319e+00  2.076e-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/68624/cmap_HighResolution_432950401_433209601_4FGL_J1507.2+1721_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-05', job_status='DONE', photon_flux_upper_limit='1.23e-08', time_completed='2021-09-11 01:08:29.958741', job_id='68624', GAL2='0.87', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631347709.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='747' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:08:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 68624: <4FGL_J1507.2+1721_daily_bin747> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin747> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:56:28 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:56:29 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:29 2021
Terminated at Sat Sep 11 01:08:30 2021
Results reported at Sat Sep 11 01:08:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin747 226.821 17.3519 432950401 433209601 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 :                                   700.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            722 sec.

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

