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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1050
RA = 215.577, Dec = 32.3911
tmin = 511488001, tmax = 511747201
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='383085', job_status='RUN', time_executed='2021-09-09 11:43:07.875573', time_epoch_executed='1631212987.88' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383085

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383085/ft1_4FGL_J1422.3+3223_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383085/ft2_4FGL_J1422.3+3223_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383085/ft1_4FGL_J1422.3+3223_daily_bin1050.fits outfile=/scratch/kocevski/383085/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1050.fits ra=215.577 dec=32.3911 rad=12.0 tmin=511488001.0 tmax=511747201.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.50
user 3.27
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383085/ft1_filtered_4FGL_J1422.3+3223_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/383085/ft2_4FGL_J1422.3+3223_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/383085/ltcube_511488001_511747201_4FGL_J1422.3+3223_daily_bin1050.fits outfile=/scratch/kocevski/383085/expmap_511488001_511747201_4FGL_J1422.3+3223_daily_bin1050.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/383085/ltcube_511488001_511747201_4FGL_J1422.3+3223_daily_bin1050.fits
.....................!
real 192.14
user 187.42
sys 4.36

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/383085/ft1_filtered_4FGL_J1422.3+3223_daily_bin1050.fits scfile=/scratch/kocevski/383085/ft2_4FGL_J1422.3+3223_daily_bin1050.fits outfile=/scratch/kocevski/383085/cmap_511488001_511747201_4FGL_J1422.3+3223_daily_bin1050.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383085/ft1_filtered_4FGL_J1422.3+3223_daily_bin1050.fits scfile=/scratch/kocevski/383085/ft2_4FGL_J1422.3+3223_daily_bin1050.fits outfile=/scratch/kocevski/383085/cmap_HighResolution_511488001_511747201_4FGL_J1422.3+3223_daily_bin1050.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.217       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.178       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9217       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.038       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .64902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5304       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0842       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2577       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .98663E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.558       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.006       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1890       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71567       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6396.231     FROM MIGRAD    STATUS=FAILED       912 CALLS     3287 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.222        19.636        .72888E-04    .55527E-04
   2  Prefactor     .10000E-03    10.012        .18142E-02** at limit **
   3  Prefactor     70.623        63.582        .47773E-04    .23464E-04
   4  Prefactor     .10000E-03    3.3324        .27900E-03** at limit **
   5  norm          10.185        12.714        .12560E-03   -.63815E-04
   6  Prefactor     .10000E-03    14.131        .18142E-02** at limit **
   7  norm          1.9225        2.7360        .15350E-03    .73987E-04
   8  Prefactor     11.026        10.335        .12059E-03   -.27934E-03
   9  Prefactor     .68588        39.698        .44288E-02    .17094E-02
  10  Prefactor     7.5318        4.0170        .11102E-03    .53865E-04
  11  norm          .10000E-03    3.8340        .15291E-02** at limit **
  12  norm          5.0841        2.2979        .79224E-04   -.41615E-05
  13  Prefactor     .10000E-03    6.7800        .18142E-02** at limit **
  14  norm          7.2581        4.9032        .14049E-03   -.11936E-03
  15  Prefactor     .10000E-03    10.651        .18142E-02** at limit **
  16  norm          22.546        6.9400        .84360E-04    .70616E-04
  17  Prefactor     .10000E-03    38.037        .11981    ** at limit **
  18  norm          17.558        9.9570        .95582E-04   -.83259E-05
  19  Prefactor     16.004        12.378        .10011E-03    .14650E-04
  20  Prefactor     .10000E-03    3.4904        .14545E-02** at limit **
  21  norm          .10000E-03    1.2071        .13597E-02** at limit **
  22  Normalizat    1.1885        .19834        .22007E-03    .62507E-05
  23  Prefactor     .71594        .19773        .29116E-03   -.67472E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6396.231     FROM SIMPLEX   STATUS=UNCHANGED   1156 CALLS     4443 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.222        19.636        .61335E-06   -1.4608    
   2  Prefactor     .10000E-03    10.012        .47911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     70.623        63.582        .31059E-06   -1.4025    
   4  Prefactor     .10000E-03    3.3324        .20573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.185        12.714        .32292E-06   -1.5070    
   6  Prefactor     .10000E-03    14.131        .48729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9225        2.7360        .33069E-06   -1.5431    
   8  Prefactor     11.026        10.335        .32240E-06   -1.5044    
   9  Prefactor     .68588        39.698        .33374E-06   -1.5542    
  10  Prefactor     7.5318        4.0170        .32490E-06   -1.5159    
  11  norm          .10000E-03    3.8340        .17756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0841        2.2979        .32784E-06   -1.5257    
  13  Prefactor     .10000E-03    6.7800        .24516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2581        4.9032        .32506E-06   -1.5169    
  15  Prefactor     .10000E-03    10.651        .30003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.546        6.9400        .31746E-06   -1.4758    
  17  Prefactor     .10000E-03    38.037        .10975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.558        9.9570        .32443E-06   -1.4870    
  19  Prefactor     16.004        12.378        .32144E-06   -1.4908    
  20  Prefactor     .10000E-03    3.4904        .14876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2071        .80736E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1885        .19834        .19735E-06   -.86958    
  23  Prefactor     .71594        .19773        .22660E-06   -1.0291    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6396.231     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     4804 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.222        19.636        .29155E-05    .15598E-06
   2  Prefactor     .10000E-03    10.013        .36285E-03** at limit **
   3  Prefactor     70.623        63.584        .95546E-05   -.47595E-07
   4  Prefactor     .10000E-03    3.3325        .55799E-04** at limit **
   5  norm          10.186        12.714        .50238E-05   -.45259E-06
   6  Prefactor     .10000E-03    14.140        .36285E-03** at limit **
   7  norm          1.9225        2.7359        .61402E-05   -.74061E-06
   8  Prefactor     11.027        10.164        .48235E-05   -.28283E-05
   9  Prefactor     .68589        38.563        .88575E-03    .67104E-04
  10  Prefactor     7.5318        4.0170        .44407E-05   -.35842E-05
  11  norm          .10000E-03    3.8340        .30583E-03** at limit **
  12  norm          5.0841        2.2979        .31689E-05   -.71751E-06
  13  Prefactor     .10000E-03    6.7803        .36285E-03** at limit **
  14  norm          7.2581        4.9030        .56196E-05   -.28323E-05
  15  Prefactor     .10000E-03    10.651        .36285E-03** at limit **
  16  norm          22.546        6.9398        .33744E-05   -.13476E-05
  17  Prefactor     .10000E-03    36.360        .12340    ** at limit **
  18  norm          17.558        9.9569        .38233E-05   -.17841E-05
  19  Prefactor     16.004        12.378        .40044E-05   -.45425E-05
  20  Prefactor     .10000E-03    3.4909        .29090E-03** at limit **
  21  norm          .10000E-03    1.2090        .27194E-03** at limit **
  22  Normalizat    1.1885        .19841        .88029E-05   -.10848E-04
  23  Prefactor     .71594        .19792        .11646E-04   -.70283E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.2224
  Prefactor  = 0.0001
  Prefactor  = 70.6226
  Prefactor  = 0.0001
  norm       = 10.1855
  Prefactor  = 0.0001
  norm       = 1.92253
  Prefactor  = 11.0266
  Prefactor  = 0.685889
  Prefactor  = 7.53179
  norm       = 0.0001
  norm       = 5.08409
  Prefactor  = 0.0001
  norm       = 7.25812
  Prefactor  = 0.0001
  norm       = 22.546
  Prefactor  = 0.0001
  norm       = 17.5578
  Prefactor  = 16.0039
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.18853
  Prefactor  = 0.715939
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.231     FROM HESSE     STATUS=OK           358 CALLS     5162 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.222        19.635        .29155E-05   -1.4608    
   2  Prefactor     .10000E-03    10.013        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     70.623        63.588        .95546E-05   -1.4025    
   4  Prefactor     .10000E-03    3.3325        .11160E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.186        12.710        .10048E-05   -1.5070    
   6  Prefactor     .10000E-03    14.141        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9225        2.7361        .12280E-05   -1.5431    
   8  Prefactor     11.027        10.134        .96471E-06   -1.5044    
   9  Prefactor     .68589        38.273        .17715E-03   -1.5542    
  10  Prefactor     7.5318        4.0170        .88814E-06   -1.5159    
  11  norm          .10000E-03    3.8340        .61165E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0841        2.2978        .63379E-06   -1.5257    
  13  Prefactor     .10000E-03    6.7803        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2581        4.9046        .11239E-05   -1.5169    
  15  Prefactor     .10000E-03    10.651        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.546        6.9413        .67488E-06   -1.4758    
  17  Prefactor     .10000E-03    36.938        .12214       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.558        9.9664        .76466E-06   -1.4870    
  19  Prefactor     16.004        12.384        .80088E-06   -1.4908    
  20  Prefactor     .10000E-03    3.4909        .58179E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.2090        .54387E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1885        .19896        .17606E-05   -.86958    
  23  Prefactor     .71594        .19842        .23293E-05   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03623e-13
