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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1109
RA = 214.894, Dec = 38.3657
tmin = 526780801, tmax = 527040001
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='344371', job_status='RUN', time_executed='2021-09-09 09:35:36.723506', time_epoch_executed='1631205336.72' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344371

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344371/ft1_4FGL_J1419.5+3821_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344371/ft2_4FGL_J1419.5+3821_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344371/ft1_4FGL_J1419.5+3821_daily_bin1109.fits outfile=/scratch/kocevski/344371/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1109.fits ra=214.894 dec=38.3657 rad=12.0 tmin=526780801.0 tmax=527040001.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.38
user 4.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344371/ft1_filtered_4FGL_J1419.5+3821_daily_bin1109.fits" evtable="EVENTS" scfile=/scratch/kocevski/344371/ft2_4FGL_J1419.5+3821_daily_bin1109.fits sctable="SC_DATA" outfile=/scratch/kocevski/344371/ltcube_526780801_527040001_4FGL_J1419.5+3821_daily_bin1109.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/344371/ft2_4FGL_J1419.5+3821_daily_bin1109.fits
.....................!
real 11.70
user 11.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344371/ft1_filtered_4FGL_J1419.5+3821_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/344371/ft2_4FGL_J1419.5+3821_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/344371/ltcube_526780801_527040001_4FGL_J1419.5+3821_daily_bin1109.fits outfile=/scratch/kocevski/344371/expmap_526780801_527040001_4FGL_J1419.5+3821_daily_bin1109.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/344371/ltcube_526780801_527040001_4FGL_J1419.5+3821_daily_bin1109.fits
.....................!
real 190.12
user 184.73
sys 5.03

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/344371/ft1_filtered_4FGL_J1419.5+3821_daily_bin1109.fits scfile=/scratch/kocevski/344371/ft2_4FGL_J1419.5+3821_daily_bin1109.fits outfile=/scratch/kocevski/344371/cmap_526780801_527040001_4FGL_J1419.5+3821_daily_bin1109.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344371/ft1_filtered_4FGL_J1419.5+3821_daily_bin1109.fits scfile=/scratch/kocevski/344371/ft2_4FGL_J1419.5+3821_daily_bin1109.fits outfile=/scratch/kocevski/344371/cmap_HighResolution_526780801_527040001_4FGL_J1419.5+3821_daily_bin1109.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33973E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6404       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.420       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9484       1.0000         .10000E-03   10000.    
    14 'norm      '    .16902E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.736       1.0000         .10000E-03   10000.    
    16 'norm      '    6.1531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.397       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .18241       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.103       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0126       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0307       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4993.439     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     3550 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    57.799       -.52047E-04** at limit **
   2  Prefactor     .45167E-02    6.4028        .32028E-04   -.14845E-02
   3  norm          1.6405        1.4197        .37789E-06    .20303E-03
   4  Prefactor     .10000E-03    1.5653        .31437E-06** at limit **
   5  norm          .10001E-03    15.714       -.26816E-04** at limit **
   6  Prefactor     .10019E-03    14.064        .15886E-04** at limit **
   7  Prefactor     .10001E-03    27.813        .51197E-04** at limit **
   8  Prefactor     .10000E-03    2.9582        .96841E-06** at limit **
   9  Prefactor     .10063E-03    21.651        .36664E-04** at limit **
  10  norm          .10000E-03    1.5994        .95675E-06** at limit **
  11  Prefactor     30.389        1.7486        .10113E-05   -.75242E-03
  12  Prefactor     .10003E-03    11.582        .85652E-05** at limit **
  13  Prefactor     2.9483        4.1793        .33996E-06    .74748E-04
  14  norm          .10307E-03    53.708       -.71745E-05** at limit **
  15  Prefactor     19.722        1.4952       -.10274E-05    .27067E-03
  16  norm          6.1512        7.5165       -.13389E-04   -.11508E-02
  17  Prefactor     .10093E-03    12.027       -.27936E-04** at limit **
  18  Prefactor     .10001E-03    15.638       -.26157E-04** at limit **
  19  norm          .10000E-03    5.8742       -.33912E-05** at limit **
  20  Prefactor     13.397        1.1321       -.55691E-06   -.11423E-03
  21  Prefactor     .10000E-03    4.6721       -.10252E-05** at limit **
  22  norm          .18285        2.9690        .21456E-05   -.13363E-03
  23  Prefactor     .10000E-03    6.7347       -.73597E-08** at limit **
  24  Prefactor     41.084        4.6533       -.44287E-05    .70939E-02
  25  Normalizat    1.0127        .23009        .93676E-06    .24531E-04
  26  Prefactor     1.0306        .26076       -.12996E-05    .53714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010161
  Prefactor  = 0.00451675
  norm       = 1.64052
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.000100191
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100633
  norm       = 0.0001
  Prefactor  = 30.3887
  Prefactor  = 0.000100026
  Prefactor  = 2.94832
  norm       = 0.000103075
  Prefactor  = 19.722
  norm       = 6.15118
  Prefactor  = 0.000100933
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 13.3975
  Prefactor  = 0.0001
  norm       = 0.182852
  Prefactor  = 0.0001
  Prefactor  = 41.0836
  Normalizat = 1.01269
  Prefactor  = 1.03064
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.439     FROM HESSE     STATUS=OK           516 CALLS     4066 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10161E-03    118.12        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .45167E-02    169.03        .16998       -1.5695    
   3  norm          1.6405        1.4331        .82477E-02   -1.5452    
   4  Prefactor     .10000E-03    1.5571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    38.934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10019E-03    27.838        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    59.522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10063E-03    51.041        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.389        21.883        .18161E-02   -1.4605    
  12  Prefactor     .10003E-03    28.167        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9483        4.2042        .59130E-02   -1.5365    
  14  norm          .10307E-03    13.561        .13028       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.722        25.185        .22540E-02   -1.4819    
  16  norm          6.1512        7.6679        .40461E-02   -1.5212    
  17  Prefactor     .10093E-03    30.411        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    39.643        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.8412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.397        12.255        .27358E-02   -1.4976    
  21  Prefactor     .10000E-03    4.6601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .18285        1.4548        .25334E-01   -1.5622    
  23  Prefactor     .10000E-03    6.7086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     41.084        58.601        .15631E-02   -1.4425    
  25  Normalizat    1.0127        .19827        .44797E-01   -.92607    
  26  Prefactor     1.0306        .21377        .59215E-01   -.91715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30496e-07
