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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1103
RA = 215.577, Dec = 32.3911
tmin = 525225601, tmax = 525484801
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='384257', job_status='RUN', time_executed='2021-09-09 11:48:33.269982', time_epoch_executed='1631213313.27' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384257/ft1_4FGL_J1422.3+3223_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384257/ft2_4FGL_J1422.3+3223_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384257/ft1_4FGL_J1422.3+3223_daily_bin1103.fits outfile=/scratch/kocevski/384257/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1103.fits ra=215.577 dec=32.3911 rad=12.0 tmin=525225601.0 tmax=525484801.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.06
user 3.84
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384257/ft1_filtered_4FGL_J1422.3+3223_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/384257/ft2_4FGL_J1422.3+3223_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/384257/ltcube_525225601_525484801_4FGL_J1422.3+3223_daily_bin1103.fits outfile=/scratch/kocevski/384257/expmap_525225601_525484801_4FGL_J1422.3+3223_daily_bin1103.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/384257/ltcube_525225601_525484801_4FGL_J1422.3+3223_daily_bin1103.fits
.....................!
real 189.88
user 185.08
sys 4.45

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/384257/ft1_filtered_4FGL_J1422.3+3223_daily_bin1103.fits scfile=/scratch/kocevski/384257/ft2_4FGL_J1422.3+3223_daily_bin1103.fits outfile=/scratch/kocevski/384257/cmap_525225601_525484801_4FGL_J1422.3+3223_daily_bin1103.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384257/ft1_filtered_4FGL_J1422.3+3223_daily_bin1103.fits scfile=/scratch/kocevski/384257/ft2_4FGL_J1422.3+3223_daily_bin1103.fits outfile=/scratch/kocevski/384257/cmap_HighResolution_525225601_525484801_4FGL_J1422.3+3223_daily_bin1103.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=215.577 yref=32.3911 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9568       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.039       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4147       1.0000         .10000E-03   10000.    
     5 'norm      '    11.312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45564       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3159       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.2635       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.258       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.068       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6251       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.011       1.0000         .10000E-03   10000.    
    18 'norm      '    4.5485       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8442       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5821       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5061       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70635       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1106       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=   6086.569     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2494 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.924        .25548E-05** at limit **
   2  Prefactor     8.9540        18.464       -.27158E-05   -.39736E-04
   3  Prefactor     51.031        64.773       -.95686E-05    .47472E-05
   4  Prefactor     5.4143        4.3253        .18481E-05   -.30113E-03
   5  norm          11.314        14.085        .28547E-05    .47795E-04
   6  Prefactor     .41634        8.6554       -.19448E-05    .14061E-03
   7  norm          .10000E-03    2.0480       -.13544E-07** at limit **
   8  Prefactor     .10000E-03    4.7964        .15488E-06** at limit **
   9  Prefactor     .10000E-03    6.5818        .17968E-05** at limit **
  10  Prefactor     2.3162        2.9338       -.61497E-07   -.44811E-03
  11  norm          .10000E-03    12.666       -.29239E-05** at limit **
  12  norm          7.2634        2.9522        .74350E-07    .39372E-04
  13  Prefactor     .10000E-03    6.1769       -.17327E-05** at limit **
  14  norm          10.258        5.7367       -.13508E-06    .40859E-04
  15  Prefactor     21.069        20.642       -.20620E-07    .11812E-04
  16  norm          9.6249        5.3537       -.16438E-06   -.71834E-04
  17  Prefactor     69.008        38.279       -.34147E-05    .86508E-05
  18  norm          4.5486        5.5132        .42980E-07    .41587E-04
  19  Prefactor     3.8444        14.013       -.17710E-05   -.91277E-04
  20  Prefactor     5.5821        4.8409       -.84360E-07   -.19040E-04
  21  norm          1.5062        1.0633       -.19112E-07    .11334E-04
  22  Normalizat    .70635        .17303        .50152E-06    .65244E-04
  23  Prefactor     1.1107        .17714        .29542E-06    .85396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.95397
  Prefactor  = 51.0313
  Prefactor  = 5.41428
  norm       = 11.3138
  Prefactor  = 0.416343
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.31623
  norm       = 0.0001
  norm       = 7.26339
  Prefactor  = 0.0001
  norm       = 10.2579
  Prefactor  = 21.0686
  norm       = 9.62493
  Prefactor  = 69.0076
  norm       = 4.54862
  Prefactor  = 3.84437
  Prefactor  = 5.58215
  norm       = 1.50617
  Normalizat = 0.706348
  Prefactor  = 1.11067
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.569     FROM HESSE     STATUS=OK           380 CALLS     2874 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.9540        18.525        .13392E-03   -1.5109    
   3  Prefactor     51.031        65.269        .56136E-04   -1.4278    
   4  Prefactor     5.4143        4.2673        .13404E-03   -1.5243    
   5  norm          11.314        14.095        .11911E-03   -1.5035    
   6  Prefactor     .41634        68.562        .43872E-02   -1.5579    
   7  norm          .10000E-03    2.0878        .10896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8134        .16682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3162        2.9247        .14291E-03   -1.5404    
  11  norm          .10000E-03    12.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2634        2.9532        .82615E-04   -1.5169    
  13  Prefactor     .10000E-03    6.1850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.258        5.7400        .12510E-03   -1.5067    
  15  Prefactor     21.069        20.646        .87262E-04   -1.4790    
  16  norm          9.6249        5.3614        .12894E-03   -1.5087    
  17  Prefactor     69.008        38.292        .48319E-04   -1.4045    
  18  norm          4.5486        5.5075        .18876E-03   -1.5281    
  19  Prefactor     3.8444        14.028        .20583E-03   -1.5316    
  20  Prefactor     5.5821        4.8334        .15292E-03   -1.5235    
  21  norm          1.5062        1.0629        .34870E-04   -1.5463    
  22  Normalizat    .70635        .19843        .25834E-03   -1.0364    
  23  Prefactor     1.1107        .20370        .23157E-03   -.89126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05621e-09
