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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1531
RA = 215.577, Dec = 32.3911
tmin = 636163201, tmax = 636422401
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='385934', job_status='RUN', time_executed='2021-09-09 11:51:31.965062', time_epoch_executed='1631213491.97' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385934

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385934/ft1_4FGL_J1422.3+3223_daily_bin1531.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385934/ft2_4FGL_J1422.3+3223_daily_bin1531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385934/ft1_4FGL_J1422.3+3223_daily_bin1531.fits outfile=/scratch/kocevski/385934/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1531.fits ra=215.577 dec=32.3911 rad=12.0 tmin=636163201.0 tmax=636422401.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.64
user 3.42
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385934/ft1_filtered_4FGL_J1422.3+3223_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/385934/ft2_4FGL_J1422.3+3223_daily_bin1531.fits sctable="SC_DATA" expcube=/scratch/kocevski/385934/ltcube_636163201_636422401_4FGL_J1422.3+3223_daily_bin1531.fits outfile=/scratch/kocevski/385934/expmap_636163201_636422401_4FGL_J1422.3+3223_daily_bin1531.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/385934/ltcube_636163201_636422401_4FGL_J1422.3+3223_daily_bin1531.fits
.....................!
real 190.95
user 185.77
sys 4.73

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/385934/ft1_filtered_4FGL_J1422.3+3223_daily_bin1531.fits scfile=/scratch/kocevski/385934/ft2_4FGL_J1422.3+3223_daily_bin1531.fits outfile=/scratch/kocevski/385934/cmap_636163201_636422401_4FGL_J1422.3+3223_daily_bin1531.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385934/ft1_filtered_4FGL_J1422.3+3223_daily_bin1531.fits scfile=/scratch/kocevski/385934/ft2_4FGL_J1422.3+3223_daily_bin1531.fits outfile=/scratch/kocevski/385934/cmap_HighResolution_636163201_636422401_4FGL_J1422.3+3223_daily_bin1531.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/385934/ft1_filtered_4FGL_J1422.3+3223_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/385934/ft2_4FGL_J1422.3+3223_daily_bin1531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385934/Model_4FGL_J1422.3+3223_daily_bin1531.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/385934/ft1_filtered_4FGL_J1422.3+3223_daily_bin1531.fits.....................!
real 49.66
user 48.35
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8300       1.0000         .10000E-03   10000.    
     5 'norm      '    9.1932       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81599       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.342       1.0000         .10000E-03   10000.    
    11 'norm      '    10.082       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.586       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.762       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8355       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6865       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1367       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74792       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=   6511.089     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2561 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7365       -.52173E-05** at limit **
   2  Prefactor     12.090        25.621       -.60927E-06    .10930E-04
   3  Prefactor     14.481        57.603       -.29238E-04   -.57885E-06
   4  Prefactor     4.8304        4.0318        .47966E-06   -.20248E-03
   5  norm          9.1940        12.095        .35873E-07   -.24034E-04
   6  Prefactor     .81235        9.4049       -.76610E-06   -.17466E-03
   7  norm          .10000E-03    1.5731        .47823E-07** at limit **
   8  Prefactor     .10000E-03    13.656        .47771E-06** at limit **
   9  Prefactor     .10000E-03    7.7221        .94902E-05** at limit **
  10  Prefactor     30.343        6.4124       -.13695E-06    .12707E-04
  11  norm          10.082        9.6801       -.96795E-06   -.32897E-04
  12  norm          4.7583        2.6646       -.51988E-07   -.12494E-03
  13  Prefactor     24.585        25.296       -.91309E-06   -.20706E-03
  14  norm          .10000E-03    2.4450        .14908E-06** at limit **
  15  Prefactor     26.764        33.451        .14204E-05   -.32042E-05
  16  norm          5.8354        3.5909        .44123E-06    .16778E-04
  17  Prefactor     .10000E-03    63.257       -.32239E-05** at limit **
  18  norm          .10000E-03    7.3478       -.71818E-05** at limit **
  19  Prefactor     4.6889        15.161       -.27449E-05   -.29521E-04
  20  Prefactor     .10000E-03    7.4121        .17126E-05** at limit **
  21  norm          1.1367        1.4420       -.10982E-06   -.74284E-03
  22  Normalizat    1.0881        .17522        .18526E-05   -.58700E-04
  23  Prefactor     .74803        .16414       -.68948E-06    .11089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.09
  Prefactor  = 14.4814
  Prefactor  = 4.8304
  norm       = 9.194
  Prefactor  = 0.812348
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3427
  norm       = 10.0822
  norm       = 4.75825
  Prefactor  = 24.5854
  norm       = 0.0001
  Prefactor  = 26.7636
  norm       = 5.83541
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.68886
  Prefactor  = 0.0001
  norm       = 1.13674
  Normalizat = 1.08812
  Prefactor  = 0.748032
 **********
 **   18 **HESSE 
 **********

 FCN=   6511.089     FROM HESSE     STATUS=OK           378 CALLS     2939 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.090        25.633        .11521E-03   -1.5012    
   3  Prefactor     14.481        57.901        .10520E-03   -1.4947    
   4  Prefactor     4.8304        4.0378        .14036E-03   -1.5268    
   5  norm          9.1940        12.096        .13218E-03   -1.5101    
   6  Prefactor     .81235        49.176        .47461E-02   -1.5528    
   7  norm          .10000E-03    1.5915        .98798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.343        6.4504        .72737E-04   -1.4606    
  11  norm          10.082        9.6762        .12619E-03   -1.5073    
  12  norm          4.7583        2.6675        .94546E-04   -1.5272    
  13  Prefactor     24.585        25.419        .40394E-03   -1.4716    
  14  norm          .10000E-03    2.4682        .12319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.764        33.458        .77438E-04   -1.4673    
  16  norm          5.8354        3.5912        .11607E-03   -1.5225    
  17  Prefactor     .10000E-03    63.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.3790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6889        15.126        .18589E-03   -1.5275    
  20  Prefactor     .10000E-03    7.5199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1367        1.4033        .10304E-03   -1.5495    
  22  Normalizat    1.0881        .20575        .23194E-03   -.90134    
  23  Prefactor     .74803        .19167        .27509E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52492e-10
