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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin588
RA = 215.292, Dec = 38.9966
tmin = 391737601, tmax = 391996801
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='365437', job_status='RUN', time_executed='2021-09-09 10:41:48.197775', time_epoch_executed='1631209308.2' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365437

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365437/ft1_4FGL_J1421.1+3859_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365437/ft2_4FGL_J1421.1+3859_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365437/ft1_4FGL_J1421.1+3859_daily_bin588.fits outfile=/scratch/kocevski/365437/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin588.fits ra=215.292 dec=38.9966 rad=12.0 tmin=391737601.0 tmax=391996801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.31
user 3.08
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365437/ft1_filtered_4FGL_J1421.1+3859_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/365437/ft2_4FGL_J1421.1+3859_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/365437/ltcube_391737601_391996801_4FGL_J1421.1+3859_daily_bin588.fits outfile=/scratch/kocevski/365437/expmap_391737601_391996801_4FGL_J1421.1+3859_daily_bin588.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/365437/ltcube_391737601_391996801_4FGL_J1421.1+3859_daily_bin588.fits
.....................!
real 190.86
user 185.16
sys 5.31

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/365437/ft1_filtered_4FGL_J1421.1+3859_daily_bin588.fits scfile=/scratch/kocevski/365437/ft2_4FGL_J1421.1+3859_daily_bin588.fits outfile=/scratch/kocevski/365437/cmap_391737601_391996801_4FGL_J1421.1+3859_daily_bin588.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.54
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365437/ft1_filtered_4FGL_J1421.1+3859_daily_bin588.fits scfile=/scratch/kocevski/365437/ft2_4FGL_J1421.1+3859_daily_bin588.fits outfile=/scratch/kocevski/365437/cmap_HighResolution_391737601_391996801_4FGL_J1421.1+3859_daily_bin588.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    76.699       1.0000         .10000E-03   10000.    
     3 'norm      '    13.417       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.149       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.893       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6614       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54274E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2334       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.991       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.697       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0379       1.0000         .10000E-03   10000.    
    26 'norm      '    .96127       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.4206       1.0000         .10000E-03   10000.    
    28 'Prefactor '    40.650       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.3601       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0368       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84354       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=   5395.833     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4071 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.754       -.44823E-06** at limit **
   2  Prefactor     76.701        58.447        .11659E-06    .59135E-05
   3  norm          13.417        2.6185        .14977E-07   -.26807E-04
   4  Prefactor     .10000E-03    3.0753       -.15257E-07** at limit **
   5  norm          15.151        14.489        .68302E-07   -.97800E-05
   6  Prefactor     .10000E-03    5.6362       -.87689E-08** at limit **
   7  Prefactor     .10000E-03    35.751        .77207E-06** at limit **
   8  Prefactor     .10000E-03    1.4649        .11140E-08** at limit **
   9  Prefactor     10.891        20.959        .34271E-06   -.23084E-04
  10  norm          4.6606        3.3700        .39154E-07    .15143E-04
  11  Prefactor     .10000E-03    3.3846        .27626E-07** at limit **
  12  Prefactor     .10000E-03    5.4287       -.85504E-08** at limit **
  13  Prefactor     .10000E-03    1.9443        .19370E-06** at limit **
  14  norm          .10000E-03    4.9786        .17264E-07** at limit **
  15  Prefactor     .10000E-03    9.0917        .70382E-08** at limit **
  16  norm          1.2337        2.7046        .25281E-06   -.95803E-04
  17  Prefactor     33.905        29.495        .24161E-07    .20520E-05
  18  Prefactor     50.991        26.037        .85266E-07   -.15080E-04
  19  Prefactor     .10000E-03    31.049       -.59824E-06** at limit **
  20  norm          .10000E-03    3.9492       -.39771E-07** at limit **
  21  Prefactor     .10000E-03    4.7758        .18012E-07** at limit **
  22  Prefactor     14.697        23.607        .93405E-08   -.13912E-04
  23  Prefactor     .10000E-03    4.3855        .15849E-07** at limit **
  24  Prefactor     .10000E-03    2.7191       -.17856E-07** at limit **
  25  norm          2.0382        1.5434        .44227E-07   -.96789E-04
  26  norm          .96092        6.3431        .30148E-05   -.14166E-03
  27  Prefactor     4.4221        11.205       -.20795E-05   -.19330E-03
  28  Prefactor     40.656        65.154        .20282E-06    .10616E-04
  29  Prefactor     8.3619        21.934        .28359E-06   -.24105E-04
  30  Normalizat    1.0368        .17884       -.24713E-06   -.92133E-04
  31  Prefactor     .84346        .19798       -.22002E-06   -.70696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 76.701
  norm       = 13.4174
  Prefactor  = 0.0001
  norm       = 15.1509
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.8909
  norm       = 4.66057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23367
  Prefactor  = 33.9052
  Prefactor  = 50.9914
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03818
  norm       = 0.960924
  Prefactor  = 4.42213
  Prefactor  = 40.6557
  Prefactor  = 8.36192
  Normalizat = 1.03677
  Prefactor  = 0.843464
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.833     FROM HESSE     STATUS=OK           620 CALLS     4691 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     76.701        58.569        .45851E-04   -1.3954    
   3  norm          13.417        2.6209        .50344E-04   -1.4975    
   4  Prefactor     .10000E-03    3.1599        .25137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.151        14.495        .10290E-03   -1.4929    
   6  Prefactor     .10000E-03    5.6418        .17032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4659        .86816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.891        20.992        .12139E-03   -1.5048    
  10  norm          4.6606        3.3614        .11087E-03   -1.5276    
  11  Prefactor     .10000E-03    3.3873        .13198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4377        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.994        .19294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.9832        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2337        2.6344        .17377E-03   -1.5486    
  17  Prefactor     33.905        29.496        .68821E-04   -1.4543    
  18  Prefactor     50.991        26.019        .56162E-04   -1.4279    
  19  Prefactor     .10000E-03    31.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9667        .14257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7818        .15678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.697        23.586        .10448E-03   -1.4941    
  23  Prefactor     .10000E-03    4.4445        .15007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.7309        .11828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0382        1.5371        .75065E-04   -1.5422    
  26  norm          .96092        6.3916        .29236E-03   -1.5512    
  27  Prefactor     4.4221        11.216        .19154E-03   -1.5287    
  28  Prefactor     40.656        65.130        .62871E-04   -1.4432    
  29  Prefactor     8.3619        21.849        .13865E-03   -1.5130    
  30  Normalizat    1.0368        .20988        .22414E-03   -.91809    
  31  Prefactor     .84346        .23420        .28475E-03   -.98146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13832e-10
