/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 9 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 = 7563
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.8+5423_daily_bin304
RA = 214.955, Dec = 54.3937
tmin = 318124801, tmax = 318384001
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='348470', job_status='RUN', time_executed='2021-09-09 09:46:02.678992', time_epoch_executed='1631205962.68' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348470

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348470/ft1_4FGL_J1419.8+5423_daily_bin304.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348470/ft1_4FGL_J1419.8+5423_daily_bin304.fits outfile=/scratch/kocevski/348470/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin304.fits ra=214.955 dec=54.3937 rad=12.0 tmin=318124801.0 tmax=318384001.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 2.59
user 2.40
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.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/348470/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin304.fits evtable="EVENTS" outfile="/scratch/kocevski/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.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.41
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/348470/ltcube_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.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/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits
.....................!
real 9.12
user 8.82
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/348470/ltcube_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.fits outfile=/scratch/kocevski/348470/expmap_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.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/348470/ltcube_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.fits
.....................!
real 145.60
user 142.19
sys 3.17

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 214 point sources and 0 extended sources

Setting source of interest to:
4FGL J1419.8+5423 @ 214.955 54.3937

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.fits scfile=/scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits outfile=/scratch/kocevski/348470/cmap_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.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.955 yref=54.3937 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.44
user 0.30
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.fits scfile=/scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits outfile=/scratch/kocevski/348470/cmap_HighResolution_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.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.955 yref=54.3937 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.44
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348470/Model_4FGL_J1419.8+5423_daily_bin304.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/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.fits.....................!
real 34.62
user 33.52
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.fits', '/scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits', expMap='/scratch/kocevski/348470/expmap_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.fits', expCube='/scratch/kocevski/348470/ltcube_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/348470/Model_4FGL_J1419.8+5423_daily_bin304.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.8+5423'

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  2.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/348470/ft1_filtered_4FGL_J1419.8+5423_daily_bin304.fits
Spacecraft file(s): /scratch/kocevski/348470/ft2_4FGL_J1419.8+5423_daily_bin304.fits
Exposure map: /scratch/kocevski/348470/expmap_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.fits
Exposure cube: /scratch/kocevski/348470/ltcube_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/348470/Model_4FGL_J1419.8+5423_daily_bin304.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) = 5467.34806244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.153       1.0000         .10000E-03   10000.    
     6 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.349       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6996       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12952E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.532       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57090       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.492       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.008       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .85905       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.4121       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1226       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94768       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5467.305     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4182 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8415        .24845E-06** at limit **
   2  norm          .10000E-03    1.6091       -.14242E-07** at limit **
   3  Prefactor     .10000E-03    15.060        .69607E-07** at limit **
   4  Prefactor     3.5333        9.7530        .37146E-05    .23837E-03
   5  Prefactor     14.157        23.263        .28654E-06    .12745E-05
   6  norm          .10000E-03    1.7391        .77547E-07** at limit **
   7  Prefactor     .10000E-03    28.211        .68643E-06** at limit **
   8  Prefactor     20.348        35.761        .35648E-06    .26442E-05
   9  norm          3.6997        1.7229        .29997E-07   -.20125E-05
  10  norm          .10000E-03    34.169       -.20942E-05** at limit **
  11  norm          .10000E-03    2.6622       -.22190E-07** at limit **
  12  Prefactor     .10000E-03    57.223        .31409E-07** at limit **
  13  Prefactor     .10000E-03    239.66        .15891E-05** at limit **
  14  Prefactor     28.255        36.699       -.35886E-06    .71972E-05
  15  Prefactor     35.510        50.043        .23791E-05    .22786E-04
  16  Prefactor     .59560        7.2591        .28559E-05   -.37539E-03
  17  Prefactor     11.489        20.728       -.52318E-06   -.19262E-04
  18  Prefactor     .10000E-03    1.5988       -.11492E-06** at limit **
  19  Prefactor     .10000E-03    10.684        .41443E-06** at limit **
  20  Prefactor     .10000E-03    11.090       -.83688E-06** at limit **
  21  Prefactor     44.001        68.426        .10404E-05   -.12304E-04
  22  Prefactor     .10000E-03    60.573       -.34986E-05** at limit **
  23  Prefactor     .10000E-03    10.783       -.37721E-07** at limit **
  24  Prefactor     .10000E-03    8.9888       -.61954E-06** at limit **
  25  Prefactor     .10000E-03    48.097        .37220E-05** at limit **
  26  norm          .85934        1.5738       -.12883E-06   -.44697E-03
  27  Prefactor     3.4144        11.339        .69328E-06    .36422E-04
  28  Prefactor     .10000E-03    9.5650        .39547E-06** at limit **
  29  Prefactor     .10000E-03    6.6520       -.17178E-06** at limit **
  30  Normalizat    1.1227        .17943       -.43637E-06   -.92782E-04
  31  Prefactor     .94759        .20456       -.33363E-06   -.84100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53329
  Prefactor  = 14.1567
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3481
  norm       = 3.69972
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.255
  Prefactor  = 35.5104
  Prefactor  = 0.595604
  Prefactor  = 11.4892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.0007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.859336
  Prefactor  = 3.41438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12266
  Prefactor  = 0.947585
 **********
 **   18 **HESSE 
 **********

 FCN=   5467.305     FROM HESSE     STATUS=OK           620 CALLS     4802 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6102        .91600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5333        10.557        .10755E-02   -1.5332    
   5  Prefactor     14.157        23.257        .10647E-03   -1.4955    
   6  norm          .10000E-03    1.7706        .95269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.348        35.691        .88789E-04   -1.4805    
   9  norm          3.6997        1.7206        .64037E-04   -1.5323    
  10  norm          .10000E-03    34.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.6492        .23255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    57.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    239.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.255        36.390        .75373E-04   -1.4644    
  15  Prefactor     35.510        50.426        .67231E-04   -1.4515    
  16  Prefactor     .59560        12.768        .26348E-02   -1.5554    
  17  Prefactor     11.489        20.499        .11817E-03   -1.5030    
  18  Prefactor     .10000E-03    3.5142        .17910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.001        68.205        .60434E-04   -1.4380    
  22  Prefactor     .10000E-03    60.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.0135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    48.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .85934        1.5333        .11995E-03   -1.5523    
  27  Prefactor     3.4144        11.318        .21900E-03   -1.5338    
  28  Prefactor     .10000E-03    9.8977        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.8052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1227        .20995        .21402E-03   -.89028    
  31  Prefactor     .94759        .23884        .27302E-03   -.94498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42356e-10
