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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1232
RA = 215.577, Dec = 32.3911
tmin = 558662401, tmax = 558921601
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='384459', job_status='RUN', time_executed='2021-09-09 11:48:57.578263', time_epoch_executed='1631213337.58' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384459/ft1_4FGL_J1422.3+3223_daily_bin1232.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384459/ft2_4FGL_J1422.3+3223_daily_bin1232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384459/ft1_4FGL_J1422.3+3223_daily_bin1232.fits outfile=/scratch/kocevski/384459/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1232.fits ra=215.577 dec=32.3911 rad=12.0 tmin=558662401.0 tmax=558921601.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.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384459/ft1_filtered_4FGL_J1422.3+3223_daily_bin1232.fits" evtable="EVENTS" scfile=/scratch/kocevski/384459/ft2_4FGL_J1422.3+3223_daily_bin1232.fits sctable="SC_DATA" outfile=/scratch/kocevski/384459/ltcube_558662401_558921601_4FGL_J1422.3+3223_daily_bin1232.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/384459/ft2_4FGL_J1422.3+3223_daily_bin1232.fits
.....................!
real 17.62
user 17.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384459/ft1_filtered_4FGL_J1422.3+3223_daily_bin1232.fits evtable="EVENTS" scfile=/scratch/kocevski/384459/ft2_4FGL_J1422.3+3223_daily_bin1232.fits sctable="SC_DATA" expcube=/scratch/kocevski/384459/ltcube_558662401_558921601_4FGL_J1422.3+3223_daily_bin1232.fits outfile=/scratch/kocevski/384459/expmap_558662401_558921601_4FGL_J1422.3+3223_daily_bin1232.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/384459/ltcube_558662401_558921601_4FGL_J1422.3+3223_daily_bin1232.fits
.....................!
real 191.26
user 186.47
sys 4.40

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/384459/ft1_filtered_4FGL_J1422.3+3223_daily_bin1232.fits scfile=/scratch/kocevski/384459/ft2_4FGL_J1422.3+3223_daily_bin1232.fits outfile=/scratch/kocevski/384459/cmap_558662401_558921601_4FGL_J1422.3+3223_daily_bin1232.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    88.440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40857       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7200       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.039       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7445       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0738       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.2810       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.834       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9217       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.435       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7621       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1982       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49454       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1978       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95427       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=   8002.059     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2526 TOTAL
                     EDM=   .63E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6430       -.28847E-05** at limit **
   2  Prefactor     .10000E-03    10.905        .54601E-05** at limit **
   3  Prefactor     88.438        55.681       -.22578E-05    .17927E-05
   4  Prefactor     .40207        1.9133       -.30552E-07   -.22863E-04
   5  norm          1.7195        6.5601        .29806E-07   -.10669E-03
   6  Prefactor     .10000E-03    4.7792       -.20816E-05** at limit **
   7  norm          .10000E-03    1.5506       -.32309E-08** at limit **
   8  Prefactor     .10000E-03    4.9344        .23814E-05** at limit **
   9  Prefactor     21.038        12.411       -.84658E-07   -.62247E-04
  10  Prefactor     5.7442        4.1525        .39406E-07   -.78510E-04
  11  norm          .10000E-03    2.7851       -.23147E-08** at limit **
  12  norm          4.0738        2.9392       -.13608E-06   -.10620E-05
  13  Prefactor     .10000E-03    13.333       -.31310E-05** at limit **
  14  norm          8.2807        5.2416       -.40205E-07    .60782E-05
  15  Prefactor     23.834        21.505       -.47940E-06    .45531E-05
  16  norm          5.9217        4.5732        .35137E-07   -.13768E-04
  17  Prefactor     10.434        23.822       -.21752E-05    .11979E-05
  18  norm          2.7621        3.9239        .54391E-07   -.29054E-04
  19  Prefactor     1.1984        4.1266       -.37548E-07   -.14819E-03
  20  Prefactor     .49516        3.8686       -.13160E-06    .33097E-04
  21  norm          .10000E-03    .50042       -.11071E-07** at limit **
  22  Normalizat    1.1978        .16802        .35418E-06    .12988E-04
  23  Prefactor     .95423        .17128        .34245E-07    .45185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.4379
  Prefactor  = 0.402068
  norm       = 1.71951
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.038
  Prefactor  = 5.74422
  norm       = 0.0001
  norm       = 4.07383
  Prefactor  = 0.0001
  norm       = 8.28073
  Prefactor  = 23.8339
  norm       = 5.92173
  Prefactor  = 10.4341
  norm       = 2.76206
  Prefactor  = 1.19841
  Prefactor  = 0.495162
  norm       = 0.0001
  Normalizat = 1.19781
  Prefactor  = 0.954233
 **********
 **   18 **HESSE 
 **********

 FCN=   8002.059     FROM HESSE     STATUS=OK           378 CALLS     2904 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     88.438        55.911        .42724E-04   -1.3824    
   4  Prefactor     .40207        8.9617        .23135E-02   -1.5581    
   5  norm          1.7195        8.4135        .16016E-02   -1.5446    
   6  Prefactor     .10000E-03    4.7848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5695        .10872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.038        12.482        .87323E-04   -1.4790    
  10  Prefactor     5.7442        4.2056        .73710E-03   -1.5229    
  11  norm          .10000E-03    2.7858        .14579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0738        2.9443        .12545E-03   -1.5304    
  13  Prefactor     .10000E-03    13.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.2807        5.2435        .13931E-03   -1.5132    
  15  Prefactor     23.834        21.503        .82049E-04   -1.4731    
  16  norm          5.9217        4.5837        .81193E-03   -1.5221    
  17  Prefactor     10.434        23.834        .12404E-03   -1.5062    
  18  norm          2.7621        3.9120        .10286E-02   -1.5376    
  19  Prefactor     1.1984        13.063        .20751E-02   -1.5489    
  20  Prefactor     .49516        9.0810        .33233E-02   -1.5567    
  21  norm          .10000E-03    .52144        .12317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1978        .20370        .23802E-03   -.86671    
  23  Prefactor     .95423        .20627        .27920E-03   -.94271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04834e-08
