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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1299
RA = 215.577, Dec = 32.3911
tmin = 576028801, tmax = 576288001
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='384563', job_status='RUN', time_executed='2021-09-09 11:50:39.768501', time_epoch_executed='1631213439.77' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384563

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384563/ft1_4FGL_J1422.3+3223_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384563/ft2_4FGL_J1422.3+3223_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384563/ft1_4FGL_J1422.3+3223_daily_bin1299.fits outfile=/scratch/kocevski/384563/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1299.fits ra=215.577 dec=32.3911 rad=12.0 tmin=576028801.0 tmax=576288001.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.59
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384563/ft1_filtered_4FGL_J1422.3+3223_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/384563/ft2_4FGL_J1422.3+3223_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/384563/ltcube_576028801_576288001_4FGL_J1422.3+3223_daily_bin1299.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/384563/ft2_4FGL_J1422.3+3223_daily_bin1299.fits
.....................!
real 11.88
user 11.55
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384563/ft1_filtered_4FGL_J1422.3+3223_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/384563/ft2_4FGL_J1422.3+3223_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/384563/ltcube_576028801_576288001_4FGL_J1422.3+3223_daily_bin1299.fits outfile=/scratch/kocevski/384563/expmap_576028801_576288001_4FGL_J1422.3+3223_daily_bin1299.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/384563/ltcube_576028801_576288001_4FGL_J1422.3+3223_daily_bin1299.fits
.....................!
real 189.93
user 185.61
sys 3.95

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/384563/ft1_filtered_4FGL_J1422.3+3223_daily_bin1299.fits scfile=/scratch/kocevski/384563/ft2_4FGL_J1422.3+3223_daily_bin1299.fits outfile=/scratch/kocevski/384563/cmap_576028801_576288001_4FGL_J1422.3+3223_daily_bin1299.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384563/ft1_filtered_4FGL_J1422.3+3223_daily_bin1299.fits scfile=/scratch/kocevski/384563/ft2_4FGL_J1422.3+3223_daily_bin1299.fits outfile=/scratch/kocevski/384563/cmap_HighResolution_576028801_576288001_4FGL_J1422.3+3223_daily_bin1299.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.647       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8676       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.060       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.555       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3313       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23768       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .71165       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1940       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89658       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6168.430     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2221 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.659        2.9853       -.22172E-06    .67580E-02
   2  Prefactor     2.8161        59.512        .53176E-05   -.57776E-04
   3  Prefactor     20.012        5.5526        .12078E-06    .22849E-02
   4  Prefactor     .10000E-03    8.5212       -.12457E-05** at limit **
   5  norm          .10003E-03    3.4920        .28258E-06** at limit **
   6  Prefactor     .10013E-03    27.876       -.75567E-06** at limit **
   7  norm          .10000E-03    1.6341        .39994E-06** at limit **
   8  Prefactor     .10003E-03    3.5670        .40184E-06** at limit **
   9  Prefactor     2.4071        5.3436        .58443E-06    .15498E-02
  10  Prefactor     20.556        4.8201       -.41420E-07    .55906E-02
  11  norm          .10000E-03    4.6249       -.11818E-05** at limit **
  12  norm          4.7441        2.3281        .83215E-07    .13172E-03
  13  Prefactor     .10000E-03    6.7866        .14360E-06** at limit **
  14  norm          .10000E-03    2.6834        .35139E-06** at limit **
  15  Prefactor     .10010E-03    27.610       -.53238E-06** at limit **
  16  norm          2.3312        2.5507       -.50295E-07   -.82024E-05
  17  Prefactor     .10004E-03    825.65        .35682E-04** at limit **
  18  norm          .10000E-03    3.2279       -.23367E-06** at limit **
  19  Prefactor     .10000E-03    10.335        .15457E-05** at limit **
  20  Prefactor     .10000E-03    4.6092        .14138E-06** at limit **
  21  norm          .71043        1.6294        .19764E-06    .11181E-03
  22  Normalizat    1.1944        .20758        .35314E-07    .74324E-04
  23  Prefactor     .89645        .21283        .30308E-06    .60920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6591
  Prefactor  = 2.81614
  Prefactor  = 20.0122
  Prefactor  = 0.0001
  norm       = 0.000100031
  Prefactor  = 0.000100127
  norm       = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 2.40708
  Prefactor  = 20.5563
  norm       = 0.0001
  norm       = 4.74414
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100101
  norm       = 2.33125
  Prefactor  = 0.000100037
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.710429
  Normalizat = 1.1944
  Prefactor  = 0.896446
 **********
 **   18 **HESSE 
 **********

 FCN=   6168.430     FROM HESSE     STATUS=OK           428 CALLS     2649 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.659        19.184        .27106E-02   -1.4969    
   2  Prefactor     2.8161        68.092        .60011E-02   -1.5372    
   3  Prefactor     20.012        53.891        .22357E-02   -1.4813    
   4  Prefactor     .10000E-03    2.3399        .64172E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10003E-03    7.6261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10013E-03    29.441        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    7.5303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4071        19.510        .65745E-02   -1.5398    
  10  Prefactor     20.556        5.4026        .22086E-02   -1.4801    
  11  norm          .10000E-03    4.6247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7441        2.3265        .46182E-02   -1.5272    
  13  Prefactor     .10000E-03    6.8037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.3664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10010E-03    28.930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3312        2.5499        .67146E-02   -1.5403    
  17  Prefactor     .10004E-03    23.790        .12711       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.2286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .71043        1.6414        .12106E-01   -1.5539    
  22  Normalizat    1.1944        .18239        .51810E-01   -.86776    
  23  Prefactor     .89645        .17981        .44961E-01   -.96265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45082e-07
