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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin431
RA = 215.292, Dec = 38.9966
tmin = 351043201, tmax = 351302401
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='365206', job_status='RUN', time_executed='2021-09-09 10:41:35.608428', time_epoch_executed='1631209295.61' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365206

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365206/ft1_4FGL_J1421.1+3859_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365206/ft2_4FGL_J1421.1+3859_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365206/ft1_4FGL_J1421.1+3859_daily_bin431.fits outfile=/scratch/kocevski/365206/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin431.fits ra=215.292 dec=38.9966 rad=12.0 tmin=351043201.0 tmax=351302401.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.41
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365206/ft2_4FGL_J1421.1+3859_daily_bin431.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/365206/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin431.fits evtable="EVENTS" outfile="/scratch/kocevski/365206/ft1_filtered_4FGL_J1421.1+3859_daily_bin431.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.52
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365206/ft1_filtered_4FGL_J1421.1+3859_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/365206/ft2_4FGL_J1421.1+3859_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/365206/ltcube_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.fits outfile=/scratch/kocevski/365206/expmap_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.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/365206/ltcube_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.fits
.....................!
real 189.91
user 185.22
sys 4.27

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/365206/ft1_filtered_4FGL_J1421.1+3859_daily_bin431.fits scfile=/scratch/kocevski/365206/ft2_4FGL_J1421.1+3859_daily_bin431.fits outfile=/scratch/kocevski/365206/cmap_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365206/ft1_filtered_4FGL_J1421.1+3859_daily_bin431.fits scfile=/scratch/kocevski/365206/ft2_4FGL_J1421.1+3859_daily_bin431.fits outfile=/scratch/kocevski/365206/cmap_HighResolution_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.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/365206/ft1_filtered_4FGL_J1421.1+3859_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/365206/ft2_4FGL_J1421.1+3859_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365206/Model_4FGL_J1421.1+3859_daily_bin431.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/365206/ft1_filtered_4FGL_J1421.1+3859_daily_bin431.fits.....................!
real 49.84
user 48.29
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365206/ft1_filtered_4FGL_J1421.1+3859_daily_bin431.fits', '/scratch/kocevski/365206/ft2_4FGL_J1421.1+3859_daily_bin431.fits', expMap='/scratch/kocevski/365206/expmap_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.fits', expCube='/scratch/kocevski/365206/ltcube_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365206/Model_4FGL_J1421.1+3859_daily_bin431.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/365206/ft1_filtered_4FGL_J1421.1+3859_daily_bin431.fits
Spacecraft file(s): /scratch/kocevski/365206/ft2_4FGL_J1421.1+3859_daily_bin431.fits
Exposure map: /scratch/kocevski/365206/expmap_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.fits
Exposure cube: /scratch/kocevski/365206/ltcube_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365206/Model_4FGL_J1421.1+3859_daily_bin431.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) = 6345.51683426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.650       1.0000         .10000E-03   10000.    
     3 'norm      '    9.6534       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18853E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    10.455       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.878       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5902       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56440E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.827       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4178       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.224       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9402       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4204       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5042       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4499       1.0000         .10000E-03   10000.    
    26 'norm      '    .18882E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.6247       1.0000         .10000E-03   10000.    
    28 'Prefactor '    73.214       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .67077E-01   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .76464       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.

 FCN=   6345.494     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4356 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    140.52       -.49823E-05** at limit **
   2  Prefactor     67.631        68.347       -.10810E-05   -.56755E-04
   3  norm          9.6534        2.1015        .95000E-08   -.14996E-03
   4  Prefactor     .10000E-03    1.4372        .40390E-07** at limit **
   5  norm          .10000E-03    6.9660        .15938E-07** at limit **
   6  Prefactor     .10000E-03    9.6913        .19848E-06** at limit **
   7  Prefactor     .10000E-03    20.515        .56115E-06** at limit **
   8  Prefactor     2.5662        2.5226       -.36483E-07    .16470E-04
   9  Prefactor     .10008E-03    11.823        .68805E-06** at limit **
  10  norm          10.456        4.5712       -.68709E-07   -.27768E-03
  11  Prefactor     28.922        25.632       -.21677E-05   -.15456E-03
  12  Prefactor     1.5569        129.37        .16502E-04    .61080E-05
  13  Prefactor     .11052E-03    1.5442        .28523E-06** at limit **
  14  norm          .10000E-03    5.7715        .30056E-07** at limit **
  15  Prefactor     18.829        21.327       -.40999E-06   -.42827E-04
  16  norm          7.4178        5.0566        .23703E-07   -.64544E-04
  17  Prefactor     .10000E-03    12.018       -.42984E-07** at limit **
  18  Prefactor     24.220        15.201       -.27004E-06   -.83649E-04
  19  Prefactor     .10000E-03    9.1934        .10486E-07** at limit **
  20  norm          3.9397        5.3511        .66716E-07   -.37890E-04
  21  Prefactor     7.4207        8.5601       -.17823E-05   -.52224E-03
  22  Prefactor     .10000E-03    18.555       -.35511E-06** at limit **
  23  Prefactor     8.5038        6.8506        .35452E-06    .17945E-03
  24  Prefactor     .10000E-03    4.1072       -.39159E-07** at limit **
  25  norm          2.4501        1.8989        .15551E-06    .20401E-03
  26  norm          .10462E-03    2.2811       -.80110E-06** at limit **
  27  Prefactor     7.6590        9.9462        .34910E-05   -.42153E-03
  28  Prefactor     73.170        83.490       -.32761E-05   -.79549E-04
  29  Prefactor     .10323E-03    20.267       -.36109E-05** at limit **
  30  Normalizat    1.0095        .16950       -.73385E-06   -.11342E-04
  31  Prefactor     .76514        .18333        .47898E-06   -.21240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 67.6306
  norm       = 9.65344
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56624
  Prefactor  = 0.000100078
  norm       = 10.456
  Prefactor  = 28.9217
  Prefactor  = 1.55687
  Prefactor  = 0.000110518
  norm       = 0.0001
  Prefactor  = 18.8294
  norm       = 7.41775
  Prefactor  = 0.0001
  Prefactor  = 24.22
  Prefactor  = 0.0001
  norm       = 3.93969
  Prefactor  = 7.42071
  Prefactor  = 0.0001
  Prefactor  = 8.50376
  Prefactor  = 0.0001
  norm       = 2.45008
  norm       = 0.000104623
  Prefactor  = 7.65896
  Prefactor  = 73.17
  Prefactor  = 0.00010323
  Normalizat = 1.00948
  Prefactor  = 0.765139
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.494     FROM HESSE     STATUS=OK           648 CALLS     5004 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    142.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.631        69.245        .48799E-04   -1.4061    
   3  norm          9.6534        2.1056        .51605E-04   -1.5086    
   4  Prefactor     .10000E-03    1.4479        .93231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.0079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5662        2.5281        .12197E-03   -1.5388    
   9  Prefactor     .10008E-03    81.712        .51770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.456        4.5710        .10763E-03   -1.5061    
  11  Prefactor     28.922        21.793        .74553E-04   -1.4632    
  12  Prefactor     1.5569        95.627        .33650E-03   -1.5458    
  13  Prefactor     .11052E-03    3.2571        .33794E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.7874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.829        21.303        .92306E-04   -1.4840    
  16  norm          7.4178        5.0527        .14263E-03   -1.5163    
  17  Prefactor     .10000E-03    12.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.220        15.206        .81388E-04   -1.4723    
  19  Prefactor     .10000E-03    9.2025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9397        5.3431        .20322E-03   -1.5311    
  21  Prefactor     7.4207        8.8088        .14723E-03   -1.5163    
  22  Prefactor     .10000E-03    18.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.5038        6.8414        .13746E-03   -1.5125    
  24  Prefactor     .10000E-03    4.1443        .15763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4501        1.8839        .83221E-04   -1.5395    
  26  norm          .10462E-03    4.3845        .39551E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.6590        11.226        .72615E-03   -1.5154    
  28  Prefactor     73.170        84.030        .46921E-04   -1.3995    
  29  Prefactor     .10323E-03    24.465        .10104       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0095        .20245        .22325E-03   -.92714    
  31  Prefactor     .76514        .21990        .29268E-03   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5672e-09
