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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1
RA = 215.292, Dec = 38.9966
tmin = 239587201, tmax = 239846401
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='363587', job_status='RUN', time_executed='2021-09-09 10:38:29.210398', time_epoch_executed='1631209109.21' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/363587

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/363587/ft1_4FGL_J1421.1+3859_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/363587/ft2_4FGL_J1421.1+3859_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/363587/ft1_4FGL_J1421.1+3859_daily_bin1.fits outfile=/scratch/kocevski/363587/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1.fits ra=215.292 dec=38.9966 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.36
user 1.14
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/363587/ft1_filtered_4FGL_J1421.1+3859_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/363587/ft2_4FGL_J1421.1+3859_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/363587/ltcube_239587201_239846401_4FGL_J1421.1+3859_daily_bin1.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/363587/ft2_4FGL_J1421.1+3859_daily_bin1.fits
.....................!
real 12.47
user 12.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/363587/ft1_filtered_4FGL_J1421.1+3859_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/363587/ft2_4FGL_J1421.1+3859_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/363587/ltcube_239587201_239846401_4FGL_J1421.1+3859_daily_bin1.fits outfile=/scratch/kocevski/363587/expmap_239587201_239846401_4FGL_J1421.1+3859_daily_bin1.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/363587/ltcube_239587201_239846401_4FGL_J1421.1+3859_daily_bin1.fits
.....................!
real 190.98
user 185.84
sys 4.72

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/363587/ft1_filtered_4FGL_J1421.1+3859_daily_bin1.fits scfile=/scratch/kocevski/363587/ft2_4FGL_J1421.1+3859_daily_bin1.fits outfile=/scratch/kocevski/363587/cmap_239587201_239846401_4FGL_J1421.1+3859_daily_bin1.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.51
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/363587/ft1_filtered_4FGL_J1421.1+3859_daily_bin1.fits scfile=/scratch/kocevski/363587/ft2_4FGL_J1421.1+3859_daily_bin1.fits outfile=/scratch/kocevski/363587/cmap_HighResolution_239587201_239846401_4FGL_J1421.1+3859_daily_bin1.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.52
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14319E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28806       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.111       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1628       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12637E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18968E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.7276       1.0000         .10000E-03   10000.    
    25 'norm      '    .64287E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .94289       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90845       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=   3940.359     FROM MIGRAD    STATUS=CONVERGED    249 CALLS     2998 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    167.94       -.22989E-05** at limit **
   2  Prefactor     .22241E-03    8384.7        .89923E-04** at limit **
   3  norm          2.5159        1.6681       -.65367E-07   -.60045E-04
   4  Prefactor     11.115        5.4760        .55283E-07    .38416E-04
   5  norm          .10000E-03    6.7290       -.32283E-06** at limit **
   6  Prefactor     2.1799        33.735        .58746E-06    .51454E-04
   7  Prefactor     7.6748        37.651        .16159E-05    .23184E-02
   8  Prefactor     .10000E-03    16.391       -.11202E-05** at limit **
   9  Prefactor     .10000E-03    15.196        .51101E-06** at limit **
  10  norm          .10000E-03    1.0768       -.10231E-07** at limit **
  11  Prefactor     .10019E-03    14.419       -.46650E-06** at limit **
  12  Prefactor     .10000E-03    34.872        .11463E-05** at limit **
  13  Prefactor     .18727E-03    806.37       -.17924E-04** at limit **
  14  norm          .10000E-03    5.4042        .12022E-06** at limit **
  15  Prefactor     .10000E-03    13.977       -.14271E-06** at limit **
  16  norm          .10000E-03    2.4874        .60082E-08** at limit **
  17  Prefactor     18.812        39.176       -.52440E-06    .18169E-02
  18  Prefactor     .10000E-03    8.4133        .25819E-06** at limit **
  19  Prefactor     .10000E-03    15.832        .37424E-07** at limit **
  20  norm          .10000E-03    2.8252       -.21062E-07** at limit **
  21  Prefactor     .10000E-03    5.2513        .50895E-07** at limit **
  22  Prefactor     .10000E-03    32.944        .86135E-06** at limit **
  23  Prefactor     .10000E-03    1.9755       -.26704E-07** at limit **
  24  Prefactor     6.7256        7.4227       -.57448E-07   -.79632E-05
  25  norm          .64196E-01    2.4301       -.93059E-07    .12957E-05
  26  norm          .10000E-03    2.8904        .44797E-07** at limit **
  27  Prefactor     .10000E-03    3.0183       -.25304E-09** at limit **
  28  Prefactor     .10017E-03    16.390       -.97686E-06** at limit **
  29  Prefactor     .10000E-03    20.825       -.12730E-06** at limit **
  30  Normalizat    .94277        .21398        .71261E-06   -.11038E-04
  31  Prefactor     .90878        .24433        .28377E-06    .10189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100114
  Prefactor  = 0.000222409
  norm       = 2.51592
  Prefactor  = 11.1149
  norm       = 0.0001
  Prefactor  = 2.17986
  Prefactor  = 7.67476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100191
  Prefactor  = 0.000100002
  Prefactor  = 0.000187269
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.8115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.72556
  norm       = 0.0641959
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010017
  Prefactor  = 0.0001
  Normalizat = 0.942768
  Prefactor  = 0.908775
 **********
 **   18 **HESSE 
 **********

 FCN=   3940.359     FROM HESSE     STATUS=OK           694 CALLS     3692 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    168.52        .10253E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .22241E-03    147.03        .15019       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5159        1.6687        .64392E-02   -1.5391    
   4  Prefactor     11.115        5.4680        .30047E-02   -1.5041    
   5  norm          .10000E-03    6.7255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1799        34.522        .70018E-02   -1.5413    
   7  Prefactor     7.6748        125.75        .36588E-02   -1.5154    
   8  Prefactor     .10000E-03    5.8882        .47961E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.194        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10019E-03    29.653        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.282        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18727E-03    2.1871        .68039E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.4204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.812        41.048        .23112E-02   -1.4840    
  18  Prefactor     .10000E-03    8.4234        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.7256        7.4421        .38675E-02   -1.5189    
  25  norm          .64196E-01    .93877        .20658E-01   -1.5657    
  26  norm          .10000E-03    2.8558        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.0178        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10017E-03    30.220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    20.701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .94277        .18830        .45447E-01   -.94973    
  31  Prefactor     .90878        .20699        .45113E-01   -.95835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22796e-07
