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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1403
RA = 215.577, Dec = 32.3911
tmin = 602985601, tmax = 603244801
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='384773', job_status='RUN', time_executed='2021-09-09 11:48:55.634460', time_epoch_executed='1631213335.63' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384773/ft1_4FGL_J1422.3+3223_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384773/ft2_4FGL_J1422.3+3223_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384773/ft1_4FGL_J1422.3+3223_daily_bin1403.fits outfile=/scratch/kocevski/384773/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1403.fits ra=215.577 dec=32.3911 rad=12.0 tmin=602985601.0 tmax=603244801.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.04
user 2.81
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384773/ft1_filtered_4FGL_J1422.3+3223_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/384773/ft2_4FGL_J1422.3+3223_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/384773/ltcube_602985601_603244801_4FGL_J1422.3+3223_daily_bin1403.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/384773/ft2_4FGL_J1422.3+3223_daily_bin1403.fits
.....................!
real 12.31
user 11.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384773/ft1_filtered_4FGL_J1422.3+3223_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/384773/ft2_4FGL_J1422.3+3223_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/384773/ltcube_602985601_603244801_4FGL_J1422.3+3223_daily_bin1403.fits outfile=/scratch/kocevski/384773/expmap_602985601_603244801_4FGL_J1422.3+3223_daily_bin1403.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/384773/ltcube_602985601_603244801_4FGL_J1422.3+3223_daily_bin1403.fits
.....................!
real 190.85
user 185.25
sys 5.23

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/384773/ft1_filtered_4FGL_J1422.3+3223_daily_bin1403.fits scfile=/scratch/kocevski/384773/ft2_4FGL_J1422.3+3223_daily_bin1403.fits outfile=/scratch/kocevski/384773/cmap_602985601_603244801_4FGL_J1422.3+3223_daily_bin1403.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384773/ft1_filtered_4FGL_J1422.3+3223_daily_bin1403.fits scfile=/scratch/kocevski/384773/ft2_4FGL_J1422.3+3223_daily_bin1403.fits outfile=/scratch/kocevski/384773/cmap_HighResolution_602985601_603244801_4FGL_J1422.3+3223_daily_bin1403.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8593       1.0000         .10000E-03   10000.    
     5 'norm      '    11.210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.725       1.0000         .10000E-03   10000.    
    11 'norm      '    .10388E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0999       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.142       1.0000         .10000E-03   10000.    
    14 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1962       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9909       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9669       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .99181       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0466       1.0000         .10000E-03   10000.    
    21 'norm      '    .33299       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1840       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96363       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=   8302.114     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2525 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5112        .32007E-05** at limit **
   2  Prefactor     .10000E-03    12.444       -.49019E-05** at limit **
   3  Prefactor     64.184        80.018       -.20065E-04   -.14470E-04
   4  Prefactor     3.8613        4.0429       -.78057E-06   -.60332E-04
   5  norm          11.215        11.696        .92180E-06   -.44461E-05
   6  Prefactor     .10000E-03    4.5472        .12105E-07** at limit **
   7  norm          .10000E-03    1.4511        .47473E-07** at limit **
   8  Prefactor     .10000E-03    6.2156       -.68596E-06** at limit **
   9  Prefactor     .10000E-03    4.2101        .37589E-06** at limit **
  10  Prefactor     34.729        6.0972        .11310E-06   -.56367E-04
  11  norm          .10000E-03    26.397       -.90351E-05** at limit **
  12  norm          6.0997        2.3761        .58685E-07   -.10578E-04
  13  Prefactor     26.161        28.412        .21790E-04   -.30475E-05
  14  norm          .10000E-03    3.7481       -.45803E-06** at limit **
  15  Prefactor     .10000E-03    23.630        .11135E-04** at limit **
  16  norm          3.1958        2.7510        .78716E-07    .14850E-05
  17  Prefactor     3.9946        30.074        .76714E-05   -.42224E-06
  18  norm          3.9673        3.9372        .29139E-06    .13013E-04
  19  Prefactor     .99149        1.9090        .58548E-06   -.15357E-02
  20  Prefactor     1.0472        9.8466       -.12759E-06   -.12218E-03
  21  norm          .33433        1.1436       -.69764E-08   -.19684E-03
  22  Normalizat    1.1834        .17033       -.22244E-05    .13753E-03
  23  Prefactor     .96427        .16533       -.16144E-06   -.65605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.1845
  Prefactor  = 3.86133
  norm       = 11.2154
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.729
  norm       = 0.0001
  norm       = 6.09967
  Prefactor  = 26.1609
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19585
  Prefactor  = 3.99456
  norm       = 3.96729
  Prefactor  = 0.991494
  Prefactor  = 1.0472
  norm       = 0.334329
  Normalizat = 1.18341
  Prefactor  = 0.964266
 **********
 **   18 **HESSE 
 **********

 FCN=   8302.114     FROM HESSE     STATUS=OK           374 CALLS     2899 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     64.184        80.670        .50084E-04   -1.4104    
   4  Prefactor     3.8613        4.0557        .17854E-03   -1.5315    
   5  norm          11.215        11.721        .11965E-03   -1.5038    
   6  Prefactor     .10000E-03    4.5495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4642        .10716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.729        6.1412        .34002E-03   -1.4529    
  11  norm          .10000E-03    27.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0997        2.3774        .85091E-04   -1.5214    
  13  Prefactor     26.161        28.542        .78350E-04   -1.4685    
  14  norm          .10000E-03    3.8022        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1958        2.7549        .13601E-03   -1.5350    
  17  Prefactor     3.9946        30.070        .20189E-03   -1.5308    
  18  norm          3.9673        3.9555        .17568E-03   -1.5310    
  19  Prefactor     .99149        15.711        .26273E-02   -1.5509    
  20  Prefactor     1.0472        8.4513        .44573E-03   -1.5503    
  21  norm          .33433        1.3081        .13991E-02   -1.5592    
  22  Normalizat    1.1834        .20501        .24619E-03   -.87117    
  23  Prefactor     .96427        .19667        .27998E-03   -.93930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37784e-08
