/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 4 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 = 7531
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1431
RA = 214.894, Dec = 38.3657
tmin = 610243201, tmax = 610502401
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='346095', job_status='RUN', time_executed='2021-09-09 09:40:43.615132', time_epoch_executed='1631205643.62' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346095

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346095/ft1_4FGL_J1419.5+3821_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346095/ft2_4FGL_J1419.5+3821_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346095/ft1_4FGL_J1419.5+3821_daily_bin1431.fits outfile=/scratch/kocevski/346095/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1431.fits ra=214.894 dec=38.3657 rad=12.0 tmin=610243201.0 tmax=610502401.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.92
user 3.70
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346095/ft1_filtered_4FGL_J1419.5+3821_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/346095/ft2_4FGL_J1419.5+3821_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/346095/ltcube_610243201_610502401_4FGL_J1419.5+3821_daily_bin1431.fits outfile=/scratch/kocevski/346095/expmap_610243201_610502401_4FGL_J1419.5+3821_daily_bin1431.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/346095/ltcube_610243201_610502401_4FGL_J1419.5+3821_daily_bin1431.fits
.....................!
real 190.18
user 185.22
sys 4.55

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/346095/ft1_filtered_4FGL_J1419.5+3821_daily_bin1431.fits scfile=/scratch/kocevski/346095/ft2_4FGL_J1419.5+3821_daily_bin1431.fits outfile=/scratch/kocevski/346095/cmap_610243201_610502401_4FGL_J1419.5+3821_daily_bin1431.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346095/ft1_filtered_4FGL_J1419.5+3821_daily_bin1431.fits scfile=/scratch/kocevski/346095/ft2_4FGL_J1419.5+3821_daily_bin1431.fits outfile=/scratch/kocevski/346095/cmap_HighResolution_610243201_610502401_4FGL_J1419.5+3821_daily_bin1431.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.791       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2819       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2065       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.914       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4814       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9805       1.0000         .10000E-03   10000.    
    14 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.343       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.878       1.0000         .10000E-03   10000.    
    19 'norm      '    7.5991       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2676       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2169       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73019       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=   5638.691     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3076 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.224       -.11703E-05** at limit **
   2  Prefactor     36.801        75.977        .47234E-05    .13916E-03
   3  norm          4.2821        1.9230        .33440E-07   -.12856E-03
   4  Prefactor     9.2068        5.7775        .10330E-06   -.80877E-04
   5  norm          .10000E-03    14.232        .14137E-05** at limit **
   6  Prefactor     .10000E-03    6.9228       -.14243E-06** at limit **
   7  Prefactor     41.918        64.978        .42190E-06    .65301E-04
   8  Prefactor     3.5435        5.0350        .79659E-06   -.10062E-02
   9  Prefactor     .10000E-03    8.5256       -.14303E-06** at limit **
  10  norm          .10000E-03    1.4508        .55647E-08** at limit **
  11  Prefactor     6.7946        17.292       -.33712E-05   -.18575E-03
  12  Prefactor     1.4616        89.055        .80708E-05   -.69072E-04
  13  Prefactor     8.9808        4.7791       -.35322E-07   -.37456E-03
  14  norm          .10000E-03    16.181       -.42705E-06** at limit **
  15  Prefactor     17.341        20.995       -.32029E-06   -.79313E-04
  16  norm          .10000E-03    5.6679       -.15159E-06** at limit **
  17  Prefactor     .10000E-03    19.559        .15483E-05** at limit **
  18  Prefactor     47.879        32.151        .46120E-06    .56812E-04
  19  norm          7.5988        7.4342        .25258E-07   -.14634E-04
  20  Prefactor     .10000E-03    2.3991       -.26316E-08** at limit **
  21  Prefactor     .10000E-03    6.6262        .19428E-06** at limit **
  22  norm          .10000E-03    .57990        .12100E-07** at limit **
  23  Prefactor     3.2674        10.324        .17230E-05   -.42830E-03
  24  Prefactor     .10000E-03    61.865        .51210E-06** at limit **
  25  Normalizat    1.2168        .19095       -.12670E-05   -.18303E-03
  26  Prefactor     .73033        .20017        .29037E-06   -.16230E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 36.8015
  norm       = 4.28206
  Prefactor  = 9.20684
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 41.9182
  Prefactor  = 3.54347
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.79464
  Prefactor  = 1.46162
  Prefactor  = 8.98078
  norm       = 0.0001
  Prefactor  = 17.3411
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 47.8794
  norm       = 7.59885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.26743
  Prefactor  = 0.0001
  Normalizat = 1.21682
  Prefactor  = 0.730328
 **********
 **   18 **HESSE 
 **********

 FCN=   5638.691     FROM HESSE     STATUS=OK           450 CALLS     3526 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.801        78.385        .66074E-04   -1.4494    
   3  norm          4.2821        1.9274        .65922E-04   -1.5294    
   4  Prefactor     9.2068        5.7898        .13209E-03   -1.5101    
   5  norm          .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.918        66.745        .61919E-04   -1.4412    
   8  Prefactor     3.5435        5.4909        .97727E-03   -1.5331    
   9  Prefactor     .10000E-03    8.5443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4615        .88302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7946        17.548        .15402E-03   -1.5187    
  12  Prefactor     1.4616        91.545        .35261E-03   -1.5466    
  13  Prefactor     8.9808        4.8044        .11366E-03   -1.5109    
  14  norm          .10000E-03    16.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.341        21.011        .96173E-04   -1.4875    
  16  norm          .10000E-03    5.8474        .34875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.879        32.209        .57951E-04   -1.4323    
  19  norm          7.5988        7.4346        .14548E-03   -1.5157    
  20  Prefactor     .10000E-03    2.3996        .11359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .59876        .11156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2674        10.864        .11201E-02   -1.5346    
  24  Prefactor     .10000E-03    62.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2168        .22314        .21242E-03   -.86085    
  26  Prefactor     .73033        .23311        .30549E-03   -1.0235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42808e-09
