/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 109 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 = 7471
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin86
RA = 215.577, Dec = 32.3911
tmin = 261619201, tmax = 261878401
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='379646', job_status='RUN', time_executed='2021-09-09 11:33:04.111494', time_epoch_executed='1631212384.11' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379646/ft1_4FGL_J1422.3+3223_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379646/ft2_4FGL_J1422.3+3223_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379646/ft1_4FGL_J1422.3+3223_daily_bin86.fits outfile=/scratch/kocevski/379646/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin86.fits ra=215.577 dec=32.3911 rad=12.0 tmin=261619201.0 tmax=261878401.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 1.43
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/379646/ft2_4FGL_J1422.3+3223_daily_bin86.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/379646/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/379646/ft1_filtered_4FGL_J1422.3+3223_daily_bin86.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379646/ft1_filtered_4FGL_J1422.3+3223_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/379646/ft2_4FGL_J1422.3+3223_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/379646/ltcube_261619201_261878401_4FGL_J1422.3+3223_daily_bin86.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/379646/ft2_4FGL_J1422.3+3223_daily_bin86.fits
.....................!
real 17.09
user 16.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379646/ft1_filtered_4FGL_J1422.3+3223_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/379646/ft2_4FGL_J1422.3+3223_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/379646/ltcube_261619201_261878401_4FGL_J1422.3+3223_daily_bin86.fits outfile=/scratch/kocevski/379646/expmap_261619201_261878401_4FGL_J1422.3+3223_daily_bin86.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/379646/ltcube_261619201_261878401_4FGL_J1422.3+3223_daily_bin86.fits
.....................!
real 190.49
user 185.57
sys 4.52

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/379646/ft1_filtered_4FGL_J1422.3+3223_daily_bin86.fits scfile=/scratch/kocevski/379646/ft2_4FGL_J1422.3+3223_daily_bin86.fits outfile=/scratch/kocevski/379646/cmap_261619201_261878401_4FGL_J1422.3+3223_daily_bin86.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379646/ft1_filtered_4FGL_J1422.3+3223_daily_bin86.fits scfile=/scratch/kocevski/379646/ft2_4FGL_J1422.3+3223_daily_bin86.fits outfile=/scratch/kocevski/379646/cmap_HighResolution_261619201_261878401_4FGL_J1422.3+3223_daily_bin86.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.121       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16073E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3591       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64877E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4986       1.0000         .10000E-03   10000.    
    11 'norm      '    13.084       1.0000         .10000E-03   10000.    
    12 'norm      '    9.1701       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.162       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5136       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0400       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8674       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2264       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69809       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=   6275.919     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2225 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.127       -.21360E-07** at limit **
   2  Prefactor     17.757        18.852        .10567E-05    .37283E-05
   3  Prefactor     17.253        38.283        .35585E-06    .11422E-05
   4  Prefactor     .10000E-03    1.7517        .33939E-07** at limit **
   5  norm          20.446        13.543        .33749E-06    .22499E-04
   6  Prefactor     .10000E-03    5.1150       -.13466E-08** at limit **
   7  norm          2.3604        3.3194       -.13036E-06    .48732E-05
   8  Prefactor     .10000E-03    8.2383       -.68331E-06** at limit **
   9  Prefactor     .10000E-03    12.007       -.43060E-07** at limit **
  10  Prefactor     2.4992        4.4716        .19738E-07   -.80981E-04
  11  norm          13.092        13.028        .24173E-05    .91910E-04
  12  norm          9.1699        3.0435        .19769E-07    .32420E-06
  13  Prefactor     22.165        20.450       -.67159E-06    .76401E-05
  14  norm          6.5153        6.0169        .91586E-06    .44466E-04
  15  Prefactor     .10000E-03    19.988       -.86758E-07** at limit **
  16  norm          .10000E-03    2.1787        .98562E-08** at limit **
  17  Prefactor     .10000E-03    26.256        .15247E-06** at limit **
  18  norm          7.0400        6.7673       -.28109E-07    .27084E-05
  19  Prefactor     2.8708        4.6831        .23593E-06   -.33231E-03
  20  Prefactor     .10000E-03    3.3042       -.15318E-07** at limit **
  21  norm          .10000E-03    .45534       -.57859E-08** at limit **
  22  Normalizat    1.2264        .16910       -.31442E-06    .77738E-04
  23  Prefactor     .69817        .16635       -.11523E-06    .19938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.7566
  Prefactor  = 17.2527
  Prefactor  = 0.0001
  norm       = 20.4462
  Prefactor  = 0.0001
  norm       = 2.36038
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 2.49918
  norm       = 13.092
  norm       = 9.16993
  Prefactor  = 22.1651
  norm       = 6.51529
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.03997
  Prefactor  = 2.87082
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.2264
  Prefactor  = 0.698165
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.919     FROM HESSE     STATUS=OK           372 CALLS     2597 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.757        18.811        .95038E-04   -1.4865    
   3  Prefactor     17.253        38.318        .96796E-04   -1.4877    
   4  Prefactor     .10000E-03    6.8209        .20055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.446        13.556        .88580E-04   -1.4803    
   6  Prefactor     .10000E-03    5.1166        .17498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3604        3.2798        .16274E-03   -1.5401    
   8  Prefactor     .10000E-03    61.878        .42757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4992        4.4867        .20790E-03   -1.5392    
  11  norm          13.092        13.033        .11074E-03   -1.4984    
  12  norm          9.1699        3.0454        .76860E-04   -1.5102    
  13  Prefactor     22.165        20.452        .85084E-04   -1.4766    
  14  norm          6.5153        6.0300        .15725E-03   -1.5197    
  15  Prefactor     .10000E-03    20.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2031        .11414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0400        6.8289        .15119E-03   -1.5177    
  19  Prefactor     2.8708        21.416        .12003E-02   -1.5369    
  20  Prefactor     .10000E-03    3.3238        .14062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .45954        .52185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2264        .19446        .21353E-03   -.85791    
  23  Prefactor     .69817        .19082        .28279E-03   -1.0360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06795e-09
