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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1326
RA = 215.577, Dec = 32.3911
tmin = 583027201, tmax = 583286401
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='384605', job_status='RUN', time_executed='2021-09-09 11:49:54.785054', time_epoch_executed='1631213394.79' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384605/ft1_4FGL_J1422.3+3223_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384605/ft2_4FGL_J1422.3+3223_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384605/ft1_4FGL_J1422.3+3223_daily_bin1326.fits outfile=/scratch/kocevski/384605/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1326.fits ra=215.577 dec=32.3911 rad=12.0 tmin=583027201.0 tmax=583286401.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.58
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384605/ft2_4FGL_J1422.3+3223_daily_bin1326.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/384605/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1326.fits evtable="EVENTS" outfile="/scratch/kocevski/384605/ft1_filtered_4FGL_J1422.3+3223_daily_bin1326.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.48
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384605/ft1_filtered_4FGL_J1422.3+3223_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/384605/ft2_4FGL_J1422.3+3223_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/384605/ltcube_583027201_583286401_4FGL_J1422.3+3223_daily_bin1326.fits outfile=/scratch/kocevski/384605/expmap_583027201_583286401_4FGL_J1422.3+3223_daily_bin1326.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/384605/ltcube_583027201_583286401_4FGL_J1422.3+3223_daily_bin1326.fits
.....................!
real 192.30
user 186.80
sys 5.13

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384605/ft1_filtered_4FGL_J1422.3+3223_daily_bin1326.fits scfile=/scratch/kocevski/384605/ft2_4FGL_J1422.3+3223_daily_bin1326.fits outfile=/scratch/kocevski/384605/cmap_HighResolution_583027201_583286401_4FGL_J1422.3+3223_daily_bin1326.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.50
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0591       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.400       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10673E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.461       1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7259       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .58062E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5465       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2969       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6957       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4129       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .96114       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98481       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0743       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=   6532.119     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2613 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.535       -.27335E-06** at limit **
   2  Prefactor     6.0818        24.042        .23049E-04   -.16106E-04
   3  Prefactor     20.380        53.610        .88565E-04    .26147E-05
   4  Prefactor     .10000E-03    3.0249       -.23481E-06** at limit **
   5  norm          .10000E-03    35.773       -.10490E-05** at limit **
   6  Prefactor     .10000E-03    5.3199       -.18673E-07** at limit **
   7  norm          .10000E-03    1.1159        .55574E-07** at limit **
   8  Prefactor     .10000E-03    4.3526       -.23373E-08** at limit **
   9  Prefactor     .10000E-03    15.350        .12944E-06** at limit **
  10  Prefactor     47.457        7.0443        .40035E-06    .10710E-03
  11  norm          .10000E-03    4.0452       -.12139E-07** at limit **
  12  norm          1.7261        1.7428        .87259E-07   -.11389E-03
  13  Prefactor     .10000E-03    27.521       -.21214E-06** at limit **
  14  norm          .10000E-03    3.9653        .15551E-06** at limit **
  15  Prefactor     .32201E-03    52.155       -.11087E-05** at limit **
  16  norm          1.5467        2.7029        .85084E-07   -.34099E-03
  17  Prefactor     4.3127        37.373       -.40276E-04   -.18436E-04
  18  norm          2.6967        5.9788       -.20642E-06   -.32301E-03
  19  Prefactor     4.4186        12.416       -.84092E-06   -.48893E-04
  20  Prefactor     .10000E-03    2.4882        .52933E-07** at limit **
  21  norm          .96113        1.2700        .24982E-06   -.22749E-03
  22  Normalizat    .98478        .17410       -.35058E-05    .26015E-03
  23  Prefactor     1.0742        .17946        .32490E-06   -.26517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.08177
  Prefactor  = 20.3796
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.4568
  norm       = 0.0001
  norm       = 1.72606
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000322008
  norm       = 1.54666
  Prefactor  = 4.31266
  norm       = 2.69675
  Prefactor  = 4.41856
  Prefactor  = 0.0001
  norm       = 0.961133
  Normalizat = 0.984776
  Prefactor  = 1.0742
 **********
 **   18 **HESSE 
 **********

 FCN=   6532.119     FROM HESSE     STATUS=OK           378 CALLS     2991 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0818        23.985        .16311E-03   -1.5215    
   3  Prefactor     20.380        53.535        .88678E-04   -1.4805    
   4  Prefactor     .10000E-03    6.5167        .26861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    36.841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1227        .83367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3623        .16466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.457        7.0625        .58203E-04   -1.4329    
  11  norm          .10000E-03    4.0483        .15876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7261        1.7359        .10416E-03   -1.5445    
  13  Prefactor     .10000E-03    27.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.0161        .15704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .32201E-03    46.128        .15001       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5467        2.6688        .17034E-03   -1.5459    
  17  Prefactor     4.3127        37.477        .19435E-03   -1.5293    
  18  norm          2.6967        5.9540        .24813E-03   -1.5380    
  19  Prefactor     4.4186        12.409        .19171E-03   -1.5288    
  20  Prefactor     .10000E-03    2.4945        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .96113        1.2680        .52111E-04   -1.5512    
  22  Normalizat    .98478        .20709        .24765E-03   -.93542    
  23  Prefactor     1.0742        .21544        .25670E-03   -.90295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36968e-09
