/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 1 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 = 7476
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin209
RA = 215.577, Dec = 32.3911
tmin = 293500801, tmax = 293760001
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='379827', job_status='RUN', time_executed='2021-09-09 11:31:26.514216', time_epoch_executed='1631212286.51' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379827/ft1_4FGL_J1422.3+3223_daily_bin209.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379827/ft2_4FGL_J1422.3+3223_daily_bin209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379827/ft1_4FGL_J1422.3+3223_daily_bin209.fits outfile=/scratch/kocevski/379827/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin209.fits ra=215.577 dec=32.3911 rad=12.0 tmin=293500801.0 tmax=293760001.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.57
user 3.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/379827/ft2_4FGL_J1422.3+3223_daily_bin209.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/379827/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin209.fits evtable="EVENTS" outfile="/scratch/kocevski/379827/ft1_filtered_4FGL_J1422.3+3223_daily_bin209.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/379827/ft1_filtered_4FGL_J1422.3+3223_daily_bin209.fits" evtable="EVENTS" scfile=/scratch/kocevski/379827/ft2_4FGL_J1422.3+3223_daily_bin209.fits sctable="SC_DATA" outfile=/scratch/kocevski/379827/ltcube_293500801_293760001_4FGL_J1422.3+3223_daily_bin209.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/379827/ft2_4FGL_J1422.3+3223_daily_bin209.fits
.....................!
real 12.00
user 11.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379827/ft1_filtered_4FGL_J1422.3+3223_daily_bin209.fits evtable="EVENTS" scfile=/scratch/kocevski/379827/ft2_4FGL_J1422.3+3223_daily_bin209.fits sctable="SC_DATA" expcube=/scratch/kocevski/379827/ltcube_293500801_293760001_4FGL_J1422.3+3223_daily_bin209.fits outfile=/scratch/kocevski/379827/expmap_293500801_293760001_4FGL_J1422.3+3223_daily_bin209.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/379827/ltcube_293500801_293760001_4FGL_J1422.3+3223_daily_bin209.fits
.....................!
real 190.90
user 185.86
sys 4.69

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/379827/ft1_filtered_4FGL_J1422.3+3223_daily_bin209.fits scfile=/scratch/kocevski/379827/ft2_4FGL_J1422.3+3223_daily_bin209.fits outfile=/scratch/kocevski/379827/cmap_293500801_293760001_4FGL_J1422.3+3223_daily_bin209.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379827/ft1_filtered_4FGL_J1422.3+3223_daily_bin209.fits scfile=/scratch/kocevski/379827/ft2_4FGL_J1422.3+3223_daily_bin209.fits outfile=/scratch/kocevski/379827/cmap_HighResolution_293500801_293760001_4FGL_J1422.3+3223_daily_bin209.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9506       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7552       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11381E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11254E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.4895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.935       1.0000         .10000E-03   10000.    
    14 'norm      '    .82249E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.447       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3423       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .98164       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .78464       1.0000         .10000E-03   10000.    
    21 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2024       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66426       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=   5441.208     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2614 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.400        20.457        .21050E-06    .10084E-03
   2  Prefactor     29.099        31.300        .32581E-06    .80089E-04
   3  Prefactor     6.9284        119.70        .52949E-05    .67253E-04
   4  Prefactor     1.7536        4.2481       -.39084E-06    .14671E-03
   5  norm          4.8456        11.325       -.16982E-06    .38671E-04
   6  Prefactor     .10000E-03    20.016        .47620E-06** at limit **
   7  norm          .10000E-03    2.3074       -.86287E-06** at limit **
   8  Prefactor     21.428        15.302        .12272E-06    .33692E-03
   9  Prefactor     .10000E-03    36.939       -.20543E-05** at limit **
  10  Prefactor     .10000E-03    2.9515       -.17049E-05** at limit **
  11  norm          .10000E-03    5.3252       -.12271E-06** at limit **
  12  norm          5.4894        2.4841        .92420E-07   -.41486E-03
  13  Prefactor     24.934        21.276        .19545E-06    .60276E-04
  14  norm          .10013E-03    8.6800        .46101E-05** at limit **
  15  Prefactor     35.468        43.060       -.12632E-05   -.21848E-03
  16  norm          5.3422        4.7711       -.13392E-06    .50619E-04
  17  Prefactor     .10000E-03    45.276        .17389E-05** at limit **
  18  norm          .98361        5.5619       -.11823E-05    .12235E-03
  19  Prefactor     .10000E-03    3.7625        .36030E-07** at limit **
  20  Prefactor     .74279        16.466        .77828E-05    .64374E-04
  21  norm          .10000E-03    .70070        .95388E-07** at limit **
  22  Normalizat    1.2025        .18487       -.39477E-06    .30152E-03
  23  Prefactor     .66412        .17619        .13466E-05    .28205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3999
  Prefactor  = 29.0992
  Prefactor  = 6.92845
  Prefactor  = 1.75365
  norm       = 4.84565
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.4275
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 5.48938
  Prefactor  = 24.9336
  norm       = 0.000100128
  Prefactor  = 35.4682
  norm       = 5.34223
  Prefactor  = 0.000100001
  norm       = 0.983608
  Prefactor  = 0.0001
  Prefactor  = 0.742793
  norm       = 0.0001
  Normalizat = 1.20253
  Prefactor  = 0.664121
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.208     FROM HESSE     STATUS=OK           374 CALLS     2988 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.400        20.442        .81089E-04   -1.4720    
   2  Prefactor     29.099        31.288        .74267E-04   -1.4629    
   3  Prefactor     6.9284        121.45        .15217E-03   -1.5181    
   4  Prefactor     1.7536        4.2457        .22320E-03   -1.5443    
   5  norm          4.8456        11.319        .18272E-03   -1.5268    
   6  Prefactor     .10000E-03    20.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.815        .20799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.428        15.126        .86513E-04   -1.4782    
   9  Prefactor     .10000E-03    37.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5201        .23639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.3289        .16623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4894        2.4803        .37877E-03   -1.5239    
  13  Prefactor     24.934        21.290        .80220E-04   -1.4709    
  14  norm          .10013E-03    34.918        .26029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.468        42.960        .67311E-04   -1.4516    
  16  norm          5.3422        4.7839        .14517E-03   -1.5246    
  17  Prefactor     .10000E-03    45.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .98361        5.4499        .33946E-03   -1.5510    
  19  Prefactor     .10000E-03    3.7640        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .74279        20.195        .29231E-02   -1.5536    
  21  norm          .10000E-03    .99728        .11307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2025        .21078        .21056E-03   -.86525    
  23  Prefactor     .66412        .20478        .27972E-03   -1.0495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38856e-09
