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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin216
RA = 215.292, Dec = 38.9966
tmin = 295315201, tmax = 295574401
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='363895', job_status='RUN', time_executed='2021-09-09 10:36:57.418013', time_epoch_executed='1631209017.42' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363895

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363895/ft1_4FGL_J1421.1+3859_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363895/ft2_4FGL_J1421.1+3859_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363895/ft1_4FGL_J1421.1+3859_daily_bin216.fits outfile=/scratch/kocevski/363895/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin216.fits ra=215.292 dec=38.9966 rad=12.0 tmin=295315201.0 tmax=295574401.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 2.35
user 2.13
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363895/ft1_filtered_4FGL_J1421.1+3859_daily_bin216.fits" evtable="EVENTS" scfile=/scratch/kocevski/363895/ft2_4FGL_J1421.1+3859_daily_bin216.fits sctable="SC_DATA" outfile=/scratch/kocevski/363895/ltcube_295315201_295574401_4FGL_J1421.1+3859_daily_bin216.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/363895/ft2_4FGL_J1421.1+3859_daily_bin216.fits
.....................!
real 12.36
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363895/ft1_filtered_4FGL_J1421.1+3859_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/363895/ft2_4FGL_J1421.1+3859_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/363895/ltcube_295315201_295574401_4FGL_J1421.1+3859_daily_bin216.fits outfile=/scratch/kocevski/363895/expmap_295315201_295574401_4FGL_J1421.1+3859_daily_bin216.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/363895/ltcube_295315201_295574401_4FGL_J1421.1+3859_daily_bin216.fits
.....................!
real 190.87
user 185.52
sys 4.75

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/363895/ft1_filtered_4FGL_J1421.1+3859_daily_bin216.fits scfile=/scratch/kocevski/363895/ft2_4FGL_J1421.1+3859_daily_bin216.fits outfile=/scratch/kocevski/363895/cmap_295315201_295574401_4FGL_J1421.1+3859_daily_bin216.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363895/ft1_filtered_4FGL_J1421.1+3859_daily_bin216.fits scfile=/scratch/kocevski/363895/ft2_4FGL_J1421.1+3859_daily_bin216.fits outfile=/scratch/kocevski/363895/cmap_HighResolution_295315201_295574401_4FGL_J1421.1+3859_daily_bin216.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.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2925       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.137       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.693       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4865       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38611E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.740       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.799       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.093       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7566       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3242       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21706E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8282       1.0000         .10000E-03   10000.    
    25 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .29124E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    106.34       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0724       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94730       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=   5626.467     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4786 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3562        99.123        .27636E-05   -.44347E-04
   2  Prefactor     14.154        122.34       -.17500E-05    .19645E-05
   3  norm          .10000E-03    .43812        .28941E-07** at limit **
   4  Prefactor     15.695        5.7046        .17758E-06   -.40028E-03
   5  norm          1.4889        19.894        .17393E-04    .73142E-04
   6  Prefactor     .10000E-03    7.4178        .11998E-06** at limit **
   7  Prefactor     44.785        49.141       -.41025E-06    .18157E-05
   8  Prefactor     .10000E-03    3.3505       -.29382E-06** at limit **
   9  Prefactor     31.720        23.424        .16090E-06   -.15411E-03
  10  norm          .10000E-03    1.7804        .83312E-07** at limit **
  11  Prefactor     19.802        21.109       -.10975E-06    .63942E-04
  12  Prefactor     14.712        24.911       -.22493E-06    .41865E-04
  13  Prefactor     .10000E-03    .96620       -.54514E-09** at limit **
  14  norm          .10000E-03    7.1154        .14693E-06** at limit **
  15  Prefactor     13.094        16.305        .14037E-06   -.60280E-04
  16  norm          4.7567        5.5741        .29556E-06   -.31179E-03
  17  Prefactor     33.150        32.271        .10446E-05   -.33684E-03
  18  Prefactor     .10000E-03    12.785        .52953E-07** at limit **
  19  Prefactor     .10000E-03    16.520        .20684E-06** at limit **
  20  norm          5.3234        6.1002        .34887E-07   -.12041E-03
  21  Prefactor     .10000E-03    5.6818       -.34109E-07** at limit **
  22  Prefactor     .10711E-03    25.543       -.31286E-05** at limit **
  23  Prefactor     .10000E-03    5.7169       -.23355E-07** at limit **
  24  Prefactor     7.8248        9.7140        .11249E-06    .73228E-04
  25  norm          .10001E-03    .66217        .45391E-06** at limit **
  26  norm          .10000E-03    1.2505       -.61838E-08** at limit **
  27  Prefactor     .10001E-03    7.9114       -.23339E-05** at limit **
  28  Prefactor     106.40        73.288       -.84618E-06    .33709E-04
  29  Prefactor     .10000E-03    18.399       -.11457E-06** at limit **
  30  Normalizat    1.0718        .19419       -.20492E-05   -.30636E-03
  31  Prefactor     .94802        .20904        .46088E-06   -.25217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.35622
  Prefactor  = 14.154
  norm       = 0.0001
  Prefactor  = 15.6947
  norm       = 1.48887
  Prefactor  = 0.0001
  Prefactor  = 44.785
  Prefactor  = 0.000100001
  Prefactor  = 31.7199
  norm       = 0.0001
  Prefactor  = 19.8018
  Prefactor  = 14.7118
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0937
  norm       = 4.75666
  Prefactor  = 33.1496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.32344
  Prefactor  = 0.0001
  Prefactor  = 0.000107108
  Prefactor  = 0.0001
  Prefactor  = 7.82483
  norm       = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 106.395
  Prefactor  = 0.0001
  Normalizat = 1.07177
  Prefactor  = 0.948023
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.467     FROM HESSE     STATUS=OK           628 CALLS     5414 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3562        99.575        .14853E-03   -1.5165    
   2  Prefactor     14.154        125.38        .10653E-03   -1.4955    
   3  norm          .10000E-03    .44769        .48462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.695        5.7142        .10110E-03   -1.4915    
   5  norm          1.4889        20.135        .17590E-02   -1.5464    
   6  Prefactor     .10000E-03    7.4230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.785        48.144        .59904E-04   -1.4369    
   8  Prefactor     .10000E-03    12.710        .25486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.720        23.133        .71122E-04   -1.4581    
  10  norm          .10000E-03    1.7938        .97702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.802        21.054        .90014E-04   -1.4818    
  12  Prefactor     14.712        24.881        .10443E-03   -1.4941    
  13  Prefactor     .10000E-03    .96997        .71991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.1216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.094        16.301        .11070E-03   -1.4984    
  16  norm          4.7567        5.5670        .18369E-03   -1.5272    
  17  Prefactor     33.150        32.430        .34809E-03   -1.4556    
  18  Prefactor     .10000E-03    12.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3234        6.0993        .17418E-03   -1.5246    
  21  Prefactor     .10000E-03    5.6934        .17460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10711E-03    29.766        .99060E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7882        .17477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.8248        9.6949        .14331E-03   -1.5148    
  25  norm          .10001E-03    15.275        .11439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.2522        .81869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    30.944        .39319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     106.40        72.854        .19499E-03   -1.3641    
  29  Prefactor     .10000E-03    18.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0718        .22882        .22593E-03   -.90663    
  31  Prefactor     .94802        .24690        .27836E-03   -.94483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05088e-09
