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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1205
RA = 215.292, Dec = 38.9966
tmin = 551664001, tmax = 551923201
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='369642', job_status='RUN', time_executed='2021-09-09 10:56:30.621112', time_epoch_executed='1631210190.62' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369642/ft1_4FGL_J1421.1+3859_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369642/ft1_4FGL_J1421.1+3859_daily_bin1205.fits outfile=/scratch/kocevski/369642/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1205.fits ra=215.292 dec=38.9966 rad=12.0 tmin=551664001.0 tmax=551923201.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 3.77
user 3.54
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.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/369642/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/369642/ltcube_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.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/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits
.....................!
real 12.14
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/369642/ltcube_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.fits outfile=/scratch/kocevski/369642/expmap_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.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/369642/ltcube_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.fits
.....................!
real 190.34
user 185.33
sys 4.65

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

Setting source of interest to:
4FGL J1421.1+3859 @ 215.292 38.9966

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.fits scfile=/scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits outfile=/scratch/kocevski/369642/cmap_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.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=215.292 yref=38.9966 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.fits scfile=/scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits outfile=/scratch/kocevski/369642/cmap_HighResolution_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.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=215.292 yref=38.9966 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/369642/Model_4FGL_J1421.1+3859_daily_bin1205.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/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.fits...!
real 13.65
user 12.42
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.fits', '/scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits', expMap='/scratch/kocevski/369642/expmap_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.fits', expCube='/scratch/kocevski/369642/ltcube_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369642/Model_4FGL_J1421.1+3859_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1421.1+3859'

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.965e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/369642/ft1_filtered_4FGL_J1421.1+3859_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/369642/ft2_4FGL_J1421.1+3859_daily_bin1205.fits
Exposure map: /scratch/kocevski/369642/expmap_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.fits
Exposure cube: /scratch/kocevski/369642/ltcube_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369642/Model_4FGL_J1421.1+3859_daily_bin1205.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) = 34.8488468551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8511       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3556       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54409E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .69895E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3385       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9961       1.0000         .10000E-03   10000.    
    10 'norm      '    .15256       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .88811       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27501       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12623       1.0000         .10000E-03   10000.    
    14 'norm      '    .38872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4974       1.0000         .10000E-03   10000.    
    16 'norm      '    .11629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5583       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2044       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.411       1.0000         .10000E-03   10000.    
    20 'norm      '    .91093E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .59870E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .73596       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .97427E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .63005       1.0000         .10000E-03   10000.    
    25 'norm      '    .18309E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .86793E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .83550E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.2866       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .68022       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.8576       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .37921E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34.14271     FROM MIGRAD    STATUS=CONVERGED    303 CALLS      430 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8511        1.0037         .0000         .0000    
   2  Prefactor     8.3556        1.0018         .0000         .0000    
   3  norm          6.7947        1.0027         .0000         .0000    
   4  Prefactor     .10000E-03    121.78       -.15115E-04** at limit **
   5  norm          .11198E-03    213.34        .19850E-05** at limit **
   6  Prefactor     .28735E-03    804.43       -.61448E-04** at limit **
   7  Prefactor     5.5551        1.0041         .0000         .0000    
   8  Prefactor     1.3385        1.0961         .0000         .0000    
   9  Prefactor     2.9961        1.0146         .0000         .0000    
  10  norm          .10000E-03    83.696        .60717E-05** at limit **
  11  Prefactor     .10002E-03    282.84        .36349E-04** at limit **
  12  Prefactor     .10123E-03    669.86        .41027E-04** at limit **
  13  Prefactor     .10000E-03    73.518        .12870E-04** at limit **
  14  norm          .10038E-03    341.14       -.48039E-05** at limit **
  15  Prefactor     .33247E-02    762.78        .75598E-06   -.28279E-02
  16  norm          .10000E-03    84.344       -.36445E-05** at limit **
  17  Prefactor     .20857E-01    242.36        .25148E-04   -.77119E-02
  18  Prefactor     6.2044        1.0033         .0000         .0000    
  19  Prefactor     366.07        530.95       -.95564E-05   -.58156E-02
  20  norm          .10002E-03    110.18       -.59651E-04** at limit **
  21  Prefactor     .10005E-03    157.62        .28081E-04** at limit **
  22  Prefactor     .15251E-02    6256.2        .10440E-03** at limit **
  23  Prefactor     .10000E-03    70.522        .19385E-04** at limit **
  24  Prefactor     .16756E-03    901.04        .67283E-04** at limit **
  25  norm          .10000E-03    19.022       -.26105E-04** at limit **
  26  norm          .10000E-03    96.024       -.40256E-04** at limit **
  27  Prefactor     .10000E-03    224.70        .71870E-05** at limit **
  28  Prefactor     650.57        1067.0       -.58141E-05    .27485E-02
  29  Prefactor     .10049E-03    398.66       -.24801E-04** at limit **
  30  Normalizat    .86590        1.2208        .35309E-04   -.64080E-07
  31  Prefactor     .17447E-11    1.4750        .65528E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.85114
  Prefactor  = 8.35559
  norm       = 6.79466
  Prefactor  = 0.000100002
  norm       = 0.000111982
  Prefactor  = 0.000287351
  Prefactor  = 5.55506
  Prefactor  = 1.33853
  Prefactor  = 2.99605
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.000101234
  Prefactor  = 0.0001
  norm       = 0.000100382
  Prefactor  = 0.00332471
  norm       = 0.000100001
  Prefactor  = 0.0208575
  Prefactor  = 6.20442
  Prefactor  = 366.075
  norm       = 0.000100017
  Prefactor  = 0.000100045
  Prefactor  = 0.00152509
  Prefactor  = 0.0001
  Prefactor  = 0.000167562
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 650.571
  Prefactor  = 0.000100489
  Normalizat = 0.865905
  Prefactor  = 1.74472e-12
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   34.14271     FROM HESSE     STATUS=FAILED        11 CALLS      441 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     523.33        517.44         .0000       -1.5224    
   2  Prefactor     8.3556        1.0018         .0000       -1.5130    
   3  norm          6.7947        1.0027         .0000       -1.5187    
   4  Prefactor     .10000E-03    .22761       -.15115E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11198E-03    .84634E-01    .19850E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .28735E-03    .21860       -.61448E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5551        1.0041         .0000       -1.5237    
   8  Prefactor     1.3385        1.0961         .0000       -1.5477    
   9  Prefactor     2.9961        1.0146         .0000       -1.5362    
  10  norm          .10000E-03    .23809        .60717E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    .40732        .36349E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10123E-03    .26599        .41027E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .23211        .12870E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10038E-03    .29201       -.48039E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .33247E-02    .56319E-01    .75598E-06   -1.5719    
  16  norm          .10000E-03    .22985       -.36445E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .20857E-01    .52541E-01    .25148E-04   -1.5737    
  18  Prefactor     6.2044        1.0033         .0000       -1.5210    
  19  Prefactor     366.07        5.1350       -.95564E-05   -1.1858    
  20  norm          .10002E-03    .22414       -.59651E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    .21707        .28081E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .15251E-02    .37204        .10440E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .22557        .19385E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .16756E-03    .34755        .67283E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20571       -.26105E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .22316       -.40256E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .27238        .71870E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     650.57        8.5867       -.58141E-05   -1.0550    
  29  Prefactor     .10049E-03    .35914       -.24801E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .86590        .73942        .35309E-04   -.97669    
  31  Prefactor     .17447E-11    .25504        .65528E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.60388e-10
