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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1525
RA = 215.577, Dec = 32.3911
tmin = 634608001, tmax = 634867201
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='385924', job_status='RUN', time_executed='2021-09-09 11:54:25.724650', time_epoch_executed='1631213665.72' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385924/ft1_4FGL_J1422.3+3223_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385924/ft2_4FGL_J1422.3+3223_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385924/ft1_4FGL_J1422.3+3223_daily_bin1525.fits outfile=/scratch/kocevski/385924/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1525.fits ra=215.577 dec=32.3911 rad=12.0 tmin=634608001.0 tmax=634867201.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.19
user 2.94
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385924/ft1_filtered_4FGL_J1422.3+3223_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/385924/ft2_4FGL_J1422.3+3223_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/385924/ltcube_634608001_634867201_4FGL_J1422.3+3223_daily_bin1525.fits outfile=/scratch/kocevski/385924/expmap_634608001_634867201_4FGL_J1422.3+3223_daily_bin1525.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/385924/ltcube_634608001_634867201_4FGL_J1422.3+3223_daily_bin1525.fits
.....................!
real 191.96
user 186.45
sys 5.09

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/385924/ft1_filtered_4FGL_J1422.3+3223_daily_bin1525.fits scfile=/scratch/kocevski/385924/ft2_4FGL_J1422.3+3223_daily_bin1525.fits outfile=/scratch/kocevski/385924/cmap_634608001_634867201_4FGL_J1422.3+3223_daily_bin1525.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.423       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .59494       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.286       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4147       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
    14 'norm      '    .11058E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.011       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5110       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0780       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75627       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1356       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=   6269.011     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2562 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.532        28.986        .28921E-05    .84450E-04
   2  Prefactor     13.339        37.128       -.92970E-05   -.97680E-04
   3  Prefactor     .10000E-03    115.02        .29907E-05** at limit **
   4  Prefactor     .10000E-03    1.9179        .44690E-06** at limit **
   5  norm          .10000E-03    10.176        .86719E-06** at limit **
   6  Prefactor     .10000E-03    8.3053        .47339E-06** at limit **
   7  norm          .58921        4.2204       -.13589E-05    .91428E-03
   8  Prefactor     15.550        13.484       -.92648E-06   -.27888E-04
   9  Prefactor     .10000E-03    12.579        .96302E-06** at limit **
  10  Prefactor     10.286        4.2495       -.16260E-06    .71699E-04
  11  norm          .10000E-03    14.816        .13077E-05** at limit **
  12  norm          3.4146        2.0528        .39969E-07   -.86737E-06
  13  Prefactor     3.1899        34.334        .25511E-06   -.11994E-04
  14  norm          .10001E-03    66.934        .10711E-04** at limit **
  15  Prefactor     .10000E-03    15.093        .25196E-06** at limit **
  16  norm          .10000E-03    1.0250        .16059E-06** at limit **
  17  Prefactor     .10000E-03    35.623        .55815E-06** at limit **
  18  norm          .10000E-03    4.4091        .30366E-07** at limit **
  19  Prefactor     12.008        12.390       -.23061E-06   -.12270E-03
  20  Prefactor     8.5115        6.9003       -.39215E-06   -.42985E-03
  21  norm          1.0777        1.2927       -.17562E-06   -.71307E-03
  22  Normalizat    .75631        .16486        .37656E-06   -.18785E-03
  23  Prefactor     1.1355        .16455       -.10460E-05   -.15309E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.5319
  Prefactor  = 13.339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.589208
  Prefactor  = 15.5505
  Prefactor  = 0.0001
  Prefactor  = 10.2859
  norm       = 0.0001
  norm       = 3.41465
  Prefactor  = 3.18992
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0079
  Prefactor  = 8.5115
  norm       = 1.07769
  Normalizat = 0.756306
  Prefactor  = 1.13554
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.011     FROM HESSE     STATUS=OK           372 CALLS     2934 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.532        29.223        .64590E-04   -1.4466    
   2  Prefactor     13.339        37.350        .10933E-03   -1.4977    
   3  Prefactor     .10000E-03    115.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9385        .10716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.3284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .58921        6.6580        .26626E-02   -1.5554    
   8  Prefactor     15.550        13.449        .10159E-03   -1.4919    
   9  Prefactor     .10000E-03    12.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.286        4.2477        .98856E-04   -1.5066    
  11  norm          .10000E-03    15.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4146        2.0562        .85265E-04   -1.5338    
  13  Prefactor     3.1899        34.370        .22663E-03   -1.5351    
  14  norm          .10001E-03    65.280        .25206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0345        .78303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4311        .16229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.008        12.347        .11559E-03   -1.5015    
  20  Prefactor     8.5115        6.8866        .68704E-03   -1.5124    
  21  norm          1.0777        1.2905        .23249E-03   -1.5500    
  22  Normalizat    .75631        .18490        .25387E-03   -1.0171    
  23  Prefactor     1.1355        .18610        .22520E-03   -.88339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49479e-09
