/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 195 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_bin1200
RA = 214.894, Dec = 38.3657
tmin = 550368001, tmax = 550627201
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='344504', job_status='RUN', time_executed='2021-09-09 09:39:04.511945', time_epoch_executed='1631205544.51' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344504/ft1_4FGL_J1419.5+3821_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344504/ft2_4FGL_J1419.5+3821_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344504/ft1_4FGL_J1419.5+3821_daily_bin1200.fits outfile=/scratch/kocevski/344504/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1200.fits ra=214.894 dec=38.3657 rad=12.0 tmin=550368001.0 tmax=550627201.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.03
user 3.79
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344504/ft1_filtered_4FGL_J1419.5+3821_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/344504/ft2_4FGL_J1419.5+3821_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/344504/ltcube_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.fits outfile=/scratch/kocevski/344504/expmap_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.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/344504/ltcube_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.fits
.....................!
real 189.49
user 184.47
sys 4.66

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/344504/ft1_filtered_4FGL_J1419.5+3821_daily_bin1200.fits scfile=/scratch/kocevski/344504/ft2_4FGL_J1419.5+3821_daily_bin1200.fits outfile=/scratch/kocevski/344504/cmap_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344504/ft1_filtered_4FGL_J1419.5+3821_daily_bin1200.fits scfile=/scratch/kocevski/344504/ft2_4FGL_J1419.5+3821_daily_bin1200.fits outfile=/scratch/kocevski/344504/cmap_HighResolution_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.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.53
user 0.39
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/344504/ft1_filtered_4FGL_J1419.5+3821_daily_bin1200.fits', '/scratch/kocevski/344504/ft2_4FGL_J1419.5+3821_daily_bin1200.fits', expMap='/scratch/kocevski/344504/expmap_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.fits', expCube='/scratch/kocevski/344504/ltcube_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/344504/Model_4FGL_J1419.5+3821_daily_bin1200.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/344504/ft1_filtered_4FGL_J1419.5+3821_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/344504/ft2_4FGL_J1419.5+3821_daily_bin1200.fits
Exposure map: /scratch/kocevski/344504/expmap_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.fits
Exposure cube: /scratch/kocevski/344504/ltcube_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/344504/Model_4FGL_J1419.5+3821_daily_bin1200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1061.33820705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1058.61941067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85162E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    328.32       1.0000         .10000E-03   10000.    
     3 'norm      '    20.799       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3644       1.0000         .10000E-03   10000.    
     5 'norm      '    .37418E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18896E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38113E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10402E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46742E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .44505E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40502E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .16854E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99070E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24050E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10944E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.072       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11215E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .27757E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13600       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    2.0457       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1058.619     FROM MIGRAD    STATUS=CONVERGED    179 CALLS      680 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11294E-03    137.73        .91839E-02** at limit **
   2  Prefactor     328.54        327.02        .56118E-03   -.37599E-01
   3  norm          20.782        18.355        .21956E-02   -.56460E-03
   4  Prefactor     6.3566        8.9399        .39775E-02    .76272E-01
   5  norm          .10024E-03    28.704        .97880E-02** at limit **
   6  Prefactor     .10115E-03    36.564        .90712E-02** at limit **
   7  Prefactor     5.5551        1.0041         .0000         .0000    
   8  Prefactor     .63111E-03    .20780        .42545E-04** at limit **
   9  Prefactor     .10000E-03    .28317       -.39811E-05** at limit **
  10  norm          .10000E-03    .20571       -.48687E-06** at limit **
  11  Prefactor     .10243E-03    .20571       -.36111E-04** at limit **
  12  Prefactor     45.767        .99762       -.12360E-04   -.16128E-03
  13  Prefactor     .10258E-03    .28064        .72840E-04** at limit **
  14  norm          .10000E-03    .28127       -.29093E-05** at limit **
  15  Prefactor     .10155E-03    .21269        .82307E-05** at limit **
  16  norm          .10000E-03    .20571       -.17526E-05** at limit **
  17  Prefactor     .10292E-03    .22595       -.56062E-04** at limit **
  18  Prefactor     .11642E-03    .20897       -.28302E-04** at limit **
  19  norm          .10628E-03    .20571        .61758E-04** at limit **
  20  Prefactor     60.879        .99846       -.75643E-05   -.14423E-02
  21  Prefactor     .10003E-03    .20571        .85369E-05** at limit **
  22  norm          .10000E-03    .20571        .31488E-06** at limit **
  23  Prefactor     .10047E-03    .20981       -.12573E-03** at limit **
  24  Prefactor     .11174E-03    .23433        .67800E-04** at limit **
  25  Normalizat    .10000E-01    .25752        .85812E-05** at limit **
  26  Prefactor     2.0459        1.0188        .47610E-05    .69740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00011294
  Prefactor  = 328.54
  norm       = 20.7821
  Prefactor  = 6.35659
  norm       = 0.000100235
  Prefactor  = 0.000101148
  Prefactor  = 5.55506
  Prefactor  = 0.000631114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000102428
  Prefactor  = 45.7672
  Prefactor  = 0.000102584
  norm       = 0.000100002
  Prefactor  = 0.000101553
  norm       = 0.000100001
  Prefactor  = 0.000102916
  Prefactor  = 0.000116417
  norm       = 0.000106282
  Prefactor  = 60.879
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.000100471
  Prefactor  = 0.000111737
  Normalizat = 0.01
  Prefactor  = 2.04586
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1058.619     FROM HESSE     STATUS=FAILED        23 CALLS      703 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11294E-03    137.73        .91839E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     328.54        327.02        .56118E-03   -1.2063    
   3  norm          20.782        18.355        .21956E-02   -1.4796    
   4  Prefactor     6.3566        8.9399        .39775E-02   -1.5204    
   5  norm          .10024E-03    28.704        .97880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10115E-03    36.564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     526.10        520.50         .0000       -1.5237    
   8  Prefactor     .63111E-03    .20780        .42545E-04   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .28317       -.39811E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571       -.48687E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10243E-03    .20571       -.36111E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.767        .99762       -.12360E-04   -1.4354    
  13  Prefactor     .10258E-03    .28064        .72840E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .28127       -.29093E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10155E-03    .21269        .82307E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571       -.17526E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10292E-03    .22595       -.56062E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11642E-03    .20897       -.28302E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10628E-03    .20571        .61758E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     60.879        .99846       -.75643E-05   -1.4146    
  21  Prefactor     .10003E-03    .20571        .85369E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571        .31488E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10047E-03    .20981       -.12573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11174E-03    .23433        .67800E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25752        .85812E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.0459        1.0188        .47610E-05   -.63209    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.97092e-09
