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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin745
RA = 215.292, Dec = 38.9966
tmin = 432432001, tmax = 432691201
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='365683', job_status='RUN', time_executed='2021-09-09 10:42:18.986724', time_epoch_executed='1631209338.99' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365683/ft1_4FGL_J1421.1+3859_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365683/ft2_4FGL_J1421.1+3859_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365683/ft1_4FGL_J1421.1+3859_daily_bin745.fits outfile=/scratch/kocevski/365683/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin745.fits ra=215.292 dec=38.9966 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.07
user 4.86
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365683/ft1_filtered_4FGL_J1421.1+3859_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/365683/ft2_4FGL_J1421.1+3859_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/365683/ltcube_432432001_432691201_4FGL_J1421.1+3859_daily_bin745.fits outfile=/scratch/kocevski/365683/expmap_432432001_432691201_4FGL_J1421.1+3859_daily_bin745.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/365683/ltcube_432432001_432691201_4FGL_J1421.1+3859_daily_bin745.fits
.....................!
real 190.27
user 185.37
sys 4.46

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/365683/ft1_filtered_4FGL_J1421.1+3859_daily_bin745.fits scfile=/scratch/kocevski/365683/ft2_4FGL_J1421.1+3859_daily_bin745.fits outfile=/scratch/kocevski/365683/cmap_432432001_432691201_4FGL_J1421.1+3859_daily_bin745.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/365683/ft1_filtered_4FGL_J1421.1+3859_daily_bin745.fits scfile=/scratch/kocevski/365683/ft2_4FGL_J1421.1+3859_daily_bin745.fits outfile=/scratch/kocevski/365683/cmap_HighResolution_432432001_432691201_4FGL_J1421.1+3859_daily_bin745.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.070       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7640       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1524       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3186       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.004       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1512       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.043       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.298       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23882E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9452       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0599       1.0000         .10000E-03   10000.    
    25 'norm      '    3.5686       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    188.14       1.0000         .10000E-03   10000.    
    29 'Prefactor '    35.140       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .58666       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=   4093.912     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4106 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.068        55.829       -.29492E-05    .55093E-05
   2  Prefactor     .10000E-03    33.115       -.11421E-04** at limit **
   3  norm          7.6888        2.0240        .32562E-07    .18882E-03
   4  Prefactor     1.7643        2.7602       -.29026E-06   -.19473E-03
   5  norm          .10000E-03    7.5563       -.25969E-07** at limit **
   6  Prefactor     .10000E-03    9.6758       -.15343E-06** at limit **
   7  Prefactor     3.0721        95.179       -.74808E-04   -.14148E-04
   8  Prefactor     9.3186        5.9637        .15698E-06    .26095E-03
   9  Prefactor     .10000E-03    13.718        .40616E-05** at limit **
  10  norm          .10000E-03    4.4094       -.53166E-06** at limit **
  11  Prefactor     .10000E-03    17.912       -.26155E-05** at limit **
  12  Prefactor     10.013        22.742       -.31280E-05    .36142E-04
  13  Prefactor     3.1509        4.4049       -.71063E-06   -.24377E-03
  14  norm          .10000E-03    18.287        .35203E-06** at limit **
  15  Prefactor     .10000E-03    12.411       -.25028E-05** at limit **
  16  norm          .10000E-03    5.5877       -.62786E-06** at limit **
  17  Prefactor     .10000E-03    30.225        .18517E-04** at limit **
  18  Prefactor     14.030        20.805        .74953E-06   -.38063E-04
  19  Prefactor     .10000E-03    32.434       -.59221E-05** at limit **
  20  norm          29.294        15.653       -.18398E-06    .15998E-04
  21  Prefactor     .10000E-03    79.231        .55876E-06** at limit **
  22  Prefactor     .10042E-03    19.894        .20147E-05** at limit **
  23  Prefactor     9.9411        11.300        .51073E-06   -.13733E-04
  24  Prefactor     6.0578        7.5040       -.31153E-06   -.13675E-03
  25  norm          3.5681        3.0451       -.69184E-06   -.25026E-03
  26  norm          .10000E-03    1.4561       -.15964E-06** at limit **
  27  Prefactor     .10000E-03    3.7032       -.26645E-06** at limit **
  28  Prefactor     188.14        122.19        .14306E-05    .33238E-05
  29  Prefactor     35.137        33.011       -.15861E-05    .70580E-05
  30  Normalizat    1.0788        .19866        .34274E-05    .87492E-07
  31  Prefactor     .58645        .21428       -.45466E-06    .13361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.068
  Prefactor  = 0.0001
  norm       = 7.68875
  Prefactor  = 1.76434
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07209
  Prefactor  = 9.31859
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0129
  Prefactor  = 3.15086
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0301
  Prefactor  = 0.0001
  norm       = 29.2944
  Prefactor  = 0.0001
  Prefactor  = 0.000100424
  Prefactor  = 9.94112
  Prefactor  = 6.05785
  norm       = 3.5681
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 188.142
  Prefactor  = 35.1374
  Normalizat = 1.07878
  Prefactor  = 0.586446
 **********
 **   18 **HESSE 
 **********

 FCN=   4093.912     FROM HESSE     STATUS=OK           620 CALLS     4726 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.068        55.831        .63322E-04   -1.4441    
   2  Prefactor     .10000E-03    33.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6888        2.0265        .45147E-04   -1.5153    
   4  Prefactor     1.7643        2.7365        .12916E-03   -1.5442    
   5  norm          .10000E-03    7.5907        .17177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0721        96.376        .22829E-03   -1.5357    
   8  Prefactor     9.3186        5.9541        .11904E-03   -1.5097    
   9  Prefactor     .10000E-03    13.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.5717        .26208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.013        23.015        .12669E-03   -1.5075    
  13  Prefactor     3.1509        4.4025        .14997E-03   -1.5353    
  14  norm          .10000E-03    18.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.6339        .14763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.030        20.588        .10688E-03   -1.4959    
  19  Prefactor     .10000E-03    32.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.294        15.633        .74019E-04   -1.4625    
  21  Prefactor     .10000E-03    81.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10042E-03    135.47        .54614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.9411        11.260        .12706E-03   -1.5077    
  24  Prefactor     6.0578        7.4736        .16310E-03   -1.5216    
  25  norm          3.5681        3.0333        .85074E-04   -1.5330    
  26  norm          .10000E-03    1.4575        .75402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.7045        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     188.14        122.12        .29441E-04   -1.2956    
  29  Prefactor     35.137        33.003        .67603E-04   -1.4522    
  30  Normalizat    1.0788        .23459        .20565E-03   -.90436    
  31  Prefactor     .58645        .25012        .30900E-03   -1.0816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27054e-09
