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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin674
RA = 214.894, Dec = 38.3657
tmin = 414028801, tmax = 414288001
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='341766', job_status='RUN', time_executed='2021-09-09 09:25:51.297599', time_epoch_executed='1631204751.3' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341766/ft1_4FGL_J1419.5+3821_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341766/ft2_4FGL_J1419.5+3821_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341766/ft1_4FGL_J1419.5+3821_daily_bin674.fits outfile=/scratch/kocevski/341766/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin674.fits ra=214.894 dec=38.3657 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.22
user 4.98
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341766/ft2_4FGL_J1419.5+3821_daily_bin674.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/341766/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/341766/ft1_filtered_4FGL_J1419.5+3821_daily_bin674.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.59
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341766/ft1_filtered_4FGL_J1419.5+3821_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/341766/ft2_4FGL_J1419.5+3821_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/341766/ltcube_414028801_414288001_4FGL_J1419.5+3821_daily_bin674.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/341766/ft2_4FGL_J1419.5+3821_daily_bin674.fits
.....................!
real 12.12
user 11.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341766/ft1_filtered_4FGL_J1419.5+3821_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/341766/ft2_4FGL_J1419.5+3821_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/341766/ltcube_414028801_414288001_4FGL_J1419.5+3821_daily_bin674.fits outfile=/scratch/kocevski/341766/expmap_414028801_414288001_4FGL_J1419.5+3821_daily_bin674.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/341766/ltcube_414028801_414288001_4FGL_J1419.5+3821_daily_bin674.fits
.....................!
real 189.95
user 185.15
sys 4.44

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/341766/ft1_filtered_4FGL_J1419.5+3821_daily_bin674.fits scfile=/scratch/kocevski/341766/ft2_4FGL_J1419.5+3821_daily_bin674.fits outfile=/scratch/kocevski/341766/cmap_414028801_414288001_4FGL_J1419.5+3821_daily_bin674.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341766/ft1_filtered_4FGL_J1419.5+3821_daily_bin674.fits scfile=/scratch/kocevski/341766/ft2_4FGL_J1419.5+3821_daily_bin674.fits outfile=/scratch/kocevski/341766/cmap_HighResolution_414028801_414288001_4FGL_J1419.5+3821_daily_bin674.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.012       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.965       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.726       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.264       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1324       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6209       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .64281E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1855       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .51022       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4129.616     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3041 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.988        .10457E-04** at limit **
   2  Prefactor     .10000E-03    23.582       -.41634E-05** at limit **
   3  norm          12.011        2.7251       -.40796E-07   -.14370E-03
   4  Prefactor     .10000E-03    3.2366       -.63567E-06** at limit **
   5  norm          19.964        17.366       -.24726E-06   -.13314E-04
   6  Prefactor     .10000E-03    9.3054        .20634E-05** at limit **
   7  Prefactor     22.728        42.554        .16664E-05    .39252E-07
   8  Prefactor     1.5685        3.2760       -.17160E-06   -.30690E-03
   9  Prefactor     35.264        24.730       -.38450E-06    .84326E-05
  10  norm          .10000E-03    1.4049        .13954E-08** at limit **
  11  Prefactor     14.659        15.082       -.16934E-06   -.10190E-03
  12  Prefactor     .10000E-03    15.859        .66070E-05** at limit **
  13  Prefactor     5.1324        3.7634       -.71035E-07   -.29864E-04
  14  norm          .10000E-03    8.0326       -.41736E-05** at limit **
  15  Prefactor     .10000E-03    19.195       -.74467E-05** at limit **
  16  norm          .10000E-03    2.8751       -.17353E-06** at limit **
  17  Prefactor     .10000E-03    17.280       -.12892E-05** at limit **
  18  Prefactor     .10000E-03    7.7939       -.14520E-06** at limit **
  19  norm          .10000E-03    3.2208        .71182E-06** at limit **
  20  Prefactor     .10000E-03    7.6303        .34385E-05** at limit **
  21  Prefactor     .10000E-03    2.6842        .45019E-07** at limit **
  22  norm          2.6215        1.9528       -.33699E-06   -.22938E-02
  23  Prefactor     .10000E-03    9.0149       -.13446E-05** at limit **
  24  Prefactor     .10003E-03    340.60       -.28490E-03** at limit **
  25  Normalizat    1.1855        .19737        .78979E-06    .40842E-03
  26  Prefactor     .51024        .21276        .24174E-08    .22341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0115
  Prefactor  = 0.0001
  norm       = 19.9642
  Prefactor  = 0.0001
  Prefactor  = 22.7277
  Prefactor  = 1.56849
  Prefactor  = 35.2641
  norm       = 0.0001
  Prefactor  = 14.6589
  Prefactor  = 0.0001
  Prefactor  = 5.13236
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62151
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Normalizat = 1.18545
  Prefactor  = 0.510238
 **********
 **   18 **HESSE 
 **********

 FCN=   4129.616     FROM HESSE     STATUS=OK           448 CALLS     3489 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.011        2.7322        .24142E-03   -1.5015    
   4  Prefactor     .10000E-03    3.2969        .11283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.964        17.382        .89640E-04   -1.4814    
   6  Prefactor     .10000E-03    9.3088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.728        42.531        .84022E-04   -1.4754    
   8  Prefactor     1.5685        3.2281        .16234E-03   -1.5457    
   9  Prefactor     35.264        24.774        .67484E-04   -1.4520    
  10  norm          .10000E-03    1.4082        .74374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.659        15.085        .10461E-03   -1.4942    
  12  Prefactor     .10000E-03    15.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1324        3.7657        .10278E-03   -1.5255    
  14  norm          .10000E-03    8.0365        .17783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8875        .10640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7954        .17523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2220        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6566        .17336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6861        .10281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6215        1.9496        .37023E-03   -1.5384    
  23  Prefactor     .10000E-03    9.0442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10003E-03    338.15        .21027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1855        .22542        .20072E-03   -.87054    
  26  Prefactor     .51024        .24026        .32751E-03   -1.1151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36446e-09
