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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1245
RA = 215.577, Dec = 32.3911
tmin = 562032001, tmax = 562291201
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='384479', job_status='RUN', time_executed='2021-09-09 11:50:37.121987', time_epoch_executed='1631213437.12' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384479

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384479/ft1_4FGL_J1422.3+3223_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384479/ft2_4FGL_J1422.3+3223_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384479/ft1_4FGL_J1422.3+3223_daily_bin1245.fits outfile=/scratch/kocevski/384479/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1245.fits ra=215.577 dec=32.3911 rad=12.0 tmin=562032001.0 tmax=562291201.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384479/ft1_filtered_4FGL_J1422.3+3223_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/384479/ft2_4FGL_J1422.3+3223_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/384479/ltcube_562032001_562291201_4FGL_J1422.3+3223_daily_bin1245.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/384479/ft2_4FGL_J1422.3+3223_daily_bin1245.fits
.....................!
real 11.72
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384479/ft1_filtered_4FGL_J1422.3+3223_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/384479/ft2_4FGL_J1422.3+3223_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/384479/ltcube_562032001_562291201_4FGL_J1422.3+3223_daily_bin1245.fits outfile=/scratch/kocevski/384479/expmap_562032001_562291201_4FGL_J1422.3+3223_daily_bin1245.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/384479/ltcube_562032001_562291201_4FGL_J1422.3+3223_daily_bin1245.fits
.....................!
real 189.98
user 184.91
sys 4.69

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/384479/ft1_filtered_4FGL_J1422.3+3223_daily_bin1245.fits scfile=/scratch/kocevski/384479/ft2_4FGL_J1422.3+3223_daily_bin1245.fits outfile=/scratch/kocevski/384479/cmap_562032001_562291201_4FGL_J1422.3+3223_daily_bin1245.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.57
user 0.37
sys 0.16

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8459       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    97.030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .60390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43573E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5517       1.0000         .10000E-03   10000.    
    11 'norm      '    6.4117       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0823       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.281       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10366E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5054       1.0000         .10000E-03   10000.    
    18 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2260       1.0000         .10000E-03   10000.    
    21 'norm      '    .10619E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74098       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2027       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=   7278.985     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     2940 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8483        12.907        .18274E-03   -.98918E-05
   2  Prefactor     .10000E-03    8.7608        .18142E-02** at limit **
   3  Prefactor     97.032        58.919        .40807E-04    .26021E-04
   4  Prefactor     .10000E-03    .84453        .76339E-03** at limit **
   5  norm          6.1920        10.845        .80690E-03   -.33293E-04
   6  Prefactor     .10000E-03    5.9230        .18142E-02** at limit **
   7  norm          .60217        1.6714        .18335E-02    .52204E-02
   8  Prefactor     .10000E-03    20.754        .36285E-03** at limit **
   9  Prefactor     .10000E-03    59.054        .42908E-02** at limit **
  10  Prefactor     4.5523        2.5049        .96685E-04    .12934E-04
  11  norm          6.4488        9.5890        .15851E-03   -.90945E-04
  12  norm          3.0816        2.1451        .10073E-03   -.72461E-04
  13  Prefactor     25.284        18.163        .79671E-04    .17260E-03
  14  norm          .10000E-03    2.1867        .24315E-03** at limit **
  15  Prefactor     .10000E-03    14.459        .18142E-02** at limit **
  16  norm          .10000E-03    2.4573        .25530E-03** at limit **
  17  Prefactor     5.5038        13.885        .17124E-03   -.84316E-05
  18  norm          .10000E-03    1.8255        .11255E-02** at limit **
  19  Prefactor     .10000E-03    3.8262        .16271E-02** at limit **
  20  Prefactor     1.2238        3.1527        .24037E-03    .40249E-04
  21  norm          .10000E-03    2.3250        .14401E-02** at limit **
  22  Normalizat    .74088        .16807        .24947E-03    .10760E-03
  23  Prefactor     1.2029        .18254        .22286E-03    .21073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.84833
  Prefactor  = 0.0001
  Prefactor  = 97.0319
  Prefactor  = 0.0001
  norm       = 6.19202
  Prefactor  = 0.0001
  norm       = 0.602173
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.55225
  norm       = 6.44885
  norm       = 3.08163
  Prefactor  = 25.284
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.50383
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22381
  norm       = 0.000100002
  Normalizat = 0.740882
  Prefactor  = 1.20287
 **********
 **   18 **HESSE 
 **********

 FCN=   7278.985     FROM HESSE     STATUS=OK           350 CALLS     3290 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8483        12.906        .73096E-05   -1.5268    
   2  Prefactor     .10000E-03    8.7613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     97.032        58.920        .81613E-05   -1.3735    
   4  Prefactor     .10000E-03    .84456        .15268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1920        10.842        .32276E-04   -1.5210    
   6  Prefactor     .10000E-03    5.9233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .60217        1.6689        .36671E-03   -1.5553    
   8  Prefactor     .10000E-03    20.755        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.969        .85817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5523        2.5048        .38674E-05   -1.5281    
  11  norm          6.4488        9.5846        .63403E-05   -1.5200    
  12  norm          3.0816        2.1450        .40290E-05   -1.5357    
  13  Prefactor     25.284        18.162        .15934E-04   -1.4702    
  14  norm          .10000E-03    2.1867        .48631E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4574        .51059E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5038        13.884        .68496E-05   -1.5239    
  18  norm          .10000E-03    1.8255        .22511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8265        .32542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2238        3.1522        .96150E-05   -1.5487    
  21  norm          .10000E-03    2.3509        .28802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74088        .16814        .99787E-05   -1.0230    
  23  Prefactor     1.2029        .18270        .44571E-04   -.86243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2457e-09
