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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1559
RA = 215.577, Dec = 32.3911
tmin = 643420801, tmax = 643680001
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='385977', job_status='RUN', time_executed='2021-09-09 11:51:35.886835', time_epoch_executed='1631213495.89' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385977

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385977/ft1_4FGL_J1422.3+3223_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385977/ft2_4FGL_J1422.3+3223_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385977/ft1_4FGL_J1422.3+3223_daily_bin1559.fits outfile=/scratch/kocevski/385977/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1559.fits ra=215.577 dec=32.3911 rad=12.0 tmin=643420801.0 tmax=643680001.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.47
user 3.21
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385977/ft1_filtered_4FGL_J1422.3+3223_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/385977/ft2_4FGL_J1422.3+3223_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/385977/ltcube_643420801_643680001_4FGL_J1422.3+3223_daily_bin1559.fits outfile=/scratch/kocevski/385977/expmap_643420801_643680001_4FGL_J1422.3+3223_daily_bin1559.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/385977/ltcube_643420801_643680001_4FGL_J1422.3+3223_daily_bin1559.fits
.....................!
real 189.99
user 184.93
sys 4.69

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/385977/ft1_filtered_4FGL_J1422.3+3223_daily_bin1559.fits scfile=/scratch/kocevski/385977/ft2_4FGL_J1422.3+3223_daily_bin1559.fits outfile=/scratch/kocevski/385977/cmap_643420801_643680001_4FGL_J1422.3+3223_daily_bin1559.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385977/ft1_filtered_4FGL_J1422.3+3223_daily_bin1559.fits scfile=/scratch/kocevski/385977/ft2_4FGL_J1422.3+3223_daily_bin1559.fits outfile=/scratch/kocevski/385977/cmap_HighResolution_643420801_643680001_4FGL_J1422.3+3223_daily_bin1559.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/385977/ft1_filtered_4FGL_J1422.3+3223_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/385977/ft2_4FGL_J1422.3+3223_daily_bin1559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385977/Model_4FGL_J1422.3+3223_daily_bin1559.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/385977/ft1_filtered_4FGL_J1422.3+3223_daily_bin1559.fits.....................!
real 42.88
user 41.50
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13329E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.539       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5049       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0776       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22480E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.702       1.0000         .10000E-03   10000.    
    11 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.663       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.221       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0925       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .23316E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79572       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0938       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=   5515.032     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2603 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1765       -.86356E-07** at limit **
   2  Prefactor     .10000E-03    64.810        .86087E-05** at limit **
   3  Prefactor     15.518        49.740       -.26723E-04   -.51337E-04
   4  Prefactor     7.5066        4.7377       -.13162E-06   -.47008E-04
   5  norm          .10000E-03    5.7774        .11381E-06** at limit **
   6  Prefactor     5.0741        13.783       -.64374E-06   -.26607E-04
   7  norm          .10000E-03    1.0037        .13403E-07** at limit **
   8  Prefactor     .10000E-03    4.6245       -.34080E-06** at limit **
   9  Prefactor     .10002E-03    7.1936        .35812E-06** at limit **
  10  Prefactor     10.702        3.9619       -.49061E-07    .15140E-04
  11  norm          .10000E-03    12.200        .99691E-06** at limit **
  12  norm          5.3727        2.7394       -.27192E-07    .11762E-05
  13  Prefactor     .10000E-03    77.995        .11366E-04** at limit **
  14  norm          2.7282        4.6274        .29907E-06   -.19497E-02
  15  Prefactor     .10000E-03    94.010       -.16218E-04** at limit **
  16  norm          15.662        6.3585       -.84552E-07   -.68051E-05
  17  Prefactor     53.216        32.050       -.19712E-05   -.13043E-04
  18  norm          2.0917        5.8208        .93462E-06   -.14322E-02
  19  Prefactor     .10000E-03    12.938       -.14570E-05** at limit **
  20  Prefactor     .10000E-03    5.4892        .13400E-06** at limit **
  21  norm          .10048E-03    .61416       -.22093E-06** at limit **
  22  Normalizat    .79547        .18042        .29697E-05   -.10162E-03
  23  Prefactor     1.0941        .19150       -.10426E-05    .99454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.518
  Prefactor  = 7.50659
  norm       = 0.0001
  Prefactor  = 5.07406
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 10.7021
  norm       = 0.0001
  norm       = 5.3727
  Prefactor  = 0.0001
  norm       = 2.7282
  Prefactor  = 0.000100001
  norm       = 15.6621
  Prefactor  = 53.2161
  norm       = 2.09169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100484
  Normalizat = 0.795466
  Prefactor  = 1.09408
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.032     FROM HESSE     STATUS=OK           380 CALLS     2983 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.518        50.046        .10161E-03   -1.4920    
   4  Prefactor     7.5066        4.7531        .12123E-03   -1.5160    
   5  norm          .10000E-03    5.7870        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0741        13.719        .17844E-03   -1.5257    
   7  norm          .10000E-03    1.0073        .72648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6323        .15592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    28.784        .37935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.702        3.9636        .86697E-04   -1.5054    
  11  norm          .10000E-03    12.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3727        2.7415        .84984E-04   -1.5244    
  13  Prefactor     .10000E-03    79.585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7282        5.4899        .11778E-02   -1.5378    
  15  Prefactor     .10000E-03    95.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.662        6.3712        .10120E-03   -1.4916    
  17  Prefactor     53.216        32.054        .54979E-04   -1.4248    
  18  norm          2.0917        7.8427        .14268E-02   -1.5419    
  19  Prefactor     .10000E-03    13.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6437        .33946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10048E-03    .98392        .21267E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79547        .20629        .24933E-03   -1.0024    
  23  Prefactor     1.0941        .22218        .23740E-03   -.89656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02519e-08