Minuit parameter uncertainties:
  1  19.1928
  2  27.7302
  3  54.0225
  4  6.63398e-05
  5  0.000976021
  6  0.00386859
  7  6.90208e-06
  8  0.000900949
  9  13.7117
  10  5.40269
  11  3.13476e-05
  12  2.32655
  13  7.61406e-05
  14  2.66146e-05
  15  0.00341528
  16  2.54997
  17  0.00187814
  18  5.76372e-06
  19  5.00019e-05
  20  3.60036e-07
  21  1.64151
  22  0.182482
  23  0.179926
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.056e+01  5.403e+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.964e-01  1.799e-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.194e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.86
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 4.87e-08
Energy Flux (Fixed Index): 6.06e-05 +/- 1.59e-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) = 6166.61337208
delta logL = 1.81681126074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6166.29665493
delta logL = 2.13352840995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.044       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9389       1.0000          .0000       10.000    
     3 'Normalizat'    1.2507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85600       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=   6166.297     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      211 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.044        7.9053        .19624E-02   -.75010E-02
   2  Index         1.9390        .22405        .89851E-01   -.17663E-04
   3  Normalizat    1.2508        .17224        .50838E-01    .32696E-05
   4  Prefactor     .85603        .17853        .44442E-01    .21499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0437
  Index      = 1.93903
  Normalizat = 1.2508
  Prefactor  = 0.856027
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.297     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.044        7.1429        .39249E-03   -1.4687    
   2  Index         1.9390        .20895        .38482E-02   -.65883    
   3  Normalizat    1.2508        .20337        .22476E-03   -.85047    
   4  Prefactor     .85603        .21033        .27670E-03   -.97695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10653e-08
Minuit parameter uncertainties:
  1  7.14314
  2  0.209046
  3  0.203502
  4  0.210533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384563': 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) = 6166.29665433
delta logL = 2.13352901401

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.604e+01  7.143e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.939e+00  2.090e-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:  8.560e-01  2.105e-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.251e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.06
Ra Dec: 215.577 32.391
Photon Index (Free Index): 1.94 +/- 0.21
Photon Flux (Free Index): 1.38e-07 +/- 4.50e-08
Energy Flux (Free Index): 1.11e-04 +/- 5.15e-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/384563/cmap_HighResolution_576028801_576288001_4FGL_J1422.3+3223_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='1.11e-04', photon_flux_error='4.87e-08', dlogl='2.13e+00', energy_flux='6.06e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-09 12:01:39.551213', photon_index_error2='0.21', photon_index2='1.94', ts='38.86', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='5.15e-05', EG='1.19', time_epoch_completed='1631214099.55', return_code='0', job_id='384563', GAL2='0.86', EG2='1.25', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.50e-08', ts2='43.06', photon_index='2.40' WHERE bin_id='1299' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:01:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 384563: <4FGL_J1422.3+3223_daily_bin1299> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1299> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:35 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:36 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:46:36 2021
Terminated at Thu Sep  9 12:01:40 2021
Results reported at Thu Sep  9 12:01:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1299 215.577 32.3911 576028801 576288001 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 :                                   550.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

