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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1338
RA = 215.577, Dec = 32.3911
tmin = 586137601, tmax = 586396801
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='384624', job_status='RUN', time_executed='2021-09-09 11:49:52.015151', time_epoch_executed='1631213392.02' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384624

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384624/ft1_4FGL_J1422.3+3223_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384624/ft2_4FGL_J1422.3+3223_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384624/ft1_4FGL_J1422.3+3223_daily_bin1338.fits outfile=/scratch/kocevski/384624/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1338.fits ra=215.577 dec=32.3911 rad=12.0 tmin=586137601.0 tmax=586396801.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.50
user 4.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384624/ft2_4FGL_J1422.3+3223_daily_bin1338.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/384624/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1338.fits evtable="EVENTS" outfile="/scratch/kocevski/384624/ft1_filtered_4FGL_J1422.3+3223_daily_bin1338.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.48
user 0.30
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384624/ft1_filtered_4FGL_J1422.3+3223_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/384624/ft2_4FGL_J1422.3+3223_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/384624/ltcube_586137601_586396801_4FGL_J1422.3+3223_daily_bin1338.fits outfile=/scratch/kocevski/384624/expmap_586137601_586396801_4FGL_J1422.3+3223_daily_bin1338.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/384624/ltcube_586137601_586396801_4FGL_J1422.3+3223_daily_bin1338.fits
.....................!
real 190.25
user 185.11
sys 4.78

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/384624/ft1_filtered_4FGL_J1422.3+3223_daily_bin1338.fits scfile=/scratch/kocevski/384624/ft2_4FGL_J1422.3+3223_daily_bin1338.fits outfile=/scratch/kocevski/384624/cmap_586137601_586396801_4FGL_J1422.3+3223_daily_bin1338.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384624/ft1_filtered_4FGL_J1422.3+3223_daily_bin1338.fits scfile=/scratch/kocevski/384624/ft2_4FGL_J1422.3+3223_daily_bin1338.fits outfile=/scratch/kocevski/384624/cmap_HighResolution_586137601_586396801_4FGL_J1422.3+3223_daily_bin1338.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/384624/ft1_filtered_4FGL_J1422.3+3223_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/384624/ft2_4FGL_J1422.3+3223_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384624/Model_4FGL_J1422.3+3223_daily_bin1338.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/384624/ft1_filtered_4FGL_J1422.3+3223_daily_bin1338.fits....................!
real 38.75
user 37.41
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    31.430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10554E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11942E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.560       1.0000         .10000E-03   10000.    
    11 'norm      '    23.059       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4180       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    89.639       1.0000         .10000E-03   10000.    
    16 'norm      '    5.5490       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.546       1.0000         .10000E-03   10000.    
    18 'norm      '    16.477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.502       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12087E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4592       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83514       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98058       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=   4469.116     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2505 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.271        .53802E-06** at limit **
   2  Prefactor     9.1529        42.671       -.47969E-04    .60144E-05
   3  Prefactor     .10000E-03    49.942        .34154E-05** at limit **
   4  Prefactor     .10000E-03    3.3980        .13267E-06** at limit **
   5  norm          31.429        20.766       -.95411E-06    .17516E-04
   6  Prefactor     .10000E-03    8.0630       -.25630E-06** at limit **
   7  norm          .10000E-03    8.2561        .35741E-06** at limit **
   8  Prefactor     .10000E-03    16.077        .11542E-05** at limit **
   9  Prefactor     25.192        24.258       -.59055E-05    .69967E-05
  10  Prefactor     37.560        9.1177       -.24858E-06    .63018E-04
  11  norm          23.063        19.223        .19494E-05   -.44864E-05
  12  norm          5.4183        3.2608       -.18404E-06   -.69735E-05
  13  Prefactor     .10000E-03    16.209        .42054E-06** at limit **
  14  norm          .10000E-03    10.749       -.53035E-06** at limit **
  15  Prefactor     89.632        63.757       -.56343E-05    .13881E-04
  16  norm          5.5494        4.9170       -.40671E-06   -.44065E-04
  17  Prefactor     40.543        51.614       -.29874E-05    .14252E-04
  18  norm          16.477        11.649        .69439E-06    .26969E-04
  19  Prefactor     34.488        25.166       -.72319E-05    .45379E-04
  20  Prefactor     .10000E-03    25.110       -.16677E-05** at limit **
  21  norm          2.4560        2.4163        .92306E-07   -.45072E-04
  22  Normalizat    .83533        .22991        .88879E-05   -.15616E-03
  23  Prefactor     .98037        .21904       -.13747E-05    .23350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.15285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.4287
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.1919
  Prefactor  = 37.5605
  norm       = 23.063
  norm       = 5.41826
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 89.6324
  norm       = 5.54935
  Prefactor  = 40.5435
  norm       = 16.4768
  Prefactor  = 34.4881
  Prefactor  = 0.000100001
  norm       = 2.456
  Normalizat = 0.835332
  Prefactor  = 0.980366
 **********
 **   18 **HESSE 
 **********

 FCN=   4469.116     FROM HESSE     STATUS=OK           372 CALLS     2877 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1529        42.865        .13232E-03   -1.5103    
   3  Prefactor     .10000E-03    49.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4311        .12027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          31.429        20.781        .71470E-04   -1.4586    
   6  Prefactor     .10000E-03    8.0642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.5765        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.192        24.305        .79796E-04   -1.4704    
  10  Prefactor     37.560        9.1385        .65396E-04   -1.4481    
  11  norm          23.063        19.202        .83415E-04   -1.4747    
  12  norm          5.4183        3.2658        .90428E-04   -1.5242    
  13  Prefactor     .10000E-03    16.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     89.632        63.720        .21220E-03   -1.3812    
  16  norm          5.5494        4.9216        .13483E-03   -1.5237    
  17  Prefactor     40.543        51.612        .62951E-04   -1.4434    
  18  norm          16.477        11.648        .98667E-04   -1.4896    
  19  Prefactor     34.488        25.090        .68224E-04   -1.4533    
  20  Prefactor     .10000E-03    25.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4560        2.3968        .96805E-04   -1.5395    
  22  Normalizat    .83533        .26977        .28299E-03   -.98771    
  23  Prefactor     .98037        .25944        .26591E-03   -.93387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32158e-09
