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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1492
RA = 215.577, Dec = 32.3911
tmin = 626054401, tmax = 626313601
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='385871', job_status='RUN', time_executed='2021-09-09 11:53:40.340838', time_epoch_executed='1631213620.34' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385871

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385871/ft1_4FGL_J1422.3+3223_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385871/ft2_4FGL_J1422.3+3223_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385871/ft1_4FGL_J1422.3+3223_daily_bin1492.fits outfile=/scratch/kocevski/385871/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1492.fits ra=215.577 dec=32.3911 rad=12.0 tmin=626054401.0 tmax=626313601.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.12
user 3.88
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385871/ft1_filtered_4FGL_J1422.3+3223_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/385871/ft2_4FGL_J1422.3+3223_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/385871/ltcube_626054401_626313601_4FGL_J1422.3+3223_daily_bin1492.fits outfile=/scratch/kocevski/385871/expmap_626054401_626313601_4FGL_J1422.3+3223_daily_bin1492.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/385871/ltcube_626054401_626313601_4FGL_J1422.3+3223_daily_bin1492.fits
.....................!
real 192.87
user 187.62
sys 4.87

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/385871/ft1_filtered_4FGL_J1422.3+3223_daily_bin1492.fits scfile=/scratch/kocevski/385871/ft2_4FGL_J1422.3+3223_daily_bin1492.fits outfile=/scratch/kocevski/385871/cmap_626054401_626313601_4FGL_J1422.3+3223_daily_bin1492.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.55
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72660       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12135E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.076       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.422       1.0000         .10000E-03   10000.    
    11 'norm      '    21.689       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2050       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7277       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8425       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .24885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.010       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .62150E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    4.3879       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0238       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1015       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=   6294.379     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2564 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.424        15.604       -.10215E-05   -.31455E-05
   2  Prefactor     .10000E-03    7.7391        .21865E-06** at limit **
   3  Prefactor     .10000E-03    16.905        .91482E-06** at limit **
   4  Prefactor     .73119        3.5172       -.95220E-07    .26549E-03
   5  norm          .10000E-03    6.1784        .76634E-07** at limit **
   6  Prefactor     .10000E-03    4.1744        .11598E-07** at limit **
   7  norm          .10000E-03    2.4587        .15212E-06** at limit **
   8  Prefactor     .10000E-03    10.012       -.15220E-06** at limit **
   9  Prefactor     10.086        11.534        .21151E-06    .32376E-04
  10  Prefactor     13.422        5.0260       -.62318E-07   -.56095E-04
  11  norm          21.694        13.717        .22255E-07    .46013E-05
  12  norm          4.0623        2.4723        .36598E-09    .33646E-05
  13  Prefactor     .10000E-03    23.163       -.12695E-06** at limit **
  14  norm          1.2056        6.1989       -.22601E-05   -.44557E-04
  15  Prefactor     9.7240        36.808       -.64160E-06    .28509E-04
  16  norm          1.8419        4.2128       -.63724E-06   -.28790E-04
  17  Prefactor     .10000E-03    20.058       -.54078E-06** at limit **
  18  norm          .20035        32.510       -.52707E-05    .18848E-03
  19  Prefactor     14.019        19.948        .12144E-05   -.22002E-03
  20  Prefactor     .10002E-03    29.793        .56173E-05** at limit **
  21  norm          4.3865        2.1666       -.33741E-06   -.93874E-03
  22  Normalizat    1.0240        .18332        .34358E-06   -.53354E-04
  23  Prefactor     1.1014        .18749       -.17271E-06   -.32779E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.731188
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0859
  Prefactor  = 13.422
  norm       = 21.6937
  norm       = 4.06231
  Prefactor  = 0.0001
  norm       = 1.20565
  Prefactor  = 9.72405
  norm       = 1.84188
  Prefactor  = 0.0001
  norm       = 0.200354
  Prefactor  = 14.0189
  Prefactor  = 0.000100021
  norm       = 4.38648
  Normalizat = 1.02398
  Prefactor  = 1.1014
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.379     FROM HESSE     STATUS=OK           382 CALLS     2946 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.424        15.547        .59257E-03   -1.5032    
   2  Prefactor     .10000E-03    7.7386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73119        6.2234        .26767E-02   -1.5537    
   5  norm          .10000E-03    6.2104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1749        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.6924        .23938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.086        11.502        .12623E-03   -1.5073    
  10  Prefactor     13.422        5.0287        .10248E-03   -1.4975    
  11  norm          21.694        13.693        .86006E-04   -1.4776    
  12  norm          4.0623        2.4740        .94348E-04   -1.5305    
  13  Prefactor     .10000E-03    23.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2056        6.2591        .37324E-03   -1.5488    
  15  Prefactor     9.7240        36.626        .12848E-03   -1.5084    
  16  norm          1.8419        4.2209        .23592E-03   -1.5437    
  17  Prefactor     .10000E-03    20.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .20035        76.902        .36657E-02   -1.5618    
  19  Prefactor     14.019        18.853        .10701E-03   -1.4959    
  20  Prefactor     .10002E-03    43.419        .35893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3865        2.1075        .74645E-04   -1.5289    
  22  Normalizat    1.0240        .21552        .24621E-03   -.92231    
  23  Prefactor     1.1014        .22355        .25785E-03   -.89422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8609e-09
