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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1183
RA = 215.577, Dec = 32.3911
tmin = 545961601, tmax = 546220801
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='384382', job_status='RUN', time_executed='2021-09-09 11:48:52.184505', time_epoch_executed='1631213332.18' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384382

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384382/ft1_4FGL_J1422.3+3223_daily_bin1183.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384382/ft2_4FGL_J1422.3+3223_daily_bin1183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384382/ft1_4FGL_J1422.3+3223_daily_bin1183.fits outfile=/scratch/kocevski/384382/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1183.fits ra=215.577 dec=32.3911 rad=12.0 tmin=545961601.0 tmax=546220801.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.03
user 3.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384382/ft1_filtered_4FGL_J1422.3+3223_daily_bin1183.fits" evtable="EVENTS" scfile=/scratch/kocevski/384382/ft2_4FGL_J1422.3+3223_daily_bin1183.fits sctable="SC_DATA" outfile=/scratch/kocevski/384382/ltcube_545961601_546220801_4FGL_J1422.3+3223_daily_bin1183.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/384382/ft2_4FGL_J1422.3+3223_daily_bin1183.fits
.....................!
real 11.99
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384382/ft1_filtered_4FGL_J1422.3+3223_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/384382/ft2_4FGL_J1422.3+3223_daily_bin1183.fits sctable="SC_DATA" expcube=/scratch/kocevski/384382/ltcube_545961601_546220801_4FGL_J1422.3+3223_daily_bin1183.fits outfile=/scratch/kocevski/384382/expmap_545961601_546220801_4FGL_J1422.3+3223_daily_bin1183.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/384382/ltcube_545961601_546220801_4FGL_J1422.3+3223_daily_bin1183.fits
.....................!
real 190.55
user 185.70
sys 4.45

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/384382/ft1_filtered_4FGL_J1422.3+3223_daily_bin1183.fits scfile=/scratch/kocevski/384382/ft2_4FGL_J1422.3+3223_daily_bin1183.fits outfile=/scratch/kocevski/384382/cmap_545961601_546220801_4FGL_J1422.3+3223_daily_bin1183.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384382/ft1_filtered_4FGL_J1422.3+3223_daily_bin1183.fits scfile=/scratch/kocevski/384382/ft2_4FGL_J1422.3+3223_daily_bin1183.fits outfile=/scratch/kocevski/384382/cmap_HighResolution_545961601_546220801_4FGL_J1422.3+3223_daily_bin1183.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2575       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.627       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.005       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86484       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83839       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=   1117.107     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2468 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.660        .14080E-07** at limit **
   2  Prefactor     61.836        48.482       -.13948E-05   -.42113E-05
   3  Prefactor     .10001E-03    410.35       -.71775E-04** at limit **
   4  Prefactor     .10000E-03    3.6534        .26176E-07** at limit **
   5  norm          4.3541        770.87        .35850E-03    .19548E-04
   6  Prefactor     .10000E-03    76.695       -.52890E-04** at limit **
   7  norm          .10000E-03    9.2227       -.61357E-07** at limit **
   8  Prefactor     .10000E-03    47.163        .81546E-05** at limit **
   9  Prefactor     .10000E-03    105.88       -.55748E-04** at limit **
  10  Prefactor     34.629        23.262        .12905E-05   -.17819E-03
  11  norm          .10000E-03    45.544       -.25455E-04** at limit **
  12  norm          .10000E-03    4.4060        .77343E-07** at limit **
  13  Prefactor     .10000E-03    769.93       -.66938E-03** at limit **
  14  norm          .10000E-03    37.967        .46726E-05** at limit **
  15  Prefactor     .10000E-03    428.60       -.10819E-03** at limit **
  16  norm          15.290        12.822        .36972E-06   -.92421E-04
  17  Prefactor     .10001E-03    223.33        .25673E-03** at limit **
  18  norm          .10000E-03    62.317        .60783E-04** at limit **
  19  Prefactor     29.939        186.67       -.10379E-03   -.88067E-04
  20  Prefactor     .10000E-03    113.48       -.22386E-04** at limit **
  21  norm          .10003E-03    126.62        .44782E-04** at limit **
  22  Normalizat    .86482        .45616       -.17350E-05   -.13002E-03
  23  Prefactor     .83838        .40165       -.10799E-05   -.12283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 61.8362
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 4.35409
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.6286
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 15.29
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 29.939
  Prefactor  = 0.000100003
  norm       = 0.000100033
  Normalizat = 0.864824
  Prefactor  = 0.838381
 **********
 **   18 **HESSE 
 **********

 FCN=   1117.107     FROM HESSE     STATUS=OK           350 CALLS     2818 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.662        .11150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.836        48.615        .51022E-04   -1.4134    
   3  Prefactor     .10001E-03    410.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6569        .62397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3541        757.79        .19527E-03   -1.5291    
   6  Prefactor     .10000E-03    76.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.2252        .99153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    105.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.629        23.263        .68100E-04   -1.4530    
  11  norm          .10000E-03    45.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.4423        .68391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    767.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    37.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    428.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.290        12.849        .10243E-03   -1.4926    
  17  Prefactor     .10001E-03    223.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    62.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.939        188.67        .73144E-04   -1.4613    
  20  Prefactor     .10000E-03    113.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10003E-03    127.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86482        .56727        .26639E-03   -.97707    
  23  Prefactor     .83838        .49941        .23892E-03   -.98329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16039e-09