Minuit parameter uncertainties:
  1  20.4482
  2  31.3056
  3  58.1545
  4  4.24647
  5  11.3242
  6  0.000123911
  7  2.05734e-05
  8  15.1283
  9  0.000489922
  10  0.00029208
  11  1.16763e-05
  12  2.48031
  13  21.2968
  14  0.00423078
  15  42.9979
  16  4.78424
  17  0.000521029
  18  4.631
  19  6.25187e-07
  20  7.74844
  21  2.99229e-05
  22  0.210925
  23  0.205009
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.921e-04  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.641e-01  2.050e-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.203e+00  2.109e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/379827/likelihoodResults_293500801_293760001_4FGL_J1422.3+3223_daily_bin209.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) = 5441.20906776
delta logL = -0.000862250042701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5441.20820728
delta logL = -1.7762704374e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12111E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4646       1.0000          .0000       10.000    
     3 'Normalizat'    1.2029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66378       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5441.208     FROM MIGRAD    STATUS=FAILED        94 CALLS      266 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    10.224        .18689E-02** at limit **
   2  Index         2.5478        6.2738        .94647E-02   -.11094E-03
   3  Normalizat    1.2025        .19426        .21056E-03    .25338E-03
   4  Prefactor     .66412        .19790        .27972E-03    .16692E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5441.208     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      378 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10065E-03    10.224        .29815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5478        6.2738        .97107E-03   -.51259    
   3  Normalizat    1.2025        .19426        .11321E-03   -.86525    
   4  Prefactor     .66412        .19790        .13511E-03   -1.0495    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5441.167     FROM MIGRAD    STATUS=CONVERGED    167 CALLS      545 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19979        3.5031        .11000E-03   -.52295E-04
   2  Index         3.7291        3.7625        .37859E-02   -.97955E-05
   3  Normalizat    1.1855        .20410        .84224E-05    .61822E-04
   4  Prefactor     .67391        .20193        .22378E-05    .38611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.199791
  Index      = 3.72914
  Normalizat = 1.18553
  Prefactor  = 0.673905
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.167     FROM HESSE     STATUS=OK            25 CALLS      570 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19979        2.1423        .44001E-05   -1.5619    
   2  Index         3.7291        3.1041        .15144E-03   -.25699    
   3  Normalizat    1.1855        .19924        .16845E-05   -.87051    
   4  Prefactor     .67391        .19632        .44756E-06   -1.0456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97459e-11
Minuit parameter uncertainties:
  1  1.30817
  2  3.37043
  3  0.199366
  4  0.196519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379827': 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) = 5441.16743473
delta logL = 0.0407707830254

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.998e-01  1.308e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.729e+00  3.370e+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:  6.739e-01  1.965e-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.186e+00  1.994e-01  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/379827/cmap_HighResolution_293500801_293760001_4FGL_J1422.3+3223_daily_bin209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-09 11:41:34.736587', job_id='379827', GAL2='0.67', fit_tolerance='1e-08', EG2='1.19', EG='1.20', time_epoch_completed='1631212894.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='4.08e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='209' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:41:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 379827: <4FGL_J1422.3+3223_daily_bin209> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin209 215.577 32.3911 293500801 293760001 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 :                                   603.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            619 sec.

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

