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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1529
RA = 215.577, Dec = 32.3911
tmin = 635644801, tmax = 635904001
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='385931', job_status='RUN', time_executed='2021-09-09 11:53:24.705163', time_epoch_executed='1631213604.71' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385931/ft1_4FGL_J1422.3+3223_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385931/ft2_4FGL_J1422.3+3223_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385931/ft1_4FGL_J1422.3+3223_daily_bin1529.fits outfile=/scratch/kocevski/385931/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1529.fits ra=215.577 dec=32.3911 rad=12.0 tmin=635644801.0 tmax=635904001.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.30
user 4.06
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385931/ft2_4FGL_J1422.3+3223_daily_bin1529.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/385931/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1529.fits evtable="EVENTS" outfile="/scratch/kocevski/385931/ft1_filtered_4FGL_J1422.3+3223_daily_bin1529.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.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385931/ft1_filtered_4FGL_J1422.3+3223_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/385931/ft2_4FGL_J1422.3+3223_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/385931/ltcube_635644801_635904001_4FGL_J1422.3+3223_daily_bin1529.fits outfile=/scratch/kocevski/385931/expmap_635644801_635904001_4FGL_J1422.3+3223_daily_bin1529.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/385931/ltcube_635644801_635904001_4FGL_J1422.3+3223_daily_bin1529.fits
.....................!
real 190.95
user 185.69
sys 4.89

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/385931/ft1_filtered_4FGL_J1422.3+3223_daily_bin1529.fits scfile=/scratch/kocevski/385931/ft2_4FGL_J1422.3+3223_daily_bin1529.fits outfile=/scratch/kocevski/385931/cmap_635644801_635904001_4FGL_J1422.3+3223_daily_bin1529.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385931/ft1_filtered_4FGL_J1422.3+3223_daily_bin1529.fits scfile=/scratch/kocevski/385931/ft2_4FGL_J1422.3+3223_daily_bin1529.fits outfile=/scratch/kocevski/385931/cmap_HighResolution_635644801_635904001_4FGL_J1422.3+3223_daily_bin1529.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7249       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    61.581       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84260       1.0000         .10000E-03   10000.    
     5 'norm      '    10.307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18235E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.483       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1923       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0036       1.0000         .10000E-03   10000.    
    15 'Prefactor '    98.147       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.925       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.069       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8353       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .47427       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1999       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4746.043     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     2954 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6989        17.636        .13570E-03   -.75650E-04
   2  Prefactor     .10000E-03    10.727        .18142E-02** at limit **
   3  Prefactor     61.586        76.485        .51132E-04   -.73372E-05
   4  Prefactor     .84462        2.9249        .21348E-03   -.82862E-04
   5  norm          10.305        11.773        .12480E-03    .15486E-05
   6  Prefactor     .10000E-03    20.497        .18142E-02** at limit **
   7  norm          .10000E-03    1.7353        .88373E-03** at limit **
   8  Prefactor     43.532        19.024        .60708E-04    .13165E-03
   9  Prefactor     .10000E-03    110.20        .44752E-02** at limit **
  10  Prefactor     15.483        5.1110        .85263E-04    .74668E-05
  11  norm          .10000E-03    6.4488        .17083E-02** at limit **
  12  norm          1.1920        2.3194        .14234E-03    .16238E-03
  13  Prefactor     .10000E-03    8.2844        .18142E-02** at limit **
  14  norm          2.9932        8.3096        .23420E-03    .11038E-03
  15  Prefactor     98.136        66.160        .40576E-04    .64778E-04
  16  norm          .10000E-03    1.7045        .87651E-03** at limit **
  17  Prefactor     13.921        25.669        .10733E-03    .13875E-04
  18  norm          .10000E-03    2.7631        .11183E-02** at limit **
  19  Prefactor     11.072        12.337        .12042E-03    .19826E-05
  20  Prefactor     .10000E-03    3.4674        .12499E-02** at limit **
  21  norm          1.8354        1.4965        .72506E-04    .14974E-03
  22  Normalizat    .47413        .22541        .30395E-03   -.14711E-03
  23  Prefactor     1.2000        .22614        .21050E-03   -.11556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.69887
  Prefactor  = 0.0001
  Prefactor  = 61.5859
  Prefactor  = 0.844616
  norm       = 10.3052
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.5316
  Prefactor  = 0.0001
  Prefactor  = 15.4834
  norm       = 0.0001
  norm       = 1.19199
  Prefactor  = 0.0001
  norm       = 2.99323
  Prefactor  = 98.1357
  norm       = 0.0001
  Prefactor  = 13.9205
  norm       = 0.0001
  Prefactor  = 11.0717
  Prefactor  = 0.0001
  norm       = 1.83545
  Normalizat = 0.474133
  Prefactor  = 1.20001
 **********
 **   18 **HESSE 
 **********

 FCN=   4746.043     FROM HESSE     STATUS=OK           346 CALLS     3300 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6989        17.635        .54281E-05   -1.5118    
   2  Prefactor     .10000E-03    10.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     61.586        76.486        .10226E-04   -1.4137    
   4  Prefactor     .84462        2.9245        .85394E-05   -1.5524    
   5  norm          10.305        11.772        .49921E-05   -1.5066    
   6  Prefactor     .10000E-03    20.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7354        .17675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.532        18.942        .12142E-04   -1.4387    
   9  Prefactor     .10000E-03    110.61        .89504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.483        5.1110        .34105E-05   -1.4921    
  11  norm          .10000E-03    6.4489        .34165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1920        2.3194        .56936E-05   -1.5490    
  13  Prefactor     .10000E-03    8.2846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9932        8.3059        .93682E-05   -1.5362    
  15  Prefactor     98.136        66.146        .81152E-05   -1.3723    
  16  norm          .10000E-03    1.7045        .17530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.921        25.667        .42934E-05   -1.4962    
  18  norm          .10000E-03    2.7631        .22365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.072        12.337        .48167E-05   -1.5042    
  20  Prefactor     .10000E-03    3.4676        .24997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8354        1.4965        .29003E-05   -1.5437    
  22  Normalizat    .47413        .22555        .12158E-04   -1.1363    
  23  Prefactor     1.2000        .22630        .42099E-04   -.86331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03591e-10
