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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1550
RA = 215.577, Dec = 32.3911
tmin = 641088001, tmax = 641347201
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='385964', job_status='RUN', time_executed='2021-09-09 11:54:44.984923', time_epoch_executed='1631213684.98' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385964

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385964/ft1_4FGL_J1422.3+3223_daily_bin1550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385964/ft2_4FGL_J1422.3+3223_daily_bin1550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385964/ft1_4FGL_J1422.3+3223_daily_bin1550.fits outfile=/scratch/kocevski/385964/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1550.fits ra=215.577 dec=32.3911 rad=12.0 tmin=641088001.0 tmax=641347201.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.03
user 2.80
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385964/ft1_filtered_4FGL_J1422.3+3223_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/385964/ft2_4FGL_J1422.3+3223_daily_bin1550.fits sctable="SC_DATA" expcube=/scratch/kocevski/385964/ltcube_641088001_641347201_4FGL_J1422.3+3223_daily_bin1550.fits outfile=/scratch/kocevski/385964/expmap_641088001_641347201_4FGL_J1422.3+3223_daily_bin1550.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/385964/ltcube_641088001_641347201_4FGL_J1422.3+3223_daily_bin1550.fits
.....................!
real 191.06
user 185.90
sys 4.73

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/385964/ft1_filtered_4FGL_J1422.3+3223_daily_bin1550.fits scfile=/scratch/kocevski/385964/ft2_4FGL_J1422.3+3223_daily_bin1550.fits outfile=/scratch/kocevski/385964/cmap_641088001_641347201_4FGL_J1422.3+3223_daily_bin1550.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/385964/ft1_filtered_4FGL_J1422.3+3223_daily_bin1550.fits scfile=/scratch/kocevski/385964/ft2_4FGL_J1422.3+3223_daily_bin1550.fits outfile=/scratch/kocevski/385964/cmap_HighResolution_641088001_641347201_4FGL_J1422.3+3223_daily_bin1550.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4061       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.894       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45974       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7378       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66082E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5322       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7720       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3061       1.0000         .10000E-03   10000.    
    14 'norm      '    8.3646       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    86.433       1.0000         .10000E-03   10000.    
    18 'norm      '    15.211       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8526       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0519       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4105       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80588       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=   8381.429     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2270 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4081        13.853       -.43471E-05   -.52096E-04
   2  Prefactor     14.835        29.424        .80640E-05    .10679E-04
   3  Prefactor     .10000E-03    30.637        .69656E-06** at limit **
   4  Prefactor     .48131        1.9249       -.40956E-06   -.10859E-03
   5  norm          4.7459        12.480        .55742E-05   -.80602E-04
   6  Prefactor     .11133E-03    7.3330       -.76111E-06** at limit **
   7  norm          3.5134        2.9205       -.25452E-07   -.13037E-03
   8  Prefactor     .10000E-03    3.9468        .10281E-07** at limit **
   9  Prefactor     .10000E-03    5.4298       -.13107E-06** at limit **
  10  Prefactor     4.5326        3.0372        .79466E-07   -.22837E-03
  11  norm          .10000E-03    3.7859       -.41407E-07** at limit **
  12  norm          4.7718        2.7049        .72990E-07   -.40328E-04
  13  Prefactor     7.3096        14.916        .11341E-04   -.34481E-04
  14  norm          8.3667        5.4723       -.63187E-06   -.13104E-03
  15  Prefactor     .10000E-03    21.475       -.51791E-06** at limit **
  16  norm          1.1222        3.8395       -.16952E-05   -.14660E-02
  17  Prefactor     86.436        38.119       -.20128E-05    .63707E-05
  18  norm          15.211        7.5010        .49478E-05    .35044E-04
  19  Prefactor     4.8535        7.5968       -.37092E-05   -.99431E-04
  20  Prefactor     .10000E-03    4.2311        .83143E-07** at limit **
  21  norm          1.0520        1.1751        .29679E-07   -.58915E-03
  22  Normalizat    1.4103        .16772       -.10319E-05    .21409E-03
  23  Prefactor     .80614        .17043       -.93150E-07    .13800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.40805
  Prefactor  = 14.8348
  Prefactor  = 0.0001
  Prefactor  = 0.481306
  norm       = 4.74593
  Prefactor  = 0.000111328
  norm       = 3.51341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53258
  norm       = 0.0001
  norm       = 4.77179
  Prefactor  = 7.3096
  norm       = 8.36671
  Prefactor  = 0.0001
  norm       = 1.12218
  Prefactor  = 86.4359
  norm       = 15.211
  Prefactor  = 4.85353
  Prefactor  = 0.0001
  norm       = 1.05198
  Normalizat = 1.41028
  Prefactor  = 0.806144
 **********
 **   18 **HESSE 
 **********

 FCN=   8381.429     FROM HESSE     STATUS=OK           386 CALLS     2656 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4081        13.842        .17283E-03   -1.5243    
   2  Prefactor     14.835        29.319        .10378E-03   -1.4937    
   3  Prefactor     .10000E-03    30.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .48131        7.9129        .23712E-02   -1.5569    
   5  norm          4.7459        12.417        .18486E-03   -1.5272    
   6  Prefactor     .11133E-03    7.7555        .87977E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5134        2.9196        .13754E-03   -1.5333    
   8  Prefactor     .10000E-03    3.9544        .17759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5326        3.0341        .12546E-03   -1.5282    
  11  norm          .10000E-03    3.7898        .17396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7718        2.7081        .10968E-03   -1.5271    
  13  Prefactor     7.3096        14.765        .14839E-03   -1.5167    
  14  norm          8.3667        5.4874        .13861E-03   -1.5129    
  15  Prefactor     .10000E-03    21.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1222        3.9375        .32416E-03   -1.5496    
  17  Prefactor     86.436        38.176        .43213E-04   -1.3846    
  18  norm          15.211        7.4479        .10270E-03   -1.4928    
  19  Prefactor     4.8535        7.5917        .18261E-03   -1.5267    
  20  Prefactor     .10000E-03    4.2790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0520        1.1437        .99887E-04   -1.5503    
  22  Normalizat    1.4103        .20237        .23218E-03   -.80332    
  23  Prefactor     .80614        .20351        .31066E-03   -.99502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19934e-08
