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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin72
RA = 215.577, Dec = 32.3911
tmin = 257990401, tmax = 258249601
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='379630', job_status='RUN', time_executed='2021-09-09 11:34:48.608594', time_epoch_executed='1631212488.61' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379630/ft1_4FGL_J1422.3+3223_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379630/ft2_4FGL_J1422.3+3223_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379630/ft1_4FGL_J1422.3+3223_daily_bin72.fits outfile=/scratch/kocevski/379630/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin72.fits ra=215.577 dec=32.3911 rad=12.0 tmin=257990401.0 tmax=258249601.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.42
user 1.24
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379630/ft1_filtered_4FGL_J1422.3+3223_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/379630/ft2_4FGL_J1422.3+3223_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/379630/ltcube_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.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/379630/ft2_4FGL_J1422.3+3223_daily_bin72.fits
.....................!
real 13.41
user 13.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379630/ft1_filtered_4FGL_J1422.3+3223_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/379630/ft2_4FGL_J1422.3+3223_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/379630/ltcube_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.fits outfile=/scratch/kocevski/379630/expmap_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.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/379630/ltcube_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.fits
.....................!
real 190.32
user 184.90
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/379630/ft1_filtered_4FGL_J1422.3+3223_daily_bin72.fits scfile=/scratch/kocevski/379630/ft2_4FGL_J1422.3+3223_daily_bin72.fits outfile=/scratch/kocevski/379630/cmap_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379630/ft1_filtered_4FGL_J1422.3+3223_daily_bin72.fits scfile=/scratch/kocevski/379630/ft2_4FGL_J1422.3+3223_daily_bin72.fits outfile=/scratch/kocevski/379630/cmap_HighResolution_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/379630/ft1_filtered_4FGL_J1422.3+3223_daily_bin72.fits', '/scratch/kocevski/379630/ft2_4FGL_J1422.3+3223_daily_bin72.fits', expMap='/scratch/kocevski/379630/expmap_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.fits', expCube='/scratch/kocevski/379630/ltcube_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/379630/Model_4FGL_J1422.3+3223_daily_bin72.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/379630/ft1_filtered_4FGL_J1422.3+3223_daily_bin72.fits
Spacecraft file(s): /scratch/kocevski/379630/ft2_4FGL_J1422.3+3223_daily_bin72.fits
Exposure map: /scratch/kocevski/379630/expmap_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.fits
Exposure cube: /scratch/kocevski/379630/ltcube_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/379630/Model_4FGL_J1422.3+3223_daily_bin72.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4678.85970476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.615       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53173       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7340       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.369       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.570       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.684       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2921       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.075       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.145       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0851       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85972       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0238       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=   4678.777     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2183 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9085       -.18398E-06** at limit **
   2  Prefactor     29.616        25.196        .38879E-06    .10683E-04
   3  Prefactor     .10000E-03    116.86       -.64779E-05** at limit **
   4  Prefactor     .53270        3.9286       -.23470E-06   -.93972E-04
   5  norm          .10000E-03    5.8127        .20212E-06** at limit **
   6  Prefactor     .10000E-03    6.6416        .44706E-06** at limit **
   7  norm          1.7357        5.5199        .60551E-06   -.43560E-04
   8  Prefactor     18.372        20.185       -.69705E-05   -.40211E-04
   9  Prefactor     51.580        30.117        .18377E-05   -.11548E-04
  10  Prefactor     .10000E-03    3.6068        .63192E-06** at limit **
  11  norm          .10000E-03    6.9859        .94112E-07** at limit **
  12  norm          6.5438        3.1940       -.66430E-08   -.50751E-06
  13  Prefactor     11.685        25.166       -.11102E-05    .53214E-06
  14  norm          2.2874        2.2436        .22823E-06   -.10645E-02
  15  Prefactor     .10000E-03    16.223       -.12151E-05** at limit **
  16  norm          .10000E-03    3.1676        .16595E-06** at limit **
  17  Prefactor     .10000E-03    12.531        .12247E-06** at limit **
  18  norm          21.076        15.881       -.18194E-05   -.16499E-04
  19  Prefactor     15.152        20.263       -.27417E-05   -.18720E-04
  20  Prefactor     5.0849        5.6247        .31951E-06    .10605E-03
  21  norm          .10000E-03    .91058        .16145E-06** at limit **
  22  Normalizat    .85941        .19556        .10035E-05   -.16912E-04
  23  Prefactor     1.0241        .19519        .16434E-06    .22405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.616
  Prefactor  = 0.0001
  Prefactor  = 0.5327
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73571
  Prefactor  = 18.3724
  Prefactor  = 51.5797
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.54384
  Prefactor  = 11.6852
  norm       = 2.28736
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.0764
  Prefactor  = 15.1519
  Prefactor  = 5.08491
  norm       = 0.0001
  Normalizat = 0.859414
  Prefactor  = 1.02414
 **********
 **   18 **HESSE 
 **********

 FCN=   4678.777     FROM HESSE     STATUS=OK           374 CALLS     2557 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9188        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.616        25.200        .73623E-04   -1.4619    
   3  Prefactor     .10000E-03    117.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .53270        8.1095        .25023E-02   -1.5562    
   5  norm          .10000E-03    5.8226        .16107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6460        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7357        5.4843        .26568E-03   -1.5444    
   8  Prefactor     18.372        20.179        .93449E-04   -1.4850    
   9  Prefactor     51.580        30.330        .55847E-04   -1.4270    
  10  Prefactor     .10000E-03    3.7431        .25316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.9919        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5438        3.1968        .82392E-04   -1.5196    
  13  Prefactor     11.685        25.151        .11720E-03   -1.5024    
  14  norm          2.2874        9.6450        .13556E-02   -1.5405    
  15  Prefactor     .10000E-03    16.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2006        .11882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.076        16.074        .87248E-04   -1.4789    
  19  Prefactor     15.152        20.382        .10292E-03   -1.4929    
  20  Prefactor     5.0849        5.6274        .82146E-03   -1.5257    
  21  norm          .10000E-03    .95408        .12730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85941        .23080        .24324E-03   -.97901    
  23  Prefactor     1.0241        .22892        .23887E-03   -.91929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60048e-08