Minuit parameter uncertainties:
  1  0.0276342
  2  1.73297
  3  1.43312
  4  3.80915e-06
  5  0.000975102
  6  0.00460895
  7  0.00160377
  8  1.03044e-05
  9  0.0113762
  10  4.51616e-06
  11  21.8886
  12  0.00171408
  13  4.20463
  14  0.0129174
  15  25.1985
  16  7.66914
  17  0.0106558
  18  0.00127875
  19  5.44794e-05
  20  12.2578
  21  3.33279e-05
  22  1.0313
  23  1.14428e-05
  24  58.683
  25  0.198415
  26  0.213948
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  3.039e+01  2.189e+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:  1.031e+00  2.139e-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.013e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 5.46e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.64e-05

TS (Fixed Index): 3.31
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344371/likelihoodResults_526780801_527040001_4FGL_J1419.5+3821_daily_bin1109.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) = 4993.43540904
delta logL = 0.00391372798731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4993.42995444
delta logL = 0.00936832882871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.413       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5569       1.0000          .0000       10.000    
     3 'Normalizat'    1.0071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0361       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=   4993.430     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.408        31.683        .76516E-04    .29208E-03
   2  Index         2.5570        .69176        .50849E-02    .12452E-03
   3  Normalizat    1.0071        .23496        .23330E-03   -.53102E-03
   4  Prefactor     1.0361        .26348        .26127E-03   -.57875E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4085
  Index      = 2.55704
  Normalizat = 1.00707
  Prefactor  = 1.0361
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.430     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.408        29.068        .15303E-04   -1.4660    
   2  Index         2.5570        .63427        .20340E-03   -.51048    
   3  Normalizat    1.0071        .23474        .46660E-04   -.92794    
   4  Prefactor     1.0361        .26314        .52253E-04   -.91536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16375e-10
Minuit parameter uncertainties:
  1  29.0828
  2  0.636531
  3  0.234982
  4  0.263469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344371': 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) = 4993.4299544
delta logL = 0.00936836782603

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.741e+01  2.908e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.557e+00  6.365e-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:  1.036e+00  2.635e-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.007e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.56 +/- 0.64
Photon Flux (Free Index): 7.92e-08 +/- 5.78e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.64e-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/344371/cmap_HighResolution_526780801_527040001_4FGL_J1419.5+3821_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='2.16e-05', photon_flux_error='5.46e-08', dlogl='9.37e-03', energy_flux='2.27e-05', photon_flux2='7.92e-08', job_status='DONE', time_completed='2021-09-09 09:46:47.323450', photon_index_error2='0.64', photon_index2='2.56', ts='3.31', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.64e-05', EG='1.01', time_epoch_completed='1631206007.32', return_code='0', job_id='344371', GAL2='1.04', EG2='1.01', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='5.78e-08', ts2='3.33', photon_index='2.47' WHERE bin_id='1109' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 344371: <4FGL_J1419.5+3821_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1109 214.894 38.3657 526780801 527040001 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            686 sec.

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