Minuit parameter uncertainties:
  1  19.6395
  2  1.66656e-07
  3  63.6491
  4  2.67193e-08
  5  12.7138
  6  8.74488e-07
  7  2.73626
  8  10.1355
  9  10.2533
  10  4.01713
  11  9.63856e-08
  12  2.29783
  13  2.19415e-08
  14  4.90491
  15  5.69824e-08
  16  6.94154
  17  0.00027039
  18  9.9673
  19  12.3865
  20  4.92779e-08
  21  6.11441e-08
  22  0.199087
  23  0.198612
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  7.532e+00  4.017e+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:  7.159e-01  1.986e-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.189e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.79
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.79e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.18e-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) = 6396.1809217
delta logL = 0.0498397956144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6396.17960518
delta logL = 0.0511563193013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7315       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5583       1.0000          .0000       10.000    
     3 'Normalizat'    1.1789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72293       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=   6396.180     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      258 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7351        67.317        .38663E-02    .22754E-03
   2  Index         2.5589        3.5207        .15352        .10539E-03
   3  Normalizat    1.1788        .86127E-01    .35432E-01    .11663E-04
   4  Prefactor     .72285        .74663E-01    .65529E-01    .15196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.73508
  Index      = 2.55889
  Normalizat = 1.17877
  Prefactor  = 0.722846
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.180     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7351        4.6849        .10265E-03   -1.5189    
   2  Index         2.5589        .52614        .58324E-02   -.51005    
   3  Normalizat    1.1788        .18861        .22084E-03   -.87261    
   4  Prefactor     .72285        .19563        .28991E-03   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03116e-11