Minuit parameter uncertainties:
  1  15.5528
  2  1.1471e-05
  3  0.000111767
  4  4.26668
  5  6.6707e-06
  6  1.63775e-06
  7  1.2627e-05
  8  3.62049e-05
  9  11.5047
  10  5.02884
  11  13.6948
  12  2.47401
  13  0.000152421
  14  5.49477
  15  36.7112
  16  4.22162
  17  8.33889e-05
  18  7.85873
  19  18.8608
  20  0.00193235
  21  2.10755
  22  0.2157
  23  0.223739
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.342e+01  5.029e+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.101e+00  2.237e-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.024e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.33
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 4.53e-08
Energy Flux (Fixed Index): 3.96e-05 +/- 1.48e-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) = 6294.10925835
delta logL = 0.26955073156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6294.09714171
delta logL = 0.281667370814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.533       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0891       1.0000          .0000       10.000    
     3 'Normalizat'    1.0639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0767       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=   6294.097     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      236 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.533        111.57        .26266E-02    .21086E-03
   2  Index         2.0890        6.0061        .16596        .12615E-04
   3  Normalizat    1.0640        .20271        .39706E-01    .94640E-05
   4  Prefactor     1.0767        .13491        .58919E-01    .90076E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5332
  Index      = 2.08905
  Normalizat = 1.06396
  Prefactor  = 1.07671
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.097     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.533        6.0032        .10506E-03   -1.4945    
   2  Index         2.0890        .40831        .61610E-02   -.62142    
   3  Normalizat    1.0640        .20942        .24227E-03   -.90917    
   4  Prefactor     1.0767        .21886        .26055E-03   -.90214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75953e-12
Minuit parameter uncertainties:
  1  6.00345
  2  0.409
  3  0.209579
  4  0.219047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385871': 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) = 6294.0971417
delta logL = 0.281667373387

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.453e+01  6.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.089e+00  4.090e-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.077e+00  2.190e-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.064e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.70
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.09 +/- 0.41
Photon Flux (Free Index): 8.98e-08 +/- 5.71e-08
Energy Flux (Free Index): 5.05e-05 +/- 2.93e-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/385871/cmap_HighResolution_626054401_626313601_4FGL_J1422.3+3223_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='5.05e-05', photon_flux_error='4.53e-08', dlogl='2.82e-01', energy_flux='3.96e-05', photon_flux2='8.98e-08', job_status='DONE', time_completed='2021-09-09 12:03:42.034457', photon_index_error2='0.41', photon_index2='2.09', ts='14.33', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.93e-05', EG='1.02', time_epoch_completed='1631214222.03', return_code='0', job_id='385871', GAL2='1.08', EG2='1.06', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='5.71e-08', ts2='14.70', photon_index='2.40' WHERE bin_id='1492' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 385871: <4FGL_J1422.3+3223_daily_bin1492> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1492 215.577 32.3911 626054401 626313601 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 :                                   583.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