Minuit parameter uncertainties:
  1  9.67074e-05
  2  39.6613
  3  7.61543e-05
  4  1.72593e-05
  5  20.7859
  6  1.13838e-05
  7  5.21472e-05
  8  0.00013073
  9  24.3141
  10  9.13884
  11  19.207
  12  3.26591
  13  2.02483e-05
  14  7.59689e-05
  15  63.7687
  16  4.92199
  17  51.6694
  18  11.6494
  19  25.0976
  20  0.000271785
  21  2.39687
  22  0.270202
  23  0.259766
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.756e+01  9.139e+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:  9.804e-01  2.598e-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.353e-01  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.97
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.38e-07 +/- 8.23e-08
Energy Flux (Fixed Index): 1.11e-04 +/- 2.70e-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) = 4468.97786676
delta logL = 0.138540293096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4468.90731615
delta logL = 0.209090910344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.440       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2412       1.0000          .0000       10.000    
     3 'Normalizat'    .86528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95878       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=   4468.907     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.447        18.361        .15568E-02    .56304E-05
   2  Index         2.2415        .37765        .72860E-01    .48268E-04
   3  Normalizat    .86493        .22262        .44456E-01    .10869E-04
   4  Prefactor     .95918        .22197        .45750E-01    .66187E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.4472
  Index      = 2.24148
  Normalizat = 0.864934
  Prefactor  = 0.959184
 **********
 **   18 **HESSE 
 **********

 FCN=   4468.907     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.447        11.352        .62271E-04   -1.4419    
   2  Index         2.2415        .23987        .31399E-02   -.58441    
   3  Normalizat    .86493        .25626        .27860E-03   -.97703    
   4  Prefactor     .95918        .25483        .26851E-03   -.94103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26649e-10
Minuit parameter uncertainties:
  1  11.3523
  2  0.240003
  3  0.256623
  4  0.25515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384624': 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) = 4468.90731376
delta logL = 0.209093295953

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.145e+01  1.135e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.241e+00  2.400e-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:  9.592e-01  2.551e-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.649e-01  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.78
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.24 +/- 0.24
Photon Flux (Free Index): 3.06e-07 +/- 9.11e-08
Energy Flux (Free Index): 1.27e-04 +/- 4.43e-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/384624/cmap_HighResolution_586137601_586396801_4FGL_J1422.3+3223_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.38e-07', energy_flux2='1.27e-04', photon_flux_error='8.23e-08', dlogl='2.09e-01', energy_flux='1.11e-04', photon_flux2='3.06e-07', job_status='DONE', time_completed='2021-09-09 11:58:49.441453', photon_index_error2='0.24', photon_index2='2.24', ts='40.97', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.43e-05', EG='0.84', time_epoch_completed='1631213929.44', return_code='0', job_id='384624', GAL2='0.96', EG2='0.86', return_code2='0', energy_flux_error='2.70e-05', photon_flux_error2='9.11e-08', ts2='40.78', photon_index='2.40' WHERE bin_id='1338' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:58:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 384624: <4FGL_J1422.3+3223_daily_bin1338> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1338 215.577 32.3911 586137601 586396801 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 :                                   487.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            731 sec.

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

