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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin927
RA = 215.292, Dec = 38.9966
tmin = 479606401, tmax = 479865601
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='367030', job_status='RUN', time_executed='2021-09-09 10:46:38.828082', time_epoch_executed='1631209598.83' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367030/ft1_4FGL_J1421.1+3859_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367030/ft2_4FGL_J1421.1+3859_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367030/ft1_4FGL_J1421.1+3859_daily_bin927.fits outfile=/scratch/kocevski/367030/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin927.fits ra=215.292 dec=38.9966 rad=12.0 tmin=479606401.0 tmax=479865601.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.40
user 3.19
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367030/ft1_filtered_4FGL_J1421.1+3859_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/367030/ft2_4FGL_J1421.1+3859_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/367030/ltcube_479606401_479865601_4FGL_J1421.1+3859_daily_bin927.fits outfile=/scratch/kocevski/367030/expmap_479606401_479865601_4FGL_J1421.1+3859_daily_bin927.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/367030/ltcube_479606401_479865601_4FGL_J1421.1+3859_daily_bin927.fits
.....................!
real 190.73
user 185.36
sys 4.97

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/367030/ft1_filtered_4FGL_J1421.1+3859_daily_bin927.fits scfile=/scratch/kocevski/367030/ft2_4FGL_J1421.1+3859_daily_bin927.fits outfile=/scratch/kocevski/367030/cmap_479606401_479865601_4FGL_J1421.1+3859_daily_bin927.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367030/ft1_filtered_4FGL_J1421.1+3859_daily_bin927.fits scfile=/scratch/kocevski/367030/ft2_4FGL_J1421.1+3859_daily_bin927.fits outfile=/scratch/kocevski/367030/cmap_HighResolution_479606401_479865601_4FGL_J1421.1+3859_daily_bin927.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18972E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    11.250       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38920E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .88029       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14637E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8068       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4247       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55212E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9262       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11107E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    56.444       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.745       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7568       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1416       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9016       1.0000         .10000E-03   10000.    
    26 'norm      '    5.4143       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89264       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77069       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=   5393.833     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4247 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.049        .29498E-05** at limit **
   2  Prefactor     .10000E-03    54.173       -.48191E-05** at limit **
   3  norm          1.4342        .91119        .17850E-07    .10179E-03
   4  Prefactor     .19850E-01    1.6849        .10627E-06   -.49401E-04
   5  norm          11.248        13.079        .28546E-07    .29215E-04
   6  Prefactor     .10000E-03    7.9044       -.18709E-05** at limit **
   7  Prefactor     .10000E-03    10.375        .14012E-05** at limit **
   8  Prefactor     .87903        2.7912        .25527E-06    .15436E-03
   9  Prefactor     .10045E-03    13.726       -.50659E-05** at limit **
  10  norm          .10000E-03    2.5677        .73106E-07** at limit **
  11  Prefactor     4.7987        10.306        .27258E-05    .39188E-03
  12  Prefactor     .10000E-03    19.648        .49038E-06** at limit **
  13  Prefactor     1.4249        3.0997        .27637E-06    .12539E-03
  14  norm          .10000E-03    6.0210        .14460E-06** at limit **
  15  Prefactor     .10009E-03    24.686        .84856E-05** at limit **
  16  norm          2.9262        4.2410        .20623E-05    .10702E-02
  17  Prefactor     .10000E-03    11.917       -.19327E-07** at limit **
  18  Prefactor     .10000E-03    12.328        .13647E-05** at limit **
  19  Prefactor     56.446        32.886       -.15053E-07    .19003E-04
  20  norm          .10000E-03    5.0130        .48579E-07** at limit **
  21  Prefactor     .10000E-03    21.886       -.10798E-05** at limit **
  22  Prefactor     29.744        25.593       -.29521E-06   -.93013E-04
  23  Prefactor     2.7582        7.3050        .44364E-06    .12622E-03
  24  Prefactor     2.1381        5.9166        .15515E-05    .18450E-03
  25  norm          3.9014        1.8280        .12682E-08    .23080E-03
  26  norm          5.4169        4.1140        .23247E-06    .48391E-03
  27  Prefactor     .10000E-03    10.634       -.91198E-06** at limit **
  28  Prefactor     .10000E-03    28.083        .17873E-05** at limit **
  29  Prefactor     .10000E-03    10.961       -.14457E-05** at limit **
  30  Normalizat    .89272        .15632       -.93367E-06    .17704E-03
  31  Prefactor     .77044        .17570        .25903E-06    .11257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.43416
  Prefactor  = 0.0198499
  norm       = 11.2479
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.87903
  Prefactor  = 0.000100451
  norm       = 0.0001
  Prefactor  = 4.79869
  Prefactor  = 0.0001
  Prefactor  = 1.42488
  norm       = 0.0001
  Prefactor  = 0.000100095
  norm       = 2.92617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.4463
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7439
  Prefactor  = 2.75817
  Prefactor  = 2.13814
  norm       = 3.90137
  norm       = 5.41693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.892719
  Prefactor  = 0.77044
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.833     FROM HESSE     STATUS=OK           634 CALLS     4881 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4342        .92001        .54147E-04   -1.5468    
   4  Prefactor     .19850E-01    4.0539        .32621E-01   -1.5680    
   5  norm          11.248        13.090        .11944E-03   -1.5037    
   6  Prefactor     .10000E-03    48.335        .38302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .87903        2.7227        .21133E-03   -1.5520    
   9  Prefactor     .10045E-03    89.032        .42261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6217        .11481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7987        10.514        .91749E-03   -1.5270    
  12  Prefactor     .10000E-03    19.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4249        3.0778        .17995E-03   -1.5469    
  14  norm          .10000E-03    6.0318        .17600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    62.255        .51128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9262        4.3946        .91000E-03   -1.5366    
  17  Prefactor     .10000E-03    11.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     56.446        32.888        .53395E-04   -1.4204    
  20  norm          .10000E-03    5.0538        .16058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.744        25.541        .73461E-04   -1.4617    
  23  Prefactor     2.7582        7.2459        .24516E-03   -1.5376    
  24  Prefactor     2.1381        5.8979        .28164E-03   -1.5416    
  25  norm          3.9014        1.8182        .59369E-04   -1.5313    
  26  norm          5.4169        4.0986        .12468E-03   -1.5242    
  27  Prefactor     .10000E-03    10.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .89272        .18564        .20367E-03   -.96716    
  31  Prefactor     .77044        .20910        .25540E-03   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70224e-09
