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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin510
RA = 214.894, Dec = 38.3657
tmin = 371520001, tmax = 371779201
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='341539', job_status='RUN', time_executed='2021-09-09 09:25:34.653303', time_epoch_executed='1631204734.65' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341539/ft1_4FGL_J1419.5+3821_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341539/ft2_4FGL_J1419.5+3821_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341539/ft1_4FGL_J1419.5+3821_daily_bin510.fits outfile=/scratch/kocevski/341539/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin510.fits ra=214.894 dec=38.3657 rad=12.0 tmin=371520001.0 tmax=371779201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.42
user 4.16
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341539/ft2_4FGL_J1419.5+3821_daily_bin510.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/341539/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin510.fits evtable="EVENTS" outfile="/scratch/kocevski/341539/ft1_filtered_4FGL_J1419.5+3821_daily_bin510.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341539/ft1_filtered_4FGL_J1419.5+3821_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/341539/ft2_4FGL_J1419.5+3821_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/341539/ltcube_371520001_371779201_4FGL_J1419.5+3821_daily_bin510.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/341539/ft2_4FGL_J1419.5+3821_daily_bin510.fits
.....................!
real 11.86
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341539/ft1_filtered_4FGL_J1419.5+3821_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/341539/ft2_4FGL_J1419.5+3821_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/341539/ltcube_371520001_371779201_4FGL_J1419.5+3821_daily_bin510.fits outfile=/scratch/kocevski/341539/expmap_371520001_371779201_4FGL_J1419.5+3821_daily_bin510.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/341539/ltcube_371520001_371779201_4FGL_J1419.5+3821_daily_bin510.fits
.....................!
real 190.18
user 185.66
sys 4.12

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/341539/ft1_filtered_4FGL_J1419.5+3821_daily_bin510.fits scfile=/scratch/kocevski/341539/ft2_4FGL_J1419.5+3821_daily_bin510.fits outfile=/scratch/kocevski/341539/cmap_371520001_371779201_4FGL_J1419.5+3821_daily_bin510.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341539/ft1_filtered_4FGL_J1419.5+3821_daily_bin510.fits scfile=/scratch/kocevski/341539/ft2_4FGL_J1419.5+3821_daily_bin510.fits outfile=/scratch/kocevski/341539/cmap_HighResolution_371520001_371779201_4FGL_J1419.5+3821_daily_bin510.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.6837       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3168       1.0000         .10000E-03   10000.    
     5 'norm      '    27.750       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8505       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.368       1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.122       1.0000         .10000E-03   10000.    
    18 'Prefactor '    89.237       1.0000         .10000E-03   10000.    
    19 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3689       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0468       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79773       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=   5728.169     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3116 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.233        .13443E-05** at limit **
   2  Prefactor     .10000E-03    65.896       -.15949E-05** at limit **
   3  norm          9.6836        2.3349        .24529E-07    .10514E-04
   4  Prefactor     1.3164        4.1901        .96378E-06   -.21400E-03
   5  norm          27.748        19.405        .71570E-07   -.81502E-06
   6  Prefactor     .10000E-03    6.7487        .47227E-08** at limit **
   7  Prefactor     .10000E-03    37.162        .37419E-05** at limit **
   8  Prefactor     2.5645        3.4062        .94723E-07    .22435E-04
   9  Prefactor     .10000E-03    24.954       -.17621E-05** at limit **
  10  norm          17.744        5.9282       -.26576E-07   -.23595E-04
  11  Prefactor     14.482        13.072        .13018E-07    .61885E-04
  12  Prefactor     .10000E-03    28.122       -.25332E-05** at limit **
  13  Prefactor     1.8505        3.4324        .35296E-06   -.12183E-03
  14  norm          .10000E-03    8.5027        .15899E-07** at limit **
  15  Prefactor     .10000E-03    20.845        .14816E-05** at limit **
  16  norm          10.368        7.4301        .22276E-06    .47128E-04
  17  Prefactor     57.111        53.902       -.24508E-05   -.16987E-03
  18  Prefactor     89.235        44.037       -.40925E-06   -.78418E-04
  19  norm          .10000E-03    4.3277       -.21419E-07** at limit **
  20  Prefactor     18.460        17.921        .62421E-06   -.88738E-04
  21  Prefactor     .10000E-03    2.8542       -.13895E-07** at limit **
  22  norm          .10000E-03    .31483       -.63918E-08** at limit **
  23  Prefactor     6.3673        13.422        .32117E-05   -.32320E-03
  24  Prefactor     .10000E-03    17.236       -.70435E-06** at limit **
  25  Normalizat    1.0468        .18367       -.41130E-06    .26765E-05
  26  Prefactor     .79772        .19703       -.42804E-06   -.46443E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 9.68358
  Prefactor  = 1.31637
  norm       = 27.7476
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 2.56449
  Prefactor  = 0.000100001
  norm       = 17.7439
  Prefactor  = 14.4821
  Prefactor  = 0.000100002
  Prefactor  = 1.85051
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.3679
  Prefactor  = 57.1114
  Prefactor  = 89.2346
  norm       = 0.0001
  Prefactor  = 18.4598
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.36733
  Prefactor  = 0.0001
  Normalizat = 1.04685
  Prefactor  = 0.797724
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.169     FROM HESSE     STATUS=OK           454 CALLS     3570 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.6836        2.3408        .54153E-04   -1.5085    
   4  Prefactor     1.3164        4.2633        .26536E-03   -1.5479    
   5  norm          27.748        19.449        .76051E-04   -1.4654    
   6  Prefactor     .10000E-03    6.7547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5645        3.3964        .15626E-03   -1.5388    
   9  Prefactor     .10000E-03    25.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.744        5.9254        .95080E-04   -1.4865    
  11  Prefactor     14.482        13.054        .10525E-03   -1.4947    
  12  Prefactor     .10000E-03    28.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8505        3.4223        .18252E-03   -1.5436    
  14  norm          .10000E-03    8.5146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.368        7.4392        .12444E-03   -1.5064    
  17  Prefactor     57.111        55.641        .53078E-04   -1.4195    
  18  Prefactor     89.235        44.210        .42534E-04   -1.3816    
  19  norm          .10000E-03    4.3339        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.460        17.973        .46609E-03   -1.4848    
  21  Prefactor     .10000E-03    2.8725        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .31579        .41462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3673        14.374        .79523E-03   -1.5203    
  24  Prefactor     .10000E-03    17.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0468        .21685        .23510E-03   -.91477    
  26  Prefactor     .79772        .23021        .29738E-03   -.99812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77267e-10
