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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin674
RA = 215.577, Dec = 32.3911
tmin = 414028801, tmax = 414288001
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='381520', job_status='RUN', time_executed='2021-09-09 11:36:41.490603', time_epoch_executed='1631212601.49' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381520/ft1_4FGL_J1422.3+3223_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381520/ft2_4FGL_J1422.3+3223_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381520/ft1_4FGL_J1422.3+3223_daily_bin674.fits outfile=/scratch/kocevski/381520/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin674.fits ra=215.577 dec=32.3911 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.17
user 4.92
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/381520/ft2_4FGL_J1422.3+3223_daily_bin674.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/381520/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/381520/ft1_filtered_4FGL_J1422.3+3223_daily_bin674.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381520/ft1_filtered_4FGL_J1422.3+3223_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/381520/ft2_4FGL_J1422.3+3223_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/381520/ltcube_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.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/381520/ft2_4FGL_J1422.3+3223_daily_bin674.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381520/ft1_filtered_4FGL_J1422.3+3223_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/381520/ft2_4FGL_J1422.3+3223_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/381520/ltcube_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.fits outfile=/scratch/kocevski/381520/expmap_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.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/381520/ltcube_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.fits
.....................!
real 190.05
user 184.92
sys 4.75

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/381520/ft1_filtered_4FGL_J1422.3+3223_daily_bin674.fits scfile=/scratch/kocevski/381520/ft2_4FGL_J1422.3+3223_daily_bin674.fits outfile=/scratch/kocevski/381520/cmap_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381520/ft1_filtered_4FGL_J1422.3+3223_daily_bin674.fits scfile=/scratch/kocevski/381520/ft2_4FGL_J1422.3+3223_daily_bin674.fits outfile=/scratch/kocevski/381520/cmap_HighResolution_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/381520/ft1_filtered_4FGL_J1422.3+3223_daily_bin674.fits', '/scratch/kocevski/381520/ft2_4FGL_J1422.3+3223_daily_bin674.fits', expMap='/scratch/kocevski/381520/expmap_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.fits', expCube='/scratch/kocevski/381520/ltcube_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/381520/Model_4FGL_J1422.3+3223_daily_bin674.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/381520/ft1_filtered_4FGL_J1422.3+3223_daily_bin674.fits
Spacecraft file(s): /scratch/kocevski/381520/ft2_4FGL_J1422.3+3223_daily_bin674.fits
Exposure map: /scratch/kocevski/381520/expmap_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.fits
Exposure cube: /scratch/kocevski/381520/ltcube_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/381520/Model_4FGL_J1422.3+3223_daily_bin674.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) = 4306.20106556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.452       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    21.052       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11629E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0763       1.0000         .10000E-03   10000.    
    11 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.4843       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2290       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1168       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .64141       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=   4306.197     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2451 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.456        23.162        .47291E-05   -.13691E-04
   2  Prefactor     .10000E-03    9.3485       -.13763E-05** at limit **
   3  Prefactor     .10000E-03    21.658        .10286E-04** at limit **
   4  Prefactor     .10000E-03    2.7496        .23635E-06** at limit **
   5  norm          21.052        17.969       -.13661E-07   -.73922E-05
   6  Prefactor     .10000E-03    9.2293       -.28104E-06** at limit **
   7  norm          .10000E-03    1.3919       -.20928E-07** at limit **
   8  Prefactor     15.315        15.487        .21012E-05    .56363E-04
   9  Prefactor     .10000E-03    17.397       -.31506E-05** at limit **
  10  Prefactor     5.0769        3.7754        .24319E-08   -.55882E-04
  11  norm          .10000E-03    7.8110        .60588E-06** at limit **
  12  norm          8.4842        3.4904        .18554E-06   -.18738E-04
  13  Prefactor     .10000E-03    26.511       -.62088E-05** at limit **
  14  norm          .10000E-03    2.9119       -.29186E-06** at limit **
  15  Prefactor     .10000E-03    17.802       -.15445E-05** at limit **
  16  norm          5.5721        4.1634       -.13300E-07   -.59004E-04
  17  Prefactor     .10000E-03    8.1546        .35545E-05** at limit **
  18  norm          .10000E-03    3.1997        .10770E-06** at limit **
  19  Prefactor     .10000E-03    7.5774       -.26243E-05** at limit **
  20  Prefactor     .10000E-03    2.6905       -.86510E-07** at limit **
  21  norm          2.2291        1.8625        .20566E-07   -.17262E-03
  22  Normalizat    1.1166        .18451       -.94509E-06    .78744E-04
  23  Prefactor     .64162        .18173        .14729E-06   -.16928E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.0523
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3153
  Prefactor  = 0.0001
  Prefactor  = 5.07694
  norm       = 0.0001
  norm       = 8.48421
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.5721
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.22914
  Normalizat = 1.11658
  Prefactor  = 0.641618
 **********
 **   18 **HESSE 
 **********

 FCN=   4306.197     FROM HESSE     STATUS=OK           362 CALLS     2813 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.456        23.129        .98745E-04   -1.4896    
   2  Prefactor     .10000E-03    9.3569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7904        .10616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          21.052        17.997        .87296E-04   -1.4790    
   6  Prefactor     .10000E-03    9.2345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3951        .75597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.315        15.537        .10235E-03   -1.4925    
   9  Prefactor     .10000E-03    17.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0769        3.7795        .10585E-03   -1.5257    
  11  norm          .10000E-03    7.8079        .17900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.4842        3.4948        .75534E-04   -1.5125    
  13  Prefactor     .10000E-03    26.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9243        .10934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5721        4.1654        .11153E-03   -1.5236    
  17  Prefactor     .10000E-03    8.1558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.2008        .11464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5923        .17630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6923        .10510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2291        1.8551        .78718E-04   -1.5409    
  22  Normalizat    1.1166        .21154        .21078E-03   -.89221    
  23  Prefactor     .64162        .20784        .27232E-03   -1.0586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.94604e-11