Minuit parameter uncertainties:
  1  4.10872e-06
  2  25.2086
  3  7.52728e-05
  4  4.15716
  5  3.53694e-06
  6  1.18461e-05
  7  5.48587
  8  20.1868
  9  30.3388
  10  5.44106e-06
  11  2.64609e-05
  12  3.1969
  13  25.1738
  14  9.39633
  15  3.90869e-06
  16  5.2014e-06
  17  5.44008e-06
  18  16.0773
  19  20.3915
  20  5.62802
  21  1.90582e-06
  22  0.23107
  23  0.229142
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.441e-06  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.024e+00  2.291e-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:  8.594e-01  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379630/likelihoodResults_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.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): 102
logL (Free Index) = 4678.77848729
delta logL = -0.00127510795664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4678.77721217
delta logL = 6.81484380038e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4179       1.0000          .0000       10.000    
     3 'Normalizat'    .85939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0242       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=   4678.777     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      270 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .81047E-01    .18566E-01** at limit **
   2  Index         3.7175        5.3242        .50000        .12304E-05
   3  Normalizat    .85941        .17103E-02    .24324E-03    .83319E-03
   4  Prefactor     1.0241        .18282E-02    .23887E-03    .44488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.71749
  Normalizat = 0.859413
  Prefactor  = 1.02414
 **********
 **   18 **HESSE 
 **********

 FCN=   4678.777     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      309 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12031        .15388E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7175        5.7796        .50000       -.25940    
   3  Normalizat    .85941        .18237E-02    .48647E-04   -.97901    
   4  Prefactor     1.0241        .19493E-02    .47775E-04   -.91929    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04106e-11
Minuit parameter uncertainties:
  1  2.42636e-05
  2  14.1964
  3  0.00182368
  4  0.00194933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379630': 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): 102
logL (Free Index) = 4678.77720235
delta logL = 9.83137033472e-06

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.426e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.717e+00  1.420e+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.024e+00  1.949e-03  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:  8.594e-01  1.824e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/379630/cmap_HighResolution_257990401_258249601_4FGL_J1422.3+3223_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-09 11:43:37.131517', job_id='379630', GAL2='1.02', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631213017.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='72' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:43:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 379630: <4FGL_J1422.3+3223_daily_bin72> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin72 215.577 32.3911 257990401 258249601 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 :                                   528.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            757 sec.

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