Minuit parameter uncertainties:
  1  1.94595e-05
  2  1.21032e-05
  3  80.8075
  4  4.05594
  5  11.723
  6  2.7817e-07
  7  2.66879e-06
  8  1.02587e-05
  9  1.78713e-05
  10  6.14128
  11  7.60307e-05
  12  2.37746
  13  28.5571
  14  2.41382e-05
  15  0.000204425
  16  2.755
  17  21.9345
  18  3.95573
  19  7.89579
  20  5.95073
  21  1.3082
  22  0.205152
  23  0.196812
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.473e+01  6.141e+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:  9.643e-01  1.968e-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.183e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 106.06
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.13e-07 +/- 5.53e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 1.81e-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) = 8301.94649732
delta logL = 0.167892087449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8301.86198462
delta logL = 0.252404791745

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.632       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2771       1.0000          .0000       10.000    
     3 'Normalizat'    1.2124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94422       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=   8301.862     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.631        7.5659       -.13014E-05    .35968E-02
   2  Index         2.2773        .16722        .36276E-05    .12265E-02
   3  Normalizat    1.2124        .16232       -.37520E-06   -.12680E-03
   4  Prefactor     .94427        .16517        .38441E-06   -.94763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.6312
  Index      = 2.27733
  Normalizat = 1.21237
  Prefactor  = 0.944266
 **********
 **   18 **HESSE 
 **********

 FCN=   8301.862     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.631        7.7231        .65334E-04   -1.4480    
   2  Index         2.2773        .17315        .29513E-02   -.57583    
   3  Normalizat    1.2124        .19291        .24386E-03   -.86221    
   4  Prefactor     .94427        .19528        .28261E-03   -.94611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56503e-09
Minuit parameter uncertainties:
  1  7.72335
  2  0.173195
  3  0.193024
  4  0.195428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384773': 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) = 8301.86198377
delta logL = 0.252405638808

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.763e+01  7.723e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.277e+00  1.732e-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:  9.443e-01  1.954e-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.212e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 105.83
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.28 +/- 0.17
Photon Flux (Free Index): 2.90e-07 +/- 6.15e-08
Energy Flux (Free Index): 1.14e-04 +/- 2.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/384773/cmap_HighResolution_602985601_603244801_4FGL_J1422.3+3223_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.13e-07', energy_flux2='1.14e-04', photon_flux_error='5.53e-08', dlogl='2.52e-01', energy_flux='1.02e-04', photon_flux2='2.90e-07', job_status='DONE', time_completed='2021-09-09 12:00:18.125804', photon_index_error2='0.17', photon_index2='2.28', ts='106.06', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.18', time_epoch_completed='1631214018.13', return_code='0', job_id='384773', GAL2='0.94', EG2='1.21', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.15e-08', ts2='105.83', photon_index='2.40' WHERE bin_id='1403' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:00:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 384773: <4FGL_J1422.3+3223_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1403 215.577 32.3911 602985601 603244801 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 :                                   648.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

