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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1168
RA = 215.577, Dec = 32.3911
tmin = 542073601, tmax = 542332801
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='384359', job_status='RUN', time_executed='2021-09-09 11:46:32.375092', time_epoch_executed='1631213192.38' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384359/ft1_4FGL_J1422.3+3223_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384359/ft2_4FGL_J1422.3+3223_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384359/ft1_4FGL_J1422.3+3223_daily_bin1168.fits outfile=/scratch/kocevski/384359/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1168.fits ra=215.577 dec=32.3911 rad=12.0 tmin=542073601.0 tmax=542332801.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.66
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384359/ft1_filtered_4FGL_J1422.3+3223_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/384359/ft2_4FGL_J1422.3+3223_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/384359/ltcube_542073601_542332801_4FGL_J1422.3+3223_daily_bin1168.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/384359/ft2_4FGL_J1422.3+3223_daily_bin1168.fits
.....................!
real 15.31
user 14.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384359/ft1_filtered_4FGL_J1422.3+3223_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/384359/ft2_4FGL_J1422.3+3223_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/384359/ltcube_542073601_542332801_4FGL_J1422.3+3223_daily_bin1168.fits outfile=/scratch/kocevski/384359/expmap_542073601_542332801_4FGL_J1422.3+3223_daily_bin1168.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/384359/ltcube_542073601_542332801_4FGL_J1422.3+3223_daily_bin1168.fits
.....................!
real 191.24
user 186.14
sys 4.69

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/384359/ft1_filtered_4FGL_J1422.3+3223_daily_bin1168.fits scfile=/scratch/kocevski/384359/ft2_4FGL_J1422.3+3223_daily_bin1168.fits outfile=/scratch/kocevski/384359/cmap_542073601_542332801_4FGL_J1422.3+3223_daily_bin1168.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19158       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .46414       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.260       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.131       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6530       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2358       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.205       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.899       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10728E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92410       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0960       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=   6042.310     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2602 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24977        16.565       -.55265E-06   -.18515E-03
   2  Prefactor     .10000E-03    9.4834        .21352E-05** at limit **
   3  Prefactor     .10000E-03    116.43        .34426E-05** at limit **
   4  Prefactor     .10000E-03    1.4329       -.28922E-07** at limit **
   5  norm          .56465        8.0826       -.12231E-05   -.18165E-04
   6  Prefactor     .10000E-03    5.4644        .10863E-06** at limit **
   7  norm          .10000E-03    1.3733        .32663E-07** at limit **
   8  Prefactor     .10000E-03    11.050        .86630E-05** at limit **
   9  Prefactor     20.256        14.092       -.67834E-05    .12130E-03
  10  Prefactor     14.133        4.5985       -.14225E-06    .50470E-04
  11  norm          .10000E-03    12.656       -.43075E-05** at limit **
  12  norm          3.6531        2.3902       -.51954E-07    .78763E-05
  13  Prefactor     .10000E-03    10.222       -.46963E-05** at limit **
  14  norm          .10000E-03    2.3466        .38102E-07** at limit **
  15  Prefactor     6.2432        29.563       -.13754E-05    .21541E-05
  16  norm          .10000E-03    3.7714       -.39994E-07** at limit **
  17  Prefactor     12.236        28.953       -.42969E-05    .25219E-04
  18  norm          .10000E-03    2.5523       -.16408E-07** at limit **
  19  Prefactor     14.902        10.920        .16184E-05   -.96740E-04
  20  Prefactor     .10000E-03    6.0717       -.99902E-07** at limit **
  21  norm          .10000E-03    .74838       -.16318E-06** at limit **
  22  Normalizat    .92376        .17051        .22601E-05    .19349E-04
  23  Prefactor     1.0962        .17511       -.55084E-06    .17868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.249769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.564646
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 20.2561
  Prefactor  = 14.1325
  norm       = 0.000100002
  norm       = 3.65309
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.24323
  norm       = 0.0001
  Prefactor  = 12.2361
  norm       = 0.0001
  Prefactor  = 14.9024
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.923764
  Prefactor  = 1.09621
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.310     FROM HESSE     STATUS=OK           376 CALLS     2978 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24977        20.934        .86643E-01   -1.5608    
   2  Prefactor     .10000E-03    9.4778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    117.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4450        .90828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .56465        34.427        .42433E-02   -1.5558    
   6  Prefactor     .10000E-03    5.4700        .17747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3856        .88939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.256        14.261        .88984E-04   -1.4808    
  10  Prefactor     14.133        4.6106        .90741E-04   -1.4956    
  11  norm          .10000E-03    12.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6531        2.3927        .94145E-04   -1.5326    
  13  Prefactor     .10000E-03    10.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3685        .11626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2432        29.548        .16075E-03   -1.5208    
  16  norm          .10000E-03    3.9342        .29463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.236        29.033        .11466E-03   -1.5008    
  18  norm          .10000E-03    2.5541        .12128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.902        10.885        .10377E-03   -1.4936    
  20  Prefactor     .10000E-03    6.1657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6982        .12884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92376        .20297        .24048E-03   -.95630    
  23  Prefactor     1.0962        .20882        .24170E-03   -.89588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03544e-07
