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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1045
RA = 215.577, Dec = 32.3911
tmin = 510192001, tmax = 510451201
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='383077', job_status='RUN', time_executed='2021-09-09 11:44:17.276143', time_epoch_executed='1631213057.28' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383077

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383077/ft1_4FGL_J1422.3+3223_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383077/ft2_4FGL_J1422.3+3223_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383077/ft1_4FGL_J1422.3+3223_daily_bin1045.fits outfile=/scratch/kocevski/383077/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1045.fits ra=215.577 dec=32.3911 rad=12.0 tmin=510192001.0 tmax=510451201.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.27
user 4.06
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383077/ft2_4FGL_J1422.3+3223_daily_bin1045.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/383077/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1045.fits evtable="EVENTS" outfile="/scratch/kocevski/383077/ft1_filtered_4FGL_J1422.3+3223_daily_bin1045.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.46
user 0.33
sys 0.12

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383077/ft1_filtered_4FGL_J1422.3+3223_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/383077/ft2_4FGL_J1422.3+3223_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/383077/ltcube_510192001_510451201_4FGL_J1422.3+3223_daily_bin1045.fits outfile=/scratch/kocevski/383077/expmap_510192001_510451201_4FGL_J1422.3+3223_daily_bin1045.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/383077/ltcube_510192001_510451201_4FGL_J1422.3+3223_daily_bin1045.fits
.....................!
real 191.78
user 187.17
sys 4.26

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/383077/ft1_filtered_4FGL_J1422.3+3223_daily_bin1045.fits scfile=/scratch/kocevski/383077/ft2_4FGL_J1422.3+3223_daily_bin1045.fits outfile=/scratch/kocevski/383077/cmap_510192001_510451201_4FGL_J1422.3+3223_daily_bin1045.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.52
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383077/ft1_filtered_4FGL_J1422.3+3223_daily_bin1045.fits scfile=/scratch/kocevski/383077/ft2_4FGL_J1422.3+3223_daily_bin1045.fits outfile=/scratch/kocevski/383077/cmap_HighResolution_510192001_510451201_4FGL_J1422.3+3223_daily_bin1045.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    228.90       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93796       1.0000         .10000E-03   10000.    
     5 'norm      '    .58897E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.073       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.328       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9228       1.0000         .10000E-03   10000.    
    11 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9626       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.796       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5462       1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.200       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6960       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.660       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7704       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4039       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .54429       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2217       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=   5508.684     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2581 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.764        .60267E-06** at limit **
   2  Prefactor     .10000E-03    6.9427        .19684E-07** at limit **
   3  Prefactor     228.88        91.292       -.12398E-04   -.99000E-04
   4  Prefactor     .93574        2.5017       -.22634E-06   -.79488E-03
   5  norm          .10001E-03    9.5773        .24150E-05** at limit **
   6  Prefactor     .10000E-03    5.1396        .51257E-07** at limit **
   7  norm          3.3002        3.0900       -.63065E-08   -.18440E-03
   8  Prefactor     13.075        12.740       -.40913E-06   -.62077E-04
   9  Prefactor     26.331        18.468       -.11356E-06   -.85201E-04
  10  Prefactor     9.9258        4.6509       -.15613E-06   -.13542E-03
  11  norm          .10000E-03    21.092       -.54483E-06** at limit **
  12  norm          2.9623        1.8799        .29003E-07    .87645E-04
  13  Prefactor     11.799        24.451       -.37329E-06   -.32305E-04
  14  norm          1.5458        3.6563       -.11485E-05   -.65723E-03
  15  Prefactor     68.213        52.945        .12243E-04    .47601E-05
  16  norm          3.6928        5.5348       -.99938E-06   -.50788E-03
  17  Prefactor     69.678        43.686        .15426E-04    .66175E-05
  18  norm          6.7061        6.4208       -.96735E-07    .93781E-04
  19  Prefactor     6.7749        12.541       -.30608E-05   -.85391E-04
  20  Prefactor     .10000E-03    2.8419       -.73092E-08** at limit **
  21  norm          2.4041        1.3556       -.13908E-06   -.18519E-02
  22  Normalizat    .54362        .18659       -.24364E-05   -.14355E-03
  23  Prefactor     1.2223        .18774        .26026E-06   -.18477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 228.876
  Prefactor  = 0.935737
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 3.30018
  Prefactor  = 13.0747
  Prefactor  = 26.3309
  Prefactor  = 9.92581
  norm       = 0.0001
  norm       = 2.96226
  Prefactor  = 11.7985
  norm       = 1.54583
  Prefactor  = 68.2129
  norm       = 3.69278
  Prefactor  = 69.6784
  norm       = 6.70612
  Prefactor  = 6.77485
  Prefactor  = 0.0001
  norm       = 2.4041
  Normalizat = 0.543616
  Prefactor  = 1.22234
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.684     FROM HESSE     STATUS=OK           378 CALLS     2959 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     228.88        91.640        .13373E-03   -1.2671    
   4  Prefactor     .93574        2.2254        .18248E-02   -1.5515    
   5  norm          .10001E-03    70.091        .43791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1420        .16433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3002        3.0816        .12194E-03   -1.5345    
   8  Prefactor     13.075        12.721        .11078E-03   -1.4985    
   9  Prefactor     26.331        18.474        .78074E-04   -1.4681    
  10  Prefactor     9.9258        4.6622        .10259E-03   -1.5078    
  11  norm          .10000E-03    21.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9623        1.8815        .78903E-04   -1.5364    
  13  Prefactor     11.799        24.427        .11664E-03   -1.5021    
  14  norm          1.5458        3.6166        .21069E-03   -1.5459    
  15  Prefactor     68.213        52.841        .48603E-04   -1.4054    
  16  norm          3.6928        5.5762        .20163E-03   -1.5324    
  17  Prefactor     69.678        43.465        .48095E-04   -1.4037    
  18  norm          6.7061        6.4215        .15495E-03   -1.5190    
  19  Prefactor     6.7749        12.519        .15420E-03   -1.5187    
  20  Prefactor     .10000E-03    2.8605        .12214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4041        1.3546        .31390E-03   -1.5398    
  22  Normalizat    .54362        .21613        .29468E-03   -1.1043    
  23  Prefactor     1.2223        .22280        .22252E-03   -.85647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19097e-09
