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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1384
RA = 215.577, Dec = 32.3911
tmin = 598060801, tmax = 598320001
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='384724', job_status='RUN', time_executed='2021-09-09 11:50:33.153308', time_epoch_executed='1631213433.15' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384724/ft1_4FGL_J1422.3+3223_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384724/ft2_4FGL_J1422.3+3223_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384724/ft1_4FGL_J1422.3+3223_daily_bin1384.fits outfile=/scratch/kocevski/384724/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1384.fits ra=215.577 dec=32.3911 rad=12.0 tmin=598060801.0 tmax=598320001.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 4.90
user 4.63
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384724/ft1_filtered_4FGL_J1422.3+3223_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/384724/ft2_4FGL_J1422.3+3223_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/384724/ltcube_598060801_598320001_4FGL_J1422.3+3223_daily_bin1384.fits outfile=/scratch/kocevski/384724/expmap_598060801_598320001_4FGL_J1422.3+3223_daily_bin1384.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/384724/ltcube_598060801_598320001_4FGL_J1422.3+3223_daily_bin1384.fits
.....................!
real 190.93
user 185.91
sys 4.65

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/384724/ft1_filtered_4FGL_J1422.3+3223_daily_bin1384.fits scfile=/scratch/kocevski/384724/ft2_4FGL_J1422.3+3223_daily_bin1384.fits outfile=/scratch/kocevski/384724/cmap_598060801_598320001_4FGL_J1422.3+3223_daily_bin1384.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.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5335       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9594       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4622       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .66818       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.469       1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9879       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8978       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2470       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.067       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .52010       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0499       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77113       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5768.085     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     2157 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.552        1.4065       -.50078E-06   -.13674E-03
   2  Prefactor     .10000E-03    12.383        .23909E-05** at limit **
   3  Prefactor     .10007E-03    24.044       -.43278E-05** at limit **
   4  Prefactor     4.5322        4.2808        .39034E-05    .18241E-03
   5  norm          .10000E-03    4.4980        .44714E-05** at limit **
   6  Prefactor     .10000E-03    6.2572       -.27666E-05** at limit **
   7  norm          2.9570        3.6832       -.13962E-05   -.15752E-03
   8  Prefactor     3.6751        51.561        .36003E-04    .39094E-02
   9  Prefactor     .30466        781.77       -.13988E-03    .10312E-02
  10  Prefactor     33.467        1.0645       -.11227E-06    .34099E-02
  11  norm          .10000E-03    10.924       -.53503E-05** at limit **
  12  norm          4.9880        2.3391       -.27853E-06   -.57080E-05
  13  Prefactor     .10000E-03    27.820       -.31202E-05** at limit **
  14  norm          1.0476        4.9271        .32851E-06   -.10242E-04
  15  Prefactor     .10011E-03    63.567       -.92485E-05** at limit **
  16  norm          2.8980        3.0904       -.16527E-05    .51355E-05
  17  Prefactor     2.2163        3.5114       -.57080E-05   -.83433E-03
  18  norm          .10000E-03    7.2674       -.24077E-05** at limit **
  19  Prefactor     19.063        1.4832       -.61646E-07    .19849E-02
  20  Prefactor     .52092        6.8893        .19931E-06    .12230E-03
  21  norm          .10000E-03    .75960        .21914E-06** at limit **
  22  Normalizat    1.0502        .18871       -.35181E-05    .13109E-03
  23  Prefactor     .77079        .19372        .82144E-06    .73990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5518
  Prefactor  = 0.000100005
  Prefactor  = 0.00010007
  Prefactor  = 4.53217
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95705
  Prefactor  = 3.6751
  Prefactor  = 0.304656
  Prefactor  = 33.4668
  norm       = 0.000100001
  norm       = 4.98805
  Prefactor  = 0.000100001
  norm       = 1.0476
  Prefactor  = 0.000100112
  norm       = 2.89801
  Prefactor  = 2.21633
  norm       = 0.0001
  Prefactor  = 19.0633
  Prefactor  = 0.520919
  norm       = 0.0001
  Normalizat = 1.05022
  Prefactor  = 0.770795
 **********
 **   18 **HESSE 
 **********

 FCN=   5768.085     FROM HESSE     STATUS=OK           418 CALLS     2575 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.552        21.710        .22084E-02   -1.4801    
   2  Prefactor     .10000E-03    12.539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    25.104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5322        4.3135        .47269E-02   -1.5282    
   5  norm          .10000E-03    4.4925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2398        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9570        3.7350        .59014E-02   -1.5364    
   8  Prefactor     3.6751        22.966        .54336E-02   -1.5325    
   9  Prefactor     .30466        21.740        .11939       -1.5598    
  10  Prefactor     33.467        6.4794        .17316E-02   -1.4550    
  11  norm          .10000E-03    10.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9880        2.3378        .45016E-02   -1.5261    
  13  Prefactor     .10000E-03    27.789        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0476        5.0163        .12088E-01   -1.5503    
  15  Prefactor     .10011E-03    64.768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8980        3.0982        .59677E-02   -1.5367    
  17  Prefactor     2.2163        110.81        .68534E-02   -1.5410    
  18  norm          .10000E-03    7.1312        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.063        13.475        .22931E-02   -1.4834    
  20  Prefactor     .52092        6.8790        .11353E-01   -1.5564    
  21  norm          .10000E-03    .72987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0502        .17590        .40564E-01   -.91366    
  23  Prefactor     .77079        .17044        .43340E-01   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46898e-07
