/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 13 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 = 7645
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1597
RA = 215.577, Dec = 32.3911
tmin = 653270401, tmax = 653529601
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='547733', job_status='RUN', time_executed='2021-09-17 01:06:10.868032', time_epoch_executed='1631865970.87' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547733

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547733/ft1_4FGL_J1422.3+3223_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547733/ft1_4FGL_J1422.3+3223_daily_bin1597.fits outfile=/scratch/kocevski/547733/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1597.fits ra=215.577 dec=32.3911 rad=12.0 tmin=653270401.0 tmax=653529601.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.32
user 3.12
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.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/547733/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1597.fits evtable="EVENTS" outfile="/scratch/kocevski/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/547733/ltcube_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.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/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits
.....................!
real 12.67
user 12.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/547733/ltcube_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.fits outfile=/scratch/kocevski/547733/expmap_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.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/547733/ltcube_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.fits
.....................!
real 190.79
user 185.55
sys 4.91

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J1422.3+3223 @ 215.577 32.3911

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.fits scfile=/scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits outfile=/scratch/kocevski/547733/cmap_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.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.577 yref=32.3911 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.fits scfile=/scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits outfile=/scratch/kocevski/547733/cmap_HighResolution_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.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.577 yref=32.3911 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547733/Model_4FGL_J1422.3+3223_daily_bin1597.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/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.fits.....................!
real 46.53
user 45.27
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.fits', '/scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits', expMap='/scratch/kocevski/547733/expmap_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.fits', expCube='/scratch/kocevski/547733/ltcube_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/547733/Model_4FGL_J1422.3+3223_daily_bin1597.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1422.3+3223'

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/547733/ft1_filtered_4FGL_J1422.3+3223_daily_bin1597.fits
Spacecraft file(s): /scratch/kocevski/547733/ft2_4FGL_J1422.3+3223_daily_bin1597.fits
Exposure map: /scratch/kocevski/547733/expmap_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.fits
Exposure cube: /scratch/kocevski/547733/ltcube_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/547733/Model_4FGL_J1422.3+3223_daily_bin1597.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) = 6013.50518571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.002       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38585E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.342       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10962E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1369       1.0000         .10000E-03   10000.    
    11 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.109       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9501       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4663       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.951       1.0000         .10000E-03   10000.    
    18 'norm      '    18.942       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .56814       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2873       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6013.481     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2552 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.006        22.816       -.16958E-05   -.65663E-05
   2  Prefactor     .10000E-03    17.483       -.94704E-07** at limit **
   3  Prefactor     .10000E-03    188.18        .34662E-05** at limit **
   4  Prefactor     .10000E-03    2.9789       -.43609E-08** at limit **
   5  norm          1.4944        6.3593        .44653E-06   -.80977E-03
   6  Prefactor     .10000E-03    11.103       -.50969E-06** at limit **
   7  norm          2.7958        5.1078        .34408E-05    .12068E-03
   8  Prefactor     19.363        17.149       -.62703E-05   -.59482E-04
   9  Prefactor     .10000E-03    23.869       -.20307E-05** at limit **
  10  Prefactor     7.1410        4.8576       -.11481E-05   -.10761E-03
  11  norm          .10000E-03    5.5123        .29538E-07** at limit **
  12  norm          10.108        3.7366        .18949E-06    .46724E-04
  13  Prefactor     .10000E-03    10.352        .57926E-06** at limit **
  14  norm          4.9559        6.4881        .55656E-06   -.10277E-02
  15  Prefactor     .10000E-03    22.060        .38962E-05** at limit **
  16  norm          5.4664        3.9916        .23743E-06    .29302E-04
  17  Prefactor     14.906        29.398       -.92907E-05   -.30827E-04
  18  norm          18.943        9.7242       -.32215E-07    .18556E-05
  19  Prefactor     .10000E-03    32.853        .87358E-06** at limit **
  20  Prefactor     .10000E-03    1.9783       -.20738E-06** at limit **
  21  norm          .56788        .87777       -.53822E-07   -.25373E-03
  22  Normalizat    1.2865        .18982        .21962E-05   -.14989E-03
  23  Prefactor     .83413        .18494       -.81977E-06    .90806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49443
  Prefactor  = 0.0001
  norm       = 2.79578
  Prefactor  = 19.3627
  Prefactor  = 0.000100003
  Prefactor  = 7.14095
  norm       = 0.0001
  norm       = 10.1084
  Prefactor  = 0.0001
  norm       = 4.95586
  Prefactor  = 0.0001
  norm       = 5.4664
  Prefactor  = 14.9062
  norm       = 18.9435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.56788
  Normalizat = 1.28648
  Prefactor  = 0.83413
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.481     FROM HESSE     STATUS=OK           372 CALLS     2924 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.006        22.827        .94399E-04   -1.4859    
   2  Prefactor     .10000E-03    17.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    189.40        .21280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0335        .13064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4944        27.533        .17493E-02   -1.5463    
   6  Prefactor     .10000E-03    11.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7958        5.1238        .22192E-03   -1.5374    
   8  Prefactor     19.363        17.119        .91071E-04   -1.4828    
   9  Prefactor     .10000E-03    23.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1410        4.8684        .13227E-03   -1.5173    
  11  norm          .10000E-03    5.5146        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.108        3.7448        .87400E-04   -1.5072    
  13  Prefactor     .10000E-03    10.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9559        6.9512        .90383E-03   -1.5263    
  15  Prefactor     .10000E-03    22.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4664        3.9930        .12796E-03   -1.5240    
  17  Prefactor     14.906        29.419        .10359E-03   -1.4936    
  18  norm          18.943        9.7221        .92027E-04   -1.4837    
  19  Prefactor     .10000E-03    33.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9828        .10650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .56788        .73968        .87525E-03   -1.5557    
  22  Normalizat    1.2865        .22845        .23417E-03   -.83971    
  23  Prefactor     .83413        .22105        .28753E-03   -.98482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49258e-09