Minuit parameter uncertainties:
  1  6.15424e-07
  2  2.54284e-06
  3  55.9442
  4  3.7966
  5  7.60862
  6  1.31677e-08
  7  8.3443e-07
  8  6.37906e-07
  9  12.4838
  10  4.20583
  11  1.80922e-07
  12  2.94443
  13  5.88096e-06
  14  5.24379
  15  21.51
  16  4.58397
  17  23.8556
  18  3.91232
  19  7.91505
  20  4.24135
  21  5.83587e-08
  22  0.203834
  23  0.206444
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.744e+00  4.206e+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:  9.542e-01  2.064e-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.198e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.18e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.24e-05

TS (Fixed Index): 2.82
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384459/likelihoodResults_558662401_558921601_4FGL_J1422.3+3223_daily_bin1232.txt

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) = 8002.05630776
delta logL = 0.00231130205157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8002.05506967
delta logL = 0.00354939198587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9393       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3285       1.0000          .0000       10.000    
     3 'Normalizat'    1.2028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95028       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=   8002.055     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      233 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9395        4.9421        .15153E-03   -.77028E-03
   2  Index         2.3285        .86252        .87435E-02   -.11262E-03
   3  Normalizat    1.2029        .19913        .23758E-03    .62781E-04
   4  Prefactor     .95024        .20581        .27970E-03   -.68488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.93947
  Index      = 2.32847
  Normalizat = 1.20285
  Prefactor  = 0.950242
 **********
 **   18 **HESSE 
 **********

 FCN=   8002.055     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9395        4.7869        .60613E-05   -1.5220    
   2  Index         2.3285        .83339        .34974E-03   -.56369    
   3  Normalizat    1.2029        .19869        .95034E-05   -.86515    
   4  Prefactor     .95024        .20546        .11188E-04   -.94407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52363e-10
Minuit parameter uncertainties:
  1  4.78722
  2  0.838886
  3  0.19881
  4  0.20563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384459': 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) = 8002.05506965
delta logL = 0.00354941287878

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.939e+00  4.787e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.328e+00  8.389e-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:  9.502e-01  2.056e-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.203e+00  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.33 +/- 0.84
Photon Flux (Free Index): 4.88e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/384459/cmap_HighResolution_558662401_558921601_4FGL_J1422.3+3223_daily_bin1232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.91e-03', comment='SUCCESS', photon_flux='5.18e-08', energy_flux2='1.77e-05', photon_flux_error='3.79e-08', dlogl='3.55e-03', energy_flux='1.69e-05', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-09-09 12:01:16.106966', photon_index_error2='0.84', photon_index2='2.33', ts='2.82', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.60e-05', EG='1.20', time_epoch_completed='1631214076.11', return_code='0', job_id='384459', GAL2='0.95', EG2='1.20', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.05e-08', ts2='2.82', photon_index='2.40' WHERE bin_id='1232' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:01:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 384459: <4FGL_J1422.3+3223_daily_bin1232> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1232 215.577 32.3911 558662401 558921601 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            890 sec.

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