Minuit parameter uncertainties:
  1  0.000303575
  2  78.6055
  3  1.92747
  4  5.79013
  5  0.000318548
  6  1.60074e-05
  7  66.8641
  8  5.49172
  9  2.55533e-05
  10  1.92468e-06
  11  17.5608
  12  23.1711
  13  4.80464
  14  0.00018068
  15  21.0195
  16  5.33842e-06
  17  0.000430399
  18  32.2203
  19  7.43555
  20  1.75462e-07
  21  3.56718e-05
  22  1.20116e-06
  23  10.8702
  24  0.000253688
  25  0.223316
  26  0.233422
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  6.795e+00  1.756e+01  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.303e-01  2.334e-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.217e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/346095/likelihoodResults_610243201_610502401_4FGL_J1419.5+3821_daily_bin1431.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): 0
logL (Free Index) = 5638.58025019
delta logL = 0.11076620352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5638.56775593
delta logL = 0.123260465073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5311       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3698       1.0000          .0000       10.000    
     3 'Normalizat'    1.1917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75017       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=   5638.568     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      266 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4903        71.007        .64183E-02    .57465E-03
   2  Index         3.3771        3.0827        .18465        .76307E-04
   3  Normalizat    1.1919        .37784E-01    .35098E-01   -.57502E-05
   4  Prefactor     .75003        .42977E-01    .68229E-01    .14015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49032
  Index      = 3.37707
  Normalizat = 1.19189
  Prefactor  = 0.750035
 **********
 **   18 **HESSE 
 **********

 FCN=   5638.568     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      299 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4903        214.10        .15173E-03   -1.5392    
   2  Index         3.3771        5.7382        .63809E-02   -.33057    
   3  Normalizat    1.1919        .20222        .21432E-03   -.86854    
   4  Prefactor     .75003        .22529        .30189E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63435e-07
Minuit parameter uncertainties:
  1  46.3523
  2  10.1323
  3  0.202349
  4  0.225563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346095': 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) = 5638.56774816
delta logL = 0.123268227511

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.490e+00  4.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.377e+00  1.013e+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.500e-01  2.256e-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.192e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/346095/cmap_HighResolution_610243201_610502401_4FGL_J1419.5+3821_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-09 09:52:15.298173', job_id='346095', GAL2='0.75', fit_tolerance='1e-08', EG2='1.19', EG='1.22', time_epoch_completed='1631206335.3', return_code2='102', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.23e-01', ts2='0.64', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1431' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 346095: <4FGL_J1419.5+3821_daily_bin1431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1431 214.894 38.3657 610243201 610502401 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 :                                   686.00 sec.
    Max Memory :                                 1220 MB
    Average Memory :                             333.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

