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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1023
RA = 215.577, Dec = 32.3911
tmin = 504489601, tmax = 504748801
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='383043', job_status='RUN', time_executed='2021-09-09 11:45:27.700911', time_epoch_executed='1631213127.7' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383043

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383043/ft1_4FGL_J1422.3+3223_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383043/ft2_4FGL_J1422.3+3223_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383043/ft1_4FGL_J1422.3+3223_daily_bin1023.fits outfile=/scratch/kocevski/383043/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1023.fits ra=215.577 dec=32.3911 rad=12.0 tmin=504489601.0 tmax=504748801.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.60
user 4.13
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383043/ft1_filtered_4FGL_J1422.3+3223_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/383043/ft2_4FGL_J1422.3+3223_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/383043/ltcube_504489601_504748801_4FGL_J1422.3+3223_daily_bin1023.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/383043/ft2_4FGL_J1422.3+3223_daily_bin1023.fits
.....................!
real 11.69
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383043/ft1_filtered_4FGL_J1422.3+3223_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/383043/ft2_4FGL_J1422.3+3223_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/383043/ltcube_504489601_504748801_4FGL_J1422.3+3223_daily_bin1023.fits outfile=/scratch/kocevski/383043/expmap_504489601_504748801_4FGL_J1422.3+3223_daily_bin1023.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/383043/ltcube_504489601_504748801_4FGL_J1422.3+3223_daily_bin1023.fits
.....................!
real 191.72
user 185.45
sys 5.75

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/383043/ft1_filtered_4FGL_J1422.3+3223_daily_bin1023.fits scfile=/scratch/kocevski/383043/ft2_4FGL_J1422.3+3223_daily_bin1023.fits outfile=/scratch/kocevski/383043/cmap_504489601_504748801_4FGL_J1422.3+3223_daily_bin1023.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383043/ft1_filtered_4FGL_J1422.3+3223_daily_bin1023.fits scfile=/scratch/kocevski/383043/ft2_4FGL_J1422.3+3223_daily_bin1023.fits outfile=/scratch/kocevski/383043/cmap_HighResolution_504489601_504748801_4FGL_J1422.3+3223_daily_bin1023.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.6748       1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12123E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.974       1.0000         .10000E-03   10000.    
    14 'norm      '    8.0649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.389       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1084       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.207       1.0000         .10000E-03   10000.    
    18 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.710       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9653       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74470       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0157       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=   5105.470     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2472 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.225       -.39610E-05** at limit **
   2  Prefactor     .10000E-03    13.021        .38594E-05** at limit **
   3  Prefactor     .10000E-03    42.971        .21382E-07** at limit **
   4  Prefactor     7.6735        5.3983       -.72840E-06   -.17772E-03
   5  norm          .10000E-03    7.4999       -.73982E-06** at limit **
   6  Prefactor     .10000E-03    8.5458        .26649E-05** at limit **
   7  norm          .10000E-03    2.3212        .69392E-06** at limit **
   8  Prefactor     .10000E-03    4.8767       -.65813E-06** at limit **
   9  Prefactor     .10000E-03    9.0033        .18519E-05** at limit **
  10  Prefactor     .10000E-03    1.5409        .22327E-06** at limit **
  11  norm          .10000E-03    4.2834       -.18273E-05** at limit **
  12  norm          10.474        3.5514        .47378E-07    .13332E-04
  13  Prefactor     14.967        29.377       -.11337E-04   -.74484E-05
  14  norm          8.0645        5.3563        .42259E-07    .13380E-04
  15  Prefactor     40.388        38.328       -.61451E-06    .73878E-05
  16  norm          5.1085        4.5064       -.37840E-07   -.12626E-03
  17  Prefactor     21.193        39.606       -.23903E-04   -.22074E-05
  18  norm          .10000E-03    4.3265        .37849E-07** at limit **
  19  Prefactor     17.708        17.718        .11647E-06    .55398E-05
  20  Prefactor     .10000E-03    12.290        .25311E-07** at limit **
  21  norm          1.9653        1.7883       -.15602E-06   -.32072E-03
  22  Normalizat    .74498        .18545        .50005E-05   -.15387E-03
  23  Prefactor     1.0154        .18460       -.77895E-06    .84470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.67345
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4736
  Prefactor  = 14.9666
  norm       = 8.0645
  Prefactor  = 40.3879
  norm       = 5.10848
  Prefactor  = 21.1925
  norm       = 0.0001
  Prefactor  = 17.7083
  Prefactor  = 0.0001
  norm       = 1.96533
  Normalizat = 0.744982
  Prefactor  = 1.01544
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.470     FROM HESSE     STATUS=OK           370 CALLS     2842 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.6735        5.4259        .13000E-03   -1.5154    
   5  norm          .10000E-03    7.5389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4188        .21243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8857        .15409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5669        .17214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.2852        .14444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.474        3.5543        .75683E-04   -1.5061    
  13  Prefactor     14.967        29.431        .10351E-03   -1.4934    
  14  norm          8.0645        5.3543        .13004E-03   -1.5140    
  15  Prefactor     40.388        38.315        .31536E-03   -1.4436    
  16  norm          5.1085        4.5110        .13693E-03   -1.5256    
  17  Prefactor     21.193        39.622        .86977E-04   -1.4787    
  18  norm          .10000E-03    4.3314        .14510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.708        17.689        .95171E-04   -1.4866    
  20  Prefactor     .10000E-03    12.492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9653        1.7700        .86015E-04   -1.5428    
  22  Normalizat    .74498        .21391        .25459E-03   -1.0214    
  23  Prefactor     1.0154        .21476        .23245E-03   -.92217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44866e-10
