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


Performing analysis on: 4FGL_J1424.6+1447_daily_bin467
RA = 216.169, Dec = 14.784
tmin = 360374401, tmax = 360633601
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='430179', job_status='RUN', time_executed='2021-09-09 14:10:29.528784', time_epoch_executed='1631221829.53' WHERE source_name='4FGL J1424.6+1447' and cadence='daily' and bin_id='467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430179/ft1_4FGL_J1424.6+1447_daily_bin467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430179/ft1_4FGL_J1424.6+1447_daily_bin467.fits outfile=/scratch/kocevski/430179/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin467.fits ra=216.169 dec=14.784 rad=12.0 tmin=360374401.0 tmax=360633601.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.38
user 3.11
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.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/430179/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin467.fits evtable="EVENTS" outfile="/scratch/kocevski/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.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/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.fits" evtable="EVENTS" scfile=/scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits sctable="SC_DATA" outfile=/scratch/kocevski/430179/ltcube_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.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/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits
.....................!
real 11.70
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits sctable="SC_DATA" expcube=/scratch/kocevski/430179/ltcube_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.fits outfile=/scratch/kocevski/430179/expmap_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.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/430179/ltcube_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.fits
.....................!
real 191.27
user 185.36
sys 5.51

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 145 point sources and 0 extended sources

Setting source of interest to:
4FGL J1424.6+1447 @ 216.169 14.784

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.fits scfile=/scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits outfile=/scratch/kocevski/430179/cmap_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.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=216.169 yref=14.784 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.fits scfile=/scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits outfile=/scratch/kocevski/430179/cmap_HighResolution_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.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=216.169 yref=14.784 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/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430179/Model_4FGL_J1424.6+1447_daily_bin467.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/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.fits.....................!
real 48.66
user 47.24
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.fits', '/scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits', expMap='/scratch/kocevski/430179/expmap_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.fits', expCube='/scratch/kocevski/430179/ltcube_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430179/Model_4FGL_J1424.6+1447_daily_bin467.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1424.6+1447'

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.029e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430179/ft1_filtered_4FGL_J1424.6+1447_daily_bin467.fits
Spacecraft file(s): /scratch/kocevski/430179/ft2_4FGL_J1424.6+1447_daily_bin467.fits
Exposure map: /scratch/kocevski/430179/expmap_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.fits
Exposure cube: /scratch/kocevski/430179/ltcube_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430179/Model_4FGL_J1424.6+1447_daily_bin467.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) = 6223.98783248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1423       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6754       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.8349       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4170       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9171       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.599       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.001       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.714       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3798       1.0000         .10000E-03   10000.    
    21 'norm      '    .23739E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2513       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97870       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6223.926     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2345 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.609        .29573E-04** at limit **
   2  Prefactor     .10000E-03    2.8384       -.15503E-05** at limit **
   3  Prefactor     .10000E-03    7.0517        .49195E-05** at limit **
   4  Prefactor     9.1425        11.466       -.38624E-06   -.74634E-04
   5  Prefactor     .10000E-03    9.6759       -.58438E-06** at limit **
   6  Prefactor     3.6743        25.489       -.27190E-05   -.43099E-04
   7  norm          .10000E-03    9.7381       -.77389E-06** at limit **
   8  Prefactor     .10000E-03    2.4753        .13543E-07** at limit **
   9  norm          9.8346        3.3032        .46582E-06    .48369E-04
  10  Prefactor     .10000E-03    9.0754        .66692E-06** at limit **
  11  norm          4.4172        2.9509       -.94902E-07   -.15526E-03
  12  Prefactor     .10000E-03    10.284       -.20683E-05** at limit **
  13  norm          .10000E-03    5.8040       -.29822E-05** at limit **
  14  norm          .10000E-03    3.8713       -.23403E-06** at limit **
  15  Prefactor     9.9099        17.761       -.42824E-05   -.24237E-04
  16  Prefactor     41.601        25.643        .11197E-05    .46719E-04
  17  Prefactor     .10000E-03    5.1062        .31207E-05** at limit **
  18  Prefactor     10.001        27.415        .10712E-05   -.67584E-05
  19  Prefactor     15.710        29.220       -.52169E-05    .27574E-05
  20  Prefactor     7.3790        8.6513        .19384E-07   -.29106E-04
  21  norm          .23761E-01    .92024E-01   -.19387E-06   -.20065E-02
  22  norm          .10000E-03    39.164       -.31832E-04** at limit **
  23  Normalizat    1.2513        .20974        .13256E-06    .13566E-03
  24  Prefactor     .97869        .15296        .55297E-06    .17150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 9.14252
  Prefactor  = 0.0001
  Prefactor  = 3.67433
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.83457
  Prefactor  = 0.0001
  norm       = 4.4172
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.90994
  Prefactor  = 41.6012
  Prefactor  = 0.0001
  Prefactor  = 10.0007
  Prefactor  = 15.7101
  Prefactor  = 7.37901
  norm       = 0.0237611
  norm       = 0.0001
  Normalizat = 1.2513
  Prefactor  = 0.978689
 **********
 **   18 **HESSE 
 **********

 FCN=   6223.926     FROM HESSE     STATUS=OK           397 CALLS     2742 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6754        .25678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1425        11.498        .13255E-03   -1.5103    
   5  Prefactor     .10000E-03    9.6862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6743        25.523        .21068E-03   -1.5325    
   7  norm          .10000E-03    9.7445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4816        .12120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.8346        3.3036        .80666E-04   -1.5081    
  10  Prefactor     .10000E-03    9.3776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4172        2.9485        .10652E-03   -1.5288    
  12  Prefactor     .10000E-03    10.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.8069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.0255        .30309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.9099        17.743        .12724E-03   -1.5078    
  16  Prefactor     41.601        25.628        .62152E-04   -1.4417    
  17  Prefactor     .10000E-03    5.1126        .17411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.001        27.337        .12671E-03   -1.5075    
  19  Prefactor     15.710        29.186        .10104E-03   -1.4915    
  20  Prefactor     7.3790        8.6508        .14764E-03   -1.5165    
  21  norm          .23761E-01    .17272        .45343E-03   -1.5677    
  22  norm          .10000E-03    39.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2513        .25532        .26982E-03   -.85032    
  24  Prefactor     .97869        .18665        .21993E-03   -.93443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08515e-09
