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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1117
RA = 215.577, Dec = 32.3911
tmin = 528854401, tmax = 529113601
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='384279', job_status='RUN', time_executed='2021-09-09 11:50:04.630178', time_epoch_executed='1631213404.63' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384279

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384279/ft1_4FGL_J1422.3+3223_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384279/ft2_4FGL_J1422.3+3223_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384279/ft1_4FGL_J1422.3+3223_daily_bin1117.fits outfile=/scratch/kocevski/384279/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1117.fits ra=215.577 dec=32.3911 rad=12.0 tmin=528854401.0 tmax=529113601.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.45
user 3.22
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384279/ft1_filtered_4FGL_J1422.3+3223_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/384279/ft2_4FGL_J1422.3+3223_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/384279/ltcube_528854401_529113601_4FGL_J1422.3+3223_daily_bin1117.fits outfile=/scratch/kocevski/384279/expmap_528854401_529113601_4FGL_J1422.3+3223_daily_bin1117.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/384279/ltcube_528854401_529113601_4FGL_J1422.3+3223_daily_bin1117.fits
.....................!
real 190.19
user 184.91
sys 4.92

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/384279/ft1_filtered_4FGL_J1422.3+3223_daily_bin1117.fits scfile=/scratch/kocevski/384279/ft2_4FGL_J1422.3+3223_daily_bin1117.fits outfile=/scratch/kocevski/384279/cmap_528854401_529113601_4FGL_J1422.3+3223_daily_bin1117.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/384279/ft1_filtered_4FGL_J1422.3+3223_daily_bin1117.fits scfile=/scratch/kocevski/384279/ft2_4FGL_J1422.3+3223_daily_bin1117.fits outfile=/scratch/kocevski/384279/cmap_HighResolution_528854401_529113601_4FGL_J1422.3+3223_daily_bin1117.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8084       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23101E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1192       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.786       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2801       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.0748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.684       1.0000         .10000E-03   10000.    
    14 'norm      '    14.711       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16219E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.928       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2380       1.0000         .10000E-03   10000.    
    21 'norm      '    2.8443       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92324       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86978       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=   5569.286     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2248 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.061        .43279E-06** at limit **
   2  Prefactor     9.8120        24.126       -.32555E-07   -.20580E-04
   3  Prefactor     .10006E-03    66.025        .16471E-06** at limit **
   4  Prefactor     3.1191        3.3911        .52496E-08   -.27709E-03
   5  norm          .10000E-03    6.7884       -.26872E-06** at limit **
   6  Prefactor     .10000E-03    6.3781       -.52746E-07** at limit **
   7  norm          .10000E-03    1.0470       -.20104E-07** at limit **
   8  Prefactor     .10000E-03    5.8698       -.17960E-06** at limit **
   9  Prefactor     23.792        14.437        .17339E-05   -.17264E-05
  10  Prefactor     4.2801        3.6742       -.12482E-06   -.35252E-03
  11  norm          .10000E-03    3.9253       -.38055E-07** at limit **
  12  norm          7.0746        2.8461        .25468E-07    .20829E-04
  13  Prefactor     38.705        26.106       -.13298E-05   -.98028E-05
  14  norm          14.709        8.0195        .29012E-05   -.58000E-04
  15  Prefactor     .10000E-03    34.868        .14331E-05** at limit **
  16  norm          12.928        5.7060       -.12506E-06   -.62296E-04
  17  Prefactor     .10000E-03    20.939       -.48910E-06** at limit **
  18  norm          .10000E-03    4.0754       -.46731E-07** at limit **
  19  Prefactor     .10000E-03    4.6383       -.11533E-07** at limit **
  20  Prefactor     6.2334        7.7583       -.24062E-05   -.16179E-03
  21  norm          2.8448        1.7504        .18377E-06   -.12444E-03
  22  Normalizat    .92318        .17307       -.10801E-05    .42076E-04
  23  Prefactor     .86988        .17590        .41729E-06   -.44932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.81198
  Prefactor  = 0.00010006
  Prefactor  = 3.11909
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7923
  Prefactor  = 4.28014
  norm       = 0.0001
  norm       = 7.07461
  Prefactor  = 38.7052
  norm       = 14.7087
  Prefactor  = 0.0001
  norm       = 12.9283
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.23339
  norm       = 2.84475
  Normalizat = 0.92318
  Prefactor  = 0.869884
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.286     FROM HESSE     STATUS=OK           382 CALLS     2630 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.8120        24.159        .12795E-03   -1.5081    
   3  Prefactor     .10006E-03    59.144        .16775       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1191        3.3945        .13656E-03   -1.5355    
   5  norm          .10000E-03    36.534        .37623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0513        .74565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8874        .17647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.792        14.415        .82133E-04   -1.4732    
  10  Prefactor     4.2801        3.6916        .12558E-03   -1.5294    
  11  norm          .10000E-03    3.9261        .14440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.0746        2.8479        .77315E-04   -1.5176    
  13  Prefactor     38.705        26.183        .64443E-04   -1.4463    
  14  norm          14.709        7.9516        .10443E-03   -1.4941    
  15  Prefactor     .10000E-03    34.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.928        5.7124        .11140E-03   -1.4989    
  17  Prefactor     .10000E-03    20.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.0810        .14713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6470        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2334        7.8247        .16073E-03   -1.5209    
  21  norm          2.8448        1.7450        .71670E-04   -1.5371    
  22  Normalizat    .92318        .20264        .22986E-03   -.95650    
  23  Prefactor     .86988        .20556        .25297E-03   -.97202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42558e-10
