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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin715
RA = 215.292, Dec = 38.9966
tmin = 424656001, tmax = 424915201
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='365637', job_status='RUN', time_executed='2021-09-09 10:42:08.579749', time_epoch_executed='1631209328.58' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365637/ft1_4FGL_J1421.1+3859_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365637/ft2_4FGL_J1421.1+3859_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365637/ft1_4FGL_J1421.1+3859_daily_bin715.fits outfile=/scratch/kocevski/365637/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin715.fits ra=215.292 dec=38.9966 rad=12.0 tmin=424656001.0 tmax=424915201.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 4.53
user 4.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365637/ft1_filtered_4FGL_J1421.1+3859_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/365637/ft2_4FGL_J1421.1+3859_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/365637/ltcube_424656001_424915201_4FGL_J1421.1+3859_daily_bin715.fits outfile=/scratch/kocevski/365637/expmap_424656001_424915201_4FGL_J1421.1+3859_daily_bin715.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/365637/ltcube_424656001_424915201_4FGL_J1421.1+3859_daily_bin715.fits
.....................!
real 190.59
user 184.97
sys 5.09

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/365637/ft1_filtered_4FGL_J1421.1+3859_daily_bin715.fits scfile=/scratch/kocevski/365637/ft2_4FGL_J1421.1+3859_daily_bin715.fits outfile=/scratch/kocevski/365637/cmap_424656001_424915201_4FGL_J1421.1+3859_daily_bin715.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365637/ft1_filtered_4FGL_J1421.1+3859_daily_bin715.fits scfile=/scratch/kocevski/365637/ft2_4FGL_J1421.1+3859_daily_bin715.fits outfile=/scratch/kocevski/365637/cmap_HighResolution_424656001_424915201_4FGL_J1421.1+3859_daily_bin715.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/365637/ft1_filtered_4FGL_J1421.1+3859_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/365637/ft2_4FGL_J1421.1+3859_daily_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365637/Model_4FGL_J1421.1+3859_daily_bin715.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/365637/ft1_filtered_4FGL_J1421.1+3859_daily_bin715.fits......................!
real 33.78
user 32.44
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.763       1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.891       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.078       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5052       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    45.112       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.927       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.848       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.805       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.004       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17085       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.593       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91472       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0578       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=   3666.640     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4113 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.858        83.547        .14894E-05    .89561E-04
   2  Prefactor     56.038        115.34        .91736E-05    .97474E-04
   3  norm          4.4262        2.2382        .16777E-06    .32647E-03
   4  Prefactor     .10000E-03    4.0067       -.20758E-06** at limit **
   5  norm          .10000E-03    8.7790        .47843E-06** at limit **
   6  Prefactor     .10000E-03    8.2694       -.18881E-07** at limit **
   7  Prefactor     .10000E-03    75.471       -.93430E-06** at limit **
   8  Prefactor     .10000E-03    2.5800       -.28033E-06** at limit **
   9  Prefactor     29.077        26.523        .16799E-05    .41986E-04
  10  norm          2.5075        6.0801        .12344E-05    .30544E-03
  11  Prefactor     13.277        12.555        .35236E-06    .39803E-04
  12  Prefactor     .10000E-03    7.7160       -.10274E-06** at limit **
  13  Prefactor     .10000E-03    4.6128       -.96651E-06** at limit **
  14  norm          45.118        25.256       -.34727E-07    .15895E-04
  15  Prefactor     31.922        29.264        .68157E-06    .12300E-04
  16  norm          .10000E-03    2.8703       -.25661E-06** at limit **
  17  Prefactor     37.844        39.476        .19457E-06    .11627E-04
  18  Prefactor     .10000E-03    6.6764       -.18951E-06** at limit **
  19  Prefactor     .10000E-03    29.063       -.83250E-06** at limit **
  20  norm          11.806        11.038       -.57478E-07    .37823E-04
  21  Prefactor     .10000E-03    7.1089       -.38227E-06** at limit **
  22  Prefactor     .10000E-03    8.8822       -.22338E-06** at limit **
  23  Prefactor     .10000E-03    9.5063       -.86166E-06** at limit **
  24  Prefactor     9.9987        9.6415        .10376E-06   -.55668E-04
  25  norm          .10000E-03    .72896       -.44407E-06** at limit **
  26  norm          .10000E-03    1.6360       -.65329E-07** at limit **
  27  Prefactor     .31758        15.448        .42998E-05   -.42257E-03
  28  Prefactor     .10000E-03    43.932       -.22465E-06** at limit **
  29  Prefactor     22.400        33.762       -.10509E-05   -.25868E-03
  30  Normalizat    .91501        .28619       -.13144E-04    .10009E-03
  31  Prefactor     1.0571        .31003        .13233E-04    .77187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.8577
  Prefactor  = 56.0376
  norm       = 4.42619
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0774
  norm       = 2.50754
  Prefactor  = 13.2767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 45.1179
  Prefactor  = 31.9215
  norm       = 0.0001
  Prefactor  = 37.8439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.99874
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.317577
  Prefactor  = 0.0001
  Prefactor  = 22.3997
  Normalizat = 0.915009
  Prefactor  = 1.05711
 **********
 **   18 **HESSE 
 **********

 FCN=   3666.640     FROM HESSE     STATUS=OK           618 CALLS     4731 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.858        83.920        .32189E-03   -1.4460    
   2  Prefactor     56.038        115.82        .26828E-03   -1.4209    
   3  norm          4.4262        2.2371        .61558E-04   -1.5287    
   4  Prefactor     .10000E-03    4.0567        .11835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.8102        .17531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2719        .17008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5888        .95031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.077        26.515        .74297E-04   -1.4629    
  10  norm          2.5075        6.0813        .21927E-03   -1.5391    
  11  Prefactor     13.277        12.545        .10993E-03   -1.4979    
  12  Prefactor     .10000E-03    7.7264        .16425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7424        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          45.118        25.238        .59693E-04   -1.4364    
  15  Prefactor     31.922        29.260        .70914E-04   -1.4577    
  16  norm          .10000E-03    2.8816        .10021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.844        39.476        .65148E-04   -1.4477    
  18  Prefactor     .10000E-03    6.6820        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.806        11.039        .11659E-03   -1.5021    
  21  Prefactor     .10000E-03    7.1205        .15773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.8881        .17628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.9377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.9987        9.6331        .12669E-03   -1.5075    
  25  norm          .10000E-03    1.2132        .99268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.6378        .75591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .31758        85.087        .37368E-02   -1.5595    
  28  Prefactor     .10000E-03    43.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     22.400        33.906        .84271E-04   -1.4761    
  30  Normalizat    .91501        .29198        .23853E-03   -.95935    
  31  Prefactor     1.0571        .32242        .26370E-03   -.90849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81113e-09
