/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 1 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 = 7534
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin134
RA = 215.577, Dec = 32.3911
tmin = 274060801, tmax = 274320001
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='379715', job_status='RUN', time_executed='2021-09-09 11:31:18.606437', time_epoch_executed='1631212278.61' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379715/ft1_4FGL_J1422.3+3223_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379715/ft2_4FGL_J1422.3+3223_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379715/ft1_4FGL_J1422.3+3223_daily_bin134.fits outfile=/scratch/kocevski/379715/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin134.fits ra=215.577 dec=32.3911 rad=12.0 tmin=274060801.0 tmax=274320001.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.64
user 3.43
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379715/ft1_filtered_4FGL_J1422.3+3223_daily_bin134.fits" evtable="EVENTS" scfile=/scratch/kocevski/379715/ft2_4FGL_J1422.3+3223_daily_bin134.fits sctable="SC_DATA" outfile=/scratch/kocevski/379715/ltcube_274060801_274320001_4FGL_J1422.3+3223_daily_bin134.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/379715/ft2_4FGL_J1422.3+3223_daily_bin134.fits
.....................!
real 11.84
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379715/ft1_filtered_4FGL_J1422.3+3223_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/379715/ft2_4FGL_J1422.3+3223_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/379715/ltcube_274060801_274320001_4FGL_J1422.3+3223_daily_bin134.fits outfile=/scratch/kocevski/379715/expmap_274060801_274320001_4FGL_J1422.3+3223_daily_bin134.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/379715/ltcube_274060801_274320001_4FGL_J1422.3+3223_daily_bin134.fits
.....................!
real 189.71
user 185.35
sys 4.01

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/379715/ft1_filtered_4FGL_J1422.3+3223_daily_bin134.fits scfile=/scratch/kocevski/379715/ft2_4FGL_J1422.3+3223_daily_bin134.fits outfile=/scratch/kocevski/379715/cmap_274060801_274320001_4FGL_J1422.3+3223_daily_bin134.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379715/ft1_filtered_4FGL_J1422.3+3223_daily_bin134.fits scfile=/scratch/kocevski/379715/ft2_4FGL_J1422.3+3223_daily_bin134.fits outfile=/scratch/kocevski/379715/cmap_HighResolution_274060801_274320001_4FGL_J1422.3+3223_daily_bin134.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.53
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0478       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7883       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 '    20.406       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0161       1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.5035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1186       1.0000         .10000E-03   10000.    
    14 'norm      '    45.993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.830       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2140       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11564E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0557       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0890       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=   6798.518     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2580 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9107       -.36433E-06** at limit **
   2  Prefactor     .10000E-03    13.053       -.34439E-06** at limit **
   3  Prefactor     72.745        96.669        .58972E-05    .14570E-03
   4  Prefactor     3.0493        3.8766        .90212E-06    .37869E-03
   5  norm          5.7922        17.528        .27500E-05    .11405E-03
   6  Prefactor     .10000E-03    19.992       -.79811E-06** at limit **
   7  norm          .10000E-03    2.7454       -.34305E-06** at limit **
   8  Prefactor     20.411        14.054        .49722E-06    .33210E-05
   9  Prefactor     .10000E-03    16.499       -.45448E-06** at limit **
  10  Prefactor     7.0192        4.8781        .75342E-06    .29965E-03
  11  norm          .10000E-03    7.7394       -.14018E-06** at limit **
  12  norm          8.5028        3.3228       -.14780E-06    .21766E-03
  13  Prefactor     7.1302        28.380        .25434E-05    .44159E-04
  14  norm          45.993        11.423        .51304E-06    .38193E-03
  15  Prefactor     .10000E-03    25.533        .22387E-07** at limit **
  16  norm          .10000E-03    1.3416       -.22888E-06** at limit **
  17  Prefactor     27.865        35.078        .15755E-05    .12237E-03
  18  norm          2.2127        7.0986        .83778E-06    .24975E-03
  19  Prefactor     .10000E-03    17.313       -.83678E-06** at limit **
  20  Prefactor     .10000E-03    12.504       -.98109E-06** at limit **
  21  norm          .10000E-03    .65885       -.73583E-06** at limit **
  22  Normalizat    1.0550        .24067       -.13616E-04    .42970E-03
  23  Prefactor     1.0895        .22569        .12572E-04    .27698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.7447
  Prefactor  = 3.04928
  norm       = 5.7922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.4112
  Prefactor  = 0.0001
  Prefactor  = 7.01921
  norm       = 0.0001
  norm       = 8.50279
  Prefactor  = 7.13024
  norm       = 45.9932
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.8652
  norm       = 2.21269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05502
  Prefactor  = 1.08953
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.518     FROM HESSE     STATUS=OK           364 CALLS     2944 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     72.745        97.159        .23568E-03   -1.4000    
   4  Prefactor     3.0493        3.8689        .17456E-03   -1.5359    
   5  norm          5.7922        17.519        .16694E-03   -1.5227    
   6  Prefactor     .10000E-03    20.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7772        .13339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.411        14.029        .88666E-04   -1.4804    
   9  Prefactor     .10000E-03    16.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0192        4.8726        .14206E-03   -1.5178    
  11  norm          .10000E-03    7.7627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.5028        3.3253        .90108E-04   -1.5125    
  13  Prefactor     7.1302        28.353        .15035E-03   -1.5174    
  14  norm          45.993        11.420        .59121E-04   -1.4351    
  15  Prefactor     .10000E-03    25.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3473        .93318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.865        35.116        .75941E-04   -1.4652    
  18  norm          2.2127        7.1026        .27642E-03   -1.5410    
  19  Prefactor     .10000E-03    17.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0065        .12752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0550        .24002        .26930E-03   -.91209    
  23  Prefactor     1.0895        .22804        .27010E-03   -.89802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74465e-10