Minuit parameter uncertainties:
  1  1.31561e-05
  2  24.1826
  3  0.00375696
  4  3.39474
  5  0.000590758
  6  1.2984e-05
  7  2.16105e-06
  8  4.17138e-05
  9  14.4173
  10  3.69175
  11  6.91464e-06
  12  2.84794
  13  26.1904
  14  7.95217
  15  9.91857e-05
  16  5.71264
  17  2.67721e-06
  18  8.58404e-06
  19  1.78938e-06
  20  7.82599
  21  1.74501
  22  0.202806
  23  0.205742
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.280e+00  3.692e+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:  8.699e-01  2.057e-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.232e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.09e-05

TS (Fixed Index): 1.92
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384279/likelihoodResults_528854401_529113601_4FGL_J1422.3+3223_daily_bin1117.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) = 5568.91576821
delta logL = 0.370253854358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5568.91199655
delta logL = 0.374025518006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7039       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0550       1.0000          .0000       10.000    
     3 'Normalizat'    .88998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89195       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=   5568.912     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7043        35.176        .61931E-02    .41201E-03
   2  Index         3.0549        3.4130        .16347        .96524E-04
   3  Normalizat    .89004        .54028E-01    .44773E-01    .12671E-04
   4  Prefactor     .89192        .55088E-01    .44902E-01    .93948E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70425
  Index      = 3.05491
  Normalizat = 0.890036
  Prefactor  = 0.891917
 **********
 **   18 **HESSE 
 **********

 FCN=   5568.912     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7043        3.7590        .81787E-04   -1.5379    
   2  Index         3.0549        .93792        .57393E-02   -.39957    
   3  Normalizat    .89004        .19389        .23360E-03   -.96811    
   4  Prefactor     .89192        .20353        .25015E-03   -.96424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53438e-11
Minuit parameter uncertainties:
  1  3.75934
  2  0.944521
  3  0.194047
  4  0.203701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384279': 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) = 5568.91199648
delta logL = 0.374025589578

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.704e+00  3.759e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.055e+00  9.445e-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.919e-01  2.037e-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.900e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 215.577 32.391
Photon Index (Free Index): 3.05 +/- 0.94
Photon Flux (Free Index): 6.21e-08 +/- 4.70e-08
Energy Flux (Free Index): 1.21e-05 +/- 8.89e-06

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/384279/cmap_HighResolution_528854401_529113601_4FGL_J1422.3+3223_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='1.21e-05', photon_flux_error='3.32e-08', dlogl='3.74e-01', energy_flux='1.26e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-09 12:00:04.540669', photon_index_error2='0.94', photon_index2='3.05', ts='1.92', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='8.89e-06', EG='0.92', time_epoch_completed='1631214004.54', return_code='0', job_id='384279', GAL2='0.89', EG2='0.89', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.70e-08', ts2='2.72', photon_index='2.40' WHERE bin_id='1117' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:00:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 384279: <4FGL_J1422.3+3223_daily_bin1117> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1117 215.577 32.3911 528854401 529113601 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 :                                   582.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

