/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 146 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 = 7450
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.4-0838_daily_bin345
RA = 214.86, Dec = -8.6417
tmin = 328752001, tmax = 329011201
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='332876', job_status='RUN', time_executed='2021-09-09 08:58:18.586597', time_epoch_executed='1631203098.59' WHERE source_name='4FGL J1419.4-0838' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332876/ft1_4FGL_J1419.4-0838_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332876/ft2_4FGL_J1419.4-0838_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332876/ft1_4FGL_J1419.4-0838_daily_bin345.fits outfile=/scratch/kocevski/332876/ft1_filteredMKT_4FGL_J1419.4-0838_daily_bin345.fits ra=214.86 dec=-8.6417 rad=12.0 tmin=328752001.0 tmax=329011201.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 2.75
user 2.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332876/ft2_4FGL_J1419.4-0838_daily_bin345.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/332876/ft1_filteredMKT_4FGL_J1419.4-0838_daily_bin345.fits evtable="EVENTS" outfile="/scratch/kocevski/332876/ft1_filtered_4FGL_J1419.4-0838_daily_bin345.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.41
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332876/ft1_filtered_4FGL_J1419.4-0838_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/332876/ft2_4FGL_J1419.4-0838_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/332876/ltcube_328752001_329011201_4FGL_J1419.4-0838_daily_bin345.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/332876/ft2_4FGL_J1419.4-0838_daily_bin345.fits
.....................!
real 11.38
user 11.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332876/ft1_filtered_4FGL_J1419.4-0838_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/332876/ft2_4FGL_J1419.4-0838_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/332876/ltcube_328752001_329011201_4FGL_J1419.4-0838_daily_bin345.fits outfile=/scratch/kocevski/332876/expmap_328752001_329011201_4FGL_J1419.4-0838_daily_bin345.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/332876/ltcube_328752001_329011201_4FGL_J1419.4-0838_daily_bin345.fits
.....................!
real 151.31
user 141.91
sys 3.96

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/332876/ft1_filtered_4FGL_J1419.4-0838_daily_bin345.fits scfile=/scratch/kocevski/332876/ft2_4FGL_J1419.4-0838_daily_bin345.fits outfile=/scratch/kocevski/332876/cmap_328752001_329011201_4FGL_J1419.4-0838_daily_bin345.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.45
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332876/ft1_filtered_4FGL_J1419.4-0838_daily_bin345.fits scfile=/scratch/kocevski/332876/ft2_4FGL_J1419.4-0838_daily_bin345.fits outfile=/scratch/kocevski/332876/cmap_HighResolution_328752001_329011201_4FGL_J1419.4-0838_daily_bin345.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.45
user 0.29
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332876/ft1_filtered_4FGL_J1419.4-0838_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/332876/ft2_4FGL_J1419.4-0838_daily_bin345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332876/Model_4FGL_J1419.4-0838_daily_bin345.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/332876/ft1_filtered_4FGL_J1419.4-0838_daily_bin345.fits.....................!
real 46.96
user 45.77
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16788E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.811       1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .64794       1.0000         .10000E-03   10000.    
    14 'Prefactor '    182.82       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4833       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32920E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3022       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80140       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.

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

 FCN=   7797.787     FROM MIGRAD    STATUS=FAILED       717 CALLS     2332 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95701        2.7369        .25291E-02    .46419E-02
   2  Prefactor     2.1728        2.6070        .15172E-03    .53500E-04
   3  Prefactor     .10000E-03    85.382        .18142E-02** at limit **
   4  Prefactor     .10000E-03    46.982        .18142E-02** at limit **
   5  norm          .10000E-03    1.4307        .10306E-02** at limit **
   6  Prefactor     10.788        21.287        .12185E-03    .28923E-05
   7  norm          .10000E-03    1.0069        .17052E-03** at limit **
   8  Prefactor     .10000E-03    14.245        .18142E-02** at limit **
   9  norm          .10000E-03    7.3206        .18142E-02** at limit **
  10  norm          12.299        7.3294        .11423E-03    .41303E-04
  11  Prefactor     .10000E-03    13.999        .18142E-02** at limit **
  12  Prefactor     .10000E-03    25.734        .18142E-02** at limit **
  13  norm          .65498        20.574        .41371E-02    .24530E-02
  14  Prefactor     182.80        128.86        .14929E-03   -.11194E-04
  15  Prefactor     4.4870        5.4087        .95079E-03    .53281E-04
  16  Prefactor     .10000E-03    50.017        .18142E-02** at limit **
  17  Prefactor     .75095E-01    24.319        .12005        .86124E-04
  18  Normalizat    1.3015        .24244        .30092E-03   -.38385E-04
  19  Prefactor     .80174        .11670        .18339E-03   -.56537E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7797.787     FROM SIMPLEX   STATUS=UNCHANGED    930 CALLS     3262 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95701        2.7369        .99105E-07   -1.5512    
   2  Prefactor     2.1728        2.6070        .10531E-06   -1.5413    
   3  Prefactor     .10000E-03    85.382        .92608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.982        .75389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4307        .18869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.788        21.287        .72264E-07   -1.5051    
   7  norm          .10000E-03    1.0069        .89372E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.245        .34238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.3206        .34562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.299        7.3294        .71243E-07   -1.5006    
  11  Prefactor     .10000E-03    13.999        .34816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.734        .58382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .65498        20.574        .73442E-07   -1.5546    
  14  Prefactor     182.80        128.86        .61500E-07   -1.2996    
  15  Prefactor     4.4870        5.4087        .72372E-07   -1.5284    
  16  Prefactor     .10000E-03    50.017        .76014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75095E-01    24.319        .85710E-07   -1.5653    
  18  Normalizat    1.3015        .24244        .39549E-07   -.83521    
  19  Prefactor     .80174        .11670        .47418E-07   -.99664    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7797.787     FROM MIGRAD    STATUS=CONVERGED    277 CALLS     3539 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95701        2.7325        .50582E-03    .18543E-03
   2  Prefactor     2.1728        2.6068        .60689E-05    .26226E-05
   3  Prefactor     .10000E-03    85.428        .36285E-03** at limit **
   4  Prefactor     .10000E-03    46.992        .36285E-03** at limit **
   5  norm          .10000E-03    1.4308        .20611E-03** at limit **
   6  Prefactor     10.788        21.282        .48740E-05   -.46650E-06
   7  norm          .10000E-03    1.0069        .34104E-04** at limit **
   8  Prefactor     .10000E-03    14.247        .36285E-03** at limit **
   9  norm          .10000E-03    7.3230        .36285E-03** at limit **
  10  norm          12.299        7.3290        .45692E-05    .24881E-05
  11  Prefactor     .10000E-03    14.002        .36285E-03** at limit **
  12  Prefactor     .10000E-03    25.756        .36285E-03** at limit **
  13  norm          .65498        20.659        .82742E-03    .97853E-04
  14  Prefactor     182.80        128.84        .59715E-05   -.38076E-06
  15  Prefactor     4.4870        5.4022        .38032E-04   -.29893E-06
  16  Prefactor     .10000E-03    50.018        .36285E-03** at limit **
  17  Prefactor     .75096E-01    23.632        .12253        .83686E-04
  18  Normalizat    1.3015        .24263        .12037E-04   -.32113E-05
  19  Prefactor     .80174        .11673        .73356E-05   -.43394E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.95701
  Prefactor  = 2.1728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7884
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.2986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.654978
  Prefactor  = 182.802
  Prefactor  = 4.487
  Prefactor  = 0.0001
  Prefactor  = 0.0750956
  Normalizat = 1.30152
  Prefactor  = 0.801743
 **********
 **   18 **HESSE 
 **********

 FCN=   7797.787     FROM HESSE     STATUS=OK           262 CALLS     3801 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95701        2.7322        .10116E-03   -1.5512    
   2  Prefactor     2.1728        2.6065        .12138E-05   -1.5413    
   3  Prefactor     .10000E-03    85.430        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.992        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4308        .41223E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.788        21.260        .97480E-06   -1.5051    
   7  norm          .10000E-03    1.0069        .68208E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.247        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.3231        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.299        7.3295        .91384E-06   -1.5006    
  11  Prefactor     .10000E-03    14.002        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.757        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .65498        20.644        .16548E-03   -1.5546    
  14  Prefactor     182.80        128.16        .11943E-05   -1.2996    
  15  Prefactor     4.4870        5.4007        .15213E-05   -1.5284    
  16  Prefactor     .10000E-03    50.018        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .75096E-01    23.789        .12193       -1.5653    
  18  Normalizat    1.3015        .24270        .24073E-05   -.83521    
  19  Prefactor     .80174        .11665        .14671E-05   -.99664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78891e-11
