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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1461
RA = 215.577, Dec = 32.3911
tmin = 618019201, tmax = 618278401
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='385819', job_status='RUN', time_executed='2021-09-09 11:53:17.861071', time_epoch_executed='1631213597.86' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385819/ft1_4FGL_J1422.3+3223_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385819/ft2_4FGL_J1422.3+3223_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385819/ft1_4FGL_J1422.3+3223_daily_bin1461.fits outfile=/scratch/kocevski/385819/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1461.fits ra=215.577 dec=32.3911 rad=12.0 tmin=618019201.0 tmax=618278401.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 5.19
user 4.84
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385819/ft1_filtered_4FGL_J1422.3+3223_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/385819/ft2_4FGL_J1422.3+3223_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/385819/ltcube_618019201_618278401_4FGL_J1422.3+3223_daily_bin1461.fits outfile=/scratch/kocevski/385819/expmap_618019201_618278401_4FGL_J1422.3+3223_daily_bin1461.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/385819/ltcube_618019201_618278401_4FGL_J1422.3+3223_daily_bin1461.fits
.....................!
real 190.46
user 185.22
sys 4.68

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/385819/ft1_filtered_4FGL_J1422.3+3223_daily_bin1461.fits scfile=/scratch/kocevski/385819/ft2_4FGL_J1422.3+3223_daily_bin1461.fits outfile=/scratch/kocevski/385819/cmap_618019201_618278401_4FGL_J1422.3+3223_daily_bin1461.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/385819/ft1_filtered_4FGL_J1422.3+3223_daily_bin1461.fits scfile=/scratch/kocevski/385819/ft2_4FGL_J1422.3+3223_daily_bin1461.fits outfile=/scratch/kocevski/385819/cmap_HighResolution_618019201_618278401_4FGL_J1422.3+3223_daily_bin1461.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.101       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .72778E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.939       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30517E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5476       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8555       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4636       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.439       1.0000         .10000E-03   10000.    
    14 'norm      '    4.3056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5193       1.0000         .10000E-03   10000.    
    18 'norm      '    .10701E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7785       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6370       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0240       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2116       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=   5446.147     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     3386 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.112        32.921        .70722E-04    .33938E-03
   2  Prefactor     .10000E-03    69.639        .14793    ** at limit **
   3  Prefactor     .10000E-03    34.659        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.1869        .10620E-02** at limit **
   5  norm          .10489E-03    23.099        .82250E-01** at limit **
   6  Prefactor     16.939        19.432        .97315E-04   -.17633E-03
   7  norm          2.9942        5.9268        .23461E-03   -.37787E-03
   8  Prefactor     .10028E-03    90.070        .54447E-02** at limit **
   9  Prefactor     9.5305        18.988        .12969E-03   -.65314E-03
  10  Prefactor     6.8548        4.9590        .13232E-03   -.68306E-04
  11  norm          5.4632        15.157        .17190E-03   -.42690E-03
  12  norm          4.9341        3.0441        .97283E-04    .37279E-04
  13  Prefactor     31.442        33.694        .71460E-04   -.47728E-05
  14  norm          4.3087        7.1856        .97073E-03    .22378E-03
  15  Prefactor     .10000E-03    18.200        .18142E-02** at limit **
  16  norm          .10000E-03    1.7412        .94971E-03** at limit **
  17  Prefactor     6.5191        43.354        .15718E-03    .23652E-04
  18  norm          .10000E-03    17.233        .36285E-03** at limit **
  19  Prefactor     .10000E-03    38.026        .18142E-02** at limit **
  20  Prefactor     1.7786        19.136        .15693E-02    .98335E-04
  21  norm          5.6368        2.8521        .76785E-04   -.91648E-04
  22  Normalizat    1.0240        .26955        .27864E-03   -.35660E-04
  23  Prefactor     1.2117        .26226        .26436E-03   -.19357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.1122
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000104889
  Prefactor  = 16.9387
  norm       = 2.99416
  Prefactor  = 0.000100283
  Prefactor  = 9.53051
  Prefactor  = 6.85479
  norm       = 5.46323
  norm       = 4.93411
  Prefactor  = 31.4421
  norm       = 4.30872
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.51912
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.77857
  norm       = 5.63677
  Normalizat = 1.02397
  Prefactor  = 1.21172
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.147     FROM HESSE     STATUS=OK           370 CALLS     3756 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.112        32.962        .14144E-04   -1.4574    
   2  Prefactor     .10000E-03    76.100        .14035       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1871        .21240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10489E-03    19.140        .93868E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.939        19.430        .19463E-04   -1.4885    
   7  norm          2.9942        5.9249        .93844E-05   -1.5362    
   8  Prefactor     .10028E-03    90.574        .10889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5305        18.920        .25939E-04   -1.5090    
  10  Prefactor     6.8548        4.9587        .52927E-05   -1.5184    
  11  norm          5.4632        15.137        .68761E-05   -1.5240    
  12  norm          4.9341        3.0441        .38913E-05   -1.5264    
  13  Prefactor     31.442        33.697        .28584E-05   -1.4586    
  14  norm          4.3087        7.1830        .19415E-03   -1.5293    
  15  Prefactor     .10000E-03    18.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7413        .18994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5191        43.373        .62872E-05   -1.5197    
  18  norm          .10000E-03    17.234        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7786        18.901        .62772E-04   -1.5441    
  21  norm          5.6368        2.8377        .30714E-05   -1.5233    
  22  Normalizat    1.0240        .26994        .11145E-04   -.92232    
  23  Prefactor     1.2117        .26259        .52871E-04   -.85972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83564e-09