Minuit parameter uncertainties:
  1  8.9233e-06
  2  4.33837e-06
  3  2.73222
  4  3.28553e-06
  5  17.386
  6  2.18992e-06
  7  42.5874
  8  3.22851
  9  24.7807
  10  5.98112e-07
  11  15.0893
  12  1.06422e-05
  13  3.76589
  14  7.21788e-07
  15  4.16229e-06
  16  4.8536e-07
  17  4.76256e-08
  18  5.99972e-07
  19  1.44184e-07
  20  2.18381e-06
  21  5.12046e-06
  22  1.94966
  23  3.42387e-06
  24  0.005929
  25  0.225602
  26  0.240741
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.466e+01  1.509e+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:  5.102e-01  2.407e-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.185e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.13e-05

TS (Fixed Index): 1.48
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341766/likelihoodResults_414028801_414288001_4FGL_J1419.5+3821_daily_bin674.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) = 4129.52397926
delta logL = 0.092439078755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4129.51635044
delta logL = 0.100067890608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9096       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0076       1.0000          .0000       10.000    
     3 'Normalizat'    1.1624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52920       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   4129.516     FROM MIGRAD    STATUS=FAILED       103 CALLS      297 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8672        311.34        .71285E-03    .13831E-03
   2  Index         3.0108        6.1856        .59668E-02    .39915E-03
   3  Normalizat    1.1622        .30676        .20239E-03   -.26963E-05
   4  Prefactor     .52922        .32120        .32212E-03   -.14470E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4129.516     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      386 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8672        311.34        .40444E-03    .13831E-03
   2  Index         3.0108        6.1856        .14707E-02    .39915E-03
   3  Normalizat    1.1622        .30676        .13358E-03   -.26963E-05
   4  Prefactor     .52922        .32120        .25585E-03   -.14470E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4129.516     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      419 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8672        20.074        .14257E-03   -.35086E-05
   2  Index         3.0108        1.5194        .11934E-02    .15279E-04
   3  Normalizat    1.1622        .22563        .80956E-05   -.25278E-05
   4  Prefactor     .52922        .24552        .12885E-04   -.14117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.8672
  Index      = 3.01085
  Normalizat = 1.1622
  Prefactor  = 0.52922
 **********
 **   18 **HESSE 
 **********

 FCN=   4129.516     FROM HESSE     STATUS=OK            25 CALLS      444 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8672        18.279        .57028E-05   -1.5147    
   2  Index         3.0108        1.3875        .23867E-03   -.40915    
   3  Normalizat    1.1622        .22380        .16191E-05   -.87779    
   4  Prefactor     .52922        .24368        .25770E-05   -1.1065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41892e-14
Minuit parameter uncertainties:
  1  18.2919
  2  1.40955
  3  0.223984
  4  0.244169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341766': 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) = 4129.51634583
delta logL = 0.10007250025

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  7.867e+00  1.829e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.011e+00  1.410e+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:  5.292e-01  2.442e-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.162e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 214.894 38.366
Photon Index (Free Index): 3.01 +/- 1.41
Photon Flux (Free Index): 5.21e-08 +/- 5.49e-08
Energy Flux (Free Index): 1.03e-05 +/- 9.59e-06

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/341766/cmap_HighResolution_414028801_414288001_4FGL_J1419.5+3821_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.65e-03', comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='1.03e-05', photon_flux_error='3.76e-08', dlogl='1.00e-01', energy_flux='1.10e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-09 09:35:57.663374', photon_index_error2='1.41', photon_index2='3.01', ts='1.48', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='9.59e-06', EG='1.19', time_epoch_completed='1631205357.66', return_code='0', job_id='341766', GAL2='0.53', EG2='1.16', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='5.49e-08', ts2='1.69', photon_index='2.47' WHERE bin_id='674' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:35:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 341766: <4FGL_J1419.5+3821_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin674 214.894 38.3657 414028801 414288001 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 :                                   595.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            619 sec.

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

