/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 224 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 = 7401
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1422.3+3223_daily_bin19
RA = 215.577, Dec = 32.3911
tmin = 244252801, tmax = 244512001
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='378607', job_status='RUN', time_executed='2021-09-09 11:30:09.800865', time_epoch_executed='1631212209.8' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378607

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378607/ft1_4FGL_J1422.3+3223_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378607/ft2_4FGL_J1422.3+3223_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378607/ft1_4FGL_J1422.3+3223_daily_bin19.fits outfile=/scratch/kocevski/378607/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin19.fits ra=215.577 dec=32.3911 rad=12.0 tmin=244252801.0 tmax=244512001.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.45
user 2.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378607/ft1_filtered_4FGL_J1422.3+3223_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/378607/ft2_4FGL_J1422.3+3223_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/378607/ltcube_244252801_244512001_4FGL_J1422.3+3223_daily_bin19.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/378607/ft2_4FGL_J1422.3+3223_daily_bin19.fits
.....................!
real 16.66
user 16.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378607/ft1_filtered_4FGL_J1422.3+3223_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/378607/ft2_4FGL_J1422.3+3223_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/378607/ltcube_244252801_244512001_4FGL_J1422.3+3223_daily_bin19.fits outfile=/scratch/kocevski/378607/expmap_244252801_244512001_4FGL_J1422.3+3223_daily_bin19.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/378607/ltcube_244252801_244512001_4FGL_J1422.3+3223_daily_bin19.fits
.....................!
real 192.47
user 186.53
sys 5.53

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/378607/ft1_filtered_4FGL_J1422.3+3223_daily_bin19.fits scfile=/scratch/kocevski/378607/ft2_4FGL_J1422.3+3223_daily_bin19.fits outfile=/scratch/kocevski/378607/cmap_244252801_244512001_4FGL_J1422.3+3223_daily_bin19.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378607/ft1_filtered_4FGL_J1422.3+3223_daily_bin19.fits scfile=/scratch/kocevski/378607/ft2_4FGL_J1422.3+3223_daily_bin19.fits outfile=/scratch/kocevski/378607/cmap_HighResolution_244252801_244512001_4FGL_J1422.3+3223_daily_bin19.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.62
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.216       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.932       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.6016       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7607       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .91307       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.3896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.495       1.0000         .10000E-03   10000.    
    14 'norm      '    .16151E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.170       1.0000         .10000E-03   10000.    
    16 'norm      '    9.0163       1.0000         .10000E-03   10000.    
    17 'Prefactor '    68.914       1.0000         .10000E-03   10000.    
    18 'norm      '    8.3007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5252       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6531       1.0000         .10000E-03   10000.    
    21 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1586       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .52114       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=   4190.725     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2576 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.216        17.855       -.13748E-07    .17815E-04
   2  Prefactor     .10000E-03    22.294       -.51940E-07** at limit **
   3  Prefactor     .10000E-03    21.669        .48328E-06** at limit **
   4  Prefactor     12.932        5.5260       -.34145E-07    .35430E-04
   5  norm          .10000E-03    7.0102        .66001E-06** at limit **
   6  Prefactor     .10000E-03    11.430       -.63961E-07** at limit **
   7  norm          7.6018        5.1127       -.43154E-07    .16692E-04
   8  Prefactor     8.7595        9.6304       -.83881E-07    .56407E-04
   9  Prefactor     .10000E-03    6.8728       -.59614E-06** at limit **
  10  Prefactor     .91080        3.4871        .79081E-06   -.12895E-03
  11  norm          .10000E-03    5.0524       -.18656E-07** at limit **
  12  norm          5.3895        2.8295        .18685E-08    .26370E-04
  13  Prefactor     30.492        30.108       -.42771E-06   -.81332E-04
  14  norm          .10000E-03    14.292       -.12798E-05** at limit **
  15  Prefactor     49.141        52.030       -.51341E-05   -.26570E-03
  16  norm          9.0158        5.9309        .31528E-07    .13853E-04
  17  Prefactor     68.909        49.212       -.79314E-06   -.36046E-04
  18  norm          8.3017        8.3163       -.12148E-07    .82005E-04
  19  Prefactor     2.5140        31.919       -.39662E-05   -.75617E-04
  20  Prefactor     5.6519        7.4149        .35145E-05   -.50202E-03
  21  norm          .10000E-03    .90584       -.77360E-06** at limit **
  22  Normalizat    1.1586        .20514        .88387E-06    .81102E-04
  23  Prefactor     .52113        .19775       -.93043E-06    .12152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9321
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.60182
  Prefactor  = 8.75955
  Prefactor  = 0.0001
  Prefactor  = 0.910801
  norm       = 0.0001
  norm       = 5.38953
  Prefactor  = 30.4918
  norm       = 0.000100001
  Prefactor  = 49.1413
  norm       = 9.01582
  Prefactor  = 68.9092
  norm       = 8.30172
  Prefactor  = 2.51402
  Prefactor  = 5.65192
  norm       = 0.0001
  Normalizat = 1.15864
  Prefactor  = 0.521128
 **********
 **   18 **HESSE 
 **********

 FCN=   4190.725     FROM HESSE     STATUS=OK           370 CALLS     2946 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.216        17.880        .86959E-04   -1.4786    
   2  Prefactor     .10000E-03    22.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.932        5.5461        .94880E-04   -1.4989    
   5  norm          .10000E-03    7.0554        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.6018        5.1073        .11466E-03   -1.5156    
   8  Prefactor     8.7595        9.6366        .67712E-03   -1.5116    
   9  Prefactor     .10000E-03    6.8906        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .91080        3.4353        .22223E-03   -1.5517    
  11  norm          .10000E-03    5.0529        .14212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3895        2.8310        .76314E-04   -1.5244    
  13  Prefactor     30.492        30.172        .72555E-04   -1.4603    
  14  norm          .10000E-03    14.687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.141        54.555        .57188E-04   -1.4305    
  16  norm          9.0158        5.9321        .12200E-03   -1.5107    
  17  Prefactor     68.909        49.383        .48353E-04   -1.4046    
  18  norm          8.3017        8.3125        .13915E-03   -1.5132    
  19  Prefactor     2.5140        31.660        .25706E-03   -1.5391    
  20  Prefactor     5.6519        7.7912        .84476E-03   -1.5232    
  21  norm          .10000E-03    1.4170        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1586        .23638        .20666E-03   -.87891    
  23  Prefactor     .52113        .22579        .30121E-03   -1.1102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04592e-09
