/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 32 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin233
RA = 214.894, Dec = 38.3657
tmin = 299721601, tmax = 299980801
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='340115', job_status='RUN', time_executed='2021-09-09 09:21:14.917678', time_epoch_executed='1631204474.92' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340115

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340115/ft1_4FGL_J1419.5+3821_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340115/ft2_4FGL_J1419.5+3821_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340115/ft1_4FGL_J1419.5+3821_daily_bin233.fits outfile=/scratch/kocevski/340115/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin233.fits ra=214.894 dec=38.3657 rad=12.0 tmin=299721601.0 tmax=299980801.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.43
user 3.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/340115/ft2_4FGL_J1419.5+3821_daily_bin233.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/340115/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin233.fits evtable="EVENTS" outfile="/scratch/kocevski/340115/ft1_filtered_4FGL_J1419.5+3821_daily_bin233.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340115/ft1_filtered_4FGL_J1419.5+3821_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/340115/ft2_4FGL_J1419.5+3821_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/340115/ltcube_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.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/340115/ft2_4FGL_J1419.5+3821_daily_bin233.fits
.....................!
real 11.77
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340115/ft1_filtered_4FGL_J1419.5+3821_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/340115/ft2_4FGL_J1419.5+3821_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/340115/ltcube_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.fits outfile=/scratch/kocevski/340115/expmap_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.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/340115/ltcube_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.fits
.....................!
real 191.18
user 184.87
sys 5.81

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/340115/ft1_filtered_4FGL_J1419.5+3821_daily_bin233.fits scfile=/scratch/kocevski/340115/ft2_4FGL_J1419.5+3821_daily_bin233.fits outfile=/scratch/kocevski/340115/cmap_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340115/ft1_filtered_4FGL_J1419.5+3821_daily_bin233.fits scfile=/scratch/kocevski/340115/ft2_4FGL_J1419.5+3821_daily_bin233.fits outfile=/scratch/kocevski/340115/cmap_HighResolution_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.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.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/340115/ft1_filtered_4FGL_J1419.5+3821_daily_bin233.fits', '/scratch/kocevski/340115/ft2_4FGL_J1419.5+3821_daily_bin233.fits', expMap='/scratch/kocevski/340115/expmap_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.fits', expCube='/scratch/kocevski/340115/ltcube_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/340115/Model_4FGL_J1419.5+3821_daily_bin233.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/340115/ft1_filtered_4FGL_J1419.5+3821_daily_bin233.fits
Spacecraft file(s): /scratch/kocevski/340115/ft2_4FGL_J1419.5+3821_daily_bin233.fits
Exposure map: /scratch/kocevski/340115/expmap_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.fits
Exposure cube: /scratch/kocevski/340115/ltcube_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/340115/Model_4FGL_J1419.5+3821_daily_bin233.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) = 5108.82536648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8286       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.922       1.0000         .10000E-03   10000.    
    10 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.897       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1734       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3705       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.113       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5752       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7446       1.0000         .10000E-03   10000.    
    22 'norm      '    .11193E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    143.79       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .58007       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.

 FCN=   5108.791     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     3063 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.678       -.12686E-06** at limit **
   2  Prefactor     .10000E-03    37.783        .54100E-06** at limit **
   3  norm          .10000E-03    .53086        .89933E-07** at limit **
   4  Prefactor     5.8280        3.8774        .58682E-06   -.59327E-04
   5  norm          3.0066        18.548        .10373E-05   -.30785E-05
   6  Prefactor     .10000E-03    10.138        .69182E-07** at limit **
   7  Prefactor     .10000E-03    46.371        .69604E-07** at limit **
   8  Prefactor     .10000E-03    1.5093       -.20383E-08** at limit **
   9  Prefactor     13.913        19.654        .77555E-07   -.16633E-04
  10  norm          .10000E-03    2.4242        .13990E-06** at limit **
  11  Prefactor     .10000E-03    14.715        .20978E-06** at limit **
  12  Prefactor     28.898        18.311       -.35332E-06    .11393E-05
  13  Prefactor     .10000E-03    1.1558        .79267E-07** at limit **
  14  norm          .10000E-03    8.5173        .33434E-07** at limit **
  15  Prefactor     6.1382        26.242       -.54349E-06   -.78869E-04
  16  norm          6.3694        6.5597        .28382E-05   -.11804E-03
  17  Prefactor     49.058        55.385       -.26134E-05   -.17889E-03
  18  Prefactor     .10000E-03    13.336        .24434E-06** at limit **
  19  norm          3.5753        5.9376       -.96505E-07   -.24961E-04
  20  Prefactor     .10000E-03    10.050       -.64790E-08** at limit **
  21  Prefactor     3.7460        6.5364       -.35386E-07   -.85694E-04
  22  norm          .10000E-03    .86523        .19557E-06** at limit **
  23  Prefactor     .10000E-03    6.3364        .47326E-07** at limit **
  24  Prefactor     143.81        78.476       -.41848E-08    .18919E-04
  25  Normalizat    1.2674        .17947        .64005E-06   -.14398E-03
  26  Prefactor     .57971        .19824       -.23418E-05   -.25529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.828
  norm       = 3.00656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9134
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8984
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.13824
  norm       = 6.36944
  Prefactor  = 49.0581
  Prefactor  = 0.0001
  norm       = 3.57531
  Prefactor  = 0.0001
  Prefactor  = 3.74601
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 143.806
  Normalizat = 1.26737
  Prefactor  = 0.579709
 **********
 **   18 **HESSE 
 **********

 FCN=   5108.791     FROM HESSE     STATUS=OK           450 CALLS     3513 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .54225        .50827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8280        3.8833        .55396E-03   -1.5225    
   5  norm          3.0066        18.603        .23392E-03   -1.5361    
   6  Prefactor     .10000E-03    10.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5110        .85739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.913        19.709        .10735E-03   -1.4962    
  10  norm          .10000E-03    2.4849        .21721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.898        18.307        .74529E-04   -1.4632    
  13  Prefactor     .10000E-03    1.1703        .75021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.5414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1382        26.267        .16157E-03   -1.5212    
  16  norm          6.3694        6.5847        .79512E-03   -1.5203    
  17  Prefactor     49.058        55.862        .57221E-04   -1.4306    
  18  Prefactor     .10000E-03    13.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5753        5.9225        .21373E-03   -1.5330    
  20  Prefactor     .10000E-03    10.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7460        6.4067        .20865E-03   -1.5321    
  22  norm          .10000E-03    1.4509        .12541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3645        .17572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     143.81        78.053        .16800E-03   -1.3304    
  25  Normalizat    1.2674        .20591        .19360E-03   -.84546    
  26  Prefactor     .57971        .22446        .31495E-03   -1.0845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91341e-10
