/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 132 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.8+5423_daily_bin36
RA = 214.955, Dec = 54.3937
tmin = 248659201, tmax = 248918401
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='346496', job_status='RUN', time_executed='2021-09-09 09:43:20.933681', time_epoch_executed='1631205800.93' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346496/ft1_4FGL_J1419.8+5423_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346496/ft2_4FGL_J1419.8+5423_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346496/ft1_4FGL_J1419.8+5423_daily_bin36.fits outfile=/scratch/kocevski/346496/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin36.fits ra=214.955 dec=54.3937 rad=12.0 tmin=248659201.0 tmax=248918401.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 1.40
user 1.22
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346496/ft2_4FGL_J1419.8+5423_daily_bin36.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/346496/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/346496/ft1_filtered_4FGL_J1419.8+5423_daily_bin36.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346496/ft1_filtered_4FGL_J1419.8+5423_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/346496/ft2_4FGL_J1419.8+5423_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/346496/ltcube_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.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/346496/ft2_4FGL_J1419.8+5423_daily_bin36.fits
.....................!
real 12.74
user 12.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346496/ft1_filtered_4FGL_J1419.8+5423_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/346496/ft2_4FGL_J1419.8+5423_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/346496/ltcube_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.fits outfile=/scratch/kocevski/346496/expmap_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.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/346496/ltcube_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.fits
.....................!
real 190.84
user 186.36
sys 4.10

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/346496/ft1_filtered_4FGL_J1419.8+5423_daily_bin36.fits scfile=/scratch/kocevski/346496/ft2_4FGL_J1419.8+5423_daily_bin36.fits outfile=/scratch/kocevski/346496/cmap_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346496/ft1_filtered_4FGL_J1419.8+5423_daily_bin36.fits scfile=/scratch/kocevski/346496/ft2_4FGL_J1419.8+5423_daily_bin36.fits outfile=/scratch/kocevski/346496/cmap_HighResolution_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/346496/ft1_filtered_4FGL_J1419.8+5423_daily_bin36.fits', '/scratch/kocevski/346496/ft2_4FGL_J1419.8+5423_daily_bin36.fits', expMap='/scratch/kocevski/346496/expmap_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.fits', expCube='/scratch/kocevski/346496/ltcube_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/346496/Model_4FGL_J1419.8+5423_daily_bin36.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/346496/ft1_filtered_4FGL_J1419.8+5423_daily_bin36.fits
Spacecraft file(s): /scratch/kocevski/346496/ft2_4FGL_J1419.8+5423_daily_bin36.fits
Exposure map: /scratch/kocevski/346496/expmap_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.fits
Exposure cube: /scratch/kocevski/346496/ltcube_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/346496/Model_4FGL_J1419.8+5423_daily_bin36.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) = 4403.31045713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9459       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.490       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9179       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5039       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.793       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .96318E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.576       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10938E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    220.50       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28419       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.143       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    75.182       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.952       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.1090       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8061       1.0000         .10000E-03   10000.    
    26 'norm      '    .74123       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .14033E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    27.386       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .86506       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95103       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4403.287     FROM MIGRAD    STATUS=CONVERGED   1527 CALLS     4910 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9453        9.6897        .82339E-03   -.25143E-04
   2  norm          .10000E-03    2.4794        .10189E-02** at limit **
   3  Prefactor     .10000E-03    27.596        .18142E-02** at limit **
   4  Prefactor     17.491        17.437        .95768E-04    .39293E-04
   5  Prefactor     1.9548        165.33        .30009E-03    .71602E-05
   6  norm          1.5017        3.8023        .18539E-03   -.67948E-04
   7  Prefactor     .10000E-03    36.719        .18142E-02** at limit **
   8  Prefactor     14.789        46.924        .10414E-03    .15830E-04
   9  norm          .10000E-03    .34842        .38179E-03** at limit **
  10  norm          .10000E-03    29.102        .18142E-02** at limit **
  11  norm          .14234        61.976        .23264E-02    .65391E-03
  12  Prefactor     32.576        56.738        .70205E-04   -.68012E-05
  13  Prefactor     .10001E-03    733.10        .20702E-02** at limit **
  14  Prefactor     220.59        96.257        .13620E-03   -.19317E-03
  15  Prefactor     .10904E-03    72.117        .13154    ** at limit **
  16  Prefactor     .10000E-03    1.7340        .85275E-03** at limit **
  17  Prefactor     10.151        17.437        .12581E-03   -.86296E-04
  18  Prefactor     .10000E-03    1.7215        .84556E-03** at limit **
  19  Prefactor     15.212        49.081        .10265E-03   -.20158E-04
  20  Prefactor     .10000E-03    8.9824        .18142E-02** at limit **
  21  Prefactor     .10000E-03    308.97        .18142E-02** at limit **
  22  Prefactor     75.190        69.908        .46308E-04   -.21113E-04
  23  Prefactor     20.963        21.009        .87504E-04   -.83930E-04
  24  Prefactor     7.1129        22.191        .15045E-03   -.14584E-04
  25  Prefactor     5.8085        18.973        .16668E-03   -.18212E-04
  26  norm          .74123        1.0467        .48876E-04   -.34890E-04
  27  Prefactor     .10000E-03    38.763        .36464E-02** at limit **
  28  Prefactor     .10000E-03    4.2831        .13354E-02** at limit **
  29  Prefactor     27.394        13.712        .76554E-04    .37424E-04
  30  Normalizat    .86504        .25027        .23371E-03   -.17492E-03
  31  Prefactor     .95113        .25812        .26132E-03   -.12103E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.94534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4911
  Prefactor  = 1.95475
  norm       = 1.50168
  Prefactor  = 0.0001
  Prefactor  = 14.7888
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.142344
  Prefactor  = 32.5762
  Prefactor  = 0.000100006
  Prefactor  = 220.589
  Prefactor  = 0.000109044
  Prefactor  = 0.0001
  Prefactor  = 10.1514
  Prefactor  = 0.0001
  Prefactor  = 15.212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.19
  Prefactor  = 20.9634
  Prefactor  = 7.11288
  Prefactor  = 5.80852
  norm       = 0.741232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3943
  Normalizat = 0.86504
  Prefactor  = 0.951131
 **********
 **   18 **HESSE 
 **********

 FCN=   4403.287     FROM HESSE     STATUS=OK           604 CALLS     5514 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9453        9.6875        .32936E-04   -1.5220    
   2  norm          .10000E-03    2.4795        .20378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.491        17.433        .38307E-05   -1.4871    
   5  Prefactor     1.9548        164.96        .12003E-04   -1.5428    
   6  norm          1.5017        3.8010        .74154E-05   -1.5463    
   7  Prefactor     .10000E-03    36.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.789        46.782        .41655E-05   -1.4939    
   9  norm          .10000E-03    .34842        .76358E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    29.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .14234        60.590        .46528E-03   -1.5633    
  12  Prefactor     32.576        56.740        .28082E-05   -1.4566    
  13  Prefactor     .10001E-03    733.11        .41405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     220.59        96.025        .27240E-04   -1.2726    
  15  Prefactor     .10904E-03    71.132        .13260       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7340        .17055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.151        17.433        .50325E-05   -1.5071    
  18  Prefactor     .10000E-03    1.7216        .16911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.212        48.848        .41058E-05   -1.4928    
  20  Prefactor     .10000E-03    8.9825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    309.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     75.190        69.838        .92615E-05   -1.3972    
  23  Prefactor     20.963        21.004        .35001E-05   -1.4792    
  24  Prefactor     7.1129        22.185        .60180E-05   -1.5175    
  25  Prefactor     5.8085        18.965        .66671E-05   -1.5226    
  26  norm          .74123        1.0466        .19550E-05   -1.5536    
  27  Prefactor     .10000E-03    39.457        .72928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.2838        .26707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     27.394        13.702        .30621E-05   -1.4661    
  30  Normalizat    .86504        .25012        .93486E-05   -.97700    
  31  Prefactor     .95113        .25841        .10453E-04   -.94377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57891e-10
