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


Performing analysis on: 4FGL_J1421.1+3859_daily_bin1407
RA = 215.292, Dec = 38.9966
tmin = 604022401, tmax = 604281601
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='370996', job_status='RUN', time_executed='2021-09-09 11:01:25.763898', time_epoch_executed='1631210485.76' WHERE source_name='4FGL J1421.1+3859' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370996/ft1_4FGL_J1421.1+3859_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370996/ft2_4FGL_J1421.1+3859_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370996/ft1_4FGL_J1421.1+3859_daily_bin1407.fits outfile=/scratch/kocevski/370996/ft1_filteredMKT_4FGL_J1421.1+3859_daily_bin1407.fits ra=215.292 dec=38.9966 rad=12.0 tmin=604022401.0 tmax=604281601.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.21
user 3.94
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370996/ft1_filtered_4FGL_J1421.1+3859_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/370996/ft2_4FGL_J1421.1+3859_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/370996/ltcube_604022401_604281601_4FGL_J1421.1+3859_daily_bin1407.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/370996/ft2_4FGL_J1421.1+3859_daily_bin1407.fits
.....................!
real 13.45
user 13.09
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370996/ft1_filtered_4FGL_J1421.1+3859_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/370996/ft2_4FGL_J1421.1+3859_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/370996/ltcube_604022401_604281601_4FGL_J1421.1+3859_daily_bin1407.fits outfile=/scratch/kocevski/370996/expmap_604022401_604281601_4FGL_J1421.1+3859_daily_bin1407.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/370996/ltcube_604022401_604281601_4FGL_J1421.1+3859_daily_bin1407.fits
.....................!
real 191.52
user 186.62
sys 4.33

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/370996/ft1_filtered_4FGL_J1421.1+3859_daily_bin1407.fits scfile=/scratch/kocevski/370996/ft2_4FGL_J1421.1+3859_daily_bin1407.fits outfile=/scratch/kocevski/370996/cmap_604022401_604281601_4FGL_J1421.1+3859_daily_bin1407.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370996/ft1_filtered_4FGL_J1421.1+3859_daily_bin1407.fits scfile=/scratch/kocevski/370996/ft2_4FGL_J1421.1+3859_daily_bin1407.fits outfile=/scratch/kocevski/370996/cmap_HighResolution_604022401_604281601_4FGL_J1421.1+3859_daily_bin1407.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    130.65       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11436E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1932       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0069       1.0000         .10000E-03   10000.    
     5 'norm      '    13.868       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.452       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.343       1.0000         .10000E-03   10000.    
    10 'norm      '    .92707E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.870       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9352       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.096       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6063       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .92158       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4120       1.0000         .10000E-03   10000.    
    26 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.403       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89787       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90327       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=   6452.990     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4196 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     130.44        85.985       -.16508E-03    .27977E-04
   2  Prefactor     .10000E-03    68.810       -.54772E-05** at limit **
   3  norm          5.1928        1.7680       -.48942E-06    .36100E-03
   4  Prefactor     2.0074        4.7654        .25316E-05   -.72947E-03
   5  norm          13.868        13.478       -.15871E-05    .65845E-04
   6  Prefactor     .10000E-03    5.3648       -.17656E-05** at limit **
   7  Prefactor     29.447        36.751       -.67575E-05    .41639E-04
   8  Prefactor     3.9153        3.7068       -.29230E-07    .21707E-03
   9  Prefactor     10.346        17.854       -.47906E-05    .65893E-04
  10  norm          .10021E-03    1.6472       -.10944E-05** at limit **
  11  Prefactor     .10000E-03    5.5106        .15564E-05** at limit **
  12  Prefactor     .10000E-03    8.2785        .48952E-05** at limit **
  13  Prefactor     37.875        6.7248       -.76164E-06    .37741E-03
  14  norm          3.9396        8.7014       -.13911E-05   -.62333E-04
  15  Prefactor     30.090        23.927       -.48205E-05    .89449E-04
  16  norm          3.6068        7.5487       -.49322E-05   -.49068E-03
  17  Prefactor     .10000E-03    10.367       -.59792E-05** at limit **
  18  Prefactor     .10000E-03    14.984        .10483E-04** at limit **
  19  Prefactor     .10000E-03    11.386       -.29355E-05** at limit **
  20  norm          .10000E-03    5.3925        .16621E-06** at limit **
  21  Prefactor     .10002E-03    37.546        .30805E-04** at limit **
  22  Prefactor     .86584        11.044       -.52506E-05    .17622E-03
  23  Prefactor     .10000E-03    3.8273       -.98473E-07** at limit **
  24  Prefactor     .10000E-03    2.7755       -.10045E-06** at limit **
  25  norm          2.4116        1.6146       -.85661E-06   -.57182E-03
  26  norm          .10000E-03    2.5018       -.22013E-05** at limit **
  27  Prefactor     .10000E-03    5.4324        .60899E-06** at limit **
  28  Prefactor     .10000E-03    27.282       -.18505E-04** at limit **
  29  Prefactor     16.405        17.789       -.20411E-05    .17978E-03
  30  Normalizat    .89752        .17954        .10853E-04    .12862E-04
  31  Prefactor     .90398        .19107        .49310E-05    .47345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 130.436
  Prefactor  = 0.000100003
  norm       = 5.19279
  Prefactor  = 2.00739
  norm       = 13.8675
  Prefactor  = 0.0001
  Prefactor  = 29.4468
  Prefactor  = 3.91527
  Prefactor  = 10.3456
  norm       = 0.000100214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8748
  norm       = 3.93961
  Prefactor  = 30.0905
  norm       = 3.60675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.865845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.41158
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4047
  Normalizat = 0.897518
  Prefactor  = 0.903985
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.990     FROM HESSE     STATUS=OK           624 CALLS     4820 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     130.44        86.091        .17613E-03   -1.3419    
   2  Prefactor     .10000E-03    69.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1928        1.7684        .59356E-04   -1.5252    
   4  Prefactor     2.0074        4.7653        .25219E-03   -1.5425    
   5  norm          13.868        13.500        .10756E-03   -1.4963    
   6  Prefactor     .10000E-03    5.3692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.447        36.709        .73826E-04   -1.4622    
   8  Prefactor     3.9153        3.7048        .14280E-03   -1.5312    
   9  Prefactor     10.346        17.938        .12458E-03   -1.5065    
  10  norm          .10021E-03    28.701        .19874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.3310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.875        6.7162        .65129E-04   -1.4476    
  14  norm          3.9396        8.6671        .20336E-03   -1.5311    
  15  Prefactor     30.090        23.952        .73033E-04   -1.4610    
  16  norm          3.6068        7.5358        .21277E-03   -1.5328    
  17  Prefactor     .10000E-03    10.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.4333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    38.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .86584        65.359        .51216E-02   -1.5522    
  23  Prefactor     .10000E-03    3.8549        .15333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.7864        .13064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4116        1.6097        .79229E-04   -1.5397    
  26  norm          .10000E-03    6.3168        .24542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    5.4578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    27.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.405        17.736        .98891E-04   -1.4898    
  30  Normalizat    .89752        .21208        .24364E-03   -.96547    
  31  Prefactor     .90398        .22524        .27803E-03   -.96002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08136e-08
