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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1035
RA = 215.292, Dec = 38.9966
tmin = 507600001, tmax = 507859201
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='367181', job_status='RUN', time_executed='2021-09-09 10:48:57.223362', time_epoch_executed='1631209737.22' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367181/ft1_4FGL_J1421.1+3859_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367181/ft2_4FGL_J1421.1+3859_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367181/ft1_4FGL_J1421.1+3859_daily_bin1035.fits outfile=/scratch/kocevski/367181/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1035.fits ra=215.292 dec=38.9966 rad=12.0 tmin=507600001.0 tmax=507859201.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.57
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367181/ft2_4FGL_J1421.1+3859_daily_bin1035.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/367181/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/367181/ft1_filtered_4FGL_J1421.1+3859_daily_bin1035.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367181/ft1_filtered_4FGL_J1421.1+3859_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/367181/ft2_4FGL_J1421.1+3859_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/367181/ltcube_507600001_507859201_4FGL_J1421.1+3859_daily_bin1035.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/367181/ft2_4FGL_J1421.1+3859_daily_bin1035.fits
.....................!
real 11.55
user 11.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367181/ft1_filtered_4FGL_J1421.1+3859_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/367181/ft2_4FGL_J1421.1+3859_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/367181/ltcube_507600001_507859201_4FGL_J1421.1+3859_daily_bin1035.fits outfile=/scratch/kocevski/367181/expmap_507600001_507859201_4FGL_J1421.1+3859_daily_bin1035.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/367181/ltcube_507600001_507859201_4FGL_J1421.1+3859_daily_bin1035.fits
.....................!
real 189.79
user 185.37
sys 4.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/367181/ft1_filtered_4FGL_J1421.1+3859_daily_bin1035.fits scfile=/scratch/kocevski/367181/ft2_4FGL_J1421.1+3859_daily_bin1035.fits outfile=/scratch/kocevski/367181/cmap_507600001_507859201_4FGL_J1421.1+3859_daily_bin1035.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367181/ft1_filtered_4FGL_J1421.1+3859_daily_bin1035.fits scfile=/scratch/kocevski/367181/ft2_4FGL_J1421.1+3859_daily_bin1035.fits outfile=/scratch/kocevski/367181/cmap_HighResolution_507600001_507859201_4FGL_J1421.1+3859_daily_bin1035.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.442       1.0000         .10000E-03   10000.    
     2 'Prefactor '    80.771       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3890       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.0576       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2012       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.800       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8495       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.7626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.393       1.0000         .10000E-03   10000.    
    14 'norm      '    .53205E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .88811       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4830       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16822E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4234       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5467       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8799       1.0000         .10000E-03   10000.    
    28 'Prefactor '    35.784       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.7745       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .68634       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92124       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=   5543.956     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4161 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.448        48.330       -.11349E-05   -.65516E-05
   2  Prefactor     80.722        68.755        .11258E-05    .13750E-03
   3  norm          7.3890        1.8814       -.47907E-07    .15702E-03
   4  Prefactor     .10000E-03    .97602       -.59430E-07** at limit **
   5  norm          9.0568        13.538        .16257E-06    .12424E-03
   6  Prefactor     8.1879        20.496       -.19534E-06    .32230E-04
   7  Prefactor     21.806        38.819       -.10574E-06    .86703E-05
   8  Prefactor     8.8496        5.9717       -.35923E-06   -.76180E-04
   9  Prefactor     .10000E-03    30.510       -.30095E-05** at limit **
  10  norm          7.7626        4.0661       -.21636E-07    .75395E-04
  11  Prefactor     25.878        28.237        .60518E-06    .15183E-03
  12  Prefactor     6.4355        37.039       -.22513E-05    .31877E-04
  13  Prefactor     11.393        5.1653       -.19245E-06   -.91073E-04
  14  norm          .10023E-03    14.666       -.14107E-05** at limit **
  15  Prefactor     .83011        119.84       -.22704E-04    .67735E-04
  16  norm          4.4825        5.3551       -.99331E-07    .83237E-04
  17  Prefactor     20.878        52.125        .16849E-05    .32189E-04
  18  Prefactor     .10000E-03    39.500        .10997E-04** at limit **
  19  Prefactor     .10000E-03    30.112        .13380E-05** at limit **
  20  norm          .10000E-03    2.3370        .43185E-08** at limit **
  21  Prefactor     30.878        14.944        .81460E-07    .74592E-04
  22  Prefactor     .10000E-03    13.597       -.12427E-06** at limit **
  23  Prefactor     6.4233        5.0400       -.15561E-06   -.17924E-03
  24  Prefactor     .10000E-03    5.1899       -.15399E-06** at limit **
  25  norm          1.5463        1.2660       -.31315E-07    .98658E-04
  26  norm          .10000E-03    1.3226        .19680E-06** at limit **
  27  Prefactor     1.8803        6.2764       -.22780E-05   -.68032E-04
  28  Prefactor     35.773        52.284        .17914E-06    .21440E-04
  29  Prefactor     3.7701        29.090        .26350E-05    .10604E-03
  30  Normalizat    .68607        .18544        .22933E-05    .36672E-03
  31  Prefactor     .92164        .19541       -.94463E-06   -.12310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4479
  Prefactor  = 80.722
  norm       = 7.38899
  Prefactor  = 0.0001
  norm       = 9.05679
  Prefactor  = 8.18786
  Prefactor  = 21.8056
  Prefactor  = 8.84959
  Prefactor  = 0.0001
  norm       = 7.76264
  Prefactor  = 25.8782
  Prefactor  = 6.43554
  Prefactor  = 11.3925
  norm       = 0.000100232
  Prefactor  = 0.830113
  norm       = 4.48247
  Prefactor  = 20.8781
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 30.8782
  Prefactor  = 0.0001
  Prefactor  = 6.42327
  Prefactor  = 0.0001
  norm       = 1.54631
  norm       = 0.0001
  Prefactor  = 1.88033
  Prefactor  = 35.7731
  Prefactor  = 3.77012
  Normalizat = 0.686074
  Prefactor  = 0.921639
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.956     FROM HESSE     STATUS=OK           642 CALLS     4803 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.448        48.369        .11356E-03   -1.5002    
   2  Prefactor     80.722        69.151        .44689E-04   -1.3909    
   3  norm          7.3890        1.8827        .49161E-04   -1.5164    
   4  Prefactor     .10000E-03    .97949        .71838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.0568        13.532        .13317E-03   -1.5106    
   6  Prefactor     8.1879        20.428        .14000E-03   -1.5136    
   7  Prefactor     21.806        38.822        .85787E-04   -1.4774    
   8  Prefactor     8.8496        5.9516        .13474E-03   -1.5113    
   9  Prefactor     .10000E-03    30.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.7626        4.0634        .10430E-03   -1.5151    
  11  Prefactor     25.878        27.500        .78834E-04   -1.4690    
  12  Prefactor     6.4355        34.995        .15782E-03   -1.5201    
  13  Prefactor     11.393        5.1723        .10613E-03   -1.5033    
  14  norm          .10023E-03    15.209        .87615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .83011        154.42        .59604E-02   -1.5526    
  16  norm          4.4825        5.3400        .17837E-03   -1.5284    
  17  Prefactor     20.878        51.755        .87603E-04   -1.4794    
  18  Prefactor     .10000E-03    124.15        .57064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3371        .11116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.878        14.932        .72106E-04   -1.4596    
  22  Prefactor     .10000E-03    13.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.4233        5.0476        .14288E-03   -1.5201    
  24  Prefactor     .10000E-03    5.2714        .16561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5463        1.2550        .72187E-04   -1.5459    
  26  norm          .10000E-03    1.3348        .83712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.8803        6.3030        .30363E-03   -1.5434    
  28  Prefactor     35.773        52.260        .66994E-04   -1.4511    
  29  Prefactor     3.7701        28.822        .20779E-03   -1.5320    
  30  Normalizat    .68607        .20716        .24930E-03   -1.0445    
  31  Prefactor     .92164        .21969        .25381E-03   -.95389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94939e-09