Minuit parameter uncertainties:
  1  1.51767e-05
  2  1.56362e-05
  3  7.20024e-05
  4  5.42628
  5  1.92721e-05
  6  1.28524e-05
  7  1.15894e-05
  8  3.31051e-06
  9  4.94869e-06
  10  4.75688e-07
  11  1.26589e-06
  12  3.55436
  13  29.4595
  14  5.35467
  15  38.3383
  16  4.51133
  17  39.6714
  18  4.68477e-07
  19  17.6937
  20  1.14882e-05
  21  1.77008
  22  0.214147
  23  0.214941
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.757e-07  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.015e+00  2.149e-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:  7.450e-01  2.141e-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: 5.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383043/likelihoodResults_504489601_504748801_4FGL_J1422.3+3223_daily_bin1023.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) = 5105.4714674
delta logL = -0.00185713782685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5105.46961715
delta logL = -6.89557964506e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14355E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3624       1.0000          .0000       10.000    
     3 'Normalizat'    .74510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0154       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=   5105.470     FROM MIGRAD    STATUS=FAILED        95 CALLS      258 TOTAL
                     EDM=   .84E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12699E-03    231.30        .17826E-02** at limit **
   2  Index         1.9217        5.5978        .50000        .46842E-04
   3  Normalizat    .74499        .28568E-01    .25458E-03    .63645E-03
   4  Prefactor     1.0154        .30221E-01    .23245E-03    .86090E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5105.470     FROM SIMPLEX   STATUS=PROGRESS     123 CALLS      381 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10090E-03    231.30        .35977E-03** at limit **
   2  Index         1.9211        5.5978        .21501E-03    .46842E-04
   3  Normalizat    .74497        .28568E-01    .89705E-05    .63645E-03
   4  Prefactor     1.0154        .30221E-01    .58401E-05    .86090E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5105.470     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      430 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    147.96        .35653E-02** at limit **
   2  Index         1.7929        5.1839        .50000       -.56834E-06
   3  Normalizat    .74498        .21842E-01    .50917E-04   -.41892E-03
   4  Prefactor     1.0154        .23106E-01    .46490E-04   -.32495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.7929
  Normalizat = 0.744984
  Prefactor  = 1.01544
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.470     FROM HESSE     STATUS=OK            29 CALLS      459 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.775        .14261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7929        6.6272        .50000       -.69635    
   3  Normalizat    .74498        .19893        .10183E-04   -1.0214    
   4  Prefactor     1.0154        .21045        .92980E-05   -.92217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06555e-09
Minuit parameter uncertainties:
  1  0.000202375
  2  93.7005
  3  0.199126
  4  0.210621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383043': 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) = 5105.46959898
delta logL = 1.12823918244e-05

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.024e-04  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.793e+00  9.370e+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.015e+00  2.106e-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:  7.450e-01  1.991e-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/383043/cmap_HighResolution_504489601_504748801_4FGL_J1422.3+3223_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2021-09-09 11:55:00.973923', job_id='383043', GAL2='1.02', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631213700.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.13e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1023' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 383043: <4FGL_J1422.3+3223_daily_bin1023> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1023> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:41:30 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:41:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:41:32 2021
Terminated at Thu Sep  9 11:55:01 2021
Results reported at Thu Sep  9 11:55:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1023 215.577 32.3911 504489601 504748801 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 :                                   570.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

