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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1320
RA = 215.577, Dec = 32.3911
tmin = 581472001, tmax = 581731201
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='384596', job_status='RUN', time_executed='2021-09-09 11:46:55.097140', time_epoch_executed='1631213215.1' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384596

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384596/ft1_4FGL_J1422.3+3223_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384596/ft2_4FGL_J1422.3+3223_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384596/ft1_4FGL_J1422.3+3223_daily_bin1320.fits outfile=/scratch/kocevski/384596/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1320.fits ra=215.577 dec=32.3911 rad=12.0 tmin=581472001.0 tmax=581731201.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 2.77
user 2.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384596/ft2_4FGL_J1422.3+3223_daily_bin1320.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/384596/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/384596/ft1_filtered_4FGL_J1422.3+3223_daily_bin1320.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384596/ft1_filtered_4FGL_J1422.3+3223_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/384596/ft2_4FGL_J1422.3+3223_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/384596/ltcube_581472001_581731201_4FGL_J1422.3+3223_daily_bin1320.fits outfile=/scratch/kocevski/384596/expmap_581472001_581731201_4FGL_J1422.3+3223_daily_bin1320.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/384596/ltcube_581472001_581731201_4FGL_J1422.3+3223_daily_bin1320.fits
.....................!
real 189.63
user 185.35
sys 3.93

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/384596/ft1_filtered_4FGL_J1422.3+3223_daily_bin1320.fits scfile=/scratch/kocevski/384596/ft2_4FGL_J1422.3+3223_daily_bin1320.fits outfile=/scratch/kocevski/384596/cmap_581472001_581731201_4FGL_J1422.3+3223_daily_bin1320.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384596/ft1_filtered_4FGL_J1422.3+3223_daily_bin1320.fits scfile=/scratch/kocevski/384596/ft2_4FGL_J1422.3+3223_daily_bin1320.fits outfile=/scratch/kocevski/384596/cmap_HighResolution_581472001_581731201_4FGL_J1422.3+3223_daily_bin1320.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0630       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.071       1.0000         .10000E-03   10000.    
     3 'Prefactor '    73.209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.414       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9329       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.882       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.137       1.0000         .10000E-03   10000.    
    11 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3433       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.775       1.0000         .10000E-03   10000.    
    16 'norm      '    11.059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.502       1.0000         .10000E-03   10000.    
    18 'norm      '    7.2826       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6054       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7926       1.0000         .10000E-03   10000.    
    21 'norm      '    .53118       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1052       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80485       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=   8171.422     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2193 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0625        11.451        .62593E-05   -.68608E-03
   2  Prefactor     29.071        23.558       -.76537E-06   -.64891E-04
   3  Prefactor     73.233        53.149        .69737E-05    .61012E-03
   4  Prefactor     .10000E-03    1.4080        .17985E-06** at limit **
   5  norm          24.414        15.460        .82955E-07    .13939E-04
   6  Prefactor     .10000E-03    12.882        .12981E-06** at limit **
   7  norm          2.9327        2.8230        .63603E-07   -.10039E-03
   8  Prefactor     12.887        11.358        .12299E-05    .35555E-03
   9  Prefactor     .10000E-03    10.556        .87699E-06** at limit **
  10  Prefactor     12.137        4.2637        .10103E-06   -.18559E-03
  11  norm          .10000E-03    5.4226       -.84982E-07** at limit **
  12  norm          6.3431        2.8087        .44623E-07    .35146E-04
  13  Prefactor     .10000E-03    9.3889       -.68716E-06** at limit **
  14  norm          .10000E-03    3.3170        .15950E-07** at limit **
  15  Prefactor     49.775        32.103        .14957E-06   -.18760E-04
  16  norm          11.058        6.1859        .75193E-06   -.81132E-03
  17  Prefactor     11.505        32.354        .19407E-05    .32142E-04
  18  norm          7.2827        5.5218       -.13407E-07    .50769E-05
  19  Prefactor     7.6064        13.033        .43618E-06   -.27472E-04
  20  Prefactor     5.7927        5.0596        .74811E-07   -.15515E-03
  21  norm          .53118        1.0065        .28927E-06    .27786E-04
  22  Normalizat    1.1051        .16093       -.20466E-05   -.33497E-04
  23  Prefactor     .80495        .15909        .45063E-06   -.19993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06248
  Prefactor  = 29.0715
  Prefactor  = 73.2331
  Prefactor  = 0.0001
  norm       = 24.4142
  Prefactor  = 0.0001
  norm       = 2.93272
  Prefactor  = 12.8868
  Prefactor  = 0.0001
  Prefactor  = 12.1369
  norm       = 0.0001
  norm       = 6.34309
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.7752
  norm       = 11.0584
  Prefactor  = 11.5046
  norm       = 7.28269
  Prefactor  = 7.60635
  Prefactor  = 5.79265
  norm       = 0.531183
  Normalizat = 1.10513
  Prefactor  = 0.804947
 **********
 **   18 **HESSE 
 **********

 FCN=   8171.422     FROM HESSE     STATUS=OK           378 CALLS     2571 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0625        12.407        .10001E-02   -1.5305    
   2  Prefactor     29.071        23.616        .74306E-04   -1.4629    
   3  Prefactor     73.233        57.633        .23461E-03   -1.3994    
   4  Prefactor     .10000E-03    5.8805        .20541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.414        15.507        .81071E-04   -1.4719    
   6  Prefactor     .10000E-03    13.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9327        2.8136        .14260E-03   -1.5365    
   8  Prefactor     12.887        11.390        .11160E-03   -1.4990    
   9  Prefactor     .10000E-03    10.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.137        4.2725        .10436E-03   -1.5011    
  11  norm          .10000E-03    5.4354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3431        2.8120        .97146E-04   -1.5204    
  13  Prefactor     .10000E-03    9.4317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4010        .32129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.775        32.099        .56841E-04   -1.4296    
  16  norm          11.058        6.2733        .60235E-03   -1.5043    
  17  Prefactor     11.505        32.375        .11812E-03   -1.5029    
  18  norm          7.2827        5.5206        .14863E-03   -1.5168    
  19  Prefactor     7.6064        12.938        .14542E-03   -1.5156    
  20  Prefactor     5.7927        5.0045        .83437E-03   -1.5227    
  21  norm          .53118        .88298        .11608E-02   -1.5562    
  22  Normalizat    1.1051        .18487        .23420E-03   -.89587    
  23  Prefactor     .80495        .18460        .28321E-03   -.99546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84886e-09