Minuit parameter uncertainties:
  1  48.5221
  2  69.22
  3  1.88269
  4  7.88017e-07
  5  13.5368
  6  20.445
  7  38.8668
  8  5.95195
  9  0.00016085
  10  4.0635
  11  27.5133
  12  30.0412
  13  5.17246
  14  0.00375402
  15  22.702
  16  5.34058
  17  51.8662
  18  0.00140937
  19  0.000332007
  20  7.58442e-07
  21  14.9336
  22  5.87015e-06
  23  5.04793
  24  2.39871e-06
  25  1.25503
  26  1.17063e-05
  27  6.30524
  28  52.3275
  29  20.8619
  30  0.207399
  31  0.219902
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  6.436e+00  3.004e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.216e-01  2.199e-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:  6.861e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/367181/likelihoodResults_507600001_507859201_4FGL_J1421.1+3859_daily_bin1035.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) = 5543.91626966
delta logL = 0.0401177674376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.88887753
delta logL = 0.0675099019745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4972       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5387       1.0000          .0000       10.000    
     3 'Normalizat'    .67024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93466       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5543.889     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      248 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4890        471.75        .22316E-03   -.64852E-04
   2  Index         3.5436        6.2989        .42229E-02   -.66765E-05
   3  Normalizat    .67042        .19416        .25190E-03   -.60477E-04
   4  Prefactor     .93445        .22915        .25226E-03   -.81121E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.48898
  Index      = 3.54358
  Normalizat = 0.670425
  Prefactor  = 0.934455
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.889     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4890        19.234        .89264E-05   -1.5392    
   2  Index         3.5436        2.7617        .16892E-03   -.29557    
   3  Normalizat    .67042        .19305        .10076E-04   -1.0507    
   4  Prefactor     .93445        .21967        .10090E-04   -.94947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6366e-11
Minuit parameter uncertainties:
  1  13.8439
  2  2.94405
  3  0.193246
  4  0.219878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367181': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.88887102
delta logL = 0.0675164105614

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  2.489e+00  1.384e+01  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  3.544e+00  2.944e+00  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  9.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.345e-01  2.199e-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:  6.704e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/367181/cmap_HighResolution_507600001_507859201_4FGL_J1421.1+3859_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-09 11:02:21.711862', job_id='367181', GAL2='0.93', fit_tolerance='1e-08', EG2='0.67', EG='0.69', time_epoch_completed='1631210541.71', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.75e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1035' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 367181: <4FGL_J1421.1+3859_daily_bin1035> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1035> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 10:46:31 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:46:32 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:46:32 2021
Terminated at Thu Sep  9 11:02:22 2021
Results reported at Thu Sep  9 11:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1035 215.292 38.9966 507600001 507859201 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 :                                   802.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

