aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 37 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7681
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1780
RA = 214.894, Dec = 38.3657
tmin = 700704001, tmax = 700963201
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='65301', job_status='RUN', time_executed='2023-03-20 01:01:18.882164', time_epoch_executed='1679299278.88' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65301

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65301/ft1_4FGL_J1419.5+3821_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65301/ft1_4FGL_J1419.5+3821_daily_bin1780.fits outfile=/scratch/kocevski/65301/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1780.fits ra=214.894 dec=38.3657 rad=12.0 tmin=700704001.0 tmax=700963201.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.09
user 3.84
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.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/65301/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.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.51
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 693

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/65301/ltcube_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.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/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits
.....................!
real 12.09
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/65301/ltcube_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.fits outfile=/scratch/kocevski/65301/expmap_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.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/65301/ltcube_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.fits
.....................!
real 189.39
user 185.06
sys 4.00

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

Setting source of interest to:
4FGL J1419.5+3821 @ 214.894 38.3657

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.fits scfile=/scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits outfile=/scratch/kocevski/65301/cmap_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.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.894 yref=38.3657 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.fits scfile=/scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits outfile=/scratch/kocevski/65301/cmap_HighResolution_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.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.894 yref=38.3657 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/65301/Model_4FGL_J1419.5+3821_daily_bin1780.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/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.fits.....................!
real 57.68
user 56.47
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.fits', '/scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits', expMap='/scratch/kocevski/65301/expmap_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.fits', expCube='/scratch/kocevski/65301/ltcube_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/65301/Model_4FGL_J1419.5+3821_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.5+3821'

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.993e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/65301/ft1_filtered_4FGL_J1419.5+3821_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/65301/ft2_4FGL_J1419.5+3821_daily_bin1780.fits
Exposure map: /scratch/kocevski/65301/expmap_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.fits
Exposure cube: /scratch/kocevski/65301/ltcube_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/65301/Model_4FGL_J1419.5+3821_daily_bin1780.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) = 7709.99705708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16070E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .56194E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.7541       1.0000          .0000       .10000E+07
     4 'norm      '    8.3971       1.0000          .0000       .10000E+07
     5 'Prefactor '    .42137E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .55694E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    13.222       1.0000          .0000       .10000E+07
     8 'norm      '    .53543E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    24.551       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15134E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.647       1.0000          .0000       .10000E+07
    12 'norm      '    .73990E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .68763E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    147.92       1.0000          .0000       .10000E+07
    15 'norm      '    8.7441       1.0000          .0000       .10000E+07
    16 'Prefactor '    13.052       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.2130       1.0000          .0000       .10000E+07
    18 'norm      '    .62218       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29896E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11443E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0176       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86931       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7709.978     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1760 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        19.276        .93630E-06** at limit **
   2  norm           .0000        .32481        .69214E-07** at limit **
   3  Prefactor     6.7515        4.7050        .20186E-07   -.32810E-03
   4  norm          8.3910        2.1962       -.33501E-07   -.39764E-01
   5  Prefactor     .11602E-07    31.339       -.11592E-05** at limit **
   6  Prefactor      .0000        2.5286       -.15901E-06** at limit **
   7  Prefactor     13.127        1.5163       -.13128E-07   -.13142E-01
   8  norm          .27756E-09    3.8864        .72622E-07** at limit **
   9  Prefactor     24.471        5.9899        .94761E-07    .10587    
  10  Prefactor     .26146E-07    9.5895       -.44863E-06** at limit **
  11  Prefactor     11.653        4.7825        .88780E-07   -.13749E-02
  12  norm          .13878E-08    4.5622        .15189E-06** at limit **
  13  norm           .0000        1.8356        .39133E-06** at limit **
  14  Prefactor     148.07        3.1235        .14774E-07   -.29444    
  15  norm          8.7374        6.7281       -.90221E-08   -.10698E-02
  16  Prefactor     13.077        1.1185       -.70712E-08   -.42543E-02
  17  Prefactor     4.1952        4.4424       -.38495E-07    .66503E-04
  18  norm          .62272        1.0419        .10620E-06   -.49832E-03
  19  Prefactor     .14649E-06    10.531       -.87206E-06** at limit **
  20  Prefactor     .11102E-09    15.898       -.81019E-06** at limit **
  21  Normalizat    1.0185        .17865       -.69390E-05    .27143E-05
  22  Prefactor     .86868        .20010        .97486E-05   -.10863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 6.75151
  norm       = 8.39101
  Prefactor  = 1.16018e-08
  Prefactor  = 0
  Prefactor  = 13.127
  norm       = 2.77556e-10
  Prefactor  = 24.4711
  Prefactor  = 2.61458e-08
  Prefactor  = 11.653
  norm       = 1.38778e-09
  norm       = 0
  Prefactor  = 148.069
  norm       = 8.73737
  Prefactor  = 13.0765
  Prefactor  = 4.19518
  norm       = 0.622716
  Prefactor  = 1.46494e-07
  Prefactor  = 1.11022e-10
  Normalizat = 1.01853
  Prefactor  = 0.868684
 **********
 **   18 **HESSE 
 **********

 FCN=   7709.978     FROM HESSE     STATUS=OK           382 CALLS     2142 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        19.184        .17310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .32083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7515        4.7143        .38585E-03   -1.5656    
   4  norm          8.3910        12.253        .34571E-03   -1.5650    
   5  Prefactor     .11602E-07    31.457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        2.5201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.127        16.399        .27521E-03   -1.5636    
   8  norm          .27756E-09    3.8643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.471        14.102        .20187E-03   -1.5609    
  10  Prefactor     .26146E-07    9.9185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.653        4.7994        .29328E-03   -1.5640    
  12  norm          .13878E-08    4.5696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.8324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     148.07        45.589        .82227E-04   -1.5465    
  15  norm          8.7374        6.7702        .33873E-03   -1.5649    
  16  Prefactor     13.077        11.757        .27701E-03   -1.5636    
  17  Prefactor     4.1952        4.4812        .49072E-03   -1.5667    
  18  norm          .62272        1.0631        .67264E-03   -1.5692    
  19  Prefactor     .14649E-06    12.415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11102E-09    16.126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0185        .15955        .43722E-01   -.92412    
  22  Prefactor     .86868        .17105        .44613E-01   -.97244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37616e-06
