/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 28 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin6
RA = 214.894, Dec = 38.3657
tmin = 240883201, tmax = 241142401
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='338732', job_status='RUN', time_executed='2021-09-09 09:16:11.616914', time_epoch_executed='1631204171.62' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338732/ft1_4FGL_J1419.5+3821_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338732/ft2_4FGL_J1419.5+3821_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338732/ft1_4FGL_J1419.5+3821_daily_bin6.fits outfile=/scratch/kocevski/338732/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin6.fits ra=214.894 dec=38.3657 rad=12.0 tmin=240883201.0 tmax=241142401.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 1.49
user 1.30
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338732/ft2_4FGL_J1419.5+3821_daily_bin6.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/338732/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/338732/ft1_filtered_4FGL_J1419.5+3821_daily_bin6.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.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338732/ft1_filtered_4FGL_J1419.5+3821_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/338732/ft2_4FGL_J1419.5+3821_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/338732/ltcube_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.fits outfile=/scratch/kocevski/338732/expmap_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.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/338732/ltcube_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.fits
.....................!
real 190.19
user 185.14
sys 4.70

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/338732/ft1_filtered_4FGL_J1419.5+3821_daily_bin6.fits scfile=/scratch/kocevski/338732/ft2_4FGL_J1419.5+3821_daily_bin6.fits outfile=/scratch/kocevski/338732/cmap_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338732/ft1_filtered_4FGL_J1419.5+3821_daily_bin6.fits scfile=/scratch/kocevski/338732/ft2_4FGL_J1419.5+3821_daily_bin6.fits outfile=/scratch/kocevski/338732/cmap_HighResolution_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/338732/ft1_filtered_4FGL_J1419.5+3821_daily_bin6.fits', '/scratch/kocevski/338732/ft2_4FGL_J1419.5+3821_daily_bin6.fits', expMap='/scratch/kocevski/338732/expmap_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.fits', expCube='/scratch/kocevski/338732/ltcube_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/338732/Model_4FGL_J1419.5+3821_daily_bin6.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  1.000e-04  1.000e+04 ( 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/338732/ft1_filtered_4FGL_J1419.5+3821_daily_bin6.fits
Spacecraft file(s): /scratch/kocevski/338732/ft2_4FGL_J1419.5+3821_daily_bin6.fits
Exposure map: /scratch/kocevski/338732/expmap_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.fits
Exposure cube: /scratch/kocevski/338732/ltcube_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/338732/Model_4FGL_J1419.5+3821_daily_bin6.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) = 6417.94512624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8310       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12225E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.445       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8510       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.498       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0460       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80971E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6414       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10477E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6316       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    73.122       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1519       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75253       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6417.942     FROM MIGRAD    STATUS=CONVERGED   1135 CALLS     3646 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.258        .18142E-02** at limit **
   2  Prefactor     .10000E-03    57.564        .18142E-02** at limit **
   3  norm          1.8311        1.1275        .64913E-04    .13748E-03
   4  Prefactor     .10044E-03    4.2380        .35819E-01** at limit **
   5  norm          .10000E-03    8.2687        .18142E-02** at limit **
   6  Prefactor     .10000E-03    8.2826        .18142E-02** at limit **
   7  Prefactor     18.476        44.498        .93256E-04    .19505E-04
   8  Prefactor     1.8498        4.8024        .26570E-03    .18001E-03
   9  Prefactor     26.500        19.632        .77823E-04    .18389E-03
  10  norm          .10000E-03    1.1125        .82245E-03** at limit **
  11  Prefactor     .10000E-03    6.4531        .18142E-02** at limit **
  12  Prefactor     9.8080        15.547        .12790E-03   -.17956E-04
  13  Prefactor     4.0448        3.5225        .13283E-03    .12539E-03
  14  norm          .10000E-03    2.9544        .13448E-02** at limit **
  15  Prefactor     .10000E-03    7.4997        .18142E-02** at limit **
  16  norm          .10000E-03    3.3361        .14165E-02** at limit **
  17  Prefactor     44.582        29.583        .60060E-04    .22336E-04
  18  Prefactor     .10006E-03    241.91        .73260E-02** at limit **
  19  norm          3.6419        6.1497        .21170E-03    .85224E-04
  20  Prefactor     .10009E-03    11.626        .69162E-01** at limit **
  21  Prefactor     .10002E-03    62.144        .35331E-02** at limit **
  22  norm          1.6321        1.2665        .74669E-04   -.78715E-04
  23  Prefactor     .10000E-03    8.3838        .18142E-02** at limit **
  24  Prefactor     73.067        80.337        .46950E-04    .12858E-03
  25  Normalizat    1.1520        .19792        .20591E-03    .75872E-04
  26  Prefactor     .75241        .21248        .28506E-03    .20826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.83108
  Prefactor  = 0.000100442
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4758
  Prefactor  = 1.84977
  Prefactor  = 26.4997
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.80803
  Prefactor  = 4.04479
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.5822
  Prefactor  = 0.000100057
  norm       = 3.6419
  Prefactor  = 0.000100091
  Prefactor  = 0.000100017
  norm       = 1.63213
  Prefactor  = 0.0001
  Prefactor  = 73.0669
  Normalizat = 1.15197
  Prefactor  = 0.752413
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.942     FROM HESSE     STATUS=OK           454 CALLS     4100 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8311        1.1275        .25965E-05   -1.5437    
   4  Prefactor     .10044E-03    3.3203        .42249E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.2716        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.476        44.487        .37303E-05   -1.4848    
   8  Prefactor     1.8498        4.8010        .10628E-04   -1.5436    
   9  Prefactor     26.500        19.629        .15565E-04   -1.4678    
  10  norm          .10000E-03    1.1126        .16449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.8080        15.544        .51159E-05   -1.5082    
  13  Prefactor     4.0448        3.5223        .53132E-05   -1.5306    
  14  norm          .10000E-03    2.9544        .26895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3374        .28331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     44.582        29.584        .24024E-05   -1.4372    
  18  Prefactor     .10006E-03    251.76        .29304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6419        6.1491        .84681E-05   -1.5326    
  20  Prefactor     .10009E-03    10.531        .74143E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    64.227        .14133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6321        1.2634        .29868E-05   -1.5452    
  23  Prefactor     .10000E-03    8.3863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     73.067        80.337        .93901E-05   -1.3996    
  25  Normalizat    1.1520        .19807        .41182E-04   -.88100    
  26  Prefactor     .75241        .21267        .11402E-04   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24306e-09
