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


Performing analysis on: 4FGL_J1419.4-0838_daily_bin927
RA = 214.86, Dec = -8.6417
tmin = 479606401, tmax = 479865601
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='335721', job_status='RUN', time_executed='2021-09-09 09:08:58.300709', time_epoch_executed='1631203738.3' WHERE source_name='4FGL J1419.4-0838' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335721/ft1_4FGL_J1419.4-0838_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335721/ft1_4FGL_J1419.4-0838_daily_bin927.fits outfile=/scratch/kocevski/335721/ft1_filteredMKT_4FGL_J1419.4-0838_daily_bin927.fits ra=214.86 dec=-8.6417 rad=12.0 tmin=479606401.0 tmax=479865601.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.51
user 3.19
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.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/335721/ft1_filteredMKT_4FGL_J1419.4-0838_daily_bin927.fits evtable="EVENTS" outfile="/scratch/kocevski/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.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.56
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.fits" evtable="EVENTS" scfile=/scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits sctable="SC_DATA" outfile=/scratch/kocevski/335721/ltcube_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.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/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits
.....................!
real 12.26
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/335721/ltcube_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.fits outfile=/scratch/kocevski/335721/expmap_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.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/335721/ltcube_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.fits
.....................!
real 191.54
user 185.84
sys 5.22

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/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.fits scfile=/scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits outfile=/scratch/kocevski/335721/cmap_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.fits scfile=/scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits outfile=/scratch/kocevski/335721/cmap_HighResolution_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335721/Model_4FGL_J1419.4-0838_daily_bin927.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/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.fits.....................!
real 57.97
user 56.56
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.fits', '/scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits', expMap='/scratch/kocevski/335721/expmap_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.fits', expCube='/scratch/kocevski/335721/ltcube_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335721/Model_4FGL_J1419.4-0838_daily_bin927.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/335721/ft1_filtered_4FGL_J1419.4-0838_daily_bin927.fits
Spacecraft file(s): /scratch/kocevski/335721/ft2_4FGL_J1419.4-0838_daily_bin927.fits
Exposure map: /scratch/kocevski/335721/expmap_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.fits
Exposure cube: /scratch/kocevski/335721/ltcube_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335721/Model_4FGL_J1419.4-0838_daily_bin927.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) = 7201.65341841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2554       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.015       1.0000         .10000E-03   10000.    
     5 'norm      '    .10458E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.866       1.0000         .10000E-03   10000.    
    10 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7024       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1935       1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.894       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26649E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93827       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0337       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=   7201.652     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1868 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2563        8.5178        .20028E-06   -.13584E-04
   2  Prefactor     4.5793        6.0843        .35689E-06   -.28386E-04
   3  Prefactor     .10000E-03    12.009        .25133E-06** at limit **
   4  Prefactor     14.011        34.356        .21327E-06   -.12467E-04
   5  norm          .10000E-03    8.6845       -.74578E-07** at limit **
   6  Prefactor     .10000E-03    11.044       -.16779E-07** at limit **
   7  norm          .10000E-03    1.0247       -.19916E-07** at limit **
   8  Prefactor     .10000E-03    19.293        .58939E-06** at limit **
   9  norm          20.867        12.332        .84852E-07   -.35520E-05
  10  norm          .10000E-03    4.3207       -.16923E-06** at limit **
  11  Prefactor     4.6999        30.410        .10082E-04   -.93403E-05
  12  Prefactor     5.1930        15.603        .51788E-05   -.13643E-04
  13  norm          .10000E-03    16.194       -.39474E-06** at limit **
  14  Prefactor     .10000E-03    78.905        .15099E-05** at limit **
  15  Prefactor     10.896        5.8827       -.24119E-05    .21924E-04
  16  Prefactor     .10001E-03    376.53       -.17465E-05** at limit **
  17  Prefactor     .10000E-03    46.281       -.18007E-06** at limit **
  18  Normalizat    .93829        .22056       -.10210E-05   -.45735E-04
  19  Prefactor     1.0337        .10926       -.64137E-06   -.62497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.2563
  Prefactor  = 4.57931
  Prefactor  = 0.0001
  Prefactor  = 14.0113
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.8667
  norm       = 0.0001
  Prefactor  = 4.6999
  Prefactor  = 5.19298
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 10.8956
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Normalizat = 0.938288
  Prefactor  = 1.03375
 **********
 **   18 **HESSE 
 **********

 FCN=   7201.652     FROM HESSE     STATUS=OK           264 CALLS     2132 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2563        8.4958        .14891E-03   -1.5169    
   2  Prefactor     4.5793        6.0592        .18809E-03   -1.5280    
   3  Prefactor     .10000E-03    12.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.011        34.368        .10699E-03   -1.4959    
   5  norm          .10000E-03    8.8151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0432        .83821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.867        12.333        .87684E-04   -1.4794    
  10  norm          .10000E-03    4.3520        .17219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6999        30.472        .92784E-03   -1.5274    
  12  Prefactor     5.1930        15.602        .88198E-03   -1.5252    
  13  norm          .10000E-03    16.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    78.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.896        5.8661        .12138E-03   -1.5048    
  16  Prefactor     .10001E-03    374.44        .19953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .93829        .25383        .36333E-03   -.95128    
  19  Prefactor     1.0337        .12646        .17476E-03   -.91613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36206e-10