Minuit parameter uncertainties:
  1  84.1763
  2  116.291
  3  2.2371
  4  1.25675e-05
  5  5.50327e-05
  6  7.08805e-06
  7  5.52576e-05
  8  1.82965e-05
  9  26.5258
  10  6.08282
  11  12.5479
  12  2.07939e-06
  13  7.40583e-05
  14  25.2435
  15  29.2727
  16  1.40345e-05
  17  39.5034
  18  1.74784e-05
  19  0.000145317
  20  11.0413
  21  3.65481e-05
  22  2.21914e-05
  23  0.000104673
  24  9.63463
  25  1.06957e-05
  26  8.58062e-06
  27  10.4098
  28  3.14319e-05
  29  33.9348
  30  0.29249
  31  0.323013
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.079e-06  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:  1.057e+00  3.230e-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.150e-01  2.925e-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: 7.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365637/likelihoodResults_424656001_424915201_4FGL_J1421.1+3859_daily_bin715.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) = 3666.64091525
delta logL = -0.000614664885234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3666.64030081
delta logL = -2.29034867516e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6423       1.0000          .0000       10.000    
     3 'Normalizat'    .91497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0572       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=   3666.640     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10314E-03    7.4347        .16956E-01** at limit **
   2  Index         2.5539        5.7064        .50000        .26322E-04
   3  Normalizat    .91501        .47684E-02    .23855E-03    .89455E-04
   4  Prefactor     1.0571        .56500E-02    .26369E-03   -.19897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103142
  Index      = 2.55385
  Normalizat = 0.915011
  Prefactor  = 1.05711
 **********
 **   18 **HESSE 
 **********

 FCN=   3666.640     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10314E-03    77.919        .17482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5539        5.8142        .50000       -.51121    
   3  Normalizat    .91501        .15543E-01    .95418E-05   -.95935    
   4  Prefactor     1.0571        .18416E-01    .10548E-04   -.90849    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.27211e-09
Minuit parameter uncertainties:
  1  0.0313345
  2  299.882
  3  0.0155427
  4  0.0184166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365637': 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) = 3666.64029998
delta logL = 5.9833701016e-07

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.031e-04  3.133e-02  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.554e+00  2.999e+02  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:  1.057e+00  1.842e-02  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.150e-01  1.554e-02  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/365637/cmap_HighResolution_424656001_424915201_4FGL_J1421.1+3859_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2021-09-09 10:53:09.599630', job_id='365637', GAL2='1.06', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631209989.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='715' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:53:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 365637: <4FGL_J1421.1+3859_daily_bin715> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 10:41:55 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:41:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 10:41:57 2021
Terminated at Thu Sep  9 10:53:10 2021
Results reported at Thu Sep  9 10:53:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin715 215.292 38.9966 424656001 424915201 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 :                                   653.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            675 sec.

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