Minuit parameter uncertainties:
  1  2.63987e-05
  2  18.5366
  3  65.3602
  4  4.2675
  5  14.0992
  6  10.6967
  7  3.24919e-07
  8  4.93601e-07
  9  1.88665e-06
  10  2.92484
  11  7.82184e-06
  12  2.95328
  13  9.6875e-07
  14  5.74031
  15  20.653
  16  5.36172
  17  38.3052
  18  5.50815
  19  14.0404
  20  4.83375
  21  1.06296
  22  0.198634
  23  0.20384
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.316e+00  2.925e+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.111e+00  2.038e-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.063e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/384257/likelihoodResults_525225601_525484801_4FGL_J1422.3+3223_daily_bin1103.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) = 6084.83723884
delta logL = 1.7312988036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6084.78099761
delta logL = 1.78754003245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15954E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.4125       1.0000          .0000       10.000    
     3 'Normalizat'    .60755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1925       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=   6084.781     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      324 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15812E-02    .15028E-01    .46807E-03** at limit **
   2  Index         7.4175        2.6311        .11849        .12341E-03
   3  Normalizat    .60791        .44825E-01    .62582E-01    .36718E-04
   4  Prefactor     1.1921        .49635E-01    .50833E-01    .46016E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00158124
  Index      = 7.41752
  Normalizat = 0.607906
  Prefactor  = 1.19212
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.781     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      359 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15812E-02    .29641E-01    .18552E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.4175        7.4022        .48795E-02    .50465    
   3  Normalizat    .60791        .14866        .27689E-03   -1.0765    
   4  Prefactor     1.1921        .16150        .22473E-03   -.86574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.96233e-08
Minuit parameter uncertainties:
  1  0.0132522
  2  4.38692
  3  0.148755
  4  0.161566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384257': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6084.78099386
delta logL = 1.78754378063

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.581e-03  1.325e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  7.418e+00  4.387e+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:  1.192e+00  1.616e-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:  6.079e-01  1.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.86
Ra Dec: 215.577 32.391
Photon Index (Free Index): 7.42 +/- 4.39
Photon Flux (Free Index): 7.75e-08 +/- 4.65e-08
Energy Flux (Free Index): 9.14e-06 +/- 5.99e-06

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/384257/cmap_HighResolution_525225601_525484801_4FGL_J1422.3+3223_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', comment='SUCCESS', energy_flux2='9.14e-06', dlogl='1.79e+00', photon_flux2='7.75e-08', job_status='DONE', time_completed='2021-09-09 11:59:11.112063', photon_index_error2='4.39', photon_index2='7.42', ts='0.93', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.36e-08', energy_flux_error2='5.99e-06', EG='0.71', time_epoch_completed='1631213951.11', return_code='0', job_id='384257', GAL2='1.19', EG2='0.61', return_code2='102', photon_flux_error2='4.65e-08', ts2='4.86', photon_index='2.40' WHERE bin_id='1103' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:59:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 384257: <4FGL_J1422.3+3223_daily_bin1103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1103 215.577 32.3911 525225601 525484801 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 :                                   618.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

