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


Performing analysis on: 4FGL_J1419.4-0838_daily_bin536
RA = 214.86, Dec = -8.6417
tmin = 378259201, tmax = 378518401
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='334127', job_status='RUN', time_executed='2021-09-09 09:03:06.828848', time_epoch_executed='1631203386.83' WHERE source_name='4FGL J1419.4-0838' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334127/ft1_4FGL_J1419.4-0838_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334127/ft1_4FGL_J1419.4-0838_daily_bin536.fits outfile=/scratch/kocevski/334127/ft1_filteredMKT_4FGL_J1419.4-0838_daily_bin536.fits ra=214.86 dec=-8.6417 rad=12.0 tmin=378259201.0 tmax=378518401.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 4.44
user 4.19
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.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/334127/ft1_filteredMKT_4FGL_J1419.4-0838_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/334127/ltcube_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.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/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits
.....................!
real 11.65
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/334127/ltcube_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.fits outfile=/scratch/kocevski/334127/expmap_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.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/334127/ltcube_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.fits
.....................!
real 192.49
user 186.92
sys 5.21

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

Setting source of interest to:
4FGL J1419.4-0838 @ 214.86 -8.6417

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.fits scfile=/scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits outfile=/scratch/kocevski/334127/cmap_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.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=214.86 yref=-8.6417 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/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.fits scfile=/scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits outfile=/scratch/kocevski/334127/cmap_HighResolution_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.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=214.86 yref=-8.6417 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/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334127/Model_4FGL_J1419.4-0838_daily_bin536.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/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.fits.....................!
real 54.00
user 52.62
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.fits', '/scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits', expMap='/scratch/kocevski/334127/expmap_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.fits', expCube='/scratch/kocevski/334127/ltcube_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/334127/Model_4FGL_J1419.4-0838_daily_bin536.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.4-0838'

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  7.071e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/334127/ft1_filtered_4FGL_J1419.4-0838_daily_bin536.fits
Spacecraft file(s): /scratch/kocevski/334127/ft2_4FGL_J1419.4-0838_daily_bin536.fits
Exposure map: /scratch/kocevski/334127/expmap_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.fits
Exposure cube: /scratch/kocevski/334127/ltcube_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/334127/Model_4FGL_J1419.4-0838_daily_bin536.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) = 6504.48588115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.0704       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13824E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.982       1.0000         .10000E-03   10000.    
     9 'norm      '    9.7382       1.0000         .10000E-03   10000.    
    10 'norm      '    .68086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.765       1.0000         .10000E-03   10000.    
    13 'norm      '    8.9948       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2702       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6504.479     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1867 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.990        9.3891        .55855E-06   -.53239E-04
   2  Prefactor     .10000E-03    3.6190       -.26767E-07** at limit **
   3  Prefactor     50.096        35.117       -.24413E-05   -.48042E-05
   4  Prefactor     .10000E-03    27.617       -.18029E-05** at limit **
   5  norm          8.0682        7.1404        .13809E-06   -.75820E-04
   6  Prefactor     .10000E-03    4.3227        .25953E-07** at limit **
   7  norm          .10000E-03    1.4612       -.27721E-06** at limit **
   8  Prefactor     12.983        12.712        .26975E-06    .82912E-05
   9  norm          9.7384        9.2163        .96877E-07    .34262E-04
  10  norm          .10001E-03    4.3858       -.17364E-05** at limit **
  11  Prefactor     44.690        26.858        .16150E-04    .13719E-03
  12  Prefactor     13.763        16.083       -.49306E-07   -.67160E-06
  13  norm          8.9922        11.491       -.36402E-07   -.53311E-04
  14  Prefactor     .10000E-03    52.891        .61722E-05** at limit **
  15  Prefactor     .10000E-03    2.3017       -.83575E-07** at limit **
  16  Prefactor     .10000E-03    24.181       -.41356E-05** at limit **
  17  Prefactor     .10000E-03    22.626        .41683E-05** at limit **
  18  Normalizat    1.2699        .23728       -.25600E-05    .18575E-03
  19  Prefactor     .90387        .11528       -.56591E-06    .18821E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9896
  Prefactor  = 0.0001
  Prefactor  = 50.0959
  Prefactor  = 0.0001
  norm       = 8.06824
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.983
  norm       = 9.73842
  norm       = 0.000100005
  Prefactor  = 44.6902
  Prefactor  = 13.7634
  norm       = 8.9922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26989
  Prefactor  = 0.903865
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.479     FROM HESSE     STATUS=OK           268 CALLS     2135 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.990        9.3840        .11113E-03   -1.4987    
   2  Prefactor     .10000E-03    3.6581        .14960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     50.096        35.311        .56657E-04   -1.4291    
   4  Prefactor     .10000E-03    27.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.0682        7.1279        .14113E-03   -1.5140    
   6  Prefactor     .10000E-03    4.3239        .16376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.3532        .18501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.983        12.716        .11117E-03   -1.4987    
   9  norm          9.7384        9.2191        .12841E-03   -1.5084    
  10  norm          .10001E-03    11.479        .32643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.690        26.901        .59993E-04   -1.4370    
  12  Prefactor     13.763        16.083        .10796E-03   -1.4966    
  13  norm          8.9922        11.493        .13364E-03   -1.5108    
  14  Prefactor     .10000E-03    52.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3183        .11948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2699        .27502        .32737E-03   -.84470    
  19  Prefactor     .90387        .13495        .19033E-03   -.96006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69239e-10