Minuit parameter uncertainties:
  1  0.00149714
  2  69.3278
  3  2.10559
  4  1.94151e-07
  5  9.98381e-06
  6  3.97166e-05
  7  6.49333e-05
  8  2.52821
  9  0.00504296
  10  4.5711
  11  21.7987
  12  24.4433
  13  0.0117068
  14  1.8771e-05
  15  21.3119
  16  5.05296
  17  1.26165e-05
  18  15.208
  19  6.47344e-06
  20  5.34372
  21  8.81032
  22  3.68374e-05
  23  6.84205
  24  3.30035e-06
  25  1.88396
  26  0.00900501
  27  11.2295
  28  84.167
  29  0.0177863
  30  0.202608
  31  0.220148
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.557e+00  2.444e+01  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:  7.651e-01  2.201e-01  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:  1.009e+00  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365206/likelihoodResults_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.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) = 6345.35756698
delta logL = 0.13677795545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6345.33906423
delta logL = 0.155280700848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87798       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0602       1.0000          .0000       10.000    
     3 'Normalizat'    .98440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78389       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=   6345.339     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      260 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87808        145.63        .12862E-03   -.61022E-03
   2  Index         4.0605        5.2999        .76653E-02   -.96067E-04
   3  Normalizat    .98439        .15701        .22556E-03   -.12354E-03
   4  Prefactor     .78389        .17993        .28942E-03   -.47254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.878084
  Index      = 4.06045
  Normalizat = 0.984386
  Prefactor  = 0.783894
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.339     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87808        6.5029        .51450E-05   -1.5521    
   2  Index         4.0605        2.5917        .30661E-03   -.18903    
   3  Normalizat    .98439        .19270        .90223E-05   -.93555    
   4  Prefactor     .78389        .21940        .11577E-04   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05402e-09
Minuit parameter uncertainties:
  1  4.7796
  2  2.73018
  3  0.192838
  4  0.219641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365206': 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) = 6345.33906417
delta logL = 0.15528076675

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  8.781e-01  4.780e+00  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  4.060e+00  2.730e+00  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:  7.839e-01  2.196e-01  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:  9.844e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/365206/cmap_HighResolution_351043201_351302401_4FGL_J1421.1+3859_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-09-09 10:57:03.985271', job_id='365206', GAL2='0.78', fit_tolerance='1e-08', EG2='0.98', EG='1.01', time_epoch_completed='1631210223.99', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.55e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='431' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 365206: <4FGL_J1421.1+3859_daily_bin431> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin431> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 10:41:21 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:41:23 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:41:23 2021
Terminated at Thu Sep  9 10:57:04 2021
Results reported at Thu Sep  9 10:57:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin431 215.292 38.9966 351043201 351302401 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 :                                   925.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