Minuit parameter uncertainties:
  1  1.1971e-05
  2  0.000147892
  3  50.1822
  4  4.75338
  5  8.21911e-06
  6  13.7279
  7  1.25412e-06
  8  9.06576e-06
  9  0.00149732
  10  3.96372
  11  8.11876e-06
  12  2.74159
  13  0.000306739
  14  5.49094
  15  0.000595091
  16  6.37152
  17  32.0646
  18  7.84659
  19  3.10804e-05
  20  8.95721e-06
  21  0.00137952
  22  0.206496
  23  0.22237
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.070e+01  3.964e+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.094e+00  2.224e-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.955e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.90
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.64e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 1.17e-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) = 5513.40461489
delta logL = 1.62772001404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.16146601
delta logL = 1.87086890011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.424       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8497       1.0000          .0000       10.000    
     3 'Normalizat'    .82701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0706       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=   5513.161     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.424        5.9742        .26365E-02    .23333E-02
   2  Index         1.8497        .27358        .10931       -.41770E-05
   3  Normalizat    .82698        .16984        .43962E-01    .43986E-04
   4  Prefactor     1.0706        .18696        .38830E-01    .21077E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.424
  Index      = 1.84967
  Normalizat = 0.82698
  Prefactor  = 1.0706
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.161     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.424        5.4599        .10352E-03   -1.4948    
   2  Index         1.8497        .26058        .46367E-02   -.68164    
   3  Normalizat    .82698        .19648        .24504E-03   -.99076    
   4  Prefactor     1.0706        .21632        .23958E-03   -.90412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1353e-09
Minuit parameter uncertainties:
  1  5.46013
  2  0.260776
  3  0.196654
  4  0.216496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385977': 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) = 5513.161466
delta logL = 1.87086890991

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.442e+01  5.460e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.850e+00  2.608e-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.071e+00  2.165e-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.270e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.63
Ra Dec: 215.577 32.391
Photon Index (Free Index): 1.85 +/- 0.26
Photon Flux (Free Index): 7.03e-08 +/- 3.08e-08
Energy Flux (Free Index): 7.27e-05 +/- 4.76e-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/385977/cmap_HighResolution_643420801_643680001_4FGL_J1422.3+3223_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.64e-08', energy_flux2='7.27e-05', photon_flux_error='3.57e-08', dlogl='1.87e+00', energy_flux='3.16e-05', photon_flux2='7.03e-08', job_status='DONE', time_completed='2021-09-09 12:00:45.093734', photon_index_error2='0.26', photon_index2='1.85', ts='23.90', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='4.76e-05', EG='0.80', time_epoch_completed='1631214045.09', return_code='0', job_id='385977', GAL2='1.07', EG2='0.83', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.08e-08', ts2='27.63', photon_index='2.40' WHERE bin_id='1559' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:00:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 385977: <4FGL_J1422.3+3223_daily_bin1559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1559 215.577 32.3911 643420801 643680001 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            566 sec.

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