Minuit parameter uncertainties:
  1  4.57399
  2  4.74109e-05
  3  0.000386495
  4  3.34874e-06
  5  8.82243
  6  1.87547e-05
  7  4.48833e-06
  8  0.00030978
  9  14.2635
  10  4.61073
  11  0.000334918
  12  2.39278
  13  0.000122405
  14  5.1198e-06
  15  27.186
  16  8.05935e-06
  17  29.0667
  18  2.52443e-06
  19  10.8862
  20  1.41091e-05
  21  3.12854e-05
  22  0.203141
  23  0.208978
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.413e+01  4.611e+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.096e+00  2.090e-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:  9.238e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.11
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.27e-07 +/- 4.15e-08
Energy Flux (Fixed Index): 4.17e-05 +/- 1.36e-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) = 6042.25243875
delta logL = 0.0575385098491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6042.23679828
delta logL = 0.0731789811853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.178       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2774       1.0000          .0000       10.000    
     3 'Normalizat'    .93731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0869       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=   6042.237     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      231 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.178        80.459        .25701E-02    .73582E-03
   2  Index         2.2775        3.2414        .11346        .74163E-04
   3  Normalizat    .93731        .19790        .45377E-01    .12006E-04
   4  Prefactor     1.0869        .15215        .54869E-01    .68848E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1781
  Index      = 2.27747
  Normalizat = 0.937307
  Prefactor  = 1.08693
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.237     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.178        5.6290        .96236E-04   -1.4929    
   2  Index         2.2775        .32240        .46446E-02   -.57580    
   3  Normalizat    .93731        .19319        .23900E-03   -.95161    
   4  Prefactor     1.0869        .20636        .24260E-03   -.89886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2122e-10
Minuit parameter uncertainties:
  1  5.62924
  2  0.322723
  3  0.193333
  4  0.206508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384359': 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) = 6042.23679828
delta logL = 0.0731789866795

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.518e+01  5.629e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.277e+00  3.227e-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.087e+00  2.065e-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:  9.373e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.19
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.28 +/- 0.32
Photon Flux (Free Index): 1.17e-07 +/- 4.75e-08
Energy Flux (Free Index): 4.59e-05 +/- 2.03e-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/384359/cmap_HighResolution_542073601_542332801_4FGL_J1422.3+3223_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.27e-07', energy_flux2='4.59e-05', photon_flux_error='4.15e-08', dlogl='7.32e-02', energy_flux='4.17e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-09 11:56:19.279285', photon_index_error2='0.32', photon_index2='2.28', ts='28.11', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.92', time_epoch_completed='1631213779.28', return_code='0', job_id='384359', GAL2='1.09', EG2='0.94', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.75e-08', ts2='28.19', photon_index='2.40' WHERE bin_id='1168' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:56:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 384359: <4FGL_J1422.3+3223_daily_bin1168> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1168> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:18 2021
Job was executed on host(s) <bullet0138>, 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:56:20 2021
Results reported at Thu Sep  9 11:56:20 2021

Your job looked like:

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

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