Minuit parameter uncertainties:
  1  8.49719
  2  6.06001
  3  7.04338e-05
  4  34.4165
  5  2.09895e-06
  6  2.25106e-05
  7  1.13553e-06
  8  0.000164798
  9  12.3346
  10  1.77773e-05
  11  23.9523
  12  15.6146
  13  6.37451e-05
  14  0.00120468
  15  5.86644
  16  0.00455051
  17  5.56623e-06
  18  0.254154
  19  0.126493
Done.

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

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  1.000e-04  1.778e-05  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:  1.034e+00  1.265e-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:  9.383e-01  2.542e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335721/likelihoodResults_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.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) = 7201.65292313
delta logL = -0.00109493062155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7201.56830711
delta logL = 0.0835210866362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58024       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8524       1.0000          .0000       5.0000    
     3 'Normalizat'    .90359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0424       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7201.568     FROM MIGRAD    STATUS=FAILED        92 CALLS      329 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58033        159.25        .72528E-03   -.16226E-02
   2  alpha         3.8524        4.4134        .45429E-01    .61505E-04
   3  Normalizat    .90359        .21626        .36965E-03   -.17223E-05
   4  Prefactor     1.0424        .98267E-01    .17412E-03    .84880E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7201.568     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      419 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58033        159.25        .13486E-03   -.16226E-02
   2  alpha         3.8524        4.4134        .29500E-02    .61505E-04
   3  Normalizat    .90359        .21626        .26463E-03   -.17223E-05
   4  Prefactor     1.0424        .98267E-01    .84560E-04    .84880E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7201.568     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      451 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58055        2.4846        .29011E-04    .41147E-04
   2  alpha         3.8522        3.7638        .18172E-02    .10761E-05
   3  Normalizat    .90359        .26096        .14786E-04    .45210E-04
   4  Prefactor     1.0424        .12703        .69648E-05    .39828E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.580549
  alpha      = 3.85224
  Normalizat = 0.903589
  Prefactor  = 1.04241
 **********
 **   18 **HESSE 
 **********

 FCN=   7201.568     FROM HESSE     STATUS=OK            23 CALLS      474 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58055        2.3651        .11604E-05   -1.5556    
   2  alpha         3.8522        3.7354        .72687E-04    .57150    
   3  Normalizat    .90359        .26106        .29572E-05   -.96334    
   4  Prefactor     1.0424        .12710        .13930E-05   -.91329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72948e-12
Minuit parameter uncertainties:
  1  2.34352
  2  2.17719
  3  0.261426
  4  0.127132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335721': 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) = 7201.5683071
delta logL = 0.083521098707

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  5.805e-01  2.344e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  3.852e+00  2.177e+00  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:  1.042e+00  1.271e-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:  9.036e-01  2.614e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/335721/cmap_HighResolution_479606401_479865601_4FGL_J1419.4-0838_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='7.37e-08', time_completed='2021-09-09 09:18:41.141869', job_id='335721', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.94', time_epoch_completed='1631204321.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.35e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='927' AND source_name='4FGL J1419.4-0838' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:18:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 335721: <4FGL_J1419.4-0838_daily_bin927> in cluster <slac> Done

Job <4FGL_J1419.4-0838_daily_bin927> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 09:05:28 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:05:33 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:05:33 2021
Terminated at Thu Sep  9 09:18:41 2021
Results reported at Thu Sep  9 09:18:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.4-0838_daily_bin927 214.86 -8.6417 479606401 479865601 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            793 sec.

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