Minuit parameter uncertainties:
  1  1.0037
  2  1.0018
  3  1.00273
  4  3.80871e-05
  5  0.00201402
  6  0.0127994
  7  1.00411
  8  1.0961
  9  1.01465
  10  1.14905e-05
  11  0.000179173
  12  0.00114569
  13  1.54273e-05
  14  0.000667733
  15  0.0269527
  16  2.30757e-05
  17  0.052541
  18  1.00328
  19  5.13504
  20  0.00012425
  21  0.000198232
  22  0.0460517
  23  1.96045e-05
  24  0.00969152
  25  1.67714e-05
  26  4.43464e-05
  27  7.37469e-05
  28  8.58676
  29  0.000837774
  30  0.74832
  31  1.33978e-06
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.012e-04  1.146e-03  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.745e-12  1.340e-06  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.659e-01  7.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 9.31e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369642/likelihoodResults_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.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) = 34.142717702
delta logL = -6.93687690045e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 34.1427177454
delta logL = -6.98022647327e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95682E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6698       1.0000          .0000       10.000    
     3 'Normalizat'    .86630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45761E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+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=   34.14271     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      230 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10758E-03    1345.5        .15225E-01** at limit **
   2  Index         2.5062        7.2451        .50000        .26066E-06
   3  Normalizat    .86590        .62955E-01    .21787E-03    .40586E-06
   4  Prefactor     .59952E-13    .54980E-02    .22447E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107584
  Index      = 2.50615
  Normalizat = 0.865905
  Prefactor  = 5.9952e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   34.14271     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      259 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10758E-03    8975.8        .16260E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5062        6.6204        .50000       -.52218    
   3  Normalizat    .86590        .18698        .43575E-04   -.97669    
   4  Prefactor     .59952E-13    .48493E-01    .44894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.56989e-10
Minuit parameter uncertainties:
  1  0.606488
  2  5866.29
  3  0.187118
  4  1.07977e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369642': 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) = 34.1427107584
delta logL = 6.67881749905e-09

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.076e-04  6.065e-01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.506e+00  5.866e+03  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  5.995e-14  1.080e-07  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  8.659e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.292 38.997

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/369642/cmap_HighResolution_551664001_551923201_4FGL_J1421.1+3859_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-01', job_status='DONE', photon_flux_upper_limit='9.31e-06', time_completed='2021-09-09 11:01:53.258513', job_id='369642', GAL2='0.00', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631210513.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='6.68e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1205' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:01:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 369642: <4FGL_J1421.1+3859_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1205> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 10:56:16 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:56:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 10:56:18 2021
Terminated at Thu Sep  9 11:01:54 2021
Results reported at Thu Sep  9 11:01:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1205 215.292 38.9966 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1421.1+3859 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   320.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             508.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   335 sec.
    Turnaround time :                            338 sec.

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

