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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1086
RA = 214.894, Dec = 38.3657
tmin = 520819201, tmax = 521078401
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='344331', job_status='RUN', time_executed='2021-09-09 09:37:30.276937', time_epoch_executed='1631205450.28' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344331/ft1_4FGL_J1419.5+3821_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344331/ft2_4FGL_J1419.5+3821_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344331/ft1_4FGL_J1419.5+3821_daily_bin1086.fits outfile=/scratch/kocevski/344331/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1086.fits ra=214.894 dec=38.3657 rad=12.0 tmin=520819201.0 tmax=521078401.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.53
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344331/ft2_4FGL_J1419.5+3821_daily_bin1086.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/344331/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1086.fits evtable="EVENTS" outfile="/scratch/kocevski/344331/ft1_filtered_4FGL_J1419.5+3821_daily_bin1086.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344331/ft1_filtered_4FGL_J1419.5+3821_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/344331/ft2_4FGL_J1419.5+3821_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/344331/ltcube_520819201_521078401_4FGL_J1419.5+3821_daily_bin1086.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/344331/ft2_4FGL_J1419.5+3821_daily_bin1086.fits
.....................!
real 12.08
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344331/ft1_filtered_4FGL_J1419.5+3821_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/344331/ft2_4FGL_J1419.5+3821_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/344331/ltcube_520819201_521078401_4FGL_J1419.5+3821_daily_bin1086.fits outfile=/scratch/kocevski/344331/expmap_520819201_521078401_4FGL_J1419.5+3821_daily_bin1086.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/344331/ltcube_520819201_521078401_4FGL_J1419.5+3821_daily_bin1086.fits
.....................!
real 189.46
user 184.88
sys 4.22

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/344331/ft1_filtered_4FGL_J1419.5+3821_daily_bin1086.fits scfile=/scratch/kocevski/344331/ft2_4FGL_J1419.5+3821_daily_bin1086.fits outfile=/scratch/kocevski/344331/cmap_520819201_521078401_4FGL_J1419.5+3821_daily_bin1086.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344331/ft1_filtered_4FGL_J1419.5+3821_daily_bin1086.fits scfile=/scratch/kocevski/344331/ft2_4FGL_J1419.5+3821_daily_bin1086.fits outfile=/scratch/kocevski/344331/cmap_HighResolution_520819201_521078401_4FGL_J1419.5+3821_daily_bin1086.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    81.517       1.0000         .10000E-03   10000.    
     3 'norm      '    4.5408       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4815       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.321       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7034       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5058       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.406       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1345       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.624       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6718       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91451       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=   5987.073     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     3060 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.754        .70886E-08** at limit **
   2  Prefactor     81.543        64.026        .76989E-06    .57587E-04
   3  norm          4.5411        1.6267        .36646E-07   -.41231E-04
   4  Prefactor     .10000E-03    2.5486        .14946E-07** at limit **
   5  norm          .10000E-03    18.108        .24856E-06** at limit **
   6  Prefactor     5.4822        8.6545        .14877E-05    .24045E-04
   7  Prefactor     .10000E-03    24.528        .28930E-06** at limit **
   8  Prefactor     .10000E-03    1.5711        .47472E-07** at limit **
   9  Prefactor     19.327        20.692        .44229E-06    .13888E-04
  10  norm          3.7037        2.9246       -.21494E-07   -.20196E-04
  11  Prefactor     8.6127        9.9747       -.14092E-06   -.15329E-04
  12  Prefactor     .10000E-03    6.3044       -.18380E-07** at limit **
  13  Prefactor     5.5068        3.6217        .79609E-06    .53540E-04
  14  norm          3.2593        12.817        .56277E-06   -.86896E-06
  15  Prefactor     16.408        22.288        .29026E-06    .89290E-06
  16  norm          .10000E-03    1.9204       -.24701E-08** at limit **
  17  Prefactor     .10000E-03    10.603        .28801E-07** at limit **
  18  Prefactor     5.1145        47.859       -.12359E-06   -.41737E-04
  19  norm          .10000E-03    2.1807        .12907E-07** at limit **
  20  Prefactor     13.633        15.599        .13016E-06    .26068E-05
  21  Prefactor     .10000E-03    5.9962        .13381E-06** at limit **
  22  norm          1.6720        1.5139        .14977E-06    .26436E-04
  23  Prefactor     .10000E-03    2.6444        .16445E-08** at limit **
  24  Prefactor     .10000E-03    18.192       -.81234E-07** at limit **
  25  Normalizat    1.0253        .18097       -.16265E-05    .42320E-04
  26  Prefactor     .91497        .19643        .10576E-05   -.74925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 81.5428
  norm       = 4.5411
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.48219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3266
  norm       = 3.70367
  Prefactor  = 8.61266
  Prefactor  = 0.0001
  Prefactor  = 5.5068
  norm       = 3.25931
  Prefactor  = 16.4084
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11453
  norm       = 0.0001
  Prefactor  = 13.6327
  Prefactor  = 0.0001
  norm       = 1.67196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02533
  Prefactor  = 0.914971
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.073     FROM HESSE     STATUS=OK           458 CALLS     3518 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     81.543        64.404        .22243E-03   -1.3899    
   3  norm          4.5411        1.6270        .56647E-04   -1.5282    
   4  Prefactor     .10000E-03    2.5953        .12054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4822        8.6889        .85809E-03   -1.5240    
   7  Prefactor     .10000E-03    24.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5772        .94702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.327        20.733        .91119E-04   -1.4828    
  10  norm          3.7037        2.9194        .11341E-03   -1.5323    
  11  Prefactor     8.6127        9.9313        .13664E-03   -1.5121    
  12  Prefactor     .10000E-03    6.3172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5068        3.6261        .56858E-03   -1.5239    
  14  norm          3.2593        12.755        .22413E-03   -1.5347    
  15  Prefactor     16.408        22.311        .98881E-04   -1.4898    
  16  norm          .10000E-03    1.9354        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1145        48.135        .17742E-03   -1.5256    
  19  norm          .10000E-03    2.1809        .11159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.633        15.588        .10852E-03   -1.4969    
  21  Prefactor     .10000E-03    6.0946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6720        1.4958        .85680E-04   -1.5449    
  23  Prefactor     .10000E-03    2.6465        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0253        .20634        .22121E-03   -.92187    
  26  Prefactor     .91497        .22556        .27303E-03   -.95620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2298e-10
