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


Performing analysis on: 4FGL_J1424.6+1447_daily_bin965
RA = 216.169, Dec = 14.784
tmin = 489456001, tmax = 489715201
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='433806', job_status='RUN', time_executed='2021-09-09 14:19:59.441400', time_epoch_executed='1631222399.44' WHERE source_name='4FGL J1424.6+1447' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433806

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433806/ft1_4FGL_J1424.6+1447_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433806/ft2_4FGL_J1424.6+1447_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433806/ft1_4FGL_J1424.6+1447_daily_bin965.fits outfile=/scratch/kocevski/433806/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin965.fits ra=216.169 dec=14.784 rad=12.0 tmin=489456001.0 tmax=489715201.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.11
user 4.85
sys 0.23

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433806/ft1_filtered_4FGL_J1424.6+1447_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/433806/ft2_4FGL_J1424.6+1447_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/433806/ltcube_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.fits outfile=/scratch/kocevski/433806/expmap_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.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/433806/ltcube_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.fits
.....................!
real 190.66
user 184.78
sys 5.53

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/433806/ft1_filtered_4FGL_J1424.6+1447_daily_bin965.fits scfile=/scratch/kocevski/433806/ft2_4FGL_J1424.6+1447_daily_bin965.fits outfile=/scratch/kocevski/433806/cmap_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433806/ft1_filtered_4FGL_J1424.6+1447_daily_bin965.fits scfile=/scratch/kocevski/433806/ft2_4FGL_J1424.6+1447_daily_bin965.fits outfile=/scratch/kocevski/433806/cmap_HighResolution_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433806/ft1_filtered_4FGL_J1424.6+1447_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/433806/ft2_4FGL_J1424.6+1447_daily_bin965.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433806/Model_4FGL_J1424.6+1447_daily_bin965.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/433806/ft1_filtered_4FGL_J1424.6+1447_daily_bin965.fits.....................!
real 47.60
user 46.02
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433806/ft1_filtered_4FGL_J1424.6+1447_daily_bin965.fits', '/scratch/kocevski/433806/ft2_4FGL_J1424.6+1447_daily_bin965.fits', expMap='/scratch/kocevski/433806/expmap_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.fits', expCube='/scratch/kocevski/433806/ltcube_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433806/Model_4FGL_J1424.6+1447_daily_bin965.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/433806/ft1_filtered_4FGL_J1424.6+1447_daily_bin965.fits
Spacecraft file(s): /scratch/kocevski/433806/ft2_4FGL_J1424.6+1447_daily_bin965.fits
Exposure map: /scratch/kocevski/433806/expmap_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.fits
Exposure cube: /scratch/kocevski/433806/ltcube_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433806/Model_4FGL_J1424.6+1447_daily_bin965.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) = 5774.3692007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12389E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.932       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23900E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.496       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37014       1.0000         .10000E-03   10000.    
     9 'norm      '    9.7063       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11293E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15123E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .86141       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5216       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88831       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=   5774.215     FROM MIGRAD    STATUS=FAILED       977 CALLS     2780 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    201.07        .18142E-02** at limit **
   2  Prefactor     10.931        7.8113        .12117E-03   -.54137E-04
   3  Prefactor     .10000E-03    21.178        .18142E-02** at limit **
   4  Prefactor     .10000E-03    18.454        .72643E-01** at limit **
   5  Prefactor     24.496        25.457        .80935E-04    .24301E-04
   6  Prefactor     .10000E-03    14.530        .18142E-02** at limit **
   7  norm          .10000E-03    10.499        .18142E-02** at limit **
   8  Prefactor     .36513        34.264        .38041E-02    .16964E-02
   9  norm          9.7062        3.7800        .89396E-04    .75032E-05
  10  Prefactor     .10000E-03    3.9195        .14615E-02** at limit **
  11  norm          .10000E-03    1.2266        .81654E-03** at limit **
  12  Prefactor     .10000E-03    10.020        .18142E-02** at limit **
  13  norm          .10000E-03    6.6894        .18142E-02** at limit **
  14  norm          .10000E-03    14.591        .27786E-02** at limit **
  15  Prefactor     .10000E-03    28.117        .18142E-02** at limit **
  16  Prefactor     .10000E-03    75.252        .18142E-02** at limit **
  17  Prefactor     .10000E-03    11.225        .18142E-02** at limit **
  18  Prefactor     .10000E-03    34.882        .18142E-02** at limit **
  19  Prefactor     .10000E-03    33.441        .18142E-02** at limit **
  20  Prefactor     .10000E-03    45.748        .36285E-03** at limit **
  21  norm          .86151        .27086        .21366E-04   -.40705E-03
  22  norm          .10000E-03    20.505        .18142E-02** at limit **
  23  Normalizat    1.5215        .29652        .27630E-03   -.70829E-04
  24  Prefactor     .88831        .20424        .24258E-03   -.66268E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5774.215     FROM SIMPLEX   STATUS=UNCHANGED   1287 CALLS     4067 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    201.07        .15547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.931        7.8113        .10887E-05   -1.5047    
   3  Prefactor     .10000E-03    21.178        .36952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.454        .36435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.496        25.457        .10645E-05   -1.4718    
   6  Prefactor     .10000E-03    14.530        .49565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.499        .47338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36513        34.264        .11293E-05   -1.5587    
   9  norm          9.7062        3.7800        .10922E-05   -1.5085    
  10  Prefactor     .10000E-03    3.9195        .10296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2266        .46660E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.020        .24026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6894        .17958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.591        .47816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.117        .24521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    75.252        .40811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.225        .10109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.882        .25723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.441        .38364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.748        .43822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .86151        .27086        .11237E-05   -1.5522    
  22  norm          .10000E-03    20.505        .35310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5215        .29652        .55873E-06   -.77176    
  24  Prefactor     .88831        .20424        .69902E-06   -.96551    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5774.215     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     4455 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    201.18        .36285E-03** at limit **
   2  Prefactor     10.931        7.8105        .48468E-05    .93824E-06
   3  Prefactor     .10000E-03    21.183        .36285E-03** at limit **
   4  Prefactor     .10000E-03    16.019        .79169E-01** at limit **
   5  Prefactor     24.496        25.449        .32374E-05   -.70233E-06
   6  Prefactor     .10000E-03    14.531        .36285E-03** at limit **
   7  norm          .10000E-03    10.500        .36285E-03** at limit **
   8  Prefactor     .36515        34.561        .76082E-03    .68204E-04
   9  norm          9.7062        3.7799        .35758E-05    .63586E-06
  10  Prefactor     .10000E-03    3.9205        .29230E-03** at limit **
  11  norm          .10000E-03    1.2268        .16331E-03** at limit **
  12  Prefactor     .10000E-03    10.020        .36285E-03** at limit **
  13  norm          .10000E-03    6.6898        .36285E-03** at limit **
  14  norm          .10000E-03    14.845        .55571E-03** at limit **
  15  Prefactor     .10000E-03    28.121        .36285E-03** at limit **
  16  Prefactor     .10000E-03    75.323        .36285E-03** at limit **
  17  Prefactor     .10000E-03    11.226        .36285E-03** at limit **
  18  Prefactor     .10000E-03    34.887        .36285E-03** at limit **
  19  Prefactor     .10000E-03    33.442        .36285E-03** at limit **
  20  Prefactor     .10000E-03    45.750        .72569E-04** at limit **
  21  norm          .86151        .27083        .85463E-06   -.24576E-05
  22  norm          .10000E-03    20.505        .36285E-03** at limit **
  23  Normalizat    1.5215        .29683        .55260E-04    .28391E-05
  24  Prefactor     .88831        .20432        .97033E-05    .16403E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.9305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.496
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.365149
  norm       = 9.70619
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.861512
  norm       = 0.0001
  Normalizat = 1.52151
  Prefactor  = 0.888312
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.215     FROM HESSE     STATUS=OK           385 CALLS     4840 TOTAL
                     EDM=   .35E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    201.19        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.931        7.8105        .96936E-06   -1.5047    
   3  Prefactor     .10000E-03    21.184        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.951        .76472E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.496        25.546        .64748E-06   -1.4718    
   6  Prefactor     .10000E-03    14.531        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.500        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36515        34.525        .15216E-03   -1.5587    
   9  norm          9.7062        3.7794        .71517E-06   -1.5085    
  10  Prefactor     .10000E-03    3.9205        .58461E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2268        .32662E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.020        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6898        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.855        .11114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.121        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    75.325        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.226        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.887        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.442        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.755        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .86151        .27083        .37008E-06   -1.5522    
  22  norm          .10000E-03    20.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5215        .29707        .11052E-04   -.77176    
  24  Prefactor     .88831        .20447        .19407E-05   -.96551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50876e-14
