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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin43
RA = 214.894, Dec = 38.3657
tmin = 250473601, tmax = 250732801
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='338788', job_status='RUN', time_executed='2021-09-09 09:19:18.188678', time_epoch_executed='1631204358.19' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338788

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338788/ft1_4FGL_J1419.5+3821_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338788/ft2_4FGL_J1419.5+3821_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338788/ft1_4FGL_J1419.5+3821_daily_bin43.fits outfile=/scratch/kocevski/338788/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin43.fits ra=214.894 dec=38.3657 rad=12.0 tmin=250473601.0 tmax=250732801.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.33
user 1.14
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338788/ft2_4FGL_J1419.5+3821_daily_bin43.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/338788/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/338788/ft1_filtered_4FGL_J1419.5+3821_daily_bin43.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/338788/ft1_filtered_4FGL_J1419.5+3821_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/338788/ft2_4FGL_J1419.5+3821_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/338788/ltcube_250473601_250732801_4FGL_J1419.5+3821_daily_bin43.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/338788/ft2_4FGL_J1419.5+3821_daily_bin43.fits
.....................!
real 12.21
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338788/ft1_filtered_4FGL_J1419.5+3821_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/338788/ft2_4FGL_J1419.5+3821_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/338788/ltcube_250473601_250732801_4FGL_J1419.5+3821_daily_bin43.fits outfile=/scratch/kocevski/338788/expmap_250473601_250732801_4FGL_J1419.5+3821_daily_bin43.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/338788/ltcube_250473601_250732801_4FGL_J1419.5+3821_daily_bin43.fits
.....................!
real 190.71
user 185.23
sys 5.13

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/338788/ft1_filtered_4FGL_J1419.5+3821_daily_bin43.fits scfile=/scratch/kocevski/338788/ft2_4FGL_J1419.5+3821_daily_bin43.fits outfile=/scratch/kocevski/338788/cmap_250473601_250732801_4FGL_J1419.5+3821_daily_bin43.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.52
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0162       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1645       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.729       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0078       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.631       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3904       1.0000         .10000E-03   10000.    
    14 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5871       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32048E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.065       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7036       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1618       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0987       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72621       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=   6682.613     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3105 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.934        30.276        .55779E-06   -.67864E-05
   2  Prefactor     .10000E-03    25.276        .15452E-05** at limit **
   3  norm          3.0161        1.3300        .17803E-07   -.23571E-03
   4  Prefactor     4.1643        3.8632        .11552E-05    .23053E-03
   5  norm          1.3295        3.5302        .61505E-05   -.82865E-03
   6  Prefactor     .10000E-03    6.0049       -.37725E-06** at limit **
   7  Prefactor     35.725        55.230        .30345E-05    .25945E-04
   8  Prefactor     2.0079        2.6882       -.10394E-06   -.20327E-03
   9  Prefactor     36.629        22.325        .19352E-06   -.29660E-05
  10  norm          .10000E-03    2.9196        .32607E-06** at limit **
  11  Prefactor     .10000E-03    4.7381       -.84788E-08** at limit **
  12  Prefactor     .10000E-03    4.6840        .55902E-06** at limit **
  13  Prefactor     6.3893        3.9741       -.46122E-06   -.66332E-03
  14  norm          .10000E-03    15.414        .51442E-05** at limit **
  15  Prefactor     2.5842        24.132       -.35601E-05   -.39573E-04
  16  norm          .10000E-03    2.7919        .70107E-07** at limit **
  17  Prefactor     .10001E-03    143.46       -.15467E-03** at limit **
  18  Prefactor     39.065        32.497        .44856E-06   -.56760E-04
  19  norm          1.7037        3.9080        .10789E-05   -.75600E-03
  20  Prefactor     .10000E-03    8.4971        .11613E-05** at limit **
  21  Prefactor     .10000E-03    4.2420       -.58627E-07** at limit **
  22  norm          3.1617        1.5633        .29997E-06    .32679E-02
  23  Prefactor     .10000E-03    14.224       -.46557E-05** at limit **
  24  Prefactor     .10001E-03    74.309       -.29163E-04** at limit **
  25  Normalizat    1.0988        .16135       -.14742E-06    .40148E-03
  26  Prefactor     .72611        .17405       -.22308E-05    .39110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9335
  Prefactor  = 0.0001
  norm       = 3.01614
  Prefactor  = 4.16429
  norm       = 1.32946
  Prefactor  = 0.0001
  Prefactor  = 35.7252
  Prefactor  = 2.00787
  Prefactor  = 36.6287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.38929
  norm       = 0.000100001
  Prefactor  = 2.58418
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 39.0647
  norm       = 1.70368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16166
  Prefactor  = 0.000100005
  Prefactor  = 0.000100006
  Normalizat = 1.09882
  Prefactor  = 0.726108
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.613     FROM HESSE     STATUS=OK           460 CALLS     3565 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.934        30.277        .83641E-04   -1.4750    
   2  Prefactor     .10000E-03    25.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0161        1.3307        .60383E-04   -1.5361    
   4  Prefactor     4.1643        3.8666        .14700E-03   -1.5300    
   5  norm          1.3295        7.7227        .19048E-02   -1.5477    
   6  Prefactor     .10000E-03    6.0112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.725        55.249        .67046E-04   -1.4512    
   8  Prefactor     2.0079        2.6719        .14963E-03   -1.5425    
   9  Prefactor     36.629        22.417        .66218E-04   -1.4497    
  10  norm          .10000E-03    3.0016        .27252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7530        .17375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6932        .17279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3893        3.9873        .12081E-03   -1.5202    
  14  norm          .10000E-03    15.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5842        24.056        .25370E-03   -1.5386    
  16  norm          .10000E-03    2.8168        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    142.95        .71689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.065        32.560        .64128E-04   -1.4457    
  19  norm          1.7037        4.1736        .12845E-02   -1.5447    
  20  Prefactor     .10000E-03    8.5285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2738        .16415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1617        1.5630        .68590E-04   -1.5352    
  23  Prefactor     .10000E-03    14.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    74.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0988        .19280        .21073E-03   -.89790    
  26  Prefactor     .72611        .20686        .28773E-03   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66954e-09