Minuit parameter uncertainties:
  1  0.000228761
  2  0.000493732
  3  2.34085
  4  4.26424
  5  19.453
  6  1.50402e-06
  7  0.000853509
  8  3.39667
  9  0.000335125
  10  5.92564
  11  13.0566
  12  0.000424521
  13  3.42269
  14  7.71282e-06
  15  0.000282972
  16  7.43983
  17  55.6914
  18  44.226
  19  2.11441e-06
  20  17.9783
  21  3.5542e-07
  22  1.0655e-07
  23  14.3816
  24  0.000108971
  25  0.217035
  26  0.230485
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.448e+01  1.306e+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.977e-01  2.305e-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.047e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 9.76e-06

TS (Fixed Index): 3.22
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341539/likelihoodResults_371520001_371779201_4FGL_J1419.5+3821_daily_bin510.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) = 5727.68939382
delta logL = 0.480051540982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5727.68567467
delta logL = 0.483770687973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.481       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6482       1.0000          .0000       10.000    
     3 'Normalizat'    1.0731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78204       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=   5727.686     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      204 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.696        16.875        .26313E-02   -.14733E-04
   2  Index         1.6535        .60253        .28312       -.41476E-04
   3  Normalizat    1.0728        .17637        .39220E-01    .89688E-06
   4  Prefactor     .78215        .19705        .67833E-01    .14430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6958
  Index      = 1.65348
  Normalizat = 1.07282
  Prefactor  = 0.782155
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.686     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.696        17.535        .10525E-03   -1.4941    
   2  Index         1.6535        .79305        .10480E-01   -.73327    
   3  Normalizat    1.0728        .20441        .23273E-03   -.90629    
   4  Prefactor     .78215        .22879        .30012E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24626e-12
Minuit parameter uncertainties:
  1  17.5412
  2  0.7992
  3  0.204561
  4  0.229064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341539': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5727.6856027
delta logL = 0.483842659994

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.470e+01  1.754e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.653e+00  7.992e-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.822e-01  2.291e-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.073e+00  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.19
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.65 +/- 0.80
Photon Flux (Free Index): 1.16e-08 +/- 1.98e-08
Energy Flux (Free Index): 2.19e-05 +/- 3.48e-05

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/341539/cmap_HighResolution_371520001_371779201_4FGL_J1419.5+3821_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='2.19e-05', photon_flux_error='3.25e-08', dlogl='4.84e-01', energy_flux='1.08e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-09 09:37:08.809411', photon_index_error2='0.80', photon_index2='1.65', ts='3.22', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='3.48e-05', EG='1.05', time_epoch_completed='1631205428.81', return_code='0', job_id='341539', GAL2='0.78', EG2='1.07', return_code2='0', energy_flux_error='9.76e-06', photon_flux_error2='1.98e-08', ts2='4.19', photon_index='2.47' WHERE bin_id='510' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:37:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 341539: <4FGL_J1419.5+3821_daily_bin510> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin510> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:25:23 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:25:24 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:25:24 2021
Terminated at Thu Sep  9 09:37:09 2021
Results reported at Thu Sep  9 09:37:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin510 214.894 38.3657 371520001 371779201 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 :                                   689.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            706 sec.

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