Minuit parameter uncertainties:
  1  4.52322e-06
  2  25.6565
  3  58.0115
  4  4.03799
  5  12.0996
  6  12.651
  7  5.64924e-07
  8  1.14115e-05
  9  3.72528e-06
  10  6.45055
  11  9.67772
  12  2.6676
  13  25.4301
  14  2.81806e-06
  15  33.4813
  16  3.59134
  17  4.07529e-05
  18  3.35973e-05
  19  15.1384
  20  1.21086e-05
  21  1.40338
  22  0.205896
  23  0.191835
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.034e+01  6.451e+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:  7.480e-01  1.918e-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.088e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 65.10
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.73e-07 +/- 5.81e-08
Energy Flux (Fixed Index): 8.95e-05 +/- 1.90e-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) = 6511.0435408
delta logL = 0.0450303247953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6511.00822637
delta logL = 0.0803447564285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.007       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3127       1.0000          .0000       10.000    
     3 'Normalizat'    1.1065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73539       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=   6511.008     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.009        22.911        .17706E-02    .31993E-03
   2  Index         2.3127        .61482        .75436E-01    .94486E-04
   3  Normalizat    1.1065        .17899        .37741E-01   -.10284E-05
   4  Prefactor     .73540        .17089        .62670E-01    .15789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.0094
  Index      = 2.31275
  Normalizat = 1.10649
  Prefactor  = 0.735397
 **********
 **   18 **HESSE 
 **********

 FCN=   6511.008     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.009        7.9309        .35413E-03   -1.4576    
   2  Index         2.3127        .22027        .32302E-02   -.56741    
   3  Normalizat    1.1065        .19486        .23037E-03   -.89544    
   4  Prefactor     .73540        .18955        .27722E-03   -1.0216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03335e-10
Minuit parameter uncertainties:
  1  7.93115
  2  0.220366
  3  0.194985
  4  0.189717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385934': 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) = 6511.00822622
delta logL = 0.0803449096802

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.201e+01  7.931e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.313e+00  2.204e-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:  7.354e-01  1.897e-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.106e+00  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.67
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.31 +/- 0.22
Photon Flux (Free Index): 2.58e-07 +/- 6.77e-08
Energy Flux (Free Index): 9.56e-05 +/- 2.72e-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/385934/cmap_HighResolution_636163201_636422401_4FGL_J1422.3+3223_daily_bin1531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-07', energy_flux2='9.56e-05', photon_flux_error='5.81e-08', dlogl='8.03e-02', energy_flux='8.95e-05', photon_flux2='2.58e-07', job_status='DONE', time_completed='2021-09-09 12:02:18.544581', photon_index_error2='0.22', photon_index2='2.31', ts='65.10', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.72e-05', EG='1.09', time_epoch_completed='1631214138.54', return_code='0', job_id='385934', GAL2='0.74', EG2='1.11', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='6.77e-08', ts2='64.67', photon_index='2.40' WHERE bin_id='1531' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:02:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 385934: <4FGL_J1422.3+3223_daily_bin1531> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1531 215.577 32.3911 636163201 636422401 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 :                                   576.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            663 sec.

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