Minuit parameter uncertainties:
  1  1.82768e-06
  2  0.000533338
  3  1.12747
  4  0.00242358
  5  2.1072e-05
  6  1.16085e-05
  7  44.567
  8  4.80195
  9  19.634
  10  3.20583e-06
  11  6.07669e-07
  12  15.5508
  13  3.52244
  14  6.21214e-07
  15  3.3045e-06
  16  4.75242e-06
  17  29.5935
  18  0.00757797
  19  6.1502
  20  0.00196162
  21  0.00209052
  22  1.26344
  23  1.66666e-05
  24  80.4563
  25  0.1982
  26  0.212903
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.077e-07  1.000e-04  1.000e+04 ( 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:  7.524e-01  2.129e-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.152e+00  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338732/likelihoodResults_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.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) = 6417.94229605
delta logL = -0.000738290565096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6417.94155799
delta logL = -2.25656549446e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4936       1.0000          .0000       10.000    
     3 'Normalizat'    1.1519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75255       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=   6417.942     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    237.68        .90712E-02** at limit **
   2  Index         2.5165        5.6716        .50000       -.33897E-04
   3  Normalizat    1.1520        .23312E-01    .36196E-01    .12890E-03
   4  Prefactor     .75241        .26761E-01    .64437E-01    .79492E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.5165
  Normalizat = 1.15197
  Prefactor  = 0.75241
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.942     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    442.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5165        5.4131        .50000       -.51979    
   3  Normalizat    1.1520        .33152E-01    .20591E-03   -.88100    
   4  Prefactor     .75241        .38015E-01    .28506E-03   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47205e-08
Minuit parameter uncertainties:
  1  0.00210635
  2  35.5048
  3  0.0331524
  4  0.0380162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338732': 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): 102
logL (Free Index) = 6417.94155744
delta logL = 3.18782440445e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.106e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.516e+00  3.550e+01  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:  7.524e-01  3.802e-02  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.152e+00  3.315e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.894 38.366

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/338732/cmap_HighResolution_240883201_241142401_4FGL_J1419.5+3821_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-09 09:29:00.780601', job_id='338732', GAL2='0.75', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631204940.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='6' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:29:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 338732: <4FGL_J1419.5+3821_daily_bin6> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin6> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:33 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:34 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:15:34 2021
Terminated at Thu Sep  9 09:29:01 2021
Results reported at Thu Sep  9 09:29:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin6 214.894 38.3657 240883201 241142401 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 :                                   767.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            808 sec.

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