Minuit parameter uncertainties:
  1  4.42497e-06
  2  3.60405e-07
  3  7.51016e-06
  4  10.5624
  5  23.2723
  6  8.8718e-07
  7  1.43453e-05
  8  35.7287
  9  1.72058
  10  6.76643e-05
  11  1.03542e-06
  12  1.66594e-05
  13  0.000143753
  14  36.4181
  15  50.4861
  16  5.51624
  17  20.5114
  18  7.70212e-06
  19  9.11192e-06
  20  2.62188e-05
  21  68.3265
  22  8.20525e-05
  23  4.17324e-05
  24  6.31851e-06
  25  0.000235143
  26  1.53332
  27  11.3252
  28  3.78128e-05
  29  5.50001e-07
  30  0.210104
  31  0.239105
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  7.702e-06  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.476e-01  2.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.123e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.955 54.394
Photon Flux Upper Limit: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348470/likelihoodResults_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5467.30677781
delta logL = -0.00135765115283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5467.30542193
delta logL = -1.76895719051e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3622       1.0000          .0000       10.000    
     3 'Normalizat'    1.1225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94788       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5467.305     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24936        .32665E-01** at limit **
   2  Index         2.3602        5.3067        .50000        .38869E-05
   3  Normalizat    1.1227        .16740E-02    .37151E-01    .12485E-03
   4  Prefactor     .94759        .19900E-02    .45612E-01    .10841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.36021
  Normalizat = 1.12266
  Prefactor  = 0.947586
 **********
 **   18 **HESSE 
 **********

 FCN=   5467.305     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      254 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.977        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3602        6.2772        .50000       -.55620    
   3  Normalizat    1.1227        .14746E-01    .21402E-03   -.89028    
   4  Prefactor     .94759        .17524E-01    .27302E-03   -.94498    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96692e-08
Minuit parameter uncertainties:
  1  0.000321716
  2  237.836
  3  0.0147457
  4  0.0175236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348470': 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) = 5467.30542016
delta logL = 4.1045495891e-09

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  3.217e-04  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.360e+00  2.378e+02  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.476e-01  1.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.123e+00  1.475e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.955 54.394

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/348470/cmap_HighResolution_318124801_318384001_4FGL_J1419.8+5423_daily_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-09 09:57:32.111284', job_id='348470', GAL2='0.95', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631206652.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.10e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='304' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:57:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 348470: <4FGL_J1419.8+5423_daily_bin304> in cluster <slac> Done

Job <4FGL_J1419.8+5423_daily_bin304> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 09:45:45 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:45:46 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:45:46 2021
Terminated at Thu Sep  9 09:57:33 2021
Results reported at Thu Sep  9 09:57:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin304 214.955 54.3937 318124801 318384001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.8+5423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