Minuit parameter uncertainties:
  1  54.2393
  2  84.4892
  3  1.23477e-06
  4  5.71439
  5  10.9546
  6  3.50849e-05
  7  48.186
  8  0.000165016
  9  23.1395
  10  7.00269e-06
  11  21.0616
  12  24.8989
  13  5.3511e-07
  14  8.29634e-06
  15  16.3061
  16  5.56763
  17  32.4469
  18  3.82689e-05
  19  8.24592e-05
  20  6.10005
  21  2.54146e-06
  22  0.0291055
  23  5.9015e-06
  24  9.69683
  25  0.000780044
  26  1.62688e-06
  27  0.00114459
  28  72.9155
  29  0.000114294
  30  0.229036
  31  0.247189
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.471e+01  2.490e+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:  9.480e-01  2.472e-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.072e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.82
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363895/likelihoodResults_295315201_295574401_4FGL_J1421.1+3859_daily_bin216.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5626.42438778
delta logL = 0.0427319313931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5626.42319036
delta logL = 0.0439293467807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.266       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9566       1.0000          .0000       10.000    
     3 'Normalizat'    1.0655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95345       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=   5626.423     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      287 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.263        25.038        .12506E-03    .10300E-03
   2  Index         2.9566        1.2853        .78037E-02    .43115E-03
   3  Normalizat    1.0657        .21028        .22648E-03   -.39266E-03
   4  Prefactor     .95343        .24295        .27767E-03   -.24503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2626
  Index      = 2.9566
  Normalizat = 1.06568
  Prefactor  = 0.953434
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.423     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.263        20.516        .50022E-05   -1.5067    
   2  Index         2.9566        1.0569        .15607E-02   -.42101    
   3  Normalizat    1.0657        .21050        .45296E-04   -.90861    
   4  Prefactor     .95343        .24306        .55533E-04   -.94298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.614e-10
Minuit parameter uncertainties:
  1  20.5301
  2  1.06657
  3  0.210665
  4  0.243342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363895': 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) = 5626.42318956
delta logL = 0.0439301433607

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.026e+01  2.053e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.957e+00  1.067e+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:  9.534e-01  2.433e-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.066e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.82
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/363895/cmap_HighResolution_295315201_295574401_4FGL_J1421.1+3859_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-09 10:51:45.622198', job_id='363895', GAL2='0.95', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631209905.62', return_code2='0', ts='0.82', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.39e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='216' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 363895: <4FGL_J1421.1+3859_daily_bin216> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin216> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 10:36:39 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:36:40 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:36:40 2021
Terminated at Thu Sep  9 10:51:46 2021
Results reported at Thu Sep  9 10:51:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin216 215.292 38.9966 295315201 295574401 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 :                                   883.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