Minuit parameter uncertainties:
  1  32.9805
  2  0.000462723
  3  0.000148189
  4  1.20742e-05
  5  0.0193536
  6  19.4369
  7  5.92609
  8  0.0101412
  9  18.9317
  10  4.959
  11  15.1472
  12  3.04415
  13  33.7176
  14  7.18441
  15  8.30267e-07
  16  5.42348e-06
  17  33.6658
  18  4.20048e-05
  19  0.000378062
  20  11.6004
  21  2.83774
  22  0.2703
  23  0.262877
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.855e+00  4.959e+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.212e+00  2.629e-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.024e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.46e-05

TS (Fixed Index): 3.59
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385819/likelihoodResults_618019201_618278401_4FGL_J1422.3+3223_daily_bin1461.txt

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) = 5446.08355128
delta logL = 0.0635255361149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5446.07937778
delta logL = 0.0676990363436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5686       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2085       1.0000          .0000       10.000    
     3 'Normalizat'    1.0340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2044       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=   5446.079     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5691        5.6294        .14103E-03   -.22394E-02
   2  Index         2.2090        .50935        .72493E-02   -.43562E-03
   3  Normalizat    1.0338        .25186        .27745E-03    .13801E-03
   4  Prefactor     1.2045        .25688        .26501E-03    .17220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.56905
  Index      = 2.20901
  Normalizat = 1.03381
  Prefactor  = 1.20453
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.079     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5691        5.5899        .28206E-04   -1.5158    
   2  Index         2.2090        .50568        .28997E-03   -.59221    
   3  Normalizat    1.0338        .25209        .11098E-04   -.91906    
   4  Prefactor     1.2045        .25711        .53001E-04   -.86192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13529e-09
Minuit parameter uncertainties:
  1  5.59033
  2  0.506943
  3  0.252386
  4  0.257374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385819': 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) = 5446.07937704
delta logL = 0.0676997719638

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  7.569e+00  5.590e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.209e+00  5.069e-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.205e+00  2.574e-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.034e+00  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.21 +/- 0.51
Photon Flux (Free Index): 5.37e-08 +/- 4.58e-08
Energy Flux (Free Index): 2.37e-05 +/- 2.05e-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/385819/cmap_HighResolution_618019201_618278401_4FGL_J1422.3+3223_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='2.37e-05', photon_flux_error='4.47e-08', dlogl='6.77e-02', energy_flux='2.02e-05', photon_flux2='5.37e-08', job_status='DONE', time_completed='2021-09-09 12:03:57.449322', photon_index_error2='0.51', photon_index2='2.21', ts='3.59', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='2.05e-05', EG='1.02', time_epoch_completed='1631214237.45', return_code='0', job_id='385819', GAL2='1.20', EG2='1.03', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.58e-08', ts2='3.71', photon_index='2.40' WHERE bin_id='1461' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 385819: <4FGL_J1422.3+3223_daily_bin1461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1461 215.577 32.3911 618019201 618278401 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 :                                   630.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

