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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1343
RA = 215.577, Dec = 32.3911
tmin = 587433601, tmax = 587692801
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='384632', job_status='RUN', time_executed='2021-09-09 11:46:54.868712', time_epoch_executed='1631213214.87' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384632/ft1_4FGL_J1422.3+3223_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384632/ft2_4FGL_J1422.3+3223_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384632/ft1_4FGL_J1422.3+3223_daily_bin1343.fits outfile=/scratch/kocevski/384632/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1343.fits ra=215.577 dec=32.3911 rad=12.0 tmin=587433601.0 tmax=587692801.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.66
user 3.29
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384632/ft1_filtered_4FGL_J1422.3+3223_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/384632/ft2_4FGL_J1422.3+3223_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/384632/ltcube_587433601_587692801_4FGL_J1422.3+3223_daily_bin1343.fits outfile=/scratch/kocevski/384632/expmap_587433601_587692801_4FGL_J1422.3+3223_daily_bin1343.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/384632/ltcube_587433601_587692801_4FGL_J1422.3+3223_daily_bin1343.fits
.....................!
real 190.17
user 185.68
sys 4.12

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/384632/ft1_filtered_4FGL_J1422.3+3223_daily_bin1343.fits scfile=/scratch/kocevski/384632/ft2_4FGL_J1422.3+3223_daily_bin1343.fits outfile=/scratch/kocevski/384632/cmap_587433601_587692801_4FGL_J1422.3+3223_daily_bin1343.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384632/ft1_filtered_4FGL_J1422.3+3223_daily_bin1343.fits scfile=/scratch/kocevski/384632/ft2_4FGL_J1422.3+3223_daily_bin1343.fits outfile=/scratch/kocevski/384632/cmap_HighResolution_587433601_587692801_4FGL_J1422.3+3223_daily_bin1343.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0462       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3058       1.0000         .10000E-03   10000.    
     3 'Prefactor '    86.976       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.525       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1736       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    55.094       1.0000         .10000E-03   10000.    
    11 'norm      '    8.7007       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .50622E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.266       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9888       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.1475       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1834       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7712       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76381       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1403       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=   6282.444     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2521 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0510        17.468        .74026E-06   -.24978E-05
   2  Prefactor     6.3049        22.754       -.32083E-05   -.11567E-04
   3  Prefactor     86.990        72.466        .12344E-04    .13145E-04
   4  Prefactor     .10000E-03    .77001        .20473E-07** at limit **
   5  norm          15.490        15.364       -.10650E-05   -.16920E-04
   6  Prefactor     12.525        11.889        .18315E-06    .27683E-05
   7  norm          2.4594        2.5638       -.17911E-06   -.46759E-04
   8  Prefactor     9.1756        9.3543        .22648E-05    .37343E-04
   9  Prefactor     .10000E-03    7.0351       -.19273E-06** at limit **
  10  Prefactor     55.097        7.9175        .13702E-05    .82877E-04
  11  norm          8.7017        10.561        .11584E-05    .13661E-04
  12  norm          5.4130        2.9940       -.11492E-07   -.33173E-04
  13  Prefactor     .10000E-03    77.904       -.71431E-05** at limit **
  14  norm          1.4108        1.3534        .41480E-06   -.29397E-02
  15  Prefactor     12.254        27.833       -.16053E-04   -.15410E-04
  16  norm          5.9895        4.3069        .30221E-05    .83329E-04
  17  Prefactor     .10000E-03    23.233        .72848E-06** at limit **
  18  norm          6.1481        5.7802       -.26617E-06    .10484E-04
  19  Prefactor     7.1858        10.451       -.10858E-06   -.22245E-04
  20  Prefactor     4.7716        4.7124       -.12817E-05   -.85334E-04
  21  norm          .10000E-03    .64123        .18907E-06** at limit **
  22  Normalizat    .76371        .17707       -.24111E-05    .51772E-04
  23  Prefactor     1.1402        .18194        .34062E-06   -.83385E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.05096
  Prefactor  = 6.30488
  Prefactor  = 86.9899
  Prefactor  = 0.0001
  norm       = 15.4895
  Prefactor  = 12.5252
  norm       = 2.45937
  Prefactor  = 9.17564
  Prefactor  = 0.0001
  Prefactor  = 55.0968
  norm       = 8.70169
  norm       = 5.41299
  Prefactor  = 0.000100005
  norm       = 1.41075
  Prefactor  = 12.2541
  norm       = 5.98951
  Prefactor  = 0.0001
  norm       = 6.1481
  Prefactor  = 7.18579
  Prefactor  = 4.77165
  norm       = 0.0001
  Normalizat = 0.763707
  Prefactor  = 1.14025
 **********
 **   18 **HESSE 
 **********

 FCN=   6282.444     FROM HESSE     STATUS=OK           382 CALLS     2903 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0510        17.435        .15113E-03   -1.5177    
   2  Prefactor     6.3049        22.700        .15985E-03   -1.5206    
   3  Prefactor     86.990        72.676        .43079E-04   -1.3840    
   4  Prefactor     .10000E-03    .77092        .67919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.490        15.406        .10177E-03   -1.4921    
   6  Prefactor     12.525        11.887        .11319E-03   -1.5000    
   7  norm          2.4594        2.5617        .12572E-03   -1.5394    
   8  Prefactor     9.1756        9.3609        .13232E-03   -1.5102    
   9  Prefactor     .10000E-03    7.0546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     55.097        7.9315        .54041E-04   -1.4222    
  11  norm          8.7017        10.561        .13589E-03   -1.5118    
  12  norm          5.4130        2.9991        .98381E-04   -1.5243    
  13  Prefactor     .10000E-03    80.689        .42303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4108        5.0991        .16182E-02   -1.5470    
  15  Prefactor     12.254        27.888        .11437E-03   -1.5008    
  16  norm          5.9895        4.3105        .13499E-03   -1.5218    
  17  Prefactor     .10000E-03    23.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.1481        5.7905        .16192E-03   -1.5212    
  19  Prefactor     7.1858        10.446        .14966E-03   -1.5172    
  20  Prefactor     4.7716        4.6944        .16511E-03   -1.5271    
  21  norm          .10000E-03    1.3943        .12280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .76371        .21243        .28015E-03   -1.0143    
  23  Prefactor     1.1402        .21791        .25128E-03   -.88190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58659e-08