Minuit parameter uncertainties:
  1  55.9044
  2  3.25524e-05
  3  2.02654
  4  2.73674
  5  8.21335e-06
  6  9.12879e-06
  7  34.474
  8  5.95447
  9  6.49318e-05
  10  1.37553e-06
  11  6.89274e-05
  12  23.0349
  13  4.40298
  14  1.76359e-05
  15  6.13892e-06
  16  9.00359e-06
  17  2.36634e-05
  18  20.5984
  19  4.97247e-05
  20  15.6354
  21  0.000350396
  22  0.0151957
  23  11.2622
  24  7.47475
  25  3.03344
  26  5.10315e-07
  27  6.66171e-07
  28  122.289
  29  33.0205
  30  0.234818
  31  0.250595
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.001e+01  2.303e+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:  5.864e-01  2.506e-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.079e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 215.292 38.997
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365683/likelihoodResults_432432001_432691201_4FGL_J1421.1+3859_daily_bin745.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) = 4092.92362581
delta logL = 0.988341170624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4092.92142476
delta logL = 0.990542224578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87966       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7031       1.0000          .0000       10.000    
     3 'Normalizat'    .99145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65387       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=   4092.921     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      306 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87176        11.317        .95729E-02   -.29300E-02
   2  Index         4.7075        2.8833        .10197       -.21631E-03
   3  Normalizat    .99166        .50498E-01    .46060E-01   -.26937E-03
   4  Prefactor     .65371        .57737E-01    .66435E-01   -.74065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.871756
  Index      = 4.70745
  Normalizat = 0.991663
  Prefactor  = 0.653709
 **********
 **   18 **HESSE 
 **********

 FCN=   4092.921     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      337 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87176        23.777        .43238E-04   -1.5521    
   2  Index         4.7075        7.0819        .39560E-02   -.58543E-01
   3  Normalizat    .99166        .20195        .21315E-03   -.93310    
   4  Prefactor     .65371        .22363        .29397E-03   -1.0537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.78832e-10
Minuit parameter uncertainties:
  1  9.10905
  2  5.19914
  3  0.202103
  4  0.223936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365683': 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) = 4092.9214216
delta logL = 0.990545384592

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  8.718e-01  9.109e+00  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  4.707e+00  5.199e+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:  6.537e-01  2.239e-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.917e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 215.292 38.997
Photon Index (Free Index): 4.71 +/- 5.20
Photon Flux (Free Index): 8.42e-08 +/- 6.66e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.23e-05

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/365683/cmap_HighResolution_432432001_432691201_4FGL_J1421.1+3859_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='9.91e-01', photon_flux2='8.42e-08', job_status='DONE', time_completed='2021-09-09 10:53:58.334191', photon_index_error2='5.20', photon_index2='4.71', ts='0.23', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.23e-05', EG='1.08', time_epoch_completed='1631210038.33', return_code='0', job_id='365683', GAL2='0.65', EG2='0.99', return_code2='102', photon_flux_error2='6.66e-08', ts2='2.39', photon_index='2.67' WHERE bin_id='745' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:53:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 365683: <4FGL_J1421.1+3859_daily_bin745> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin745 215.292 38.9966 432432001 432691201 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 :                                   694.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