Minuit parameter uncertainties:
  1  2.73258
  2  2.60668
  3  3.47484e-05
  4  2.54014e-06
  5  8.19521e-08
  6  21.2749
  7  2.62374e-07
  8  1.51484e-06
  9  3.23945e-07
  10  7.33005
  11  1.44854e-06
  12  7.811e-07
  13  7.35646
  14  128.352
  15  5.40126
  16  4.04749e-06
  17  2.67247
  18  0.242916
  19  0.116689
Done.

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

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  1.230e+01  7.330e+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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  8.017e-01  1.167e-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.302e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.61
Ra Dec: 214.860 -8.642
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.58e-05

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) = 7797.77794269
delta logL = 0.00913363493964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7797.77654524
delta logL = 0.0105310833651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.930       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2115       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80306       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7797.777     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      235 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.930        7.7847        .11598E-03    .14054E-02
   2  alpha         2.2116        .51955        .13782E-01    .16789E-03
   3  Normalizat    1.2976        .23398        .30131E-03   -.13066E-03
   4  Prefactor     .80308        .11493        .18326E-03   -.27913E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9298
  alpha      = 2.21164
  Normalizat = 1.29757
  Prefactor  = 0.803082
 **********
 **   18 **HESSE 
 **********

 FCN=   7797.777     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.930        7.6642        .23196E-04   -1.5017    
   2  alpha         2.2116        .51144        .55128E-03   -.11560    
   3  Normalizat    1.2976        .23411        .12052E-04   -.83639    
   4  Prefactor     .80308        .11499        .36652E-04   -.99615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40306e-09
