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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1360
RA = 215.577, Dec = 32.3911
tmin = 591840001, tmax = 592099201
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='384658', job_status='RUN', time_executed='2021-09-09 11:49:52.155100', time_epoch_executed='1631213392.16' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384658/ft1_4FGL_J1422.3+3223_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384658/ft2_4FGL_J1422.3+3223_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384658/ft1_4FGL_J1422.3+3223_daily_bin1360.fits outfile=/scratch/kocevski/384658/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1360.fits ra=215.577 dec=32.3911 rad=12.0 tmin=591840001.0 tmax=592099201.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 5.21
user 4.95
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384658/ft2_4FGL_J1422.3+3223_daily_bin1360.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/384658/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/384658/ft1_filtered_4FGL_J1422.3+3223_daily_bin1360.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/384658/ft1_filtered_4FGL_J1422.3+3223_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/384658/ft2_4FGL_J1422.3+3223_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/384658/ltcube_591840001_592099201_4FGL_J1422.3+3223_daily_bin1360.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/384658/ft2_4FGL_J1422.3+3223_daily_bin1360.fits
.....................!
real 11.56
user 11.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384658/ft1_filtered_4FGL_J1422.3+3223_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/384658/ft2_4FGL_J1422.3+3223_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/384658/ltcube_591840001_592099201_4FGL_J1422.3+3223_daily_bin1360.fits outfile=/scratch/kocevski/384658/expmap_591840001_592099201_4FGL_J1422.3+3223_daily_bin1360.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/384658/ltcube_591840001_592099201_4FGL_J1422.3+3223_daily_bin1360.fits
.....................!
real 190.49
user 185.14
sys 5.00

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/384658/ft1_filtered_4FGL_J1422.3+3223_daily_bin1360.fits scfile=/scratch/kocevski/384658/ft2_4FGL_J1422.3+3223_daily_bin1360.fits outfile=/scratch/kocevski/384658/cmap_591840001_592099201_4FGL_J1422.3+3223_daily_bin1360.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384658/ft1_filtered_4FGL_J1422.3+3223_daily_bin1360.fits scfile=/scratch/kocevski/384658/ft2_4FGL_J1422.3+3223_daily_bin1360.fits outfile=/scratch/kocevski/384658/cmap_HighResolution_591840001_592099201_4FGL_J1422.3+3223_daily_bin1360.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.589       1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.8835       1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.066       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6440       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.375       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.839       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1334       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .13647       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6590       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63673       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=   6809.600     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2243 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2445        15.938        .72959E-05   -.51586E-03
   2  Prefactor     .10000E-03    23.605       -.51140E-06** at limit **
   3  Prefactor     .10000E-03    54.131        .33985E-07** at limit **
   4  Prefactor     .10000E-03    3.9004       -.69894E-07** at limit **
   5  norm          .10000E-03    5.1723        .62412E-07** at limit **
   6  Prefactor     .10000E-03    6.8158        .21897E-07** at limit **
   7  norm          .10000E-03    1.3747        .15160E-07** at limit **
   8  Prefactor     .10000E-03    6.0148       -.54952E-07** at limit **
   9  Prefactor     .10000E-03    4.6796       -.23915E-07** at limit **
  10  Prefactor     59.590        8.3181        .78081E-06    .20239E-02
  11  norm          .10000E-03    21.068        .31930E-06** at limit **
  12  norm          6.8833        3.1786        .40631E-07   -.36379E-04
  13  Prefactor     71.081        30.037        .30542E-05    .71274E-03
  14  norm          5.6462        5.4399       -.24562E-07   -.78643E-04
  15  Prefactor     16.201        53.416       -.14328E-05   -.17666E-04
  16  norm          .10000E-03    1.7923        .65924E-08** at limit **
  17  Prefactor     14.839        18.737        .18490E-06    .16394E-04
  18  norm          2.1334        5.1354        .24884E-06   -.16689E-03
  19  Prefactor     13.219        13.534        .57352E-06    .10098E-03
  20  Prefactor     .10000E-03    3.6604       -.35150E-07** at limit **
  21  norm          .13736        .77386        .16691E-06   -.70205E-03
  22  Normalizat    1.6589        .20003       -.16233E-05    .68445E-04
  23  Prefactor     .63684        .19768        .47032E-06   -.10421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.5896
  norm       = 0.0001
  norm       = 6.88335
  Prefactor  = 71.0807
  norm       = 5.64622
  Prefactor  = 16.2012
  norm       = 0.0001
  Prefactor  = 14.8389
  norm       = 2.1334
  Prefactor  = 13.2188
  Prefactor  = 0.0001
  norm       = 0.137356
  Normalizat = 1.65887
  Prefactor  = 0.636844
 **********
 **   18 **HESSE 
 **********

 FCN=   6809.600     FROM HESSE     STATUS=OK           366 CALLS     2609 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2445        22.040        .11234E-02   -1.5348    
   2  Prefactor     .10000E-03    23.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    54.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9871        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3817        .94477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6860        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     59.590        8.5727        .25987E-03   -1.4163    
  11  norm          .10000E-03    21.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.8833        3.1807        .48337E-03   -1.5183    
  13  Prefactor     71.081        31.419        .47620E-04   -1.4020    
  14  norm          5.6462        5.4376        .16909E-03   -1.5233    
  15  Prefactor     16.201        53.545        .98976E-04   -1.4903    
  16  norm          .10000E-03    1.7983        .10788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.839        18.736        .10397E-03   -1.4937    
  18  norm          2.1334        5.1126        .28172E-03   -1.5416    
  19  Prefactor     13.219        13.520        .11018E-03   -1.4981    
  20  Prefactor     .10000E-03    3.6777        .15407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .13736        1.3983        .13999E-02   -1.5634    
  22  Normalizat    1.6589        .23034        .23634E-03   -.73407    
  23  Prefactor     .63684        .22784        .36560E-03   -1.0606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72774e-09