Minuit parameter uncertainties:
  1  4.3964e-06
  2  48.6458
  3  0.00313241
  4  2.40146e-07
  5  116.41
  6  0.000744764
  7  4.40959e-05
  8  0.000207171
  9  0.000420469
  10  23.2692
  11  7.49676e-05
  12  1.74598e-05
  13  0.000644897
  14  0.00028061
  15  0.000176435
  16  12.8515
  17  0.00224226
  18  0.000324923
  19  151.02
  20  0.00115428
  21  0.0041235
  22  0.571237
  23  0.502153
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.463e+01  2.327e+01  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:  8.384e-01  5.022e-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:  8.648e-01  5.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.94
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.12e-07 +/- 2.10e-07
Energy Flux (Fixed Index): 1.02e-04 +/- 6.86e-05

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

Saving results to:
/scratch/kocevski/384382/likelihoodResults_545961601_546220801_4FGL_J1422.3+3223_daily_bin1183.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) = 1117.03339853
delta logL = 0.0738809925845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1117.0130184
delta logL = 0.0942611284631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.479       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1510       1.0000          .0000       10.000    
     3 'Normalizat'    .90020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80955       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=   1117.013     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .67E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.485        26.682        .12423E-05   -.15436E-04
   2  Index         2.1506        .54366        .87502E-05   -.37727E-05
   3  Normalizat    .89976        .45124       -.16964E-05   -.30155E-04
   4  Prefactor     .81005        .39827       -.36055E-07   -.44309E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.4849
  Index      = 2.15062
  Normalizat = 0.899761
  Prefactor  = 0.810054
 **********
 **   18 **HESSE 
 **********

 FCN=   1117.013     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.485        26.804        .63793E-04   -1.4450    
   2  Index         2.1506        .54640        .40077E-02   -.60636    
   3  Normalizat    .89976        .55777        .26164E-03   -.96469    
   4  Prefactor     .81005        .49337        .24239E-03   -.99359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29224e-11
Minuit parameter uncertainties:
  1  26.8117
  2  0.548021
  3  0.561408
  4  0.496096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384382': 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) = 1117.01301748
delta logL = 0.0942620488051

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.948e+01  2.681e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.151e+00  5.480e-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:  8.101e-01  4.961e-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:  8.998e-01  5.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.15 +/- 0.55
Photon Flux (Free Index): 2.61e-07 +/- 2.09e-07
Energy Flux (Free Index): 1.29e-04 +/- 1.18e-04

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/384382/cmap_HighResolution_545961601_546220801_4FGL_J1422.3+3223_daily_bin1183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-02', comment='SUCCESS', photon_flux='3.12e-07', energy_flux2='1.29e-04', photon_flux_error='2.10e-07', dlogl='9.43e-02', energy_flux='1.02e-04', photon_flux2='2.61e-07', job_status='DONE', time_completed='2021-09-09 11:55:18.147043', photon_index_error2='0.55', photon_index2='2.15', ts='3.94', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='7.73e-07', energy_flux_error2='1.18e-04', EG='0.86', time_epoch_completed='1631213718.15', return_code='0', job_id='384382', GAL2='0.81', EG2='0.90', return_code2='0', energy_flux_error='6.86e-05', photon_flux_error2='2.09e-07', ts2='4.08', photon_index='2.40' WHERE bin_id='1183' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:55:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 384382: <4FGL_J1422.3+3223_daily_bin1183> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1183 215.577 32.3911 545961601 546220801 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 :                                   369.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            538 sec.

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