Minuit parameter uncertainties:
  1  0.000182835
  2  0.000335172
  3  0.92002
  4  0.56595
  5  13.0932
  6  0.000717832
  7  4.51007e-05
  8  2.72308
  9  0.0126985
  10  1.67224e-06
  11  10.5177
  12  9.3232e-05
  13  3.07813
  14  9.51317e-06
  15  0.00485975
  16  4.39513
  17  1.72816e-06
  18  2.4344e-05
  19  32.8985
  20  2.97587e-06
  21  1.64968e-05
  22  25.55
  23  7.2482
  24  5.89954
  25  1.81825
  26  4.09876
  27  9.94388e-06
  28  9.25658e-05
  29  4.36754e-05
  30  0.185775
  31  0.209317
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  9.323e-05  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.704e-01  2.093e-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:  8.927e-01  1.858e-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: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367030/likelihoodResults_479606401_479865601_4FGL_J1421.1+3859_daily_bin927.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) = 5393.83301923
delta logL = -0.000239237098867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5393.83277999
delta logL = -3.44516593032e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10886E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7195       1.0000          .0000       10.000    
     3 'Normalizat'    .89279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77037       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.

 FCN=   5393.833     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      210 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1042.3        .90712E-02** at limit **
   2  Index         2.7814        5.4569        .50000       -.28465E-04
   3  Normalizat    .89272        .24618E-01    .44809E-01   -.21389E-05
   4  Prefactor     .77044        .28950E-01    .43330E-01    .10300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.78145
  Normalizat = 0.892718
  Prefactor  = 0.770441
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.833     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    29.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7814        6.3878        .50000       -.45974    
   3  Normalizat    .89272        .17423        .20367E-03   -.96716    
   4  Prefactor     .77044        .20535        .25540E-03   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81926e-09
Minuit parameter uncertainties:
  1  0.00115572
  2  4.76268
  3  0.17434
  4  0.205557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367030': 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) = 5393.83277934
delta logL = 6.4519008447e-07

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.156e-03  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.781e+00  4.763e+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.704e-01  2.056e-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:  8.927e-01  1.743e-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/367030/cmap_HighResolution_479606401_479865601_4FGL_J1421.1+3859_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-09 10:59:55.291289', job_id='367030', GAL2='0.77', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631210395.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='6.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='927' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:59:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 367030: <4FGL_J1421.1+3859_daily_bin927> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin927 215.292 38.9966 479606401 479865601 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 :                                   794.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

