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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1477
RA = 215.577, Dec = 32.3911
tmin = 622166401, tmax = 622425601
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='385847', job_status='RUN', time_executed='2021-09-09 11:51:23.587082', time_epoch_executed='1631213483.59' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385847/ft1_4FGL_J1422.3+3223_daily_bin1477.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385847/ft2_4FGL_J1422.3+3223_daily_bin1477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385847/ft1_4FGL_J1422.3+3223_daily_bin1477.fits outfile=/scratch/kocevski/385847/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1477.fits ra=215.577 dec=32.3911 rad=12.0 tmin=622166401.0 tmax=622425601.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.63
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385847/ft1_filtered_4FGL_J1422.3+3223_daily_bin1477.fits" evtable="EVENTS" scfile=/scratch/kocevski/385847/ft2_4FGL_J1422.3+3223_daily_bin1477.fits sctable="SC_DATA" outfile=/scratch/kocevski/385847/ltcube_622166401_622425601_4FGL_J1422.3+3223_daily_bin1477.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/385847/ft2_4FGL_J1422.3+3223_daily_bin1477.fits
.....................!
real 12.77
user 12.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385847/ft1_filtered_4FGL_J1422.3+3223_daily_bin1477.fits evtable="EVENTS" scfile=/scratch/kocevski/385847/ft2_4FGL_J1422.3+3223_daily_bin1477.fits sctable="SC_DATA" expcube=/scratch/kocevski/385847/ltcube_622166401_622425601_4FGL_J1422.3+3223_daily_bin1477.fits outfile=/scratch/kocevski/385847/expmap_622166401_622425601_4FGL_J1422.3+3223_daily_bin1477.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/385847/ltcube_622166401_622425601_4FGL_J1422.3+3223_daily_bin1477.fits
.....................!
real 189.59
user 184.81
sys 4.21

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/385847/ft1_filtered_4FGL_J1422.3+3223_daily_bin1477.fits scfile=/scratch/kocevski/385847/ft2_4FGL_J1422.3+3223_daily_bin1477.fits outfile=/scratch/kocevski/385847/cmap_622166401_622425601_4FGL_J1422.3+3223_daily_bin1477.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385847/ft1_filtered_4FGL_J1422.3+3223_daily_bin1477.fits scfile=/scratch/kocevski/385847/ft2_4FGL_J1422.3+3223_daily_bin1477.fits outfile=/scratch/kocevski/385847/cmap_HighResolution_622166401_622425601_4FGL_J1422.3+3223_daily_bin1477.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.747       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5325       1.0000         .10000E-03   10000.    
     3 'Prefactor '    115.31       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0272       1.0000         .10000E-03   10000.    
     5 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.625       1.0000         .10000E-03   10000.    
    11 'norm      '    14.553       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3138       1.0000         .10000E-03   10000.    
    14 'norm      '    8.6210       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0712       1.0000         .10000E-03   10000.    
    17 'Prefactor '    67.054       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0099       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71439E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8675       1.0000         .10000E-03   10000.    
    21 'norm      '    .11735E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93547       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1757       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=   6378.010     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2562 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.750        18.168        .86758E-07    .54377E-05
   2  Prefactor     9.5353        24.263        .69990E-07    .12200E-05
   3  Prefactor     115.34        87.307       -.66627E-06    .39352E-04
   4  Prefactor     4.0283        4.4756        .14111E-06    .21408E-04
   5  norm          .10000E-03    16.784        .76940E-06** at limit **
   6  Prefactor     .10000E-03    24.462        .66093E-07** at limit **
   7  norm          .10000E-03    3.4663       -.32546E-07** at limit **
   8  Prefactor     .10000E-03    17.130       -.77589E-07** at limit **
   9  Prefactor     .10000E-03    18.024        .25712E-06** at limit **
  10  Prefactor     16.629        5.9390        .12432E-06    .18180E-03
  11  norm          14.556        12.481        .11556E-06    .29060E-04
  12  norm          5.7147        2.6955        .68258E-08    .19926E-05
  13  Prefactor     7.3188        21.355        .12643E-06   -.55050E-05
  14  norm          8.6216        8.4064       -.61779E-06    .14918E-03
  15  Prefactor     .10000E-03    12.962        .13538E-07** at limit **
  16  norm          5.0704        5.3905       -.38581E-08   -.27072E-04
  17  Prefactor     67.041        38.560        .81452E-06    .38767E-04
  18  norm          1.9883        16.635        .96314E-05   -.17336E-04
  19  Prefactor     .10000E-03    15.377       -.39838E-05** at limit **
  20  Prefactor     5.8639        10.485        .31138E-06   -.30259E-03
  21  norm          .10000E-03    1.5446        .14912E-06** at limit **
  22  Normalizat    .93504        .19886       -.10930E-05    .30287E-04
  23  Prefactor     1.1761        .19242        .48986E-06    .18927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7497
  Prefactor  = 9.53535
  Prefactor  = 115.335
  Prefactor  = 4.02827
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6285
  norm       = 14.5558
  norm       = 5.71466
  Prefactor  = 7.31878
  norm       = 8.62159
  Prefactor  = 0.0001
  norm       = 5.07042
  Prefactor  = 67.0406
  norm       = 1.98826
  Prefactor  = 0.000100003
  Prefactor  = 5.86387
  norm       = 0.0001
  Normalizat = 0.935042
  Prefactor  = 1.17607
 **********
 **   18 **HESSE 
 **********

 FCN=   6378.010     FROM HESSE     STATUS=OK           378 CALLS     2940 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.750        18.164        .83984E-04   -1.4754    
   2  Prefactor     9.5353        24.244        .12980E-03   -1.5090    
   3  Prefactor     115.34        87.671        .18733E-03   -1.3556    
   4  Prefactor     4.0283        4.4651        .16861E-03   -1.5307    
   5  norm          .10000E-03    17.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.7264        .28339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.629        5.9313        .98230E-04   -1.4892    
  11  norm          14.556        12.434        .10499E-03   -1.4945    
  12  norm          5.7147        2.6977        .87216E-04   -1.5230    
  13  Prefactor     7.3188        21.372        .14831E-03   -1.5167    
  14  norm          8.6216        8.3786        .13652E-03   -1.5121    
  15  Prefactor     .10000E-03    12.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0704        5.3958        .17855E-03   -1.5258    
  17  Prefactor     67.041        38.615        .49014E-04   -1.4069    
  18  norm          1.9883        17.179        .14601E-02   -1.5426    
  19  Prefactor     .10000E-03    68.357        .55081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8639        9.4424        .82895E-03   -1.5224    
  21  norm          .10000E-03    2.5310        .17189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93504        .23517        .27460E-03   -.95240    
  23  Prefactor     1.1761        .23072        .25824E-03   -.87071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49426e-10