Minuit parameter uncertainties:
  1  5.35839e-06
  2  18.8173
  3  38.3727
  4  2.28316e-06
  5  13.5585
  6  1.16002e-06
  7  3.28004
  8  0.000939156
  9  2.15676e-05
  10  4.48733
  11  13.0356
  12  3.04546
  13  20.4589
  14  6.03057
  15  8.48851e-06
  16  1.32331e-06
  17  5.85841e-06
  18  6.82962
  19  15.6896
  20  7.08389e-07
  21  3.19705e-08
  22  0.194579
  23  0.191001
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.499e+00  4.487e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.401e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  6.982e-01  1.910e-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.226e+00  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.39
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379646/likelihoodResults_261619201_261878401_4FGL_J1422.3+3223_daily_bin86.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) = 6275.83453366
delta logL = 0.0840908446735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6275.83084788
delta logL = 0.0877766263211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8891       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8739       1.0000          .0000       10.000    
     3 'Normalizat'    1.2117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70828       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=   6275.831     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      240 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8886        61.347        .75691E-02    .10612E-02
   2  Index         2.8741        3.7014        .22412        .69469E-04
   3  Normalizat    1.2116        .36563E-01    .34611E-01    .20932E-05
   4  Prefactor     .70830        .38174E-01    .63510E-01    .21360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88855
  Index      = 2.87409
  Normalizat = 1.21165
  Prefactor  = 0.708296
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.831     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8886        4.8661        .14619E-03   -1.5433    
   2  Index         2.8741        1.4974        .89286E-02   -.43916    
   3  Normalizat    1.2116        .19040        .21465E-03   -.86244    
   4  Prefactor     .70830        .19157        .28096E-03   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06997e-11
Minuit parameter uncertainties:
  1  4.8671
  2  1.52619
  3  0.19051
  4  0.191753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379646': 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) = 6275.83084786
delta logL = 0.0877766392077

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.889e+00  4.867e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.874e+00  1.526e+00  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:  7.083e-01  1.918e-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.212e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
Ra Dec: 215.577 32.391

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/379646/cmap_HighResolution_261619201_261878401_4FGL_J1422.3+3223_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-09 11:43:18.755477', job_id='379646', GAL2='0.71', fit_tolerance='1e-08', EG2='1.21', EG='1.23', time_epoch_completed='1631212998.76', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='8.78e-02', ts2='0.58', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='86' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:43:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 379646: <4FGL_J1422.3+3223_daily_bin86> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin86> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 11:31:03 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:31:05 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:31:05 2021
Terminated at Thu Sep  9 11:43:19 2021
Results reported at Thu Sep  9 11:43:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin86 215.577 32.3911 261619201 261878401 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 :                                   613.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