Minuit parameter uncertainties:
  1  0.000264075
  2  58.6127
  3  2.6209
  4  1.97916e-06
  5  14.4986
  6  2.71717e-06
  7  0.000431205
  8  1.11167e-07
  9  21.0066
  10  3.36155
  11  3.7755e-06
  12  3.48985e-06
  13  0.000322533
  14  1.72744e-06
  15  3.35409e-06
  16  2.6346
  17  29.5091
  18  26.0246
  19  0.000254587
  20  5.62884e-06
  21  5.27682e-06
  22  23.6007
  23  3.30556e-06
  24  1.22705e-06
  25  1.53713
  26  4.95705
  27  11.2213
  28  65.2442
  29  21.8701
  30  0.210052
  31  0.234482
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  3.490e-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:  8.435e-01  2.345e-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.037e+00  2.101e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365437/likelihoodResults_391737601_391996801_4FGL_J1421.1+3859_daily_bin588.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) = 5395.8337292
delta logL = -0.000874222093444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5395.83285492
delta logL = 6.38883648207e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6562       1.0000          .0000       10.000    
     3 'Normalizat'    1.0368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84346       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=   5395.833     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      244 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.149        .16845E-01** at limit **
   2  Index         1.9123        5.6156        .50000       -.28535E-07
   3  Normalizat    1.0368        .99305E-02    .22414E-03   -.75830E-04
   4  Prefactor     .84346        .11545E-01    .28475E-03   -.18126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91227
  Normalizat = 1.03677
  Prefactor  = 0.843464
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.833     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    580.22        .19004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9123        5.8595        .50000       -.66562    
   3  Normalizat    1.0368        .43304E-01    .89655E-05   -.91809    
   4  Prefactor     .84346        .50344E-01    .11390E-04   -.98146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.545e-10
Minuit parameter uncertainties:
  1  0.000100425
  2  1950.54
  3  0.0433053
  4  0.0503468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365437': 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) = 5395.83285291
delta logL = 2.07210814551e-06

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.004e-04  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  1.912e+00  1.951e+03  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:  8.435e-01  5.035e-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:  1.037e+00  4.331e-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/365437/cmap_HighResolution_391737601_391996801_4FGL_J1421.1+3859_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-09 10:55:26.528984', job_id='365437', GAL2='0.84', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631210126.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='588' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:55:26 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin588 215.292 38.9966 391737601 391996801 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 :                                   814.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

