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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1169
RA = 215.577, Dec = 32.3911
tmin = 542332801, tmax = 542592001
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='384361', job_status='RUN', time_executed='2021-09-09 11:49:48.724833', time_epoch_executed='1631213388.72' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384361

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384361/ft1_4FGL_J1422.3+3223_daily_bin1169.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384361/ft2_4FGL_J1422.3+3223_daily_bin1169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384361/ft1_4FGL_J1422.3+3223_daily_bin1169.fits outfile=/scratch/kocevski/384361/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1169.fits ra=215.577 dec=32.3911 rad=12.0 tmin=542332801.0 tmax=542592001.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.23
user 3.96
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384361/ft2_4FGL_J1422.3+3223_daily_bin1169.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/384361/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1169.fits evtable="EVENTS" outfile="/scratch/kocevski/384361/ft1_filtered_4FGL_J1422.3+3223_daily_bin1169.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384361/ft1_filtered_4FGL_J1422.3+3223_daily_bin1169.fits" evtable="EVENTS" scfile=/scratch/kocevski/384361/ft2_4FGL_J1422.3+3223_daily_bin1169.fits sctable="SC_DATA" outfile=/scratch/kocevski/384361/ltcube_542332801_542592001_4FGL_J1422.3+3223_daily_bin1169.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/384361/ft2_4FGL_J1422.3+3223_daily_bin1169.fits
.....................!
real 14.81
user 14.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384361/ft1_filtered_4FGL_J1422.3+3223_daily_bin1169.fits evtable="EVENTS" scfile=/scratch/kocevski/384361/ft2_4FGL_J1422.3+3223_daily_bin1169.fits sctable="SC_DATA" expcube=/scratch/kocevski/384361/ltcube_542332801_542592001_4FGL_J1422.3+3223_daily_bin1169.fits outfile=/scratch/kocevski/384361/expmap_542332801_542592001_4FGL_J1422.3+3223_daily_bin1169.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/384361/ltcube_542332801_542592001_4FGL_J1422.3+3223_daily_bin1169.fits
.....................!
real 190.63
user 185.41
sys 4.81

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/384361/ft1_filtered_4FGL_J1422.3+3223_daily_bin1169.fits scfile=/scratch/kocevski/384361/ft2_4FGL_J1422.3+3223_daily_bin1169.fits outfile=/scratch/kocevski/384361/cmap_542332801_542592001_4FGL_J1422.3+3223_daily_bin1169.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384361/ft1_filtered_4FGL_J1422.3+3223_daily_bin1169.fits scfile=/scratch/kocevski/384361/ft2_4FGL_J1422.3+3223_daily_bin1169.fits outfile=/scratch/kocevski/384361/cmap_HighResolution_542332801_542592001_4FGL_J1422.3+3223_daily_bin1169.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37779E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11595E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12975E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .50911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.582       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.865       1.0000         .10000E-03   10000.    
    11 'norm      '    .10520E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6678       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.090       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.655       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16211E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .53876       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2698       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=   5245.595     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2583 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    12.183        .23878E-05** at limit **
   2  Prefactor     .10000E-03    73.409       -.74832E-06** at limit **
   3  Prefactor     .10000E-03    209.96        .87508E-05** at limit **
   4  Prefactor     .10000E-03    .84104       -.76962E-08** at limit **
   5  norm          .10000E-03    3.3881       -.55910E-08** at limit **
   6  Prefactor     .10000E-03    36.324       -.12126E-05** at limit **
   7  norm          .50912        1.8343       -.49551E-06    .23138E-03
   8  Prefactor     12.685        15.460        .64457E-06    .10261E-03
   9  Prefactor     12.585        17.773       -.10692E-06    .53644E-04
  10  Prefactor     17.868        5.2233        .42138E-07    .16166E-03
  11  norm          .10000E-03    26.882        .16346E-07** at limit **
  12  norm          4.6682        2.4018       -.58328E-08   -.19120E-04
  13  Prefactor     .10000E-03    8.0274       -.99771E-08** at limit **
  14  norm          .10000E-03    2.2928        .49100E-07** at limit **
  15  Prefactor     .10000E-03    27.316        .54848E-06** at limit **
  16  norm          .10000E-03    1.9916       -.21209E-07** at limit **
  17  Prefactor     65.106        40.823       -.23972E-06   -.46107E-04
  18  norm          .10000E-03    2.7747        .70126E-07** at limit **
  19  Prefactor     10.665        18.462       -.13284E-05   -.20359E-03
  20  Prefactor     .10000E-03    23.539        .71674E-05** at limit **
  21  norm          .10001E-03    .93639       -.36461E-06** at limit **
  22  Normalizat    .53849        .17388        .24443E-06   -.21509E-03
  23  Prefactor     1.2699        .18221        .17420E-06   -.13098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.509123
  Prefactor  = 12.6849
  Prefactor  = 12.5853
  Prefactor  = 17.8678
  norm       = 0.0001
  norm       = 4.66816
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.1057
  norm       = 0.0001
  Prefactor  = 10.6651
  Prefactor  = 0.0001
  norm       = 0.000100006
  Normalizat = 0.53849
  Prefactor  = 1.26992
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.595     FROM HESSE     STATUS=OK           368 CALLS     2951 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    58.023        .43099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    75.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    211.84        .20581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .84273        .64857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3906        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .50912        1.8851        .17783E-02   -1.5565    
   8  Prefactor     12.685        15.417        .11251E-03   -1.4995    
   9  Prefactor     12.585        17.713        .11293E-03   -1.4998    
  10  Prefactor     17.868        5.2276        .84792E-04   -1.4862    
  11  norm          .10000E-03    27.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6682        2.4040        .78210E-04   -1.5276    
  13  Prefactor     .10000E-03    8.0363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3036        .10708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0058        .99796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     65.106        40.748        .49743E-04   -1.4092    
  18  norm          .10000E-03    2.7759        .11784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.665        18.037        .12274E-03   -1.5055    
  20  Prefactor     .10000E-03    24.923        .34686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    4.4905        .12401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .53849        .20092        .28200E-03   -1.1066    
  23  Prefactor     1.2699        .21516        .21215E-03   -.84206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96351e-09
