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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1502
RA = 215.577, Dec = 32.3911
tmin = 628646401, tmax = 628905601
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='385887', job_status='RUN', time_executed='2021-09-09 11:51:22.664215', time_epoch_executed='1631213482.66' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385887/ft1_4FGL_J1422.3+3223_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385887/ft2_4FGL_J1422.3+3223_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385887/ft1_4FGL_J1422.3+3223_daily_bin1502.fits outfile=/scratch/kocevski/385887/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1502.fits ra=215.577 dec=32.3911 rad=12.0 tmin=628646401.0 tmax=628905601.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.52
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385887/ft1_filtered_4FGL_J1422.3+3223_daily_bin1502.fits" evtable="EVENTS" scfile=/scratch/kocevski/385887/ft2_4FGL_J1422.3+3223_daily_bin1502.fits sctable="SC_DATA" outfile=/scratch/kocevski/385887/ltcube_628646401_628905601_4FGL_J1422.3+3223_daily_bin1502.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/385887/ft2_4FGL_J1422.3+3223_daily_bin1502.fits
.....................!
real 14.66
user 14.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385887/ft1_filtered_4FGL_J1422.3+3223_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/385887/ft2_4FGL_J1422.3+3223_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/385887/ltcube_628646401_628905601_4FGL_J1422.3+3223_daily_bin1502.fits outfile=/scratch/kocevski/385887/expmap_628646401_628905601_4FGL_J1422.3+3223_daily_bin1502.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/385887/ltcube_628646401_628905601_4FGL_J1422.3+3223_daily_bin1502.fits
.....................!
real 192.54
user 186.61
sys 5.49

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/385887/ft1_filtered_4FGL_J1422.3+3223_daily_bin1502.fits scfile=/scratch/kocevski/385887/ft2_4FGL_J1422.3+3223_daily_bin1502.fits outfile=/scratch/kocevski/385887/cmap_628646401_628905601_4FGL_J1422.3+3223_daily_bin1502.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.61
user 0.40
sys 0.14

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

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .60851E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81733E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16238       1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3698       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11937E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.816       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .49815       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7985       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.698       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1244       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5245       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .91438       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4790       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1539       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96216       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=   6730.321     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2315 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.526        .19461E-06** at limit **
   2  Prefactor     .33745        11.099        .78475E-06   -.14441E-03
   3  Prefactor     .10001E-03    90.537       -.19796E-05** at limit **
   4  Prefactor     .15495        2.6903        .16836E-05   -.16354E-02
   5  norm          .10000E-03    4.0739        .21828E-07** at limit **
   6  Prefactor     .10000E-03    6.2536       -.10510E-06** at limit **
   7  norm          2.3700        4.5147        .80254E-06    .12134E-03
   8  Prefactor     8.0145        8.2574       -.11844E-06   -.14332E-03
   9  Prefactor     .10000E-03    6.3408       -.92000E-07** at limit **
  10  Prefactor     17.820        5.6546        .40777E-06    .15857E-03
  11  norm          .10000E-03    5.8977       -.49356E-07** at limit **
  12  norm          .49902        1.8873        .18192E-05    .45459E-03
  13  Prefactor     .10000E-03    9.9544       -.11540E-06** at limit **
  14  norm          4.8015        4.7927        .69023E-08   -.33687E-04
  15  Prefactor     24.756        31.463       -.73061E-06   -.23130E-03
  16  norm          .10000E-03    1.4558        .35699E-07** at limit **
  17  Prefactor     4.2230        26.030        .19671E-06   -.61588E-04
  18  norm          7.5269        6.8573       -.31074E-07   -.51768E-04
  19  Prefactor     8.9266        11.906       -.16250E-07   -.30079E-04
  20  Prefactor     .91617        3.7150        .24767E-05    .34526E-03
  21  norm          1.4797        1.2190       -.44465E-07   -.19428E-03
  22  Normalizat    1.1540        .17146       -.32626E-06   -.54783E-03
  23  Prefactor     .96188        .17596       -.14159E-05   -.38952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.337452
  Prefactor  = 0.00010001
  Prefactor  = 0.154946
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37001
  Prefactor  = 8.01452
  Prefactor  = 0.0001
  Prefactor  = 17.8198
  norm       = 0.0001
  norm       = 0.499023
  Prefactor  = 0.0001
  norm       = 4.80151
  Prefactor  = 24.7557
  norm       = 0.0001
  Prefactor  = 4.22299
  norm       = 7.52692
  Prefactor  = 8.92659
  Prefactor  = 0.91617
  norm       = 1.47973
  Normalizat = 1.15397
  Prefactor  = 0.961884
 **********
 **   18 **HESSE 
 **********

 FCN=   6730.321     FROM HESSE     STATUS=OK           372 CALLS     2687 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33745        153.60        .52527E-02   -1.5592    
   3  Prefactor     .10001E-03    91.037        .20889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15495        13.567        .20303E-02   -1.5629    
   5  norm          .10000E-03    4.0787        .16171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3700        4.4932        .22673E-03   -1.5400    
   8  Prefactor     8.0145        8.2686        .14144E-03   -1.5142    
   9  Prefactor     .10000E-03    6.3538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.820        5.6773        .47445E-03   -1.4863    
  11  norm          .10000E-03    5.9069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .49902        1.8960        .21064E-03   -1.5567    
  13  Prefactor     .10000E-03    9.9795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8015        4.7922        .17237E-03   -1.5270    
  15  Prefactor     24.756        31.540        .80604E-04   -1.4712    
  16  norm          .10000E-03    1.4620        .96660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2230        26.073        .19849E-03   -1.5297    
  18  norm          7.5269        6.8555        .14620E-03   -1.5159    
  19  Prefactor     8.9266        11.896        .13362E-03   -1.5110    
  20  Prefactor     .91617        3.6743        .30715E-03   -1.5517    
  21  norm          1.4797        1.1996        .78447E-04   -1.5465    
  22  Normalizat    1.1540        .20524        .23278E-03   -.88037    
  23  Prefactor     .96188        .20921        .26608E-03   -.94011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39419e-08
