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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1250
RA = 215.577, Dec = 32.3911
tmin = 563328001, tmax = 563587201
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='384486', job_status='RUN', time_executed='2021-09-09 11:49:10.684151', time_epoch_executed='1631213350.68' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384486

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384486/ft1_4FGL_J1422.3+3223_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384486/ft2_4FGL_J1422.3+3223_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384486/ft1_4FGL_J1422.3+3223_daily_bin1250.fits outfile=/scratch/kocevski/384486/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1250.fits ra=215.577 dec=32.3911 rad=12.0 tmin=563328001.0 tmax=563587201.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 2.97
user 2.75
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384486/ft2_4FGL_J1422.3+3223_daily_bin1250.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/384486/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1250.fits evtable="EVENTS" outfile="/scratch/kocevski/384486/ft1_filtered_4FGL_J1422.3+3223_daily_bin1250.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/384486/ft1_filtered_4FGL_J1422.3+3223_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/384486/ft2_4FGL_J1422.3+3223_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/384486/ltcube_563328001_563587201_4FGL_J1422.3+3223_daily_bin1250.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/384486/ft2_4FGL_J1422.3+3223_daily_bin1250.fits
.....................!
real 12.39
user 11.99
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384486/ft1_filtered_4FGL_J1422.3+3223_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/384486/ft2_4FGL_J1422.3+3223_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/384486/ltcube_563328001_563587201_4FGL_J1422.3+3223_daily_bin1250.fits outfile=/scratch/kocevski/384486/expmap_563328001_563587201_4FGL_J1422.3+3223_daily_bin1250.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/384486/ltcube_563328001_563587201_4FGL_J1422.3+3223_daily_bin1250.fits
.....................!
real 191.52
user 185.90
sys 5.16

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/384486/ft1_filtered_4FGL_J1422.3+3223_daily_bin1250.fits scfile=/scratch/kocevski/384486/ft2_4FGL_J1422.3+3223_daily_bin1250.fits outfile=/scratch/kocevski/384486/cmap_563328001_563587201_4FGL_J1422.3+3223_daily_bin1250.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384486/ft1_filtered_4FGL_J1422.3+3223_daily_bin1250.fits scfile=/scratch/kocevski/384486/ft2_4FGL_J1422.3+3223_daily_bin1250.fits outfile=/scratch/kocevski/384486/cmap_HighResolution_563328001_563587201_4FGL_J1422.3+3223_daily_bin1250.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6127       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .89885       1.0000         .10000E-03   10000.    
     5 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7049       1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1974       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.509       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.001       1.0000         .10000E-03   10000.    
    14 'norm      '    13.473       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .80236       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14077E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .96371E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7179       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2343       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78410       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=   8583.992     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     2663 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5966        .17152E-02** at limit **
   2  Prefactor     .10000E-03    18.572        .18142E-02** at limit **
   3  Prefactor     6.6178        108.62        .15605E-03    .87422E-06
   4  Prefactor     .89787        2.2182        .21351E-03    .71138E-04
   5  norm          .10000E-03    3.4690        .16830E-02** at limit **
   6  Prefactor     6.7129        10.218        .15496E-03   -.27878E-05
   7  norm          .10000E-03    2.4206        .27632E-03** at limit **
   8  Prefactor     .10000E-03    6.2609        .18142E-02** at limit **
   9  Prefactor     .10000E-03    6.1862        .18142E-02** at limit **
  10  Prefactor     5.1964        3.0676        .11884E-03   -.21237E-04
  11  norm          .10000E-03    5.8576        .18142E-02** at limit **
  12  norm          10.508        3.2199        .88727E-04   -.58172E-04
  13  Prefactor     21.004        20.628        .87401E-04    .10276E-03
  14  norm          13.479        6.6304        .10912E-03    .62822E-03
  15  Prefactor     .61975        34.006        .14061        .40220E-03
  16  norm          .10000E-03    2.2811        .13572E-02** at limit **
  17  Prefactor     .10000E-03    9.6240        .18142E-02** at limit **
  18  norm          .10000E-03    1.7762        .12056E-02** at limit **
  19  Prefactor     .10052E-03    8.8266        .70097E-01** at limit **
  20  Prefactor     .10328        4.5045        .56839E-01    .42377E-03
  21  norm          1.7177        1.4196        .90512E-04    .16680E-03
  22  Normalizat    1.2343        .17852        .22122E-03    .13135E-03
  23  Prefactor     .78418        .17755        .28305E-03    .10089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.61776
  Prefactor  = 0.897867
  norm       = 0.0001
  Prefactor  = 6.71294
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.19637
  norm       = 0.0001
  norm       = 10.5084
  Prefactor  = 21.0038
  norm       = 13.4792
  Prefactor  = 0.619751
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100519
  Prefactor  = 0.103279
  norm       = 1.71772
  Normalizat = 1.23434
  Prefactor  = 0.784176
 **********
 **   18 **HESSE 
 **********

 FCN=   8583.992     FROM HESSE     STATUS=OK           376 CALLS     3039 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5967        .34304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6178        108.46        .62421E-05   -1.5193    
   4  Prefactor     .89787        2.2180        .85403E-05   -1.5518    
   5  norm          .10000E-03    3.4693        .33661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7129        10.217        .61985E-05   -1.5190    
   7  norm          .10000E-03    2.4207        .55264E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1964        3.0675        .47538E-05   -1.5252    
  11  norm          .10000E-03    5.8589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.508        3.2199        .35491E-05   -1.5060    
  13  Prefactor     21.004        20.619        .34960E-05   -1.4791    
  14  norm          13.479        6.6279        .43649E-05   -1.4974    
  15  Prefactor     .61975        32.591        .14482       -1.5551    
  16  norm          .10000E-03    2.2817        .27144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7762        .24111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10052E-03    7.8194        .76606E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10328        4.4460        .57477E-01   -1.5644    
  21  norm          1.7177        1.4194        .36205E-05   -1.5446    
  22  Normalizat    1.2343        .17869        .44244E-04   -.85548    
  23  Prefactor     .78418        .17770        .11322E-04   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08059e-09
