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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin957
RA = 215.577, Dec = 32.3911
tmin = 487382401, tmax = 487641601
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='382937', job_status='RUN', time_executed='2021-09-09 11:41:40.275226', time_epoch_executed='1631212900.28' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='957'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382937/ft1_4FGL_J1422.3+3223_daily_bin957.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382937/ft2_4FGL_J1422.3+3223_daily_bin957.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382937/ft1_4FGL_J1422.3+3223_daily_bin957.fits outfile=/scratch/kocevski/382937/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin957.fits ra=215.577 dec=32.3911 rad=12.0 tmin=487382401.0 tmax=487641601.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 4.04
user 3.59
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382937/ft1_filtered_4FGL_J1422.3+3223_daily_bin957.fits evtable="EVENTS" scfile=/scratch/kocevski/382937/ft2_4FGL_J1422.3+3223_daily_bin957.fits sctable="SC_DATA" expcube=/scratch/kocevski/382937/ltcube_487382401_487641601_4FGL_J1422.3+3223_daily_bin957.fits outfile=/scratch/kocevski/382937/expmap_487382401_487641601_4FGL_J1422.3+3223_daily_bin957.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/382937/ltcube_487382401_487641601_4FGL_J1422.3+3223_daily_bin957.fits
.....................!
real 190.56
user 186.13
sys 4.06

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/382937/ft1_filtered_4FGL_J1422.3+3223_daily_bin957.fits scfile=/scratch/kocevski/382937/ft2_4FGL_J1422.3+3223_daily_bin957.fits outfile=/scratch/kocevski/382937/cmap_487382401_487641601_4FGL_J1422.3+3223_daily_bin957.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.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    100.12       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11712E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10847E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8978       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8040       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0614       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.626       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0523       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.601       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3833       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.141       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0288       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0085       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0768       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78076       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=   5592.754     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2584 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.083        .35338E-07** at limit **
   2  Prefactor     .10000E-03    9.5245       -.26841E-06** at limit **
   3  Prefactor     100.07        81.719        .27463E-05    .10777E-03
   4  Prefactor     .10000E-03    2.2040       -.26150E-06** at limit **
   5  norm          .10000E-03    19.480        .24237E-05** at limit **
   6  Prefactor     8.8975        9.0812       -.36544E-07   -.10634E-04
   7  norm          2.0430        2.4951       -.18794E-07    .22455E-04
   8  Prefactor     1.6560        9.7127        .15146E-05   -.46956E-04
   9  Prefactor     .10000E-03    14.044       -.39196E-06** at limit **
  10  Prefactor     .10000E-03    .87257       -.78277E-07** at limit **
  11  norm          7.8072        10.404       -.46488E-06   -.27277E-04
  12  norm          5.0614        2.5433       -.23360E-07    .49996E-04
  13  Prefactor     25.621        24.319        .36184E-06    .21223E-04
  14  norm          2.0519        5.5841        .11477E-05   -.12420E-04
  15  Prefactor     30.600        35.131       -.24185E-06    .47293E-05
  16  norm          4.3835        4.2076       -.20566E-07    .87729E-04
  17  Prefactor     53.132        36.106        .75047E-06    .65249E-04
  18  norm          5.0288        5.2311       -.55149E-07    .26050E-05
  19  Prefactor     .10000E-03    5.4784       -.70054E-07** at limit **
  20  Prefactor     2.0086        3.9073       -.14173E-07    .85865E-05
  21  norm          2.0767        1.3563        .30638E-07    .83928E-04
  22  Normalizat    1.0215        .18670       -.32250E-05    .32365E-03
  23  Prefactor     .78060        .18918        .39463E-05    .15918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.07
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.89753
  norm       = 2.04301
  Prefactor  = 1.65599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.80715
  norm       = 5.06136
  Prefactor  = 25.6215
  norm       = 2.05186
  Prefactor  = 30.5999
  norm       = 4.38349
  Prefactor  = 53.1322
  norm       = 5.02885
  Prefactor  = 0.0001
  Prefactor  = 2.00864
  norm       = 2.07668
  Normalizat = 1.0215
  Prefactor  = 0.780597
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.754     FROM HESSE     STATUS=OK           376 CALLS     2960 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.5414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     100.07        82.456        .20089E-03   -1.3704    
   4  Prefactor     .10000E-03    3.7350        .20916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    20.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8975        9.0817        .13437E-03   -1.5111    
   7  norm          2.0430        2.4828        .12632E-03   -1.5422    
   8  Prefactor     1.6560        9.7165        .16367E-02   -1.5451    
   9  Prefactor     .10000E-03    14.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .87666        .68230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8072        10.385        .14354E-03   -1.5149    
  12  norm          5.0614        2.5447        .81855E-04   -1.5258    
  13  Prefactor     25.621        24.319        .79133E-04   -1.4695    
  14  norm          2.0519        5.5640        .13749E-02   -1.5421    
  15  Prefactor     30.600        35.114        .72429E-04   -1.4601    
  16  norm          4.3835        4.2056        .14436E-03   -1.5289    
  17  Prefactor     53.132        36.116        .55020E-04   -1.4249    
  18  norm          5.0288        5.2336        .16994E-03   -1.5259    
  19  Prefactor     .10000E-03    5.5021        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0086        3.8705        .19827E-03   -1.5425    
  21  norm          2.0767        1.3484        .67333E-04   -1.5420    
  22  Normalizat    1.0215        .18890        .21433E-03   -.92314    
  23  Prefactor     .78060        .19258        .25763E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01921e-09