Minuit parameter uncertainties:
  1  3.10284e-06
  2  7.81127
  3  5.27339e-07
  4  0.000122801
  5  25.5576
  6  1.81061e-07
  7  4.13174e-08
  8  7.1045
  9  3.77954
  10  1.49672e-07
  11  1.1444e-08
  12  4.28453e-08
  13  3.58041e-08
  14  8.85061e-07
  15  5.92007e-07
  16  2.90162e-06
  17  2.06182e-07
  18  6.82787e-07
  19  2.74549e-07
  20  3.12105e-07
  21  0.270826
  22  1.07318e-08
  23  0.297407
  24  0.204642
Done.

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

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  3.651e-01  7.105e+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

GAL_V02
   Spectrum: PowerLaw
466    Prefactor:  8.883e-01  2.046e-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.522e+00  2.974e-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: 9.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433806/likelihoodResults_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.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) = 5773.67455545
delta logL = 0.540390085242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5773.67454015
delta logL = 0.540405378704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4802       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3236       1.0000          .0000       10.000    
     3 'Normalizat'    1.5298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87297       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.

 FCN=   5773.675     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      287 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4827        11.781        .13016E-03    .15111E-04
   2  Index         1.3241        .52813        .95592E-02   -.30396E-04
   3  Normalizat    1.5295        .28928        .27553E-03   -.40086E-03
   4  Prefactor     .87314        .20234        .24427E-03   -.40977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.48268
  Index      = 1.32413
  Normalizat = 1.52951
  Prefactor  = 0.873137
 **********
 **   18 **HESSE 
 **********

 FCN=   5773.675     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4827        11.951        .52062E-05   -1.5092    
   2  Index         1.3241        .53582        .38237E-03   -.82592    
   3  Normalizat    1.5295        .28959        .55106E-04   -.76952    
   4  Prefactor     .87314        .20257        .48853E-04   -.97086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35025e-10