Minuit parameter uncertainties:
  1  13.8501
  2  29.3477
  3  1.1227e-05
  4  3.9033
  5  12.4235
  6  0.0187487
  7  2.91975
  8  5.48064e-06
  9  1.23185e-05
  10  3.03417
  11  2.46133e-07
  12  2.70819
  13  14.7719
  14  5.48774
  15  3.49382e-05
  16  3.93845
  17  38.1864
  18  7.44835
  19  7.59322
  20  7.97789e-06
  21  1.14369
  22  0.202484
  23  0.2037
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.533e+00  3.034e+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.061e-01  2.037e-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.410e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.08e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 8.95e-06

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) = 8381.1853274
delta logL = 0.244165937534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8381.18519665
delta logL = 0.244296680721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3939       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0679       1.0000          .0000       10.000    
     3 'Normalizat'    1.4218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79689       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=   8381.185     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      270 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3892        116.59        .43257E-02    .25490E-03
   2  Index         2.0672        5.8742        .22242        .93848E-04
   3  Normalizat    1.4218        .11691        .52337E-01    .91380E-04
   4  Prefactor     .79693        .12478        .70555E-01    .44816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38924
  Index      = 2.06716
  Normalizat = 1.42178
  Prefactor  = 0.796931
 **********
 **   18 **HESSE 
 **********

 FCN=   8381.185     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3892        3.5782        .13557E-03   -1.5244    
   2  Index         2.0672        .45140        .81528E-02   -.62681    
   3  Normalizat    1.4218        .18952        .23140E-03   -.80001    
   4  Prefactor     .79693        .19807        .31220E-03   -.99842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67922e-11
Minuit parameter uncertainties:
  1  3.5783
  2  0.452344
  3  0.189611
  4  0.198247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385964': 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) = 8381.18519409
delta logL = 0.244299246837

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.389e+00  3.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.067e+00  4.523e-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.969e-01  1.982e-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.422e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.07 +/- 0.45
Photon Flux (Free Index): 3.25e-08 +/- 2.52e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.73e-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/385964/cmap_HighResolution_641088001_641347201_4FGL_J1422.3+3223_daily_bin1550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.08e-08', energy_flux2='1.92e-05', photon_flux_error='2.73e-08', dlogl='2.44e-01', energy_flux='1.34e-05', photon_flux2='3.25e-08', job_status='DONE', time_completed='2021-09-09 12:05:24.006706', photon_index_error2='0.45', photon_index2='2.07', ts='4.06', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.41', time_epoch_completed='1631214324.01', return_code='0', job_id='385964', GAL2='0.80', EG2='1.42', return_code2='0', energy_flux_error='8.95e-06', photon_flux_error2='2.52e-08', ts2='4.55', photon_index='2.40' WHERE bin_id='1550' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:05:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 385964: <4FGL_J1422.3+3223_daily_bin1550> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1550> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:18 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:51:20 2021
Terminated at Thu Sep  9 12:05:24 2021
Results reported at Thu Sep  9 12:05:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1550 215.577 32.3911 641088001 641347201 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 :                                   635.00 sec.
    Max Memory :                                 1145 MB
    Average Memory :                             289.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