Minuit parameter uncertainties:
  1  12.9132
  2  1.16415e-05
  3  58.9559
  4  3.37627e-06
  5  10.8459
  6  1.26973e-05
  7  1.669
  8  0.000166159
  9  0.000986432
  10  2.50489
  11  9.58683
  12  2.1451
  13  18.1658
  14  1.84046e-05
  15  5.93915e-05
  16  2.37769e-05
  17  13.8924
  18  1.62923e-06
  19  1.21811e-05
  20  3.15265
  21  0.000146953
  22  0.168257
  23  0.182801
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.552e+00  2.505e+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.203e+00  1.828e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  7.409e-01  1.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.17
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.10e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 7.39e-06

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) = 7277.18050455
delta logL = 1.80459416799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7277.15936913
delta logL = 1.8257295929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2839       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6321       1.0000          .0000       10.000    
     3 'Normalizat'    .76750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1841       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=   7277.159     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2833        2.9641        .43713E-02   -.10675E-03
   2  Index         1.6318        .30162        .16743       -.62667E-04
   3  Normalizat    .76744        .13724        .43185E-01    .23781E-04
   4  Prefactor     1.1842        .15299        .50722E-01    .88825E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28334
  Index      = 1.63185
  Normalizat = 0.767443
  Prefactor  = 1.18416
 **********
 **   18 **HESSE 
 **********

 FCN=   7277.159     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2833        3.2088        .10679E-03   -1.5248    
   2  Index         1.6318        .35728        .67651E-02   -.73911    
   3  Normalizat    .76744        .16141        .24539E-03   -1.0129    
   4  Prefactor     1.1842        .17999        .22424E-03   -.86820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94359e-12
Minuit parameter uncertainties:
  1  3.20886
  2  0.357836
  3  0.161513
  4  0.180079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384479': 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) = 7277.1593689
delta logL = 1.82572982081

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.283e+00  3.209e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.632e+00  3.578e-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.184e+00  1.801e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  7.674e-01  1.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.84
Ra Dec: 215.577 32.391
Photon Index (Free Index): 1.63 +/- 0.36
Photon Flux (Free Index): 2.21e-08 +/- 1.55e-08
Energy Flux (Free Index): 4.51e-05 +/- 4.23e-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/384479/cmap_HighResolution_562032001_562291201_4FGL_J1422.3+3223_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.10e-08', energy_flux2='4.51e-05', photon_flux_error='2.26e-08', dlogl='1.83e+00', energy_flux='1.34e-05', photon_flux2='2.21e-08', job_status='DONE', time_completed='2021-09-09 12:01:25.202710', photon_index_error2='0.36', photon_index2='1.63', ts='8.17', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='4.23e-05', EG='0.74', time_epoch_completed='1631214085.2', return_code='0', job_id='384479', GAL2='1.18', EG2='0.77', return_code2='0', energy_flux_error='7.39e-06', photon_flux_error2='1.55e-08', ts2='11.84', photon_index='2.40' WHERE bin_id='1245' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:01:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 384479: <4FGL_J1422.3+3223_daily_bin1245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1245 215.577 32.3911 562032001 562291201 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 :                                   644.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