Minuit parameter uncertainties:
  1  22.838
  2  6.39329e-06
  3  9.66727e-05
  4  5.17497e-06
  5  12.8354
  6  6.571e-05
  7  5.12458
  8  17.123
  9  0.000570134
  10  4.86869
  11  3.14978e-05
  12  3.74484
  13  6.76962e-06
  14  6.95231
  15  3.90367e-05
  16  3.99315
  17  29.4474
  18  9.72287
  19  3.90215e-05
  20  1.4948e-06
  21  0.739694
  22  0.22863
  23  0.221284
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  7.141e+00  4.869e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  8.341e-01  2.213e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.286e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.44e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.44e-05

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) = 6008.8060406
delta logL = 4.67536384435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6008.77500955
delta logL = 4.70639489327

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 'Index     '    9.4527       1.0000          .0000       10.000    
     3 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0384       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6008.775     FROM MIGRAD    STATUS=FAILED       238 CALLS      713 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .58377E-02    .12890E-03** at limit **
   2  Index         9.4529        7.2630        .29320E-02    .58032E-03
   3  Normalizat    1.0439        .14567        .15237E-01    .30012E-03
   4  Prefactor     1.0385        .14524        .14695E-02   -.21469E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6008.775     FROM SIMPLEX   STATUS=UNCHANGED    189 CALLS      902 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .58377E-02    .23915E-05** at limit **
   2  Index         9.4529        7.2630        .96334E-04    .58032E-03
   3  Normalizat    1.0439        .14567        .28763E-05    .30012E-03
   4  Prefactor     1.0385        .14524        .21763E-05   -.21469E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6008.775     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      936 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .25019E-03    .80190E-05** at limit **
   2  Index         9.4529        .18651        .11728E-03    .51706E-04
   3  Normalizat    1.0439        .22771        .25427E-03    .21640E-04
   4  Prefactor     1.0385        .22960        .58780E-04   -.14529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.45286
  Normalizat = 1.04386
  Prefactor  = 1.03846
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.775     FROM HESSE     STATUS=OK            23 CALLS      959 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .24992E-03    .32076E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4529        .18356        .23456E-04    1.0986    
   3  Normalizat    1.0439        .22787        .10171E-04   -.91575    
   4  Prefactor     1.0385        .22975        .11756E-04   -.91458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85319e-10
Minuit parameter uncertainties:
  1  5.81608e-09
  2  0.183756
  3  0.228085
  4  0.229972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547733': 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) = 6008.77500482
delta logL = 4.70639962546

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.816e-09  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  9.453e+00  1.838e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.038e+00  2.300e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  1.044e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.25
Ra Dec: 215.577 32.391
Photon Index (Free Index): 9.45 +/- 0.18
Photon Flux (Free Index): 2.27e-07 +/- 7.71e-08
Energy Flux (Free Index): 2.56e-05 +/- 8.67e-06

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/547733/cmap_HighResolution_653270401_653529601_4FGL_J1422.3+3223_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.44e-08', energy_flux2='2.56e-05', photon_flux_error='4.38e-08', dlogl='4.71e+00', energy_flux='2.11e-05', photon_flux2='2.27e-07', job_status='DONE', time_completed='2021-09-17 01:16:11.682442', photon_index_error2='0.18', photon_index2='9.45', ts='4.36', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='8.67e-06', EG='1.29', time_epoch_completed='1631866571.68', return_code='0', job_id='547733', GAL2='1.04', EG2='1.04', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='7.71e-08', ts2='15.25', photon_index='2.40' WHERE bin_id='1597' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 01:16:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 547733: <4FGL_J1422.3+3223_daily_bin1597> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1597> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Sep 17 01:05:30 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 01:05:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 01:05:32 2021
Terminated at Fri Sep 17 01:16:12 2021
Results reported at Fri Sep 17 01:16:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1597 215.577 32.3911 653270401 653529601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1422.3+3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   603.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            642 sec.

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