Minuit parameter uncertainties:
  1  7.66487
  2  0.515131
  3  0.234302
  4  0.115025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332876': 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) = 7797.77654519
delta logL = 0.0105311396792

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  1.193e+01  7.665e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.212e+00  5.151e-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:  8.031e-01  1.150e-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.298e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 214.860 -8.642
Photon Index (Free Index): 2.21 +/- 0.52
Photon Flux (Free Index): 6.31e-08 +/- 4.22e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.75e-05

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/332876/cmap_HighResolution_328752001_329011201_4FGL_J1419.4-0838_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='2.51e-05', photon_flux_error='3.58e-08', dlogl='1.05e-02', energy_flux='2.65e-05', photon_flux2='6.31e-08', job_status='DONE', time_completed='2021-09-09 09:07:22.474558', photon_index_error2='0.52', photon_index2='2.21', ts='5.61', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.30', time_epoch_completed='1631203642.47', return_code='0', job_id='332876', GAL2='0.80', EG2='1.30', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.22e-08', ts2='5.64', photon_index='2.14' WHERE bin_id='345' AND source_name='4FGL J1419.4-0838' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:07:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 332876: <4FGL_J1419.4-0838_daily_bin345> in cluster <slac> Done

Job <4FGL_J1419.4-0838_daily_bin345> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 08:55:44 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:55: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 08:55:45 2021
Terminated at Thu Sep  9 09:07:23 2021
Results reported at Thu Sep  9 09:07:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.4-0838_daily_bin345 214.86 -8.6417 328752001 329011201 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 :                                   533.46 sec.
    Max Memory :                                 1181 MB
    Average Memory :                             288.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            699 sec.

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