Minuit parameter uncertainties:
  1  17.8849
  2  3.59967e-05
  3  6.42208e-05
  4  5.54628
  5  4.66692e-05
  6  1.30325e-05
  7  5.10762
  8  9.63827
  9  3.75774e-05
  10  3.43609
  11  2.79022e-06
  12  2.83103
  13  30.1869
  14  0.000294467
  15  54.6108
  16  5.9325
  17  49.4121
  18  8.31366
  19  17.8543
  20  7.79257
  21  2.40343e-05
  22  0.236601
  23  0.226183
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  9.108e-01  3.436e+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:  5.211e-01  2.262e-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.159e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 215.577 32.391
Photon Flux Upper Limit: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378607/likelihoodResults_244252801_244512001_4FGL_J1422.3+3223_daily_bin19.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): 0
logL (Free Index) = 4190.48216591
delta logL = 0.242756832378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4190.47196847
delta logL = 0.25295427615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79324       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5322       1.0000          .0000       10.000    
     3 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54459       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=   4190.472     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79146        39.946        .12415E-02    .40523E-03
   2  Index         3.5323        6.7528        .16189        .79570E-04
   3  Normalizat    1.1200        .58986E-01    .37243E-01   -.16048E-04
   4  Prefactor     .54453        .57592E-01    .66668E-01    .13379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.791457
  Index      = 3.53229
  Normalizat = 1.12003
  Prefactor  = 0.544528
 **********
 **   18 **HESSE 
 **********

 FCN=   4190.472     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79146        2.6457        .49659E-04   -1.5530    
   2  Index         3.5323        1.9851        .84019E-02   -.29793    
   3  Normalizat    1.1200        .22808        .20964E-03   -.89111    
   4  Prefactor     .54453        .22499        .29506E-03   -1.0998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1247e-11
Minuit parameter uncertainties:
  1  2.64607
  2  2.04713
  3  0.228284
  4  0.225357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378607': 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) = 4190.47196742
delta logL = 0.25295532252

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  5.445e-01  2.254e-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.120e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/378607/cmap_HighResolution_244252801_244512001_4FGL_J1422.3+3223_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-09 11:39:09.798235', job_id='378607', GAL2='0.54', fit_tolerance='1e-08', EG2='1.12', EG='1.16', time_epoch_completed='1631212749.8', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='2.53e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='19' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:39:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 378607: <4FGL_J1422.3+3223_daily_bin19> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin19> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 11:26:15 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:26:16 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:26:16 2021
Terminated at Thu Sep  9 11:39:10 2021
Results reported at Thu Sep  9 11:39:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin19 215.577 32.3911 244252801 244512001 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 :                                   539.23 sec.
    Max Memory :                                 1226 MB
    Average Memory :                             249.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            775 sec.

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