Minuit parameter uncertainties:
  1  1.45523e-05
  2  0.000333962
  3  3.25235e-06
  4  11.5012
  5  1.42157e-06
  6  19.3796
  7  2.51686e-06
  8  5.60858e-07
  9  3.30363
  10  1.65711e-07
  11  2.94863
  12  2.0137e-06
  13  1.81792e-06
  14  3.72169e-06
  15  17.7527
  16  25.6352
  17  5.31661e-06
  18  27.3708
  19  29.2121
  20  8.65228
  21  0.127854
  22  1.90435e-05
  23  0.255573
  24  0.186777
Done.

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

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  5.609e-07  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
466    Prefactor:  9.787e-01  1.868e-01  0.000e+00  1.000e+01 ( 1.000e+00)
467        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
468        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
465   Normalization:  1.251e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 216.169 14.784
Photon Flux Upper Limit: 5.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430179/likelihoodResults_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.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) = 6223.92748431
delta logL = -0.00190681404547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6223.92557745
delta logL = 4.89908416057e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1589       1.0000          .0000       10.000    
     3 'Normalizat'    1.2513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4690E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6223.926     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    372.61        .12207E-02** at limit **
   2  Index         2.1457        5.7095        .50000        .43106E-04
   3  Normalizat    1.2513        .81447E-01    .26982E-03   -.58988E-05
   4  Prefactor     .97869        .59888E-01    .21993E-03   -.88395E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6223.926     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      411 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    372.61        .28915E-03** at limit **
   2  Index         2.1457        5.7095        .22319E-05    .43106E-04
   3  Normalizat    1.2513        .81447E-01    .18363E-06   -.58988E-05
   4  Prefactor     .97869        .59888E-01    .42666E-07   -.88395E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6223.926     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      445 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3349        .24415E-03** at limit **
   2  Index         2.1453        6.0284        .50000        .43082E-04
   3  Normalizat    1.2513        .24939        .10793E-04   -.16854E-05
   4  Prefactor     .97869        .18346        .87971E-05   -.38770E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.14529
  Normalizat = 1.2513
  Prefactor  = 0.978689
 **********
 **   18 **HESSE 
 **********

 FCN=   6223.926     FROM HESSE     STATUS=OK            29 CALLS      474 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5378        .48830E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1453        6.0705        .50000       -.60765    
   3  Normalizat    1.2513        .24976        .21586E-05   -.85032    
   4  Prefactor     .97869        .18374        .17594E-05   -.93443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40627e-09
Minuit parameter uncertainties:
  1  0.00021894
  2  4.12358
  3  0.250003
  4  0.183862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430179': 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) = 6223.92557721
delta logL = 2.8529575502e-07

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  2.189e-04  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.145e+00  4.124e+00  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
466    Prefactor:  9.787e-01  1.839e-01  0.000e+00  1.000e+01 ( 1.000e+00)
467        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
468        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
465   Normalization:  1.251e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 216.169 14.784

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/430179/cmap_HighResolution_360374401_360633601_4FGL_J1424.6+1447_daily_bin467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-09 14:20:30.941786', job_id='430179', GAL2='0.98', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631222430.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='467' AND source_name='4FGL J1424.6+1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:20:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 430179: <4FGL_J1424.6+1447_daily_bin467> in cluster <slac> Done

Job <4FGL_J1424.6+1447_daily_bin467> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 14:06:44 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 14:06:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 14:06:45 2021
Terminated at Thu Sep  9 14:20:31 2021
Results reported at Thu Sep  9 14:20:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.6+1447_daily_bin467 216.169 14.784 360374401 360633601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1424.6+1447 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             258.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

