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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1139
RA = 215.577, Dec = 32.3911
tmin = 534556801, tmax = 534816001
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='384314', job_status='RUN', time_executed='2021-09-09 11:49:46.936936', time_epoch_executed='1631213386.94' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384314

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384314/ft1_4FGL_J1422.3+3223_daily_bin1139.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384314/ft2_4FGL_J1422.3+3223_daily_bin1139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384314/ft1_4FGL_J1422.3+3223_daily_bin1139.fits outfile=/scratch/kocevski/384314/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1139.fits ra=215.577 dec=32.3911 rad=12.0 tmin=534556801.0 tmax=534816001.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.93
user 3.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384314/ft1_filtered_4FGL_J1422.3+3223_daily_bin1139.fits" evtable="EVENTS" scfile=/scratch/kocevski/384314/ft2_4FGL_J1422.3+3223_daily_bin1139.fits sctable="SC_DATA" outfile=/scratch/kocevski/384314/ltcube_534556801_534816001_4FGL_J1422.3+3223_daily_bin1139.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/384314/ft2_4FGL_J1422.3+3223_daily_bin1139.fits
.....................!
real 12.19
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384314/ft1_filtered_4FGL_J1422.3+3223_daily_bin1139.fits evtable="EVENTS" scfile=/scratch/kocevski/384314/ft2_4FGL_J1422.3+3223_daily_bin1139.fits sctable="SC_DATA" expcube=/scratch/kocevski/384314/ltcube_534556801_534816001_4FGL_J1422.3+3223_daily_bin1139.fits outfile=/scratch/kocevski/384314/expmap_534556801_534816001_4FGL_J1422.3+3223_daily_bin1139.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/384314/ltcube_534556801_534816001_4FGL_J1422.3+3223_daily_bin1139.fits
.....................!
real 190.07
user 184.92
sys 4.53

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/384314/ft1_filtered_4FGL_J1422.3+3223_daily_bin1139.fits scfile=/scratch/kocevski/384314/ft2_4FGL_J1422.3+3223_daily_bin1139.fits outfile=/scratch/kocevski/384314/cmap_534556801_534816001_4FGL_J1422.3+3223_daily_bin1139.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384314/ft1_filtered_4FGL_J1422.3+3223_daily_bin1139.fits scfile=/scratch/kocevski/384314/ft2_4FGL_J1422.3+3223_daily_bin1139.fits outfile=/scratch/kocevski/384314/cmap_HighResolution_534556801_534816001_4FGL_J1422.3+3223_daily_bin1139.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.706       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5208       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2335       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19168E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7297       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .46460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.406       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.291       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6226       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4587       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96500       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0329       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=   6057.274     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2228 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.705        14.754       -.93369E-09   -.15922E-04
   2  Prefactor     .10000E-03    9.9592       -.26150E-07** at limit **
   3  Prefactor     .10000E-03    63.454       -.25504E-06** at limit **
   4  Prefactor     2.5208        2.5447        .27629E-07   -.32390E-04
   5  norm          4.2519        6.5219        .16868E-05   -.49913E-03
   6  Prefactor     .10000E-03    7.7638        .60805E-07** at limit **
   7  norm          4.2330        3.9926        .49798E-07   -.10297E-03
   8  Prefactor     5.5145        14.970       -.87139E-07   -.81791E-04
   9  Prefactor     .10007E-03    16.767        .82592E-06** at limit **
  10  Prefactor     6.7293        3.7408        .63704E-08   -.67467E-04
  11  norm          .10000E-03    10.845        .11349E-06** at limit **
  12  norm          .10000E-03    2.0616        .10244E-06** at limit **
  13  Prefactor     .10000E-03    22.301       -.14361E-06** at limit **
  14  norm          .45963        4.2864        .64246E-06   -.31296E-03
  15  Prefactor     50.380        34.899       -.35376E-05   -.50574E-03
  16  norm          3.5390        4.4982        .97075E-07   -.87592E-04
  17  Prefactor     46.297        31.568        .52831E-06    .87958E-04
  18  norm          4.6138        6.4224        .15405E-05   -.52985E-03
  19  Prefactor     5.6204        10.883       -.20534E-06   -.62272E-04
  20  Prefactor     .10000E-03    3.5817       -.67612E-07** at limit **
  21  norm          4.4586        1.9011       -.14193E-09   -.16757E-03
  22  Normalizat    .96498        .17470       -.18116E-06   -.60258E-04
  23  Prefactor     1.0330        .18159       -.13960E-07   -.24828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.5208
  norm       = 4.25185
  Prefactor  = 0.0001
  norm       = 4.23303
  Prefactor  = 5.51449
  Prefactor  = 0.000100073
  Prefactor  = 6.72925
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.459633
  Prefactor  = 50.38
  norm       = 3.53901
  Prefactor  = 46.2974
  norm       = 4.6138
  Prefactor  = 5.62043
  Prefactor  = 0.0001
  norm       = 4.45857
  Normalizat = 0.964983
  Prefactor  = 1.03298
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.274     FROM HESSE     STATUS=OK           380 CALLS     2608 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.705        14.760        .10819E-03   -1.4967    
   2  Prefactor     .10000E-03    9.9719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    63.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5208        2.5423        .12070E-03   -1.5390    
   5  norm          4.2519        6.7466        .97702E-03   -1.5296    
   6  Prefactor     .10000E-03    7.7749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.2330        3.9800        .14320E-03   -1.5296    
   8  Prefactor     5.5145        12.443        .17119E-03   -1.5238    
   9  Prefactor     .10007E-03    92.650        .49387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7293        3.7487        .10701E-03   -1.5189    
  11  norm          .10000E-03    10.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.8105        .21402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .45963        9.1824        .30048E-02   -1.5572    
  15  Prefactor     50.380        37.915        .56485E-04   -1.4287    
  16  norm          3.5390        4.5005        .17826E-03   -1.5332    
  17  Prefactor     46.297        31.638        .58931E-04   -1.4346    
  18  norm          4.6138        6.5979        .93685E-03   -1.5278    
  19  Prefactor     5.6204        10.850        .16942E-03   -1.5234    
  20  Prefactor     .10000E-03    3.6036        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4586        1.8993        .66847E-04   -1.5286    
  22  Normalizat    .96498        .20254        .23848E-03   -.94213    
  23  Prefactor     1.0330        .20942        .24914E-03   -.91638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06036e-09