Minuit parameter uncertainties:
  1  4.51963e-05
  2  2.4562e-05
  3  97.372
  4  3.86921
  5  17.5346
  6  0.000152344
  7  1.83907e-05
  8  14.0315
  9  6.31219e-05
  10  4.87289
  11  1.49752e-05
  12  3.32538
  13  28.4069
  14  11.4205
  15  3.66321e-05
  16  1.1162e-05
  17  35.1419
  18  7.10528
  19  0.000137619
  20  4.44865e-05
  21  1.39285e-05
  22  0.240264
  23  0.228242
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  7.019e+00  4.873e+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.090e+00  2.282e-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:  1.055e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.33e-08 +/- 4.39e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.44e-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) = 6798.4738428
delta logL = 0.0444077966977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6798.46997246
delta logL = 0.0482781344617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7650       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5906       1.0000          .0000       10.000    
     3 'Normalizat'    1.0357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1013       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=   6798.470     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7639        96.226        .38567E-02    .21346E-03
   2  Index         2.5907        6.2678        .14700        .99326E-04
   3  Normalizat    1.0358        .10481        .61377E-01   -.47962E-05
   4  Prefactor     1.1012        .81253E-01    .60783E-01    .13104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.76393
  Index      = 2.59065
  Normalizat = 1.03582
  Prefactor  = 1.10118
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.470     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7639        4.7549        .12742E-03   -1.5188    
   2  Index         2.5907        .61450        .78213E-02   -.50279    
   3  Normalizat    1.0358        .22884        .27145E-03   -.91840    
   4  Prefactor     1.1012        .22530        .26882E-03   -.89429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41318e-09
Minuit parameter uncertainties:
  1  4.75512
  2  0.616531
  3  0.229058
  4  0.225495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379715': 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) = 6798.46997228
delta logL = 0.0482783181942

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.764e+00  4.755e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.591e+00  6.165e-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.101e+00  2.255e-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:  1.036e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.77
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.59 +/- 0.62
Photon Flux (Free Index): 7.87e-08 +/- 6.64e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.32e-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/379715/cmap_HighResolution_274060801_274320001_4FGL_J1422.3+3223_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.33e-08', energy_flux2='2.08e-05', photon_flux_error='4.39e-08', dlogl='4.83e-02', energy_flux='2.07e-05', photon_flux2='7.87e-08', job_status='DONE', time_completed='2021-09-09 11:41:08.828359', photon_index_error2='0.62', photon_index2='2.59', ts='4.65', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='1.06', time_epoch_completed='1631212868.83', return_code='0', job_id='379715', GAL2='1.10', EG2='1.04', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.64e-08', ts2='4.77', photon_index='2.40' WHERE bin_id='134' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:41:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 379715: <4FGL_J1422.3+3223_daily_bin134> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin134> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:08 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:09 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:31:09 2021
Terminated at Thu Sep  9 11:41:09 2021
Results reported at Thu Sep  9 11:41:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin134 215.577 32.3911 274060801 274320001 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 :                                   587.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            601 sec.

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

