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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1017
RA = 215.577, Dec = 32.3911
tmin = 502934401, tmax = 503193601
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='383033', job_status='RUN', time_executed='2021-09-09 11:45:17.281189', time_epoch_executed='1631213117.28' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383033/ft1_4FGL_J1422.3+3223_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383033/ft2_4FGL_J1422.3+3223_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383033/ft1_4FGL_J1422.3+3223_daily_bin1017.fits outfile=/scratch/kocevski/383033/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1017.fits ra=215.577 dec=32.3911 rad=12.0 tmin=502934401.0 tmax=503193601.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.61
user 3.38
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383033/ft1_filtered_4FGL_J1422.3+3223_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/383033/ft2_4FGL_J1422.3+3223_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/383033/ltcube_502934401_503193601_4FGL_J1422.3+3223_daily_bin1017.fits outfile=/scratch/kocevski/383033/expmap_502934401_503193601_4FGL_J1422.3+3223_daily_bin1017.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/383033/ltcube_502934401_503193601_4FGL_J1422.3+3223_daily_bin1017.fits
.....................!
real 191.89
user 186.04
sys 5.44

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/383033/ft1_filtered_4FGL_J1422.3+3223_daily_bin1017.fits scfile=/scratch/kocevski/383033/ft2_4FGL_J1422.3+3223_daily_bin1017.fits outfile=/scratch/kocevski/383033/cmap_502934401_503193601_4FGL_J1422.3+3223_daily_bin1017.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383033/ft1_filtered_4FGL_J1422.3+3223_daily_bin1017.fits scfile=/scratch/kocevski/383033/ft2_4FGL_J1422.3+3223_daily_bin1017.fits outfile=/scratch/kocevski/383033/cmap_HighResolution_502934401_503193601_4FGL_J1422.3+3223_daily_bin1017.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .73271E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.309       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7780       1.0000         .10000E-03   10000.    
    11 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .96281       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.1259       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.286       1.0000         .10000E-03   10000.    
    18 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.203       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .61454       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1458       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0435       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=   6113.118     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2520 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0355       -.44112E-06** at limit **
   2  Prefactor     .10003E-03    11.259        .43520E-06** at limit **
   3  Prefactor     74.325        59.384       -.53070E-04   -.32499E-06
   4  Prefactor     .10000E-03    1.0360        .73927E-08** at limit **
   5  norm          .10000E-03    23.495        .36347E-05** at limit **
   6  Prefactor     18.315        23.728        .51704E-05    .24341E-04
   7  norm          .10000E-03    1.5882       -.98356E-08** at limit **
   8  Prefactor     .10000E-03    17.705       -.44637E-05** at limit **
   9  Prefactor     .10000E-03    16.554        .60394E-05** at limit **
  10  Prefactor     3.7787        4.1952       -.11660E-05   -.37903E-03
  11  norm          .10000E-03    6.1878        .31055E-06** at limit **
  12  norm          10.971        3.9205       -.43143E-06   -.84387E-05
  13  Prefactor     .10000E-03    21.098       -.95045E-05** at limit **
  14  norm          .96327        5.6599       -.26003E-05   -.27747E-03
  15  Prefactor     .10000E-03    24.005        .38844E-05** at limit **
  16  norm          6.1263        4.3239       -.14578E-06   -.12051E-04
  17  Prefactor     38.307        34.426        .17274E-04    .51735E-04
  18  norm          .10000E-03    2.7747        .23554E-07** at limit **
  19  Prefactor     26.216        16.286       -.15325E-05    .21864E-03
  20  Prefactor     .10000E-03    5.7263       -.13129E-06** at limit **
  21  norm          .61345        1.4284       -.55015E-06   -.14176E-02
  22  Normalizat    1.1458        .18577        .32993E-05    .13716E-03
  23  Prefactor     1.0435        .19038       -.12037E-05    .35016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 74.3245
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.3154
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.77874
  norm       = 0.0001
  norm       = 10.971
  Prefactor  = 0.0001
  norm       = 0.96327
  Prefactor  = 0.0001
  norm       = 6.12626
  Prefactor  = 38.3067
  norm       = 0.0001
  Prefactor  = 26.2157
  Prefactor  = 0.0001
  norm       = 0.613452
  Normalizat = 1.14579
  Prefactor  = 1.04349
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.118     FROM HESSE     STATUS=OK           368 CALLS     2888 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    61.607        .51045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.325        59.468        .23277E-03   -1.3982    
   4  Prefactor     .10000E-03    1.0389        .77704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    23.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.315        23.681        .93604E-04   -1.4852    
   7  norm          .10000E-03    1.6027        .96202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7787        4.2009        .15977E-03   -1.5319    
  11  norm          .10000E-03    6.1916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.971        3.9226        .89039E-04   -1.5045    
  13  Prefactor     .10000E-03    21.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .96327        10.948        .34593E-02   -1.5512    
  15  Prefactor     .10000E-03    24.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.1263        4.3279        .13213E-03   -1.5213    
  17  Prefactor     38.307        34.466        .64776E-04   -1.4469    
  18  norm          .10000E-03    2.7752        .12719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.216        16.138        .78259E-04   -1.4683    
  20  Prefactor     .10000E-03    5.7642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .61345        1.3441        .13404E-02   -1.5551    
  22  Normalizat    1.1458        .22219        .24356E-03   -.88295    
  23  Prefactor     1.0435        .22918        .27017E-03   -.91294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65158e-09