Minuit parameter uncertainties:
  1  3.63439e-06
  2  4.33212e-05
  3  53.6968
  4  2.21815
  5  3.49036e-06
  6  10.2195
  7  1.10928e-05
  8  8.57449e-06
  9  2.45662e-05
  10  3.06762
  11  5.06142e-06
  12  3.21995
  13  20.6259
  14  6.62824
  15  8.99298
  16  1.35946e-05
  17  1.85074e-05
  18  8.90608e-07
  19  0.00402811
  20  1.35471
  21  1.41946
  22  0.178778
  23  0.177825
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  7.842e-01  1.778e-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.234e+00  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.66
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.68e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 9.05e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8583.86971609
delta logL = 0.121901045632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8583.86188386
delta logL = 0.129733281537

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5280       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6724       1.0000          .0000       10.000    
     3 'Normalizat'    1.2189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79418       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=   8583.862     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      271 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5274        50.976        .47298E-02    .49100E-03
   2  Index         2.6722        6.3296        .15000        .13158E-03
   3  Normalizat    1.2190        .74518E-01    .50303E-01   -.18018E-03
   4  Prefactor     .79418        .63170E-01    .63625E-01    .17179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52743
  Index      = 2.67224
  Normalizat = 1.21897
  Prefactor  = 0.794177
 **********
 **   18 **HESSE 
 **********

 FCN=   8583.862     FROM HESSE     STATUS=OK            31 CALLS      302 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5274        3.2250        .10441E-03   -1.5282    
   2  Index         2.6722        .56380        .73653E-02   -.48426    
   3  Normalizat    1.2190        .17149        .22239E-03   -.86019    
   4  Prefactor     .79418        .17623        .28143E-03   -.99943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76618e-10
Minuit parameter uncertainties:
  1  3.22508
  2  0.56534
  3  0.171573
  4  0.176356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384486': 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) = 8583.86188367
delta logL = 0.12973346686

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.527e+00  3.225e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.672e+00  5.653e-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:  7.942e-01  1.764e-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.219e+00  1.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.93
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.67 +/- 0.57
Photon Flux (Free Index): 5.91e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.45e-05 +/- 8.26e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/384486/cmap_HighResolution_563328001_563587201_4FGL_J1422.3+3223_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.68e-08', energy_flux2='1.45e-05', photon_flux_error='2.76e-08', dlogl='1.30e-01', energy_flux='1.53e-05', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-09-09 12:00:40.410313', photon_index_error2='0.57', photon_index2='2.67', ts='5.66', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='8.26e-06', EG='1.23', time_epoch_completed='1631214040.41', return_code='0', job_id='384486', GAL2='0.79', EG2='1.22', return_code2='0', energy_flux_error='9.05e-06', photon_flux_error2='3.91e-08', ts2='5.93', photon_index='2.40' WHERE bin_id='1250' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:00:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 384486: <4FGL_J1422.3+3223_daily_bin1250> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1250> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:29 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:30 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:46:30 2021
Terminated at Thu Sep  9 12:00:41 2021
Results reported at Thu Sep  9 12:00:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1250 215.577 32.3911 563328001 563587201 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 :                                   677.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