Minuit parameter uncertainties:
  1  30.2969
  2  0.000128462
  3  1.3307
  4  3.86679
  5  6.40946
  6  9.33283e-06
  7  55.328
  8  2.67207
  9  22.4223
  10  5.95345e-05
  11  1.5695e-05
  12  3.58741e-05
  13  3.9875
  14  0.000259019
  15  15.7771
  16  3.82918e-05
  17  0.0018528
  18  32.5745
  19  4.17428
  20  0.000110508
  21  3.97549e-05
  22  1.56303
  23  0.000529004
  24  0.00136748
  25  0.192923
  26  0.207078
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.569e-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:  7.261e-01  2.071e-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.099e+00  1.929e-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: 4.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338788/likelihoodResults_250473601_250732801_4FGL_J1419.5+3821_daily_bin43.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) = 6682.61443629
delta logL = -0.00100168225708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6682.6134346
delta logL = 1.45519152284e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4596       1.0000          .0000       10.000    
     3 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72615       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=   6682.613     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    2.3956        .17486E-01** at limit **
   2  Index         2.3449        6.0463        .50000        .16956E-04
   3  Normalizat    1.0988        .25443E-02    .21072E-03   -.11437E-04
   4  Prefactor     .72611        .28917E-02    .28773E-03   -.10984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102052
  Index      = 2.34491
  Normalizat = 1.09881
  Prefactor  = 0.726112
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.613     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10205E-03    113.94        .17835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3449        5.4918        .50000       -.55980    
   3  Normalizat    1.0988        .17916E-01    .84290E-05   -.89790    
   4  Prefactor     .72611        .20362E-01    .11509E-04   -1.0251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.16596e-08
Minuit parameter uncertainties:
  1  0.0306389
  2  771.07
  3  0.0179166
  4  0.0203623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338788': 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) = 6682.61343421
delta logL = 3.88585249311e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.021e-04  3.064e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.345e+00  7.711e+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:  7.261e-01  2.036e-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.099e+00  1.792e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/338788/cmap_HighResolution_250473601_250732801_4FGL_J1419.5+3821_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='4.96e-08', time_completed='2021-09-09 09:31:36.838815', job_id='338788', GAL2='0.73', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631205096.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='43' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:31:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 338788: <4FGL_J1419.5+3821_daily_bin43> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin43 214.894 38.3657 250473601 250732801 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 :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