Minuit parameter uncertainties:
  1  0.084628
  2  328.882
  3  18.3599
  4  8.94178
  5  0.00520199
  6  0.0129646
  7  1.00411
  8  0.0210113
  9  2.11036e-05
  10  1.6466e-05
  11  0.00141357
  12  0.997617
  13  0.00170315
  14  4.5594e-05
  15  0.00114939
  16  2.6991e-05
  17  0.00162334
  18  0.00370437
  19  0.0022735
  20  0.998459
  21  0.000145289
  22  3.47628e-07
  23  0.000628411
  24  0.0033168
  25  1.19746e-06
  26  1.02997
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1058.61854002

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.024e-04  1.414e-03  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:  2.046e+00  1.030e+00  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.000e-02  1.197e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/344504/likelihoodResults_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.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) = 1058.61864689
delta logL = -0.000106862769144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1058.61854116
delta logL = -1.13197506835e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7812       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.0459       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=   1058.619     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      288 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10444E-03    24.979        .17818E-01** at limit **
   2  Index         2.6863        6.0086        .50000        .94726E-05
   3  Normalizat    .10000E-01    .71068E-03    .10741E-01** at limit **
   4  Prefactor     2.0459        .10585E-01    .21730E-03    .12082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104444
  Index      = 2.68632
  Normalizat = 0.01
  Prefactor  = 2.04586
 **********
 **   18 **HESSE 
 **********

 FCN=   1058.619     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10444E-03    240.86        .18517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6863        5.5529        .50000       -.48108    
   3  Normalizat    .10000E-01    .69378E-02    .21483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0459        .33040E-01    .43459E-04   -.63209    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.0505e-09
Minuit parameter uncertainties:
  1  0.0656975
  2  454.056
  3  4.02946e-06
  4  0.0330406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344504': 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) = 1058.61854039
delta logL = -3.69151166524e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.044e-04  6.570e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.686e+00  4.541e+02  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:  2.046e+00  3.304e-02  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.000e-02  4.029e-06  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/344504/cmap_HighResolution_550368001_550627201_4FGL_J1419.5+3821_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-02', job_status='DONE', photon_flux_upper_limit='3.38e-07', time_completed='2021-09-09 09:46:42.520114', job_id='344504', GAL2='2.05', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631206002.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='2.05', dlogl='-3.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1200' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:46:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 344504: <4FGL_J1419.5+3821_daily_bin1200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1200 214.894 38.3657 550368001 550627201 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 :                                   340.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