Minuit parameter uncertainties:
  1  17.4478
  2  22.7315
  3  72.7508
  4  2.3915e-07
  5  15.41
  6  11.8891
  7  2.56179
  8  9.36238
  9  2.4497e-05
  10  7.93164
  11  10.563
  12  2.99914
  13  0.00127167
  14  5.10066
  15  27.9178
  16  4.31075
  17  7.72248e-06
  18  5.79105
  19  10.4486
  20  4.6948
  21  2.34332e-05
  22  0.212662
  23  0.218076
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.510e+01  7.932e+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.140e+00  2.181e-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:  7.637e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 161.86
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.97e-07 +/- 7.14e-08
Energy Flux (Fixed Index): 1.63e-04 +/- 2.34e-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) = 6281.93449378
delta logL = 0.509306262417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6281.61706073
delta logL = 0.826739315765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.493       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2180       1.0000          .0000       10.000    
     3 'Normalizat'    .80789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1075       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=   6281.617     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.505        14.345        .12590E-02   -.18439E-04
   2  Index         2.2179        .17960        .47336E-01    .10094E-03
   3  Normalizat    .80791        .17303        .43713E-01   -.38449E-04
   4  Prefactor     1.1076        .18300        .57550E-01   -.59313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.5053
  Index      = 2.21789
  Normalizat = 0.807912
  Prefactor  = 1.10756
 **********
 **   18 **HESSE 
 **********

 FCN=   6281.617     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.505        10.906        .50361E-04   -1.4112    
   2  Index         2.2179        .13802        .20754E-03   -.59007    
   3  Normalizat    .80791        .20236        .27339E-03   -.99776    
   4  Prefactor     1.1076        .21381        .25448E-03   -.89225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59412e-12
Minuit parameter uncertainties:
  1  10.9062
  2  0.138049
  3  0.202547
  4  0.213976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384632': 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) = 6281.61705992
delta logL = 0.826740126842

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.351e+01  1.091e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.218e+00  1.380e-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.108e+00  2.140e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  8.079e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 161.81
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.22 +/- 0.14
Photon Flux (Free Index): 4.55e-07 +/- 7.46e-08
Energy Flux (Free Index): 1.98e-04 +/- 4.49e-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/384632/cmap_HighResolution_587433601_587692801_4FGL_J1422.3+3223_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.97e-07', energy_flux2='1.98e-04', photon_flux_error='7.14e-08', dlogl='8.27e-01', energy_flux='1.63e-04', photon_flux2='4.55e-07', job_status='DONE', time_completed='2021-09-09 11:57:01.719610', photon_index_error2='0.14', photon_index2='2.22', ts='161.86', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='4.49e-05', EG='0.76', time_epoch_completed='1631213821.72', return_code='0', job_id='384632', GAL2='1.11', EG2='0.81', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='7.46e-08', ts2='161.81', photon_index='2.40' WHERE bin_id='1343' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:57:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 384632: <4FGL_J1422.3+3223_daily_bin1343> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1343> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:40 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:46:42 2021
Terminated at Thu Sep  9 11:57:02 2021
Results reported at Thu Sep  9 11:57:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1343 215.577 32.3911 587433601 587692801 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 :                                   592.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            622 sec.

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