Minuit parameter uncertainties:
  1  0.00878097
  2  0.268972
  3  1.66878
  4  5.46826
  5  8.91433e-06
  6  17.3611
  7  62.2878
  8  1.48862e-05
  9  2.40291e-05
  10  1.09885e-07
  11  0.00475901
  12  0.000507898
  13  0.0276321
  14  3.73034e-06
  15  1.86196e-05
  16  9.98426e-08
  17  41.1095
  18  8.85908e-06
  19  2.20841e-05
  20  2.48891e-07
  21  3.82218e-07
  22  0.000457726
  23  3.74964e-07
  24  7.44307
  25  0.490605
  26  5.70058e-07
  27  1.04902e-07
  28  0.0045419
  29  6.68646e-05
  30  0.188437
  31  0.207165
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  5.079e-04  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.088e-01  2.072e-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.428e-01  1.884e-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: 8.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/363587/likelihoodResults_239587201_239846401_4FGL_J1421.1+3859_daily_bin1.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) = 3940.35891703
delta logL = -0.000136275692057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3940.35863923
delta logL = 0.00014152105723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19202E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8237       1.0000          .0000       10.000    
     3 'Normalizat'    .94276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90878       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=   3940.342     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      273 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39427        10.065        .30098E-01    .79487E-03
   2  Index         3.9203        1.0785        .43696        .37042E-05
   3  Normalizat    .93147        .11002E-01    .45446E-01    .61005E-04
   4  Prefactor     .91645        .12825E-01    .45117E-01    .93653E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.394274
  Index      = 3.92029
  Normalizat = 0.93147
  Prefactor  = 0.916452
 **********
 **   18 **HESSE 
 **********

 FCN=   3940.342     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      308 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39427        550.12        .15780E-02   -1.5582    
   2  Index         3.9203        6.4668        .55386E-02   -.21766    
   3  Normalizat    .93147        .16065        .21042E-03   -.95363    
   4  Prefactor     .91645        .16165        .24577E-03   -.95569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93627e-06
Minuit parameter uncertainties:
  1  29.7288
  2  34.1608
  3  0.16073
  4  0.161733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/363587': 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) = 3940.34195053
delta logL = 0.0168302179404

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  3.943e-01  2.973e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  3.920e+00  3.416e+01  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.165e-01  1.617e-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.315e-01  1.607e-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/363587/cmap_HighResolution_239587201_239846401_4FGL_J1421.1+3859_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-09 10:48:35.100723', job_id='363587', GAL2='0.92', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1631209715.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.68e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:48:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 363587: <4FGL_J1421.1+3859_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1 215.292 38.9966 239587201 239846401 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 :                                   604.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

