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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1124
RA = 215.577, Dec = 32.3911
tmin = 530668801, tmax = 530928001
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='384290', job_status='RUN', time_executed='2021-09-09 11:48:31.017439', time_epoch_executed='1631213311.02' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384290

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384290/ft1_4FGL_J1422.3+3223_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384290/ft2_4FGL_J1422.3+3223_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384290/ft1_4FGL_J1422.3+3223_daily_bin1124.fits outfile=/scratch/kocevski/384290/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1124.fits ra=215.577 dec=32.3911 rad=12.0 tmin=530668801.0 tmax=530928001.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.62
user 3.38
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384290/ft1_filtered_4FGL_J1422.3+3223_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/384290/ft2_4FGL_J1422.3+3223_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/384290/ltcube_530668801_530928001_4FGL_J1422.3+3223_daily_bin1124.fits outfile=/scratch/kocevski/384290/expmap_530668801_530928001_4FGL_J1422.3+3223_daily_bin1124.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/384290/ltcube_530668801_530928001_4FGL_J1422.3+3223_daily_bin1124.fits
.....................!
real 193.29
user 187.00
sys 5.88

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/384290/ft1_filtered_4FGL_J1422.3+3223_daily_bin1124.fits scfile=/scratch/kocevski/384290/ft2_4FGL_J1422.3+3223_daily_bin1124.fits outfile=/scratch/kocevski/384290/cmap_530668801_530928001_4FGL_J1422.3+3223_daily_bin1124.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.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16907E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94247E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.628       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.304       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.370       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.7349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7477       1.0000         .10000E-03   10000.    
    14 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.1780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2521       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.852       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74097       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2082       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=   5560.728     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2189 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3935        .65778E-06** at limit **
   2  Prefactor     .10000E-03    22.530        .16891E-05** at limit **
   3  Prefactor     .10000E-03    58.421       -.18617E-05** at limit **
   4  Prefactor     .10128E-03    3.5266        .16931E-05** at limit **
   5  norm          6.2107        12.738        .69494E-06    .13511E-03
   6  Prefactor     .10000E-03    8.8201       -.83452E-06** at limit **
   7  norm          .10000E-03    2.5909       -.26875E-07** at limit **
   8  Prefactor     21.622        20.599       -.14378E-06    .26240E-04
   9  Prefactor     25.301        23.467        .37719E-06    .11794E-03
  10  Prefactor     17.370        6.3918        .40439E-06   -.14827E-03
  11  norm          .10000E-03    4.4636       -.79277E-09** at limit **
  12  norm          6.7359        3.0449        .56603E-08   -.20092E-04
  13  Prefactor     9.7437        23.398       -.69128E-06   -.11613E-03
  14  norm          .10000E-03    5.0871       -.89735E-07** at limit **
  15  Prefactor     .10000E-03    14.289        .11677E-05** at limit **
  16  norm          9.1795        4.9312        .84224E-07    .17084E-03
  17  Prefactor     .10001E-03    18.384       -.30737E-05** at limit **
  18  norm          4.2531        5.9835        .17798E-05    .65232E-04
  19  Prefactor     27.847        17.687       -.30827E-06   -.85656E-04
  20  Prefactor     .10000E-03    2.3618       -.13918E-07** at limit **
  21  norm          .10000E-03    .41634       -.25408E-08** at limit **
  22  Normalizat    .74097        .19197       -.51153E-06   -.27860E-03
  23  Prefactor     1.2079        .19309        .26038E-08   -.27906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100005
  Prefactor  = 0.00010128
  norm       = 6.21074
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 21.6222
  Prefactor  = 25.3013
  Prefactor  = 17.3697
  norm       = 0.0001
  norm       = 6.73592
  Prefactor  = 9.74374
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.17952
  Prefactor  = 0.000100012
  norm       = 4.25306
  Prefactor  = 27.8472
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.740973
  Prefactor  = 1.20791
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.728     FROM HESSE     STATUS=OK           370 CALLS     2559 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10128E-03    45.996        .21834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2107        12.766        .16093E-03   -1.5209    
   6  Prefactor     .10000E-03    8.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6171        .11714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.622        20.611        .86128E-04   -1.4778    
   9  Prefactor     25.301        23.542        .79635E-04   -1.4702    
  10  Prefactor     17.370        6.4787        .48050E-03   -1.4874    
  11  norm          .10000E-03    4.4643        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.7359        3.0484        .84606E-04   -1.5189    
  13  Prefactor     9.7437        23.536        .12835E-03   -1.5084    
  14  norm          .10000E-03    5.3035        .32836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.1795        4.9434        .11728E-03   -1.5102    
  17  Prefactor     .10001E-03    20.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2531        6.2777        .97699E-03   -1.5295    
  19  Prefactor     27.847        17.682        .75912E-04   -1.4652    
  20  Prefactor     .10000E-03    2.3674        .11190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .42064        .46973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74097        .23111        .27980E-03   -1.0230    
  23  Prefactor     1.2079        .23572        .23748E-03   -.86088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76822e-08