Minuit parameter uncertainties:
  1  2.14483e-06
  2  14.4341
  3  0.0018844
  4  2.89952
  5  2.83853e-06
  6  1.66641e-05
  7  4.49384
  8  8.26973
  9  1.00849e-05
  10  5.6775
  11  3.94463e-07
  12  1.89618
  13  3.93157e-06
  14  4.79258
  15  31.5608
  16  2.1292e-06
  17  20.9995
  18  6.85626
  19  11.8993
  20  3.6697
  21  1.19965
  22  0.205382
  23  0.209391
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.782e+01  5.678e+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:  9.619e-01  2.094e-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.154e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.91
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.61e-07 +/- 5.11e-08
Energy Flux (Fixed Index): 5.26e-05 +/- 1.67e-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) = 6729.99443257
delta logL = 0.326817618786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6729.99318983
delta logL = 0.328060359757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.515       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6756       1.0000          .0000       10.000    
     3 'Normalizat'    1.1132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99160       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=   6729.993     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.512        54.437        .26283E-02    .11130E-03
   2  Index         2.6753        2.5761        .89453E-01    .14302E-03
   3  Normalizat    1.1133        .11504        .37488E-01    .80700E-05
   4  Prefactor     .99157        .99420E-01    .46162E-01    .11611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5116
  Index      = 2.67534
  Normalizat = 1.11334
  Prefactor  = 0.991572
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.993     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.512        6.8765        .86683E-04   -1.4946    
   2  Index         2.6753        .37505        .37194E-02   -.48356    
   3  Normalizat    1.1133        .20302        .23605E-03   -.89325    
   4  Prefactor     .99157        .20840        .26259E-03   -.93011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39045e-09
Minuit parameter uncertainties:
  1  6.87689
  2  0.375497
  3  0.20316
  4  0.208573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385887': 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) = 6729.99318766
delta logL = 0.328062524489

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.451e+01  6.877e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.675e+00  3.755e-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.916e-01  2.086e-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.113e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.77
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.68 +/- 0.38
Photon Flux (Free Index): 1.90e-07 +/- 6.46e-08
Energy Flux (Free Index): 4.67e-05 +/- 1.54e-05

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/385887/cmap_HighResolution_628646401_628905601_4FGL_J1422.3+3223_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.61e-07', energy_flux2='4.67e-05', photon_flux_error='5.11e-08', dlogl='3.28e-01', energy_flux='5.26e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-09 12:02:42.270669', photon_index_error2='0.38', photon_index2='2.68', ts='19.91', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.15', time_epoch_completed='1631214162.27', return_code='0', job_id='385887', GAL2='0.99', EG2='1.11', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.46e-08', ts2='20.77', photon_index='2.40' WHERE bin_id='1502' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:02:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 385887: <4FGL_J1422.3+3223_daily_bin1502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1502 215.577 32.3911 628646401 628905601 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