Minuit parameter uncertainties:
  1  12.4145
  2  23.624
  3  57.6765
  4  7.34837e-05
  5  15.5091
  6  2.73751e-05
  7  2.81375
  8  11.3918
  9  4.37648e-05
  10  4.27264
  11  3.68514e-05
  12  2.8121
  13  8.23492e-05
  14  4.56173e-06
  15  32.1104
  16  6.2737
  17  32.4245
  18  5.52103
  19  12.9428
  20  5.00491
  21  0.883006
  22  0.184983
  23  0.184745
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.214e+01  4.273e+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:  8.049e-01  1.847e-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.105e+00  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.83
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 3.85e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.26e-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) = 8171.29195678
delta logL = 0.129659973707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8171.28562915
delta logL = 0.135987601003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.438       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6006       1.0000          .0000       10.000    
     3 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82068       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=   8171.286     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.444        47.703        .31004E-02    .14312E-03
   2  Index         2.6003        2.8425        .11865        .14169E-03
   3  Normalizat    1.0853        .89637E-01    .38635E-01    .12659E-04
   4  Prefactor     .82054        .80179E-01    .63488E-01    .25416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4443
  Index      = 2.60032
  Normalizat = 1.08532
  Prefactor  = 0.820538
 **********
 **   18 **HESSE 
 **********

 FCN=   8171.286     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.444        5.4028        .93677E-04   -1.5062    
   2  Index         2.6003        .41892        .47463E-02   -.50058    
   3  Normalizat    1.0853        .17602        .23598E-03   -.90225    
   4  Prefactor     .82054        .18137        .28082E-03   -.98976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13128e-09
Minuit parameter uncertainties:
  1  5.40304
  2  0.41956
  3  0.176115
  4  0.181499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384596': 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) = 8171.28562795
delta logL = 0.135988798765

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.044e+01  5.403e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.600e+00  4.196e-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:  8.205e-01  1.815e-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.085e+00  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.07
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.60 +/- 0.42
Photon Flux (Free Index): 1.23e-07 +/- 4.81e-08
Energy Flux (Free Index): 3.23e-05 +/- 1.27e-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/384596/cmap_HighResolution_581472001_581731201_4FGL_J1422.3+3223_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.23e-05', photon_flux_error='3.85e-08', dlogl='1.36e-01', energy_flux='3.58e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-09 11:57:11.213479', photon_index_error2='0.42', photon_index2='2.60', ts='16.83', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.11', time_epoch_completed='1631213831.21', return_code='0', job_id='384596', GAL2='0.82', EG2='1.09', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.81e-08', ts2='17.07', photon_index='2.40' WHERE bin_id='1320' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:57:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 384596: <4FGL_J1422.3+3223_daily_bin1320> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1320> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:37 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:38 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:38 2021
Terminated at Thu Sep  9 11:57:11 2021
Results reported at Thu Sep  9 11:57:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1320 215.577 32.3911 581472001 581731201 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 :                                   605.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            634 sec.

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

