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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin714
RA = 215.577, Dec = 32.3911
tmin = 424396801, tmax = 424656001
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='381577', job_status='RUN', time_executed='2021-09-09 11:36:47.665112', time_epoch_executed='1631212607.67' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381577/ft1_4FGL_J1422.3+3223_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381577/ft2_4FGL_J1422.3+3223_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381577/ft1_4FGL_J1422.3+3223_daily_bin714.fits outfile=/scratch/kocevski/381577/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin714.fits ra=215.577 dec=32.3911 rad=12.0 tmin=424396801.0 tmax=424656001.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.06
user 4.79
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381577/ft1_filtered_4FGL_J1422.3+3223_daily_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/381577/ft2_4FGL_J1422.3+3223_daily_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/381577/ltcube_424396801_424656001_4FGL_J1422.3+3223_daily_bin714.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/381577/ft2_4FGL_J1422.3+3223_daily_bin714.fits
.....................!
real 11.95
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381577/ft1_filtered_4FGL_J1422.3+3223_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/381577/ft2_4FGL_J1422.3+3223_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/381577/ltcube_424396801_424656001_4FGL_J1422.3+3223_daily_bin714.fits outfile=/scratch/kocevski/381577/expmap_424396801_424656001_4FGL_J1422.3+3223_daily_bin714.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/381577/ltcube_424396801_424656001_4FGL_J1422.3+3223_daily_bin714.fits
.....................!
real 193.45
user 187.17
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/381577/ft1_filtered_4FGL_J1422.3+3223_daily_bin714.fits scfile=/scratch/kocevski/381577/ft2_4FGL_J1422.3+3223_daily_bin714.fits outfile=/scratch/kocevski/381577/cmap_424396801_424656001_4FGL_J1422.3+3223_daily_bin714.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.54
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381577/ft1_filtered_4FGL_J1422.3+3223_daily_bin714.fits scfile=/scratch/kocevski/381577/ft2_4FGL_J1422.3+3223_daily_bin714.fits outfile=/scratch/kocevski/381577/cmap_HighResolution_424396801_424656001_4FGL_J1422.3+3223_daily_bin714.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10842E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.810       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.010       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39749E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5264       1.0000         .10000E-03   10000.    
     7 'norm      '    13.904       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.492       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8991       1.0000         .10000E-03   10000.    
    11 'norm      '    .25331E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2734       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.608       1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.695       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7804       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2074       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88997       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=   2092.936     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2928 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    673.90        .14089E-04** at limit **
   2  Prefactor     59.775        78.319        .12349E-05    .12696E-03
   3  Prefactor     18.053        238.14        .36907E-05    .30239E-04
   4  Prefactor     .10003E-03    153.30        .38312E-05** at limit **
   5  norm          .10000E-03    22.319       -.76755E-06** at limit **
   6  Prefactor     4.5191        57.393        .11501E-05    .65541E-05
   7  norm          13.906        9.6136        .75880E-06    .23280E-03
   8  Prefactor     43.510        33.854       -.89959E-06   -.12049E-04
   9  Prefactor     .10000E-03    17.957       -.75012E-07** at limit **
  10  Prefactor     9.8987        8.8779        .30652E-06    .23984E-03
  11  norm          .10073E-03    290.65       -.92397E-05** at limit **
  12  norm          4.2734        4.5778        .61298E-07   -.29148E-04
  13  Prefactor     .10000E-03    56.131       -.20678E-05** at limit **
  14  norm          .10000E-03    5.5017       -.22721E-06** at limit **
  15  Prefactor     .10000E-03    30.685       -.31504E-06** at limit **
  16  norm          19.610        11.974       -.30630E-07   -.12358E-04
  17  Prefactor     65.697        59.452       -.13169E-05    .10388E-04
  18  norm          .10000E-03    43.508        .64072E-06** at limit **
  19  Prefactor     .10000E-03    7.8271       -.99187E-07** at limit **
  20  Prefactor     .10000E-03    4.1570       -.24725E-07** at limit **
  21  norm          1.7805        1.7748       -.10746E-06    .34532E-04
  22  Normalizat    1.2072        .39225        .13020E-04    .17045E-03
  23  Prefactor     .89011        .38573       -.12335E-04    .23020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100039
  Prefactor  = 59.7748
  Prefactor  = 18.0533
  Prefactor  = 0.00010003
  norm       = 0.0001
  Prefactor  = 4.51914
  norm       = 13.906
  Prefactor  = 43.5097
  Prefactor  = 0.0001
  Prefactor  = 9.89867
  norm       = 0.000100728
  norm       = 4.27344
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.6095
  Prefactor  = 65.6974
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78047
  Normalizat = 1.2072
  Prefactor  = 0.890114
 **********
 **   18 **HESSE 
 **********

 FCN=   2092.936     FROM HESSE     STATUS=OK           372 CALLS     3300 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    674.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.775        78.199        .51879E-04   -1.4160    
   3  Prefactor     18.053        244.24        .94375E-04   -1.4858    
   4  Prefactor     .10003E-03    186.09        .26762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    22.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5191        56.900        .18923E-03   -1.5283    
   7  norm          13.906        9.7431        .10742E-03   -1.4962    
   8  Prefactor     43.510        35.194        .60790E-04   -1.4388    
   9  Prefactor     .10000E-03    18.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8987        8.9045        .12244E-03   -1.5079    
  11  norm          .10073E-03    77.578        .94949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2734        4.5755        .98156E-04   -1.5294    
  13  Prefactor     .10000E-03    57.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.5169        .10484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.610        11.983        .90450E-04   -1.4822    
  17  Prefactor     65.697        59.462        .49515E-04   -1.4085    
  18  norm          .10000E-03    44.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8308        .12502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1619        .91101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7805        1.7805        .58995E-04   -1.5441    
  22  Normalizat    1.2072        .40112        .24875E-03   -.86381    
  23  Prefactor     .89011        .39644        .29290E-03   -.96487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52414e-10
