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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1083
RA = 214.894, Dec = 38.3657
tmin = 520041601, tmax = 520300801
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='344327', job_status='RUN', time_executed='2021-09-09 09:37:57.598301', time_epoch_executed='1631205477.6' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344327

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344327/ft1_4FGL_J1419.5+3821_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344327/ft2_4FGL_J1419.5+3821_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344327/ft1_4FGL_J1419.5+3821_daily_bin1083.fits outfile=/scratch/kocevski/344327/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1083.fits ra=214.894 dec=38.3657 rad=12.0 tmin=520041601.0 tmax=520300801.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.30
user 4.02
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344327/ft1_filtered_4FGL_J1419.5+3821_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/344327/ft2_4FGL_J1419.5+3821_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/344327/ltcube_520041601_520300801_4FGL_J1419.5+3821_daily_bin1083.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/344327/ft2_4FGL_J1419.5+3821_daily_bin1083.fits
.....................!
real 27.52
user 11.90
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344327/ft1_filtered_4FGL_J1419.5+3821_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/344327/ft2_4FGL_J1419.5+3821_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/344327/ltcube_520041601_520300801_4FGL_J1419.5+3821_daily_bin1083.fits outfile=/scratch/kocevski/344327/expmap_520041601_520300801_4FGL_J1419.5+3821_daily_bin1083.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/344327/ltcube_520041601_520300801_4FGL_J1419.5+3821_daily_bin1083.fits
.....................!
real 191.09
user 185.11
sys 5.08

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/344327/ft1_filtered_4FGL_J1419.5+3821_daily_bin1083.fits scfile=/scratch/kocevski/344327/ft2_4FGL_J1419.5+3821_daily_bin1083.fits outfile=/scratch/kocevski/344327/cmap_520041601_520300801_4FGL_J1419.5+3821_daily_bin1083.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344327/ft1_filtered_4FGL_J1419.5+3821_daily_bin1083.fits scfile=/scratch/kocevski/344327/ft2_4FGL_J1419.5+3821_daily_bin1083.fits outfile=/scratch/kocevski/344327/cmap_HighResolution_520041601_520300801_4FGL_J1419.5+3821_daily_bin1083.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0747       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39944       1.0000         .10000E-03   10000.    
     5 'norm      '    .36883E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19128E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    109.33       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83945E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9118       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0384       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37703E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.5497       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.7456       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0539       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.513       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0600       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90096       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=   4251.330     FROM MIGRAD    STATUS=CONVERGED   1128 CALLS     3717 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.927        .18142E-02** at limit **
   2  Prefactor     .10000E-03    43.359        .18142E-02** at limit **
   3  norm          6.0747        1.9698        .50354E-04   -.57573E-04
   4  Prefactor     .40400        15.838        .21245E-02    .12029E-02
   5  norm          .10000E-03    145.40        .37932E-02** at limit **
   6  Prefactor     .10000E-03    223.22        .58551E-02** at limit **
   7  Prefactor     109.34        82.496        .38467E-04   -.18383E-04
   8  Prefactor     .10000E-03    27.134        .26396E-02** at limit **
   9  Prefactor     1.9084        86.994        .30064E-03   -.60503E-06
  10  norm          4.0390        4.6791        .14396E-03    .98796E-04
  11  Prefactor     .10000E-03    23.810        .66800E-01** at limit **
  12  Prefactor     .10000E-03    17.941        .18142E-02** at limit **
  13  Prefactor     .10000E-03    1.9657        .88782E-03** at limit **
  14  norm          .10000E-03    20.293        .18142E-02** at limit **
  15  Prefactor     .10000E-03    24.970        .18142E-02** at limit **
  16  norm          .10000E-03    7.3548        .17131E-02** at limit **
  17  Prefactor     .10000E-03    24.543        .18142E-02** at limit **
  18  Prefactor     .10000E-03    17.625        .18142E-02** at limit **
  19  norm          6.5517        8.6460        .15681E-03    .14718E-04
  20  Prefactor     .10000E-03    6.3672        .16055E-02** at limit **
  21  Prefactor     .10000E-03    2.3273        .97102E-03** at limit **
  22  norm          2.7454        1.8148        .66562E-04   -.67807E-04
  23  Prefactor     2.0549        11.714        .28841E-03   -.86720E-05
  24  Prefactor     27.560        97.366        .76377E-04   -.32747E-05
  25  Normalizat    1.0598        .23950        .21272E-03   -.21431E-04
  26  Prefactor     .90104        .26588        .26959E-03   -.18681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.07471
  Prefactor  = 0.403996
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.345
  Prefactor  = 0.000100001
  Prefactor  = 1.90842
  norm       = 4.03898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.55171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74544
  Prefactor  = 2.05487
  Prefactor  = 27.5597
  Normalizat = 1.05985
  Prefactor  = 0.901035
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.330     FROM HESSE     STATUS=OK           442 CALLS     4159 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0747        1.9696        .10071E-04   -1.5215    
   4  Prefactor     .40400        15.705        .42490E-03   -1.5581    
   5  norm          .10000E-03    151.51        .15173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    230.72        .23420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     109.34        82.411        .76933E-05   -1.3613    
   8  Prefactor     .10000E-03    27.387        .52793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9084        86.796        .12026E-04   -1.5432    
  10  norm          4.0390        4.6782        .57582E-05   -1.5306    
  11  Prefactor     .10000E-03    19.015        .76297E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9659        .17756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    20.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.3586        .34261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.544        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.5517        8.6457        .62723E-05   -1.5196    
  20  Prefactor     .10000E-03    6.3675        .32109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3274        .19420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7454        1.8147        .26625E-05   -1.5377    
  23  Prefactor     2.0549        11.711        .11537E-04   -1.5421    
  24  Prefactor     27.560        97.438        .30551E-05   -1.4658    
  25  Normalizat    1.0598        .23893        .85090E-05   -.91052    
  26  Prefactor     .90104        .26606        .10784E-04   -.96105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64995e-11
