/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 15 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 = 7350
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1603
RA = 215.577, Dec = 32.3911
tmin = 654825601, tmax = 655084801
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='914047', job_status='RUN', time_executed='2021-10-05 00:03:26.129719', time_epoch_executed='1633417406.13' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/914047

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/914047/ft1_4FGL_J1422.3+3223_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/914047/ft2_4FGL_J1422.3+3223_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/914047/ft1_4FGL_J1422.3+3223_daily_bin1603.fits outfile=/scratch/kocevski/914047/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1603.fits ra=215.577 dec=32.3911 rad=12.0 tmin=654825601.0 tmax=655084801.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.11
user 2.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/914047/ft1_filtered_4FGL_J1422.3+3223_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/914047/ft2_4FGL_J1422.3+3223_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/914047/ltcube_654825601_655084801_4FGL_J1422.3+3223_daily_bin1603.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/914047/ft2_4FGL_J1422.3+3223_daily_bin1603.fits
.....................!
real 12.42
user 11.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/914047/ft1_filtered_4FGL_J1422.3+3223_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/914047/ft2_4FGL_J1422.3+3223_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/914047/ltcube_654825601_655084801_4FGL_J1422.3+3223_daily_bin1603.fits outfile=/scratch/kocevski/914047/expmap_654825601_655084801_4FGL_J1422.3+3223_daily_bin1603.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/914047/ltcube_654825601_655084801_4FGL_J1422.3+3223_daily_bin1603.fits
.....................!
real 190.66
user 185.40
sys 4.02

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/914047/ft1_filtered_4FGL_J1422.3+3223_daily_bin1603.fits scfile=/scratch/kocevski/914047/ft2_4FGL_J1422.3+3223_daily_bin1603.fits outfile=/scratch/kocevski/914047/cmap_654825601_655084801_4FGL_J1422.3+3223_daily_bin1603.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/914047/ft1_filtered_4FGL_J1422.3+3223_daily_bin1603.fits scfile=/scratch/kocevski/914047/ft2_4FGL_J1422.3+3223_daily_bin1603.fits outfile=/scratch/kocevski/914047/cmap_HighResolution_654825601_655084801_4FGL_J1422.3+3223_daily_bin1603.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.176       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37768E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2597       1.0000         .10000E-03   10000.    
     5 'norm      '    .20358E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .41218E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.455       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.543       1.0000         .10000E-03   10000.    
    11 'norm      '    .13163E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.2256       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12961E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7651       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.6101       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.375       1.0000         .10000E-03   10000.    
    18 'norm      '    .53200E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0753       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68892       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=   8806.929     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2575 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.282        14.692        .34918E-06    .21970E-03
   2  Prefactor     .10000E-03    6.8505        .52889E-07** at limit **
   3  Prefactor     .10000E-03    41.879       -.27186E-06** at limit **
   4  Prefactor     1.2571        1.9434        .11989E-06    .21239E-04
   5  norm          .10000E-03    12.623       -.81556E-06** at limit **
   6  Prefactor     .10000E-03    5.4622        .16633E-07** at limit **
   7  norm          .10000E-03    1.4950        .31409E-06** at limit **
   8  Prefactor     3.5358        14.341       -.37266E-05   -.35348E-03
   9  Prefactor     10.505        17.457        .22625E-05   -.21482E-03
  10  Prefactor     14.568        4.2328        .26683E-08   -.29223E-03
  11  norm          .10001E-03    9.8546        .27704E-05** at limit **
  12  norm          5.2250        2.3586        .45796E-07    .16702E-04
  13  Prefactor     .10000E-03    14.718       -.20725E-06** at limit **
  14  norm          3.7787        3.3162       -.70460E-07   -.47078E-04
  15  Prefactor     .10000E-03    9.0756       -.48244E-06** at limit **
  16  norm          9.6089        5.0161        .18920E-06    .34962E-03
  17  Prefactor     28.185        28.390       -.30599E-06   -.20422E-03
  18  norm          .10000E-03    3.2118        .10262E-05** at limit **
  19  Prefactor     .10000E-03    7.9336       -.76525E-08** at limit **
  20  Prefactor     3.0792        5.3409        .34552E-05   -.80947E-03
  21  norm          .10000E-03    .55457       -.67144E-07** at limit **
  22  Normalizat    1.2213        .14650        .20441E-06   -.12422E-03
  23  Prefactor     .68918        .14823       -.11787E-05   -.22764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25712
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 3.53583
  Prefactor  = 10.5048
  Prefactor  = 14.5678
  norm       = 0.000100011
  norm       = 5.22503
  Prefactor  = 0.0001
  norm       = 3.77865
  Prefactor  = 0.000100001
  norm       = 9.60888
  Prefactor  = 28.1852
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07923
  norm       = 0.0001
  Normalizat = 1.22129
  Prefactor  = 0.689183
 **********
 **   18 **HESSE 
 **********

 FCN=   8806.929     FROM HESSE     STATUS=OK           374 CALLS     2949 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.282        14.729        .11035E-03   -1.4979    
   2  Prefactor     .10000E-03    6.8541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.068        .21290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2571        1.9030        .15717E-03   -1.5484    
   5  norm          .10000E-03    13.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    31.700        .21543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5358        14.586        .21424E-03   -1.5332    
   9  Prefactor     10.505        17.564        .12391E-03   -1.5060    
  10  Prefactor     14.568        4.2223        .98009E-04   -1.4944    
  11  norm          .10001E-03    10.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2250        2.3622        .93344E-04   -1.5251    
  13  Prefactor     .10000E-03    14.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7787        3.3096        .15472E-03   -1.5319    
  15  Prefactor     .10000E-03    9.1107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.6089        5.0270        .12927E-03   -1.5088    
  17  Prefactor     28.185        28.482        .75210E-04   -1.4646    
  18  norm          .10000E-03    9.7663        .31952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0792        5.4669        .11565E-02   -1.5357    
  21  norm          .10000E-03    .58376        .13657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2213        .17130        .21617E-03   -.85947    
  23  Prefactor     .68918        .17148        .29030E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75889e-09