Minuit parameter uncertainties:
  1  16.9211
  2  6.80496e-05
  3  4.37782e-05
  4  3.19664e-06
  5  7.20858e-06
  6  2.10562e-06
  7  1.92022e-06
  8  9.2899e-06
  9  6.51784e-06
  10  8.57285
  11  5.16411e-05
  12  3.18078
  13  31.426
  14  5.43805
  15  53.7046
  16  1.90772e-06
  17  18.7435
  18  5.11361
  19  13.5227
  20  1.03804e-06
  21  0.876216
  22  0.230485
  23  0.228171
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.959e+01  8.573e+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:  6.368e-01  2.282e-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.659e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 153.95
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.37e-07 +/- 7.72e-08
Energy Flux (Fixed Index): 1.76e-04 +/- 2.53e-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) = 6809.08889242
delta logL = 0.511387315963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6808.78121564
delta logL = 0.819064100609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.467       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2204       1.0000          .0000       10.000    
     3 'Normalizat'    1.7067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60116       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=   6808.781     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      218 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.477        15.478        .12127E-02    .25217E-05
   2  Index         2.2202        .17902        .49367E-01    .94109E-04
   3  Normalizat    1.7068        .19756        .52937E-01   -.36959E-05
   4  Prefactor     .60108        .19758        .84684E-01    .35377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.4768
  Index      = 2.22018
  Normalizat = 1.70677
  Prefactor  = 0.601085
 **********
 **   18 **HESSE 
 **********

 FCN=   6808.781     FROM HESSE     STATUS=OK            29 CALLS      247 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.477        11.697        .48509E-04   -1.4051    
   2  Index         2.2202        .13702        .21624E-03   -.58952    
   3  Normalizat    1.7068        .22771        .23403E-03   -.72123    
   4  Prefactor     .60108        .22613        .37513E-03   -1.0754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35882e-14
Minuit parameter uncertainties:
  1  11.6972
  2  0.13705
  3  0.22785
  4  0.226471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384658': 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) = 6808.78121448
delta logL = 0.819065259177

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.848e+01  1.170e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.220e+00  1.370e-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:  6.011e-01  2.265e-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.707e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 154.47
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.22 +/- 0.14
Photon Flux (Free Index): 4.92e-07 +/- 8.08e-08
Energy Flux (Free Index): 2.13e-04 +/- 4.78e-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/384658/cmap_HighResolution_591840001_592099201_4FGL_J1422.3+3223_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.37e-07', energy_flux2='2.13e-04', photon_flux_error='7.72e-08', dlogl='8.19e-01', energy_flux='1.76e-04', photon_flux2='4.92e-07', job_status='DONE', time_completed='2021-09-09 12:01:05.930483', photon_index_error2='0.14', photon_index2='2.22', ts='153.95', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='4.78e-05', EG='1.66', time_epoch_completed='1631214065.93', return_code='0', job_id='384658', GAL2='0.60', EG2='1.71', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='8.08e-08', ts2='154.47', photon_index='2.40' WHERE bin_id='1360' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:01:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 384658: <4FGL_J1422.3+3223_daily_bin1360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1360 215.577 32.3911 591840001 592099201 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 :                                   590.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