Minuit parameter uncertainties:
  1  5.348e-05
  2  64.4597
  3  1.62703
  4  4.42102e-06
  5  6.87756e-06
  6  8.69092
  7  0.000116281
  8  3.59267e-07
  9  20.7408
  10  2.91949
  11  9.93318
  12  5.90105e-06
  13  3.62628
  14  12.7653
  15  22.3218
  16  4.46415e-07
  17  7.62723e-06
  18  31.4139
  19  4.44196e-09
  20  15.5927
  21  1.69931e-06
  22  1.49588
  23  4.33447e-07
  24  3.30918e-05
  25  0.206504
  26  0.225787
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  8.613e+00  9.933e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.150e-01  2.258e-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.025e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.15e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 6.44e-06 +/- 7.42e-06

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

Saving results to:
/scratch/kocevski/344331/likelihoodResults_520819201_521078401_4FGL_J1419.5+3821_daily_bin1086.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) = 5986.73519599
delta logL = 0.337537150203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5986.72553116
delta logL = 0.347201982428

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.544       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8219       1.0000          .0000       10.000    
     3 'Normalizat'    1.0379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90112       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=   5986.726     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      297 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.544        16.679        .95622E-04   -.23878E-03
   2  Index         1.8219        .60985        .98698E-02   -.72402E-04
   3  Normalizat    1.0378        .18887        .21996E-03   -.65641E-05
   4  Prefactor     .90123        .22211        .27466E-03    .58281E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5439
  Index      = 1.82187
  Normalizat = 1.03782
  Prefactor  = 0.901234
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.726     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.544        16.547        .19124E-04   -1.4870    
   2  Index         1.8219        .60517        .39479E-03   -.68882    
   3  Normalizat    1.0378        .18902        .87983E-05   -.91774    
   4  Prefactor     .90123        .22230        .10986E-04   -.96098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04724e-10
Minuit parameter uncertainties:
  1  16.5512
  2  0.607675
  3  0.189144
  4  0.222523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344331': 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) = 5986.72553096
delta logL = 0.347202178779

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.754e+01  1.655e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.822e+00  6.077e-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:  9.012e-01  2.225e-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.038e+00  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.82 +/- 0.61
Photon Flux (Free Index): 1.65e-08 +/- 1.79e-08
Energy Flux (Free Index): 1.85e-05 +/- 2.86e-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/344331/cmap_HighResolution_520819201_521078401_4FGL_J1419.5+3821_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', comment='SUCCESS', photon_flux='2.15e-08', energy_flux2='1.85e-05', photon_flux_error='2.48e-08', dlogl='3.47e-01', energy_flux='6.44e-06', photon_flux2='1.65e-08', job_status='DONE', time_completed='2021-09-09 09:51:17.885767', photon_index_error2='0.61', photon_index2='1.82', ts='1.59', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.20e-08', energy_flux_error2='2.86e-05', EG='1.03', time_epoch_completed='1631206277.89', return_code='0', job_id='344331', GAL2='0.90', EG2='1.04', return_code2='0', energy_flux_error='7.42e-06', photon_flux_error2='1.79e-08', ts2='2.29', photon_index='2.47' WHERE bin_id='1086' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 344331: <4FGL_J1419.5+3821_daily_bin1086> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1086> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:35:20 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:35:22 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:35:22 2021
Terminated at Thu Sep  9 09:51:18 2021
Results reported at Thu Sep  9 09:51:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1086 214.894 38.3657 520819201 521078401 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 :                                   721.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