Minuit parameter uncertainties:
  1  6.72567e-05
  2  1.79935e-05
  3  1.96963
  4  5.03849
  5  0.000233507
  6  4.28257e-05
  7  82.4973
  8  0.000307569
  9  25.7797
  10  4.67861
  11  0.000117127
  12  9.40164e-06
  13  2.03676e-07
  14  6.09241e-05
  15  4.24375e-06
  16  1.75456e-05
  17  9.3809e-06
  18  9.58292e-07
  19  8.64732
  20  4.31376e-06
  21  2.74336e-06
  22  1.81473
  23  9.81383
  24  98.0083
  25  0.239173
  26  0.266446
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.171e-04  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.010e-01  2.664e-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.060e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/344327/likelihoodResults_520041601_520300801_4FGL_J1419.5+3821_daily_bin1083.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) = 4251.3300489
delta logL = -6.00003568252e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4251.3300489
delta logL = -5.99143095315e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4722       1.0000          .0000       10.000    
     3 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90105       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=   4251.311     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      336 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78592        866.61        .26573E-03   -.91341E-04
   2  Index         3.4054        6.1453        .12577E-01   -.16980E-04
   3  Normalizat    1.0456        .19379        .21401E-03   -.53007E-03
   4  Prefactor     .91007        .23260        .26840E-03   -.55898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.785916
  Index      = 3.4054
  Normalizat = 1.04563
  Prefactor  = 0.910073
 **********
 **   18 **HESSE 
 **********

 FCN=   4251.311     FROM HESSE     STATUS=OK            25 CALLS      361 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78592        18.070        .10629E-04   -1.5531    
   2  Index         3.4054        3.9182        .50308E-03   -.32459    
   3  Normalizat    1.0456        .23503        .42801E-04   -.91517    
   4  Prefactor     .91007        .26851        .53680E-04   -.95790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25062e-10
Minuit parameter uncertainties:
  1  7.53914
  2  4.61303
  3  0.235267
  4  0.268905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344327': 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) = 4251.31079556
delta logL = 0.0192473398847

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  7.859e-01  7.539e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.405e+00  4.613e+00  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.101e-01  2.689e-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.046e+00  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.894 38.366

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/344327/cmap_HighResolution_520041601_520300801_4FGL_J1419.5+3821_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-09-09 09:51:01.547333', job_id='344327', GAL2='0.91', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1631206261.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.92e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1083' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 344327: <4FGL_J1419.5+3821_daily_bin1083> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1083> 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) <bullet0221>, 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:01 2021
Results reported at Thu Sep  9 09:51:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1083 214.894 38.3657 520041601 520300801 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 :                                   642.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