Minuit parameter uncertainties:
  1  23.1415
  2  1.10213e-05
  3  6.32319e-07
  4  5.62496e-06
  5  18.0021
  6  1.35095e-05
  7  1.59078e-06
  8  15.5415
  9  0.000109726
  10  3.77967
  11  1.96003e-05
  12  3.49487
  13  1.83586e-05
  14  2.96112e-07
  15  7.84233e-07
  16  4.16566
  17  1.72342e-06
  18  5.11579e-07
  19  6.52846e-06
  20  1.1358e-06
  21  1.85519
  22  0.211704
  23  0.208091
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.077e+00  3.780e+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:  6.416e-01  2.081e-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.117e+00  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.15
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.11e-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): 0
logL (Free Index) = 4305.81597769
delta logL = 0.381256397574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4305.80369943
delta logL = 0.393534657986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6499       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8262       1.0000          .0000       10.000    
     3 'Normalizat'    1.1412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62534       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.

 FCN=   4305.804     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      197 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6499        5.1318        .42250E-02   -.12054E-02
   2  Index         1.8262        .55030        .20890        .95567E-04
   3  Normalizat    1.1413        .17907        .36526E-01    .36377E-05
   4  Prefactor     .62532        .17979        .62276E-01    .13624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.6499
  Index      = 1.82618
  Normalizat = 1.14125
  Prefactor  = 0.62532
 **********
 **   18 **HESSE 
 **********

 FCN=   4305.804     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6499        4.6083        .11985E-03   -1.5233    
   2  Index         1.8262        .57572        .78893E-02   -.68770    
   3  Normalizat    1.1413        .20263        .20877E-03   -.88438    
   4  Prefactor     .62532        .20313        .27551E-03   -1.0653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68816e-10
Minuit parameter uncertainties:
  1  4.60858
  2  0.577875
  3  0.202767
  4  0.203366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381520': 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) = 4305.80369941
delta logL = 0.393534673726

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.650e+00  4.609e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.826e+00  5.779e-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:  6.253e-01  2.034e-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.141e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.93
Ra Dec: 215.577 32.391
Photon Index (Free Index): 1.83 +/- 0.58
Photon Flux (Free Index): 2.70e-08 +/- 2.81e-08
Energy Flux (Free Index): 2.99e-05 +/- 3.87e-05

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/381520/cmap_HighResolution_414028801_414288001_4FGL_J1422.3+3223_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='2.99e-05', photon_flux_error='3.40e-08', dlogl='3.94e-01', energy_flux='1.50e-05', photon_flux2='2.70e-08', job_status='DONE', time_completed='2021-09-09 11:44:57.410384', photon_index_error2='0.58', photon_index2='1.83', ts='5.15', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='3.87e-05', EG='1.12', time_epoch_completed='1631213097.41', return_code='0', job_id='381520', GAL2='0.63', EG2='1.14', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='2.81e-08', ts2='5.93', photon_index='2.40' WHERE bin_id='674' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:44:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 381520: <4FGL_J1422.3+3223_daily_bin674> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin674> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 11:36:27 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:36:29 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:36:29 2021
Terminated at Thu Sep  9 11:44:58 2021
Results reported at Thu Sep  9 11:44:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin674 215.577 32.3911 414028801 414288001 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 :                                   487.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             339.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   508 sec.
    Turnaround time :                            511 sec.

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