Minuit parameter uncertainties:
  1  18.1686
  2  24.2686
  3  87.7703
  4  4.46546
  5  0.000279806
  6  3.83629e-05
  7  1.19061e-05
  8  6.73813e-06
  9  5.15777e-06
  10  5.93149
  11  12.4361
  12  2.69773
  13  21.3943
  14  8.37975
  15  3.21635e-06
  16  5.39634
  17  38.6296
  18  11.6928
  19  0.00091917
  20  9.44478
  21  2.28795e-05
  22  0.235432
  23  0.23092
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.663e+01  5.931e+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:  1.176e+00  2.309e-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:  9.350e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.13
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 5.34e-08
Energy Flux (Fixed Index): 4.90e-05 +/- 1.75e-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) = 6377.64828799
delta logL = 0.361414726566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6377.63425979
delta logL = 0.375442932215

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6377.634     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.318        6.6367        .92282E-04    .17930E-02
   2  Index         2.6914        .36421        .39108E-02    .38899E-03
   3  Normalizat    .90086        .22102        .27901E-03   -.14766E-03
   4  Prefactor     1.2007        .22621        .25593E-03   -.19727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3176
  Index      = 2.69145
  Normalizat = 0.900863
  Prefactor  = 1.20074
 **********
 **   18 **HESSE 
 **********

 FCN=   6377.634     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.318        6.3912        .36913E-05   -1.4978    
   2  Index         2.6914        .35052        .15643E-03   -.47992    
   3  Normalizat    .90086        .22116        .11160E-04   -.96430    
   4  Prefactor     1.2007        .22632        .51186E-04   -.86308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37745e-10
Minuit parameter uncertainties:
  1  6.39148
  2  0.350883
  3  0.221383
  4  0.226505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385847': 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) = 6377.63425871
delta logL = 0.37544400336

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.332e+01  6.391e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.691e+00  3.509e-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.201e+00  2.265e-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:  9.009e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.95
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.69 +/- 0.35
Photon Flux (Free Index): 1.79e-07 +/- 6.66e-08
Energy Flux (Free Index): 4.33e-05 +/- 1.55e-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/385847/cmap_HighResolution_622166401_622425601_4FGL_J1422.3+3223_daily_bin1477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='4.33e-05', photon_flux_error='5.34e-08', dlogl='3.75e-01', energy_flux='4.90e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-09 12:02:09.588491', photon_index_error2='0.35', photon_index2='2.69', ts='15.13', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.94', time_epoch_completed='1631214129.59', return_code='0', job_id='385847', GAL2='1.20', EG2='0.90', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='6.66e-08', ts2='15.95', photon_index='2.40' WHERE bin_id='1477' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:02:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 385847: <4FGL_J1422.3+3223_daily_bin1477> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1477> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:08 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51: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:51:10 2021
Terminated at Thu Sep  9 12:02:10 2021
Results reported at Thu Sep  9 12:02:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1477 215.577 32.3911 622166401 622425601 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 :                                   572.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            662 sec.

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

