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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1577
RA = 215.577, Dec = 32.3911
tmin = 648086401, tmax = 648345601
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='386006', job_status='RUN', time_executed='2021-09-09 11:55:22.278723', time_epoch_executed='1631213722.28' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386006/ft1_4FGL_J1422.3+3223_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386006/ft2_4FGL_J1422.3+3223_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386006/ft1_4FGL_J1422.3+3223_daily_bin1577.fits outfile=/scratch/kocevski/386006/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1577.fits ra=215.577 dec=32.3911 rad=12.0 tmin=648086401.0 tmax=648345601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.22
user 3.97
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386006/ft1_filtered_4FGL_J1422.3+3223_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/386006/ft2_4FGL_J1422.3+3223_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/386006/ltcube_648086401_648345601_4FGL_J1422.3+3223_daily_bin1577.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/386006/ft2_4FGL_J1422.3+3223_daily_bin1577.fits
.....................!
real 11.80
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386006/ft1_filtered_4FGL_J1422.3+3223_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/386006/ft2_4FGL_J1422.3+3223_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/386006/ltcube_648086401_648345601_4FGL_J1422.3+3223_daily_bin1577.fits outfile=/scratch/kocevski/386006/expmap_648086401_648345601_4FGL_J1422.3+3223_daily_bin1577.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/386006/ltcube_648086401_648345601_4FGL_J1422.3+3223_daily_bin1577.fits
.....................!
real 190.46
user 185.40
sys 4.71

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/386006/ft1_filtered_4FGL_J1422.3+3223_daily_bin1577.fits scfile=/scratch/kocevski/386006/ft2_4FGL_J1422.3+3223_daily_bin1577.fits outfile=/scratch/kocevski/386006/cmap_648086401_648345601_4FGL_J1422.3+3223_daily_bin1577.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/386006/ft1_filtered_4FGL_J1422.3+3223_daily_bin1577.fits scfile=/scratch/kocevski/386006/ft2_4FGL_J1422.3+3223_daily_bin1577.fits outfile=/scratch/kocevski/386006/cmap_HighResolution_648086401_648345601_4FGL_J1422.3+3223_daily_bin1577.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26897E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.696       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4390       1.0000         .10000E-03   10000.    
     5 'norm      '    .19348E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4584       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7004       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9757       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5679       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0129       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2581       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3660       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.1782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.839       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .98512       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82072       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0766       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=   6601.448     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     2929 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.162        .42870E-02** at limit **
   2  Prefactor     42.686        27.607        .61351E-04    .36553E-03
   3  Prefactor     .10000E-03    42.100        .18142E-02** at limit **
   4  Prefactor     2.4391        2.6538        .13393E-03    .18938E-03
   5  norm          .10000E-03    138.86        .46868E-02** at limit **
   6  Prefactor     .10000E-03    4.1187        .16101E-02** at limit **
   7  norm          2.4587        4.7391        .11424E-02    .19351E-03
   8  Prefactor     5.7005        6.9446        .16824E-03    .62980E-04
   9  Prefactor     2.9763        8.0925        .23537E-03    .48012E-04
  10  Prefactor     6.5682        3.8786        .11412E-03    .17304E-03
  11  norm          .10000E-03    4.0928        .16046E-02** at limit **
  12  norm          5.0127        2.9218        .10143E-03   -.33625E-05
  13  Prefactor     4.2577        14.254        .19526E-03    .43086E-05
  14  norm          2.3661        3.1521        .16221E-03   -.36725E-04
  15  Prefactor     .10000E-03    8.1254        .18142E-02** at limit **
  16  norm          9.1780        5.0741        .12982E-03   -.61301E-06
  17  Prefactor     .10000E-03    50.531        .18142E-02** at limit **
  18  norm          .10000E-03    4.4623        .16628E-02** at limit **
  19  Prefactor     12.841        10.124        .11179E-03    .38136E-04
  20  Prefactor     .10000E-03    1.7737        .10549E-02** at limit **
  21  norm          .98495        .99104        .81481E-03    .28279E-02
  22  Normalizat    .82066        .18518        .24181E-03    .47324E-03
  23  Prefactor     1.0767        .19795        .23427E-03    .49710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 42.6864
  Prefactor  = 0.000100002
  Prefactor  = 2.43908
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45867
  Prefactor  = 5.70048
  Prefactor  = 2.97632
  Prefactor  = 6.56824
  norm       = 0.0001
  norm       = 5.01274
  Prefactor  = 4.25772
  norm       = 2.36611
  Prefactor  = 0.0001
  norm       = 9.17802
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.8407
  Prefactor  = 0.0001
  norm       = 0.984946
  Normalizat = 0.820657
  Prefactor  = 1.07665
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.448     FROM HESSE     STATUS=OK           350 CALLS     3279 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.536        .85741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.686        27.594        .12270E-04   -1.4400    
   3  Prefactor     .10000E-03    42.103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4391        2.6537        .53571E-05   -1.5396    
   5  norm          .10000E-03    145.18        .18747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1187        .32202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4587        4.7333        .45697E-04   -1.5394    
   8  Prefactor     5.7005        6.9433        .67295E-05   -1.5230    
   9  Prefactor     2.9763        8.0909        .94147E-05   -1.5363    
  10  Prefactor     6.5682        3.8771        .45647E-05   -1.5195    
  11  norm          .10000E-03    4.0929        .32093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0127        2.9218        .40572E-05   -1.5260    
  13  Prefactor     4.2577        14.254        .78103E-05   -1.5295    
  14  norm          2.3661        3.1520        .64884E-05   -1.5400    
  15  Prefactor     .10000E-03    8.1254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.1780        5.0739        .51928E-05   -1.5102    
  17  Prefactor     .10000E-03    50.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4647        .33257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.841        10.123        .44716E-05   -1.4991    
  20  Prefactor     .10000E-03    1.7738        .21097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .98495        .99070        .16296E-03   -1.5509    
  22  Normalizat    .82066        .18509        .48361E-04   -.99307    
  23  Prefactor     1.0767        .19808        .46854E-04   -.90216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68244e-10