Minuit parameter uncertainties:
  1  21.7185
  2  0.000492038
  3  0.00265207
  4  4.31378
  5  1.33103e-06
  6  5.16967e-06
  7  3.73528
  8  18.3845
  9  5.14827
  10  6.4795
  11  0.000255408
  12  2.33783
  13  0.000272323
  14  4.58518
  15  0.00538828
  16  3.09835
  17  31.4038
  18  3.68111e-05
  19  13.4775
  20  3.78613
  21  3.39143e-09
  22  0.175998
  23  0.170554
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.347e+01  6.480e+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:  7.708e-01  1.706e-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.050e+00  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 75.72
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.02e-07 +/- 5.83e-08
Energy Flux (Fixed Index): 9.87e-05 +/- 1.91e-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) = 5768.03559154
delta logL = 0.0489443916422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5767.97680281
delta logL = 0.1077331215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.848       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3078       1.0000          .0000       10.000    
     3 'Normalizat'    1.0677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75843       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=   5767.977     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      196 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.848        17.943        .16734E-02   -.17807E-02
   2  Index         2.3078        .40961        .61665E-01    .87375E-04
   3  Normalizat    1.0677        .17014        .39500E-01    .64312E-05
   4  Prefactor     .75842        .17229        .43174E-01    .16104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.8478
  Index      = 2.30776
  Normalizat = 1.06771
  Prefactor  = 0.758422
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.977     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.848        8.5055        .66935E-04   -1.4510    
   2  Index         2.3078        .19792        .26764E-03   -.56859    
   3  Normalizat    1.0677        .18939        .22160E-03   -.90796    
   4  Prefactor     .75842        .19323        .26919E-03   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45211e-10
Minuit parameter uncertainties:
  1  8.50582
  2  0.197993
  3  0.189512
  4  0.193403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384724': 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) = 5767.9768028
delta logL = 0.107733125054

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.585e+01  8.506e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.308e+00  1.980e-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.584e-01  1.934e-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.068e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 75.52
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.31 +/- 0.20
Photon Flux (Free Index): 2.87e-07 +/- 6.47e-08
Energy Flux (Free Index): 1.07e-04 +/- 2.95e-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/384724/cmap_HighResolution_598060801_598320001_4FGL_J1422.3+3223_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.02e-07', energy_flux2='1.07e-04', photon_flux_error='5.83e-08', dlogl='1.08e-01', energy_flux='9.87e-05', photon_flux2='2.87e-07', job_status='DONE', time_completed='2021-09-09 12:01:26.330772', photon_index_error2='0.20', photon_index2='2.31', ts='75.72', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='1.05', time_epoch_completed='1631214086.33', return_code='0', job_id='384724', GAL2='0.76', EG2='1.07', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='6.47e-08', ts2='75.52', photon_index='2.40' WHERE bin_id='1384' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:01:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 384724: <4FGL_J1422.3+3223_daily_bin1384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1384 215.577 32.3911 598060801 598320001 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 :                                   541.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