Minuit parameter uncertainties:
  1  0.000132028
  2  0.0005663
  3  0.00105036
  4  0.0153578
  5  12.772
  6  0.000184864
  7  3.24838e-06
  8  20.6175
  9  23.5509
  10  6.47901
  11  7.18271e-07
  12  3.04844
  13  23.5588
  14  9.69297e-06
  15  0.000324741
  16  4.94365
  17  0.00098657
  18  6.27863
  19  17.6853
  20  2.97781e-07
  21  1.21049e-07
  22  0.23142
  23  0.235922
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.737e+01  6.479e+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.208e+00  2.359e-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.410e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.81
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.57e-07 +/- 5.83e-08
Energy Flux (Fixed Index): 5.12e-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) = 5560.40348616
delta logL = 0.324692351225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5560.36957968
delta logL = 0.358598831921

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.955       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7466       1.0000          .0000       10.000    
     3 'Normalizat'    .69154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2488       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5560.370     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      291 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.953        8.1626        .87641E-04    .29816E-02
   2  Index         2.7465        .46970        .37586E-02    .68484E-03
   3  Normalizat    .69154        .22907        .28860E-03   -.43005E-03
   4  Prefactor     1.2489        .23723        .23414E-03   -.82584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9532
  Index      = 2.74645
  Normalizat = 0.691537
  Prefactor  = 1.24886
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.370     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.953        7.6427        .17528E-04   -1.4988    
   2  Index         2.7465        .43945        .15035E-03   -.46756    
   3  Normalizat    .69154        .22883        .11544E-04   -1.0423    
   4  Prefactor     1.2489        .23691        .46829E-04   -.84841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73946e-09
Minuit parameter uncertainties:
  1  7.64329
  2  0.440164
  3  0.229146
  4  0.237112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384290': 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) = 5560.36957913
delta logL = 0.358599386062

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.295e+01  7.643e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.746e+00  4.402e-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.249e+00  2.371e-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:  6.915e-01  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.70
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.75 +/- 0.44
Photon Flux (Free Index): 1.88e-07 +/- 7.31e-08
Energy Flux (Free Index): 4.37e-05 +/- 1.69e-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/384290/cmap_HighResolution_530668801_530928001_4FGL_J1422.3+3223_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-07', energy_flux2='4.37e-05', photon_flux_error='5.83e-08', dlogl='3.59e-01', energy_flux='5.12e-05', photon_flux2='1.88e-07', job_status='DONE', time_completed='2021-09-09 11:57:41.649600', photon_index_error2='0.44', photon_index2='2.75', ts='14.81', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='0.74', time_epoch_completed='1631213861.65', return_code='0', job_id='384290', GAL2='1.25', EG2='0.69', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='7.31e-08', ts2='15.70', photon_index='2.40' WHERE bin_id='1124' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:57:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 384290: <4FGL_J1422.3+3223_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1124 215.577 32.3911 530668801 530928001 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 :                                   533.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