Minuit parameter uncertainties:
  1  0.000905914
  2  27.6027
  3  0.000523827
  4  2.65384
  5  7.69031e-05
  6  7.41014e-06
  7  4.73398
  8  6.94428
  9  8.09388
  10  3.87722
  11  5.16592e-06
  12  2.92185
  13  14.265
  14  3.15226
  15  9.23987e-06
  16  5.07418
  17  0.00015622
  18  2.73692e-05
  19  10.1242
  20  1.15314e-05
  21  0.99072
  22  0.185236
  23  0.198214
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.568e+00  3.877e+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.077e+00  1.982e-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:  8.207e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.88
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.92e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.14e-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) = 6599.20473791
delta logL = 2.2437571038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6599.17533395
delta logL = 2.2731610613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7523       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8036       1.0000          .0000       10.000    
     3 'Normalizat'    .70590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1616       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=   6599.175     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      249 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7522        8.1847        .79176E-02    .56244E-02
   2  Index         3.8036        2.3958        .84637E-01    .50839E-03
   3  Normalizat    .70589        .57664E-01    .42369E-01    .33108E-03
   4  Prefactor     1.1616        .60980E-01    .51255E-01    .91583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75219
  Index      = 3.8036
  Normalizat = 0.705894
  Prefactor  = 1.16165
 **********
 **   18 **HESSE 
 **********

 FCN=   6599.175     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7522        3.8270        .38951E-04   -1.5443    
   2  Index         3.8036        1.3595        .35052E-02   -.24162    
   3  Normalizat    .70589        .18994        .25835E-03   -1.0366    
   4  Prefactor     1.1616        .20306        .22660E-03   -.87520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9862e-09
Minuit parameter uncertainties:
  1  3.82752
  2  1.37792
  3  0.190119
  4  0.2032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386006': 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) = 6599.17533395
delta logL = 2.27316106457

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.752e+00  3.828e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.804e+00  1.378e+00  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.162e+00  2.032e-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:  7.059e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.15
Ra Dec: 215.577 32.391
Photon Index (Free Index): 3.80 +/- 1.38
Photon Flux (Free Index): 1.34e-07 +/- 5.53e-08
Energy Flux (Free Index): 2.07e-05 +/- 8.60e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/386006/cmap_HighResolution_648086401_648345601_4FGL_J1422.3+3223_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.92e-08', energy_flux2='2.07e-05', photon_flux_error='3.49e-08', dlogl='2.27e+00', energy_flux='1.94e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-09 12:05:49.499390', photon_index_error2='1.38', photon_index2='3.80', ts='5.88', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='8.60e-06', EG='0.82', time_epoch_completed='1631214349.5', return_code='0', job_id='386006', GAL2='1.16', EG2='0.71', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='5.53e-08', ts2='11.15', photon_index='2.40' WHERE bin_id='1577' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:05:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 386006: <4FGL_J1422.3+3223_daily_bin1577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1577 215.577 32.3911 648086401 648345601 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 :                                   622.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