Minuit parameter uncertainties:
  1  0.0104189
  2  78.3342
  3  133.476
  4  0.00472597
  5  0.000127539
  6  32.1085
  7  9.74422
  8  35.2113
  9  5.78621e-05
  10  8.90567
  11  0.0150498
  12  4.5759
  13  0.000233673
  14  9.57484e-06
  15  3.22853e-05
  16  11.9848
  17  59.5158
  18  0.000130484
  19  8.33651e-06
  20  3.93417e-06
  21  1.78056
  22  0.402146
  23  0.397732
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  9.899e+00  8.906e+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:  8.901e-01  3.977e-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.207e+00  4.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.92e-08 +/- 8.02e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 2.63e-05

TS (Fixed Index): 1.90
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 2.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381577/likelihoodResults_424396801_424656001_4FGL_J1422.3+3223_daily_bin714.txt

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) = 2092.90881281
delta logL = 0.0276006013937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2092.90769417
delta logL = 0.0287192390297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2193       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5950       1.0000          .0000       10.000    
     3 'Normalizat'    1.1958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90055       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=   2092.908     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      263 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2315        246.08        .34960E-02    .72730E-04
   2  Index         2.5962        6.0598        .13202        .32917E-04
   3  Normalizat    1.1956        .15071        .56479E-01    .46339E-05
   4  Prefactor     .90040        .16037        .65886E-01    .55206E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.2315
  Index      = 2.59619
  Normalizat = 1.19557
  Prefactor  = 0.900396
 **********
 **   18 **HESSE 
 **********

 FCN=   2092.908     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .97E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2315        11.326        .11022E-03   -1.5134    
   2  Index         2.5962        .91049        .52764E-02   -.50152    
   3  Normalizat    1.1956        .37798        .24975E-03   -.86740    
   4  Prefactor     .90040        .38566        .29143E-03   -.96127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72589e-13
Minuit parameter uncertainties:
  1  11.329
  2  0.917165
  3  0.378846
  4  0.386835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381577': 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) = 2092.90768743
delta logL = 0.02872598463

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  8.232e+00  1.133e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.596e+00  9.172e-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:  9.004e-01  3.868e-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.196e+00  3.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.60 +/- 0.92
Photon Flux (Free Index): 9.65e-08 +/- 8.81e-08
Energy Flux (Free Index): 2.54e-05 +/- 2.77e-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/381577/cmap_HighResolution_424396801_424656001_4FGL_J1422.3+3223_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-02', comment='SUCCESS', photon_flux='8.92e-08', energy_flux2='2.54e-05', photon_flux_error='8.02e-08', dlogl='2.87e-02', energy_flux='2.92e-05', photon_flux2='9.65e-08', job_status='DONE', time_completed='2021-09-09 11:44:25.412818', photon_index_error2='0.92', photon_index2='2.60', ts='1.90', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='2.71e-07', energy_flux_error2='2.77e-05', EG='1.21', time_epoch_completed='1631213065.41', return_code='0', job_id='381577', GAL2='0.90', EG2='1.20', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='8.81e-08', ts2='1.95', photon_index='2.40' WHERE bin_id='714' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:44:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 381577: <4FGL_J1422.3+3223_daily_bin714> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin714> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 11:36:31 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:36:32 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:36:32 2021
Terminated at Thu Sep  9 11:44:26 2021
Results reported at Thu Sep  9 11:44:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin714 215.577 32.3911 424396801 424656001 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 :                                   442.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   473 sec.
    Turnaround time :                            475 sec.

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