Minuit parameter uncertainties:
  1  86.1736
  2  0.000842736
  3  1.76843
  4  4.76616
  5  13.5032
  6  1.62868e-05
  7  36.7371
  8  3.70504
  9  17.9472
  10  0.00496398
  11  3.61596e-05
  12  6.65408e-05
  13  6.71637
  14  8.66985
  15  23.96
  16  7.5378
  17  4.98924e-06
  18  0.000165289
  19  7.10435e-05
  20  3.73741e-05
  21  0.00180691
  22  15.0616
  23  3.38797e-05
  24  1.44143e-05
  25  1.60974
  26  0.000106196
  27  3.67261e-05
  28  4.3379e-05
  29  17.7415
  30  0.21228
  31  0.225469
Done.

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

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  6.654e-05  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.040e-01  2.255e-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:  8.975e-01  2.123e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/370996/likelihoodResults_604022401_604281601_4FGL_J1421.1+3859_daily_bin1407.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) = 6452.99101304
delta logL = -0.000572184236262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6452.99044104
delta logL = -1.91324943444e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6692       1.0000          .0000       10.000    
     3 'Normalizat'    .89746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90407       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=   6452.990     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.459        .90712E-02** at limit **
   2  Index         2.6686        6.2866        .50000        .69701E-06
   3  Normalizat    .89752        .48491E-02    .44869E-01    .14034E-04
   4  Prefactor     .90398        .55828E-02    .45057E-01    .14370E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66859
  Normalizat = 0.897524
  Prefactor  = 0.903977
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.990     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6686        7.9062        .50000       -.48508    
   3  Normalizat    .89752        .13997E-01    .24364E-03   -.96547    
   4  Prefactor     .90398        .16116E-01    .27803E-03   -.96002    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.92908e-09
Minuit parameter uncertainties:
  1  2.68819e-06
  2  487.615
  3  0.013997
  4  0.0161158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370996': 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) = 6452.99044085
delta logL = 8.64019966684e-10

Extracting fit parameters...

4FGL J1421.1+3859
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.688e-06  1.000e-04  1.000e+04 ( 1.000e-13)
292        Index:  2.669e+00  4.876e+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:  9.040e-01  1.612e-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:  8.975e-01  1.400e-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/370996/cmap_HighResolution_604022401_604281601_4FGL_J1421.1+3859_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-09-09 11:16:47.917508', job_id='370996', GAL2='0.90', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631211407.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='8.64e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1407' AND source_name='4FGL J1421.1+3859' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 370996: <4FGL_J1421.1+3859_daily_bin1407> in cluster <slac> Done

Job <4FGL_J1421.1+3859_daily_bin1407> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 11:01:08 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:01:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:01:10 2021
Terminated at Thu Sep  9 11:16:48 2021
Results reported at Thu Sep  9 11:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1+3859_daily_bin1407 215.292 38.9966 604022401 604281601 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 :                                   918.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