Minuit parameter uncertainties:
  1  11.9544
  2  0.538077
  3  0.289903
  4  0.202745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433806': 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) = 5773.67453925
delta logL = 0.540406278888

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  9.483e+00  1.195e+01  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  1.324e+00  5.381e-01  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:  8.731e-01  2.027e-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.530e+00  2.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 216.169 14.784
Photon Index (Free Index): 1.32 +/- 0.54
Photon Flux (Free Index): 1.17e-08 +/- 1.63e-08
Energy Flux (Free Index): 6.61e-05 +/- 1.03e-04

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/433806/cmap_HighResolution_489456001_489715201_4FGL_J1424.6+1447_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', energy_flux2='6.61e-05', dlogl='5.40e-01', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-09 14:31:11.259515', photon_index_error2='0.54', photon_index2='1.32', ts='0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.14e-08', energy_flux_error2='1.03e-04', EG='1.52', time_epoch_completed='1631223071.26', return_code='0', job_id='433806', GAL2='0.87', EG2='1.53', return_code2='0', photon_flux_error2='1.63e-08', ts2='1.09', photon_index='2.17' WHERE bin_id='965' AND source_name='4FGL J1424.6+1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 433806: <4FGL_J1424.6+1447_daily_bin965> in cluster <slac> Done

Job <4FGL_J1424.6+1447_daily_bin965> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 14:16:19 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 14:16:20 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:16:20 2021
Terminated at Thu Sep  9 14:31:11 2021
Results reported at Thu Sep  9 14:31:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.6+1447_daily_bin965 216.169 14.784 489456001 489715201 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 :                                   668.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