Minuit parameter uncertainties:
  1  8.43901e-06
  2  0.00267654
  3  59.5152
  4  9.90668e-07
  5  0.000116435
  6  23.6936
  7  2.14858e-06
  8  0.000200166
  9  0.000122447
  10  4.20126
  11  7.46187e-06
  12  3.92271
  13  1.38397e-05
  14  6.49616
  15  1.49568e-05
  16  4.32815
  17  34.4838
  18  2.63039e-06
  19  16.1405
  20  1.60294e-05
  21  1.34418
  22  0.222371
  23  0.229394
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  3.779e+00  4.201e+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.043e+00  2.294e-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.146e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.41e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/383033/likelihoodResults_502934401_503193601_4FGL_J1422.3+3223_daily_bin1017.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) = 6112.92588308
delta logL = 0.191697079202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6112.92061373
delta logL = 0.196966428918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7140       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8940       1.0000          .0000       10.000    
     3 'Normalizat'    1.1264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0567       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=   6112.921     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      268 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7137        4.1774        .11477E-03    .65157E-03
   2  Index         2.8944        .94651        .79176E-02    .10381E-03
   3  Normalizat    1.1264        .21741        .24535E-03   -.38510E-03
   4  Prefactor     1.0566        .22820        .26868E-03   -.32512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.71371
  Index      = 2.89445
  Normalizat = 1.12639
  Prefactor  = 1.05657
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.921     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7137        3.7239        .45910E-05   -1.5378    
   2  Index         2.8944        .84418        .31671E-03   -.43467    
   3  Normalizat    1.1264        .21764        .49069E-04   -.88909    
   4  Prefactor     1.0566        .22830        .53736E-04   -.90867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7803e-10
Minuit parameter uncertainties:
  1  3.72426
  2  0.849133
  3  0.21781
  4  0.22851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383033': 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) = 6112.92061326
delta logL = 0.196966894277

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.714e+00  3.724e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.894e+00  8.491e-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.057e+00  2.285e-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.126e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.89 +/- 0.85
Photon Flux (Free Index): 4.89e-08 +/- 4.82e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.00e-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/383033/cmap_HighResolution_502934401_503193601_4FGL_J1422.3+3223_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', comment='SUCCESS', photon_flux='3.41e-08', energy_flux2='1.03e-05', photon_flux_error='3.78e-08', dlogl='1.97e-01', energy_flux='1.11e-05', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-09-09 11:55:55.532734', photon_index_error2='0.85', photon_index2='2.89', ts='1.05', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.00e-05', EG='1.15', time_epoch_completed='1631213755.53', return_code='0', job_id='383033', GAL2='1.06', EG2='1.13', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.82e-08', ts2='1.46', photon_index='2.40' WHERE bin_id='1017' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 383033: <4FGL_J1422.3+3223_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1017> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:41:29 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:41:31 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:41:31 2021
Terminated at Thu Sep  9 11:55:56 2021
Results reported at Thu Sep  9 11:55:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1017 215.577 32.3911 502934401 503193601 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 :                                   636.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             241.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