Minuit parameter uncertainties:
  1  14.7331
  2  5.83042e-06
  3  0.000246114
  4  1.90309
  5  0.000283993
  6  1.06864e-06
  7  0.000437712
  8  14.3686
  9  17.5726
  10  4.22238
  11  0.000688038
  12  2.36226
  13  3.80259e-06
  14  3.30975
  15  0.000173977
  16  5.02718
  17  28.4962
  18  0.00011011
  19  4.68897e-06
  20  5.4678
  21  5.95201e-06
  22  0.171376
  23  0.171612
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.457e+01  4.222e+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:  6.892e-01  1.716e-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.221e+00  1.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.87
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 3.80e-08
Energy Flux (Fixed Index): 4.30e-05 +/- 1.25e-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) = 8806.92632002
delta logL = 0.00247305493212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8806.92505814
delta logL = 0.00373493982079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.352       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4252       1.0000          .0000       10.000    
     3 'Normalizat'    1.2184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69121       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=   8806.925     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      248 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.352        4.9584        .96818E-04    .11646E-02
   2  Index         2.4251        .28589        .44771E-02    .19444E-03
   3  Normalizat    1.2185        .16478        .21637E-03   -.98781E-05
   4  Prefactor     .69118        .16761        .28991E-03   -.57410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3518
  Index      = 2.42511
  Normalizat = 1.21847
  Prefactor  = 0.691178
 **********
 **   18 **HESSE 
 **********

 FCN=   8806.925     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.352        4.8663        .38727E-05   -1.4950    
   2  Index         2.4251        .28035        .17908E-03   -.54098    
   3  Normalizat    1.2185        .16486        .86548E-05   -.86034    
   4  Prefactor     .69118        .16769        .11596E-04   -1.0387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78636e-10
Minuit parameter uncertainties:
  1  4.86647
  2  0.280553
  3  0.164929
  4  0.167811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/914047': 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) = 8806.9250581
delta logL = 0.0037349754657

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.435e+01  4.866e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.425e+00  2.806e-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:  6.912e-01  1.678e-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.218e+00  1.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.78
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.43 +/- 0.28
Photon Flux (Free Index): 1.33e-07 +/- 4.60e-08
Energy Flux (Free Index): 4.23e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/914047/cmap_HighResolution_654825601_655084801_4FGL_J1422.3+3223_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='4.23e-05', photon_flux_error='3.80e-08', dlogl='3.73e-03', energy_flux='4.30e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-10-05 00:14:36.847401', photon_index_error2='0.28', photon_index2='2.43', ts='30.87', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.22', time_epoch_completed='1633418076.85', return_code='0', job_id='914047', GAL2='0.69', EG2='1.22', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.60e-08', ts2='30.78', photon_index='2.40' WHERE bin_id='1603' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:14:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 914047: <4FGL_J1422.3+3223_daily_bin1603> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:02:47 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:02:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:02:49 2021
Terminated at Tue Oct  5 00:14:37 2021
Results reported at Tue Oct  5 00:14:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1603 215.577 32.3911 654825601 655084801 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 :                                   668.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