Minuit parameter uncertainties:
  1  9.69
  2  3.5926e-06
  3  9.02791e-05
  4  17.4384
  5  36.0157
  6  3.80161
  7  5.04245e-05
  8  46.8983
  9  8.90036e-07
  10  1.13113e-05
  11  5.87747
  12  56.834
  13  0.00426101
  14  96.0934
  15  0.0507886
  16  1.30656e-06
  17  17.4413
  18  3.85023e-07
  19  48.9764
  20  2.91771e-06
  21  0.000166478
  22  69.9139
  23  21.0114
  24  22.211
  25  18.9846
  26  1.04667
  27  9.4293e-05
  28  4.36615e-06
  29  13.7035
  30  0.25046
  31  0.258745
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  3.850e-07  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.511e-01  2.587e-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:  8.650e-01  2.505e-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: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346496/likelihoodResults_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.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) = 4403.28940982
delta logL = -0.00275669927214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4403.28665323
delta logL = -1.1170959624e-07

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 'Index     '    2.3631       1.0000          .0000       10.000    
     3 'Normalizat'    .86507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95116       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4403.287     FROM MIGRAD    STATUS=FAILED        85 CALLS      232 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    121.46        .84557E-03** at limit **
   2  Index         2.3241        5.8353        .50000        .35359E-05
   3  Normalizat    .86504        .41454E-01    .23372E-03   -.21841E-04
   4  Prefactor     .95113        .48493E-01    .26132E-03    .13051E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4403.287     FROM SIMPLEX   STATUS=UNCHANGED    145 CALLS      377 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    121.46        .20023E-03** at limit **
   2  Index         2.3241        5.8353        .57159E-04    .35359E-05
   3  Normalizat    .86504        .41454E-01    .10223E-05   -.21841E-04
   4  Prefactor     .95113        .48493E-01    .11776E-05    .13051E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4403.287     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      420 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.759        .16911E-03** at limit **
   2  Index         2.2843        8.5826        .50000       -.19825E-06
   3  Normalizat    .86504        .21388        .93487E-05   -.45724E-04
   4  Prefactor     .95113        .24985        .10453E-04   -.26320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28433
  Normalizat = 0.865041
  Prefactor  = 0.95113
 **********
 **   18 **HESSE 
 **********

 FCN=   4403.287     FROM HESSE     STATUS=OK            29 CALLS      449 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7952        .33823E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2843        6.0635        .50000       -.57417    
   3  Normalizat    .86504        .21223        .18697E-05   -.97700    
   4  Prefactor     .95113        .24899        .20906E-05   -.94377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11749e-11
Minuit parameter uncertainties:
  1  7.22492e-07
  2  161.397
  3  0.212431
  4  0.249286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346496': 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) = 4403.28665305
delta logL = 7.00392774888e-08

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  7.225e-07  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.284e+00  1.614e+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.511e-01  2.493e-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:  8.650e-01  2.124e-01  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/346496/cmap_HighResolution_248659201_248918401_4FGL_J1419.8+5423_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-09 09:57:19.911920', job_id='346496', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631206639.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='36' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 346496: <4FGL_J1419.8+5423_daily_bin36> in cluster <slac> Done

Job <4FGL_J1419.8+5423_daily_bin36> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:40:55 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:40:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:40:58 2021
Terminated at Thu Sep  9 09:57:20 2021
Results reported at Thu Sep  9 09:57:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin36 214.955 54.3937 248659201 248918401 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 :                                   838.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