Minuit parameter uncertainties:
  1  4.68515
  2  0.52742
  3  0.188723
  4  0.195818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383085': 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) = 6396.17960195
delta logL = 0.0511595521912

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.735e+00  4.685e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.559e+00  5.274e-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:  7.228e-01  1.958e-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.179e+00  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.56 +/- 0.53
Photon Flux (Free Index): 7.50e-08 +/- 4.38e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.20e-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/383085/cmap_HighResolution_511488001_511747201_4FGL_J1422.3+3223_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.79e-08', energy_flux2='2.05e-05', photon_flux_error='3.62e-08', dlogl='5.12e-02', energy_flux='2.22e-05', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-09-09 11:55:35.439592', photon_index_error2='0.53', photon_index2='2.56', ts='6.79', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.19', time_epoch_completed='1631213735.44', return_code='0', job_id='383085', GAL2='0.72', EG2='1.18', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='4.38e-08', ts2='6.87', photon_index='2.40' WHERE bin_id='1050' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 383085: <4FGL_J1422.3+3223_daily_bin1050> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1050> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:41:33 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:41:35 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:41:35 2021
Terminated at Thu Sep  9 11:55:36 2021
Results reported at Thu Sep  9 11:55:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1050 215.577 32.3911 511488001 511747201 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 :                                   742.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