Minuit parameter uncertainties:
  1  9.38509
  2  1.464e-06
  3  35.3253
  4  1.13776e-05
  5  7.12865
  6  7.58473e-06
  7  1.57489e-05
  8  12.7189
  9  9.2204
  10  0.000487148
  11  26.9085
  12  16.0878
  13  11.4955
  14  3.96341e-05
  15  2.11469e-06
  16  7.28049e-06
  17  4.51847e-06
  18  0.275339
  19  0.134996
Done.

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

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  1.000e-04  4.871e-04  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.039e-01  1.350e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.270e+00  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.860 -8.642
Photon Flux Upper Limit: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334127/likelihoodResults_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.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) = 6504.47922819
delta logL = -0.000413126103922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6504.12849471
delta logL = 0.350320358075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0388       1.0000         .10000E-03   10000.    
     2 'alpha     '    .89494       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90119       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6504.128     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      261 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0392        2.6058        .30420E-01    .49374E-03
   2  alpha         .89517        .65308        .50000       -.57765E-04
   3  Normalizat    1.2699        .22755        .73948E-01    .11331E-04
   4  Prefactor     .90118        .11446        .45020E-01    .45855E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03916
  alpha      = 0.89517
  Normalizat = 1.26989
  Prefactor  = 0.901176
 **********
 **   18 **HESSE 
 **********

 FCN=   6504.128     FROM HESSE     STATUS=OK            35 CALLS      296 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0392        2.5915        .16862E-02   -1.5504    
   2  alpha         .89517        .90213        .22945E-01   -.69702    
   3  Normalizat    1.2699        .26487        .32724E-03   -.84470    
   4  Prefactor     .90118        .13340        .19051E-03   -.96100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15671e-11
Minuit parameter uncertainties:
  1  2.59178
  2  0.939267
  3  0.265156
  4  0.133446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334127': 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) = 6504.12849466
delta logL = 0.350320399636

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  1.039e+00  2.592e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  8.952e-01  9.393e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.012e-01  1.334e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.270e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.860 -8.642

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/334127/cmap_HighResolution_378259201_378518401_4FGL_J1419.4-0838_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-05', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-09 09:12:25.711989', job_id='334127', GAL2='0.90', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631203945.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.50e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='536' AND source_name='4FGL J1419.4-0838' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 334127: <4FGL_J1419.4-0838_daily_bin536> in cluster <slac> Done

Job <4FGL_J1419.4-0838_daily_bin536> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 09:00:23 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:00:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:00:25 2021
Terminated at Thu Sep  9 09:12:26 2021
Results reported at Thu Sep  9 09:12:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.4-0838_daily_bin536 214.86 -8.6417 378259201 378518401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.4-0838 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