Minuit parameter uncertainties:
  1  29.2338
  2  37.4154
  3  0.000437247
  4  1.08904e-05
  5  4.97683e-05
  6  4.30169e-05
  7  3.96152
  8  13.4511
  9  0.000134289
  10  4.24787
  11  0.000164397
  12  2.05627
  13  20.9565
  14  0.00132942
  15  1.8338e-05
  16  3.04841e-06
  17  0.000123102
  18  7.00439e-06
  19  12.3492
  20  6.88726
  21  1.29055
  22  0.185053
  23  0.186208
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.029e+01  4.248e+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.136e+00  1.862e-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.563e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.62
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.27e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 1.25e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6268.88701702
delta logL = 0.124463408086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6268.88672977
delta logL = 0.124750661663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.571       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1974       1.0000          .0000       10.000    
     3 'Normalizat'    .77308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1235       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=   6268.887     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      259 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.564        90.643        .29442E-02    .18631E-03
   2  Index         2.1967        6.0930        .14889        .82121E-04
   3  Normalizat    .77320        .15493        .43258E-01    .40579E-04
   4  Prefactor     1.1234        .11737        .36757E-01    .15703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5642
  Index      = 2.19672
  Normalizat = 0.773195
  Prefactor  = 1.12343
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.887     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.564        5.2236        .10718E-03   -1.5028    
   2  Index         2.1967        .39697        .57660E-02   -.59518    
   3  Normalizat    .77320        .17577        .25133E-03   -1.0107    
   4  Prefactor     1.1234        .18471        .22619E-03   -.88721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23158e-11
Minuit parameter uncertainties:
  1  5.22378
  2  0.397582
  3  0.175901
  4  0.184817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385924': 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) = 6268.88672587
delta logL = 0.12475456299

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.156e+01  5.224e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.197e+00  3.976e-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.123e+00  1.848e-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.732e-01  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.81
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.20 +/- 0.40
Photon Flux (Free Index): 8.08e-08 +/- 4.13e-08
Energy Flux (Free Index): 3.65e-05 +/- 2.22e-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/385924/cmap_HighResolution_634608001_634867201_4FGL_J1422.3+3223_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.27e-08', energy_flux2='3.65e-05', photon_flux_error='3.83e-08', dlogl='1.25e-01', energy_flux='3.03e-05', photon_flux2='8.08e-08', job_status='DONE', time_completed='2021-09-09 12:04:15.523969', photon_index_error2='0.40', photon_index2='2.20', ts='11.62', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='0.76', time_epoch_completed='1631214255.52', return_code='0', job_id='385924', GAL2='1.12', EG2='0.77', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.13e-08', ts2='11.81', photon_index='2.40' WHERE bin_id='1525' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:04:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 385924: <4FGL_J1422.3+3223_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1525> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:16 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:17 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:17 2021
Terminated at Thu Sep  9 12:04:16 2021
Results reported at Thu Sep  9 12:04:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1525 215.577 32.3911 634608001 634867201 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 :                                   584.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