Minuit parameter uncertainties:
  1  0.00179648
  2  0.000240903
  3  0.000291325
  4  1.05173e-06
  5  2.84544e-06
  6  0.000152388
  7  1.88536
  8  15.4217
  9  17.7204
  10  5.22778
  11  5.2094e-05
  12  2.40405
  13  5.09795e-06
  14  1.34228e-06
  15  5.4693e-05
  16  2.0139e-06
  17  40.7653
  18  3.08629e-06
  19  18.0461
  20  0.000210223
  21  0.000338028
  22  0.201188
  23  0.215309
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.787e+01  5.228e+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.270e+00  2.153e-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:  5.385e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.96
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.61e-07 +/- 4.71e-08
Energy Flux (Fixed Index): 5.27e-05 +/- 1.54e-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) = 5245.52026453
delta logL = 0.0742790855538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5245.48809113
delta logL = 0.10645248289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.426       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2671       1.0000          .0000       10.000    
     3 'Normalizat'    .55620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2571       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=   5245.488     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      267 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.426        6.5532        .90639E-04   -.27771E-02
   2  Index         2.2671        .28892        .39034E-02   -.66714E-03
   3  Normalizat    .55621        .19583        .27790E-03    .90491E-04
   4  Prefactor     1.2571        .21463        .21310E-03    .12795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4262
  Index      = 2.26708
  Normalizat = 0.556212
  Prefactor  = 1.25706
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.488     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.426        6.4795        .18128E-04   -1.4826    
   2  Index         2.2671        .28549        .15614E-03   -.57828    
   3  Normalizat    .55621        .19595        .11116E-04   -1.0988    
   4  Prefactor     1.2571        .21477        .42620E-04   -.84593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21759e-09
Minuit parameter uncertainties:
  1  6.47969
  2  0.285708
  3  0.196194
  4  0.21492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384361': 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) = 5245.48809113
delta logL = 0.106452489648

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.943e+01  6.480e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.267e+00  2.857e-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.257e+00  2.149e-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:  5.562e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.07
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.27 +/- 0.29
Photon Flux (Free Index): 1.48e-07 +/- 5.32e-08
Energy Flux (Free Index): 5.90e-05 +/- 2.38e-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/384361/cmap_HighResolution_542332801_542592001_4FGL_J1422.3+3223_daily_bin1169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.61e-07', energy_flux2='5.90e-05', photon_flux_error='4.71e-08', dlogl='1.06e-01', energy_flux='5.27e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-09 11:59:09.306160', photon_index_error2='0.29', photon_index2='2.27', ts='31.96', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='0.54', time_epoch_completed='1631213949.31', return_code='0', job_id='384361', GAL2='1.26', EG2='0.56', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='5.32e-08', ts2='32.07', photon_index='2.40' WHERE bin_id='1169' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 384361: <4FGL_J1422.3+3223_daily_bin1169> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1169 215.577 32.3911 542332801 542592001 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 :                                   547.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