Minuit parameter uncertainties:
  1  3.86002e-05
  2  3.02698e-08
  3  4.71427
  4  12.2533
  5  0.00120892
  6  1.20094e-05
  7  16.3994
  8  6.42227e-05
  9  14.1024
  10  0.00101886
  11  4.79937
  12  0.000158782
  13  1.06682e-05
  14  45.5893
  15  6.77016
  16  11.7565
  17  4.48124
  18  1.06313
  19  0.00269736
  20  8.82607e-05
  21  0.159627
  22  0.171156
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.447e+01  1.410e+01  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.687e-01  1.712e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.019e+00  1.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.11e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.05e-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) = 7707.64274516
delta logL = 2.33504321227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7707.60666142
delta logL = 2.37112694574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9548       1.0000          .0000       .10000E+07
     2 'Index     '    3.8331       1.0000          .0000       10.000    
     3 'Normalizat'    .92216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7707.607     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      255 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9548        21.372        .50699E-03    .16981E-01
   2  Index         3.8331        2.1112        .76740E-01    .22899E-03
   3  Normalizat    .92216        .60683E-01    .45184E-01    .15131E-04
   4  Prefactor     .94688        .66552E-01    .45599E-01    .61941E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.95478
  Index      = 3.83307
  Normalizat = 0.922155
  Prefactor  = 0.946884
 **********
 **   18 **HESSE 
 **********

 FCN=   7707.607     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9548        154.00        .65233E-05   -1.5668    
   2  Index         3.8331        6.9154        .31625E-02   -.23556    
   3  Normalizat    .92216        .21603        .23975E-03   -.95686    
   4  Prefactor     .94688        .25046        .26937E-03   -.94522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21824e-08
Minuit parameter uncertainties:
  1  49.3582
  2  6.34323
  3  0.216233
  4  0.250767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65301': 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) = 7707.60666139
delta logL = 2.37112697526

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  3.955e+00  4.936e+01  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  3.833e+00  6.343e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.469e-01  2.508e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.222e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.27
Ra Dec: 214.894 38.366
Photon Index (Free Index): 3.83 +/- 6.34
Photon Flux (Free Index): 1.33e-07 +/- 7.90e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.80e-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/65301/cmap_HighResolution_700704001_700963201_4FGL_J1419.5+3821_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.11e-08', energy_flux2='2.05e-05', photon_flux_error='3.52e-08', dlogl='2.37e+00', energy_flux='1.83e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2023-03-20 01:11:03.582980', photon_index_error2='6.34', photon_index2='3.83', ts='4.99', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.02', time_epoch_completed='1679299863.58', return_code='0', job_id='65301', GAL2='0.95', EG2='0.92', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='7.90e-08', ts2='10.27', photon_index='2.47' WHERE bin_id='1780' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:11:03 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 65301: <4FGL_J1419.5+3821_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1780> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Mar 20 01:00:30 2023
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:00:32 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:00:32 2023
Terminated at Mon Mar 20 01:11:04 2023
Results reported at Mon Mar 20 01:11:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1780 214.894 38.3657 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.5+3821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            634 sec.

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