Minuit parameter uncertainties:
  1  2.31212e-05
  2  2.06288e-05
  3  82.5505
  4  7.10439e-05
  5  0.000283772
  6  9.0831
  7  2.48288
  8  8.02429
  9  2.88019e-05
  10  1.56704e-06
  11  10.3877
  12  2.54479
  13  24.3285
  14  5.56542
  15  35.1378
  16  4.20584
  17  36.1307
  18  5.23406
  19  3.32994e-06
  20  3.87099
  21  1.34844
  22  0.189027
  23  0.192745
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.567e-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:  7.806e-01  1.927e-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.021e+00  1.890e-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: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382937/likelihoodResults_487382401_487641601_4FGL_J1422.3+3223_daily_bin957.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) = 5592.75895361
delta logL = -0.00531475349908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5592.75363871
delta logL = 1.46115780808e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3853       1.0000          .0000       10.000    
     3 'Normalizat'    1.0215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78065       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=   5592.754     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      211 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7584        .90712E-02** at limit **
   2  Index         1.8869        7.3817        .50000       -.84333E-06
   3  Normalizat    1.0215        .11462E-01    .43143E-01    .18945E-03
   4  Prefactor     .78060        .12264E-01    .43465E-01    .12127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.88686
  Normalizat = 1.0215
  Prefactor  = 0.780597
 **********
 **   18 **HESSE 
 **********

 FCN=   5592.754     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.902        .75169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8869        6.8625        .50000       -.67210    
   3  Normalizat    1.0215        .42899E-01    .21433E-03   -.92314    
   4  Prefactor     .78060        .45894E-01    .25763E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20226e-08
Minuit parameter uncertainties:
  1  0.000489545
  2  562.311
  3  0.0429003
  4  0.0458967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382937': 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) = 5592.75362891
delta logL = 9.94359197648e-06

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.895e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.887e+00  5.623e+02  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.806e-01  4.590e-02  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.021e+00  4.290e-02  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/382937/cmap_HighResolution_487382401_487641601_4FGL_J1422.3+3223_daily_bin957.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2021-09-09 11:51:50.439939', job_id='382937', GAL2='0.78', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631213510.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='9.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='957' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:51:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 382937: <4FGL_J1422.3+3223_daily_bin957> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin957> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:41:21 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:41:23 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:41:23 2021
Terminated at Thu Sep  9 11:51:51 2021
Results reported at Thu Sep  9 11:51:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin957 215.577 32.3911 487382401 487641601 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.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             387.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            630 sec.

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