Minuit parameter uncertainties:
  1  0.000159797
  2  24.0229
  3  53.6612
  4  6.74935e-05
  5  0.000689007
  6  5.10287e-07
  7  1.87831e-06
  8  6.69022e-06
  9  6.35692e-05
  10  7.06266
  11  3.33334e-06
  12  1.73591
  13  0.000120129
  14  3.67223e-05
  15  0.202549
  16  2.66902
  17  25.4476
  18  5.95528
  19  12.4159
  20  8.39522e-06
  21  1.26808
  22  0.20726
  23  0.215614
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  4.746e+01  7.063e+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:  1.074e+00  2.156e-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:  9.848e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 181.20
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.28e-07 +/- 6.36e-08
Energy Flux (Fixed Index): 1.40e-04 +/- 2.08e-05

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) = 6522.08460968
delta logL = 10.0342402307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6522.03359917
delta logL = 10.085250738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.738       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8202       1.0000          .0000       10.000    
     3 'Normalizat'    1.1266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97237       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=   6522.034     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      208 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.738        10.114        .12566E-02    .26044E-03
   2  Index         1.8202        .11823        .53266E-01   -.21294E-05
   3  Normalizat    1.1266        .16696        .52999E-01    .25810E-06
   4  Prefactor     .97237        .17746        .45921E-01    .17112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.7384
  Index      = 1.82018
  Normalizat = 1.12656
  Prefactor  = 0.972366
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.034     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.738        9.9517        .50265E-04   -1.4110    
   2  Index         1.8202        .11759        .23342E-03   -.68926    
   3  Normalizat    1.1266        .19860        .23433E-03   -.88904    
   4  Prefactor     .97237        .21064        .26774E-03   -.93656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19933e-11
Minuit parameter uncertainties:
  1  9.95192
  2  0.117604
  3  0.198727
  4  0.210817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384605': 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) = 6522.03359917
delta logL = 10.0852507381

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.374e+01  9.952e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.820e+00  1.176e-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:  9.724e-01  2.108e-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.127e+00  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 201.50
Ra Dec: 215.577 32.391
Photon Index (Free Index): 1.82 +/- 0.12
Photon Flux (Free Index): 3.03e-07 +/- 5.58e-08
Energy Flux (Free Index): 3.42e-04 +/- 1.01e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/384605/cmap_HighResolution_583027201_583286401_4FGL_J1422.3+3223_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.28e-07', energy_flux2='3.42e-04', photon_flux_error='6.36e-08', dlogl='1.01e+01', energy_flux='1.40e-04', photon_flux2='3.03e-07', job_status='DONE', time_completed='2021-09-09 12:00:53.693478', photon_index_error2='0.12', photon_index2='1.82', ts='181.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.01e-04', EG='0.98', time_epoch_completed='1631214053.69', return_code='0', job_id='384605', GAL2='0.97', EG2='1.13', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='5.58e-08', ts2='201.50', photon_index='2.40' WHERE bin_id='1326' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:00:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 384605: <4FGL_J1422.3+3223_daily_bin1326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1326 215.577 32.3911 583027201 583286401 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 :                                   594.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            856 sec.

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