Minuit parameter uncertainties:
  1  0.000107961
  2  0.000207298
  3  4.2956e-07
  4  3.88345
  5  14.9642
  6  7.98947e-06
  7  8.16983e-07
  8  4.18201e-07
  9  19.7183
  10  1.47022e-06
  11  1.62269e-05
  12  18.3101
  13  3.6365e-07
  14  5.58539e-06
  15  25.4142
  16  6.58544
  17  55.9213
  18  4.40458e-05
  19  5.92352
  20  2.87222e-05
  21  6.40784
  22  1.69439e-05
  23  1.9345e-06
  24  78.109
  25  0.206047
  26  0.224802
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.623e-05  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:  5.797e-01  2.248e-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.267e+00  2.060e-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: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340115/likelihoodResults_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.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) = 5108.79140179
delta logL = -0.000322234507621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5108.79107957
delta logL = -1.1036718206e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4871       1.0000          .0000       10.000    
     3 'Normalizat'    1.2673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57976       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=   5108.791     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      250 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10240E-03    .14253        .71954E-01** at limit **
   2  Index         2.5847        6.5818        .50000       -.83135E-05
   3  Normalizat    1.2674        .53752E-03    .19359E-03    .41765E-04
   4  Prefactor     .57971        .61540E-03    .31496E-03    .19384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102395
  Index      = 2.58468
  Normalizat = 1.26737
  Prefactor  = 0.579708
 **********
 **   18 **HESSE 
 **********

 FCN=   5108.791     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10240E-03    46.275        .40260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5847        8.5486        .50000       -.50415    
   3  Normalizat    1.2674        .70570E-02    .38719E-04   -.84546    
   4  Prefactor     .57971        .80794E-02    .12598E-04   -1.0845    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.63056e-09
Minuit parameter uncertainties:
  1  0.0210728
  2  322.574
  3  0.00705696
  4  0.00807939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340115': 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) = 5108.79107942
delta logL = 1.44666046253e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.024e-04  2.107e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.585e+00  3.226e+02  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:  5.797e-01  8.079e-03  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.267e+00  7.057e-03  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/340115/cmap_HighResolution_299721601_299980801_4FGL_J1419.5+3821_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-09 09:32:09.769512', job_id='340115', GAL2='0.58', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631205129.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='233' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:32:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 340115: <4FGL_J1419.5+3821_daily_bin233> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin233> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:27 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:28 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:20:28 2021
Terminated at Thu Sep  9 09:32:10 2021
Results reported at Thu Sep  9 09:32:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin233 214.894 38.3657 299721601 299980801 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            703 sec.

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