Minuit parameter uncertainties:
  1  3.88487e-05
  2  3.62055e-06
  3  91.6976
  4  2.22558
  5  0.00127642
  6  3.57452e-06
  7  3.08171
  8  12.7239
  9  18.4782
  10  4.66238
  11  2.3022e-05
  12  1.8815
  13  24.4478
  14  3.61708
  15  52.877
  16  5.57694
  17  43.4843
  18  6.42215
  19  12.5235
  20  1.46454e-06
  21  1.35463
  22  0.216469
  23  0.222974
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  9.926e+00  4.662e+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.222e+00  2.230e-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:  5.436e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.99
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.95e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.38e-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) = 5508.14106203
delta logL = 0.543056223598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5508.12415872
delta logL = 0.559959532152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6851       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8974       1.0000          .0000       10.000    
     3 'Normalizat'    .49791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2551       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=   5508.124     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      249 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6841        42.790        .38799E-02    .27975E-03
   2  Index         2.8976        3.0368        .10092        .14838E-03
   3  Normalizat    .49791        .87533E-01    .69348E-01    .20854E-04
   4  Prefactor     1.2551        .84639E-01    .49756E-01   -.32914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.6841
  Index      = 2.8976
  Normalizat = 0.497906
  Prefactor  = 1.25514
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.124     FROM HESSE     STATUS=OK            31 CALLS      280 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6841        5.0208        .74212E-04   -1.5191    
   2  Index         2.8976        .53803        .41325E-02   -.43397    
   3  Normalizat    .49791        .20158        .30697E-03   -1.1251    
   4  Prefactor     1.2551        .21666        .21995E-03   -.84651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59859e-11
Minuit parameter uncertainties:
  1  5.0211
  2  0.5393
  3  0.201871
  4  0.21681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383077': 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) = 5508.12415867
delta logL = 0.5599595823

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.684e+00  5.021e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.898e+00  5.393e-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.255e+00  2.168e-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:  4.979e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.29
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.90 +/- 0.54
Photon Flux (Free Index): 1.21e-07 +/- 5.46e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.11e-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/383077/cmap_HighResolution_510192001_510451201_4FGL_J1422.3+3223_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.95e-08', energy_flux2='2.55e-05', photon_flux_error='4.20e-08', dlogl='5.60e-01', energy_flux='2.93e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-09 11:53:34.566964', photon_index_error2='0.54', photon_index2='2.90', ts='9.99', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='0.54', time_epoch_completed='1631213614.57', return_code='0', job_id='383077', GAL2='1.26', EG2='0.50', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.46e-08', ts2='11.29', photon_index='2.40' WHERE bin_id='1045' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:53:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 383077: <4FGL_J1422.3+3223_daily_bin1045> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1045 215.577 32.3911 510192001 510451201 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 :                                   555.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            722 sec.

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