Minuit parameter uncertainties:
  1  17.646
  2  4.3258e-05
  3  76.6082
  4  2.92504
  5  11.7748
  6  7.63839e-05
  7  1.29153e-05
  8  18.9442
  9  0.000349667
  10  5.11116
  11  5.76407e-06
  12  2.31955
  13  4.69573e-05
  14  8.30907
  15  66.1955
  16  1.66314e-05
  17  25.6873
  18  1.27947e-05
  19  12.34
  20  4.16155e-05
  21  1.49654
  22  0.225983
  23  0.226481
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.548e+01  5.111e+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.200e+00  2.265e-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:  4.741e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.99
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 4.60e-08
Energy Flux (Fixed Index): 4.57e-05 +/- 1.51e-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) = 4745.7679805
delta logL = 0.274973328664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4745.65451776
delta logL = 0.388436076642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.332       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1258       1.0000          .0000       10.000    
     3 'Normalizat'    .50009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1809       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=   4745.655     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 22.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.333        6.3390        .13314E-05   -.22739E-02
   2  Index         2.1258        .27494       -.53739E-05   -.58606E-03
   3  Normalizat    .50009        .18304        .46438E-06    .64568E-04
   4  Prefactor     1.1809        .19348       -.33560E-06    .10739E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3328
  Index      = 2.12576
  Normalizat = 0.500094
  Prefactor  = 1.18093
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.655     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.333        6.6553        .46772E-03   -1.4851    
   2  Index         2.1258        .30364        .43078E-02   -.61242    
   3  Normalizat    .50009        .20733        .29649E-03   -1.1241    
   4  Prefactor     1.1809        .21944        .21196E-03   -.86920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06895e-09
Minuit parameter uncertainties:
  1  6.65562
  2  0.303923
  3  0.207648
  4  0.219609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385931': 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) = 4745.65451775
delta logL = 0.388436083872

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.833e+01  6.656e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.126e+00  3.039e-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.181e+00  2.196e-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:  5.001e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.62
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.13 +/- 0.30
Photon Flux (Free Index): 1.18e-07 +/- 4.72e-08
Energy Flux (Free Index): 6.13e-05 +/- 3.30e-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/385931/cmap_HighResolution_635644801_635904001_4FGL_J1422.3+3223_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='6.13e-05', photon_flux_error='4.60e-08', dlogl='3.88e-01', energy_flux='4.57e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-09 12:02:18.513281', photon_index_error2='0.30', photon_index2='2.13', ts='29.99', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='3.30e-05', EG='0.47', time_epoch_completed='1631214138.51', return_code='0', job_id='385931', GAL2='1.18', EG2='0.50', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='4.72e-08', ts2='30.62', photon_index='2.40' WHERE bin_id='1529' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:02:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 385931: <4FGL_J1422.3+3223_daily_bin1529> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1529> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:16 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:17 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:51:17 2021
Terminated at Thu Sep  9 12:02:19 2021
Results reported at Thu Sep  9 12:02:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1529 215.577 32.3911 635644801 635904001 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 :                                   528.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            663 sec.

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