Minuit parameter uncertainties:
  1  14.7635
  2  4.2197e-06
  3  0.000109957
  4  2.54243
  5  6.74777
  6  2.6876e-06
  7  3.98022
  8  12.4487
  9  0.00521031
  10  3.74883
  11  1.62229e-05
  12  1.89149e-05
  13  2.9425e-05
  14  4.10907
  15  37.9335
  16  4.50088
  17  31.6498
  18  6.59897
  19  10.8537
  20  3.09389e-06
  21  1.89932
  22  0.202706
  23  0.209584
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.729e+00  3.749e+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.033e+00  2.096e-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:  9.650e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.13
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 3.38e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.11e-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) = 6057.27231561
delta logL = 0.00166820049708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6057.27181231
delta logL = 0.00217149354103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6231       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4374       1.0000          .0000       10.000    
     3 'Normalizat'    .96243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0346       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=   6057.272     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6228        4.1196        .10487E-03    .16911E-04
   2  Index         2.4374        .56677        .71501E-02    .17436E-04
   3  Normalizat    .96238        .19623        .23875E-03    .15761E-04
   4  Prefactor     1.0346        .20752        .24896E-03    .26257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.62283
  Index      = 2.43745
  Normalizat = 0.962384
  Prefactor  = 1.03465
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.272     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6228        4.0221        .41950E-05   -1.5193    
   2  Index         2.4374        .55275        .28600E-03   -.53811    
   3  Normalizat    .96238        .19631        .95500E-05   -.94301    
   4  Prefactor     1.0346        .20766        .99585E-05   -.91583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20168e-12
Minuit parameter uncertainties:
  1  4.02227
  2  0.554291
  3  0.196453
  4  0.207817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384314': 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) = 6057.27181228
delta logL = 0.00217152997357

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.623e+00  4.022e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.437e+00  5.543e-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.035e+00  2.078e-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:  9.624e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.13
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.44 +/- 0.55
Photon Flux (Free Index): 6.26e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.15e-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/384314/cmap_HighResolution_534556801_534816001_4FGL_J1422.3+3223_daily_bin1139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='1.96e-05', photon_flux_error='3.38e-08', dlogl='2.17e-03', energy_flux='1.98e-05', photon_flux2='6.26e-08', job_status='DONE', time_completed='2021-09-09 11:59:13.630648', photon_index_error2='0.55', photon_index2='2.44', ts='10.13', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='0.96', time_epoch_completed='1631213953.63', return_code='0', job_id='384314', GAL2='1.03', EG2='0.96', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.52e-08', ts2='10.13', photon_index='2.40' WHERE bin_id='1139' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:59:13 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1139 215.577 32.3911 534556801 534816001 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 :                                   556.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            782 sec.

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

