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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1585
RA = 215.577, Dec = 32.3911
tmin = 650160001, tmax = 650419201
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='386018', job_status='RUN', time_executed='2021-09-09 11:53:42.866660', time_epoch_executed='1631213622.87' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386018

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386018/ft1_4FGL_J1422.3+3223_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386018/ft2_4FGL_J1422.3+3223_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386018/ft1_4FGL_J1422.3+3223_daily_bin1585.fits outfile=/scratch/kocevski/386018/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1585.fits ra=215.577 dec=32.3911 rad=12.0 tmin=650160001.0 tmax=650419201.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.37
user 4.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386018/ft1_filtered_4FGL_J1422.3+3223_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/386018/ft2_4FGL_J1422.3+3223_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/386018/ltcube_650160001_650419201_4FGL_J1422.3+3223_daily_bin1585.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/386018/ft2_4FGL_J1422.3+3223_daily_bin1585.fits
.....................!
real 17.21
user 16.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386018/ft1_filtered_4FGL_J1422.3+3223_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/386018/ft2_4FGL_J1422.3+3223_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/386018/ltcube_650160001_650419201_4FGL_J1422.3+3223_daily_bin1585.fits outfile=/scratch/kocevski/386018/expmap_650160001_650419201_4FGL_J1422.3+3223_daily_bin1585.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/386018/ltcube_650160001_650419201_4FGL_J1422.3+3223_daily_bin1585.fits
.....................!
real 190.86
user 185.01
sys 5.50

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/386018/ft1_filtered_4FGL_J1422.3+3223_daily_bin1585.fits scfile=/scratch/kocevski/386018/ft2_4FGL_J1422.3+3223_daily_bin1585.fits outfile=/scratch/kocevski/386018/cmap_650160001_650419201_4FGL_J1422.3+3223_daily_bin1585.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/386018/ft1_filtered_4FGL_J1422.3+3223_daily_bin1585.fits scfile=/scratch/kocevski/386018/ft2_4FGL_J1422.3+3223_daily_bin1585.fits outfile=/scratch/kocevski/386018/cmap_HighResolution_650160001_650419201_4FGL_J1422.3+3223_daily_bin1585.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39012E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .76851       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.383       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1215       1.0000         .10000E-03   10000.    
     5 'norm      '    .10730E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1173       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5919       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.249       1.0000         .10000E-03   10000.    
    11 'norm      '    19.522       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6686       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9168       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    30.239       1.0000         .10000E-03   10000.    
    17 'Prefactor '    74.914       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5862       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3328       1.0000         .10000E-03   10000.    
    21 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2507       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68688       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=   5892.989     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2565 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10072E-03    12.822        .10482E-05** at limit **
   2  Prefactor     .88406        34.308        .72618E-05   -.31789E-03
   3  Prefactor     35.308        66.484        .11178E-04   -.19802E-04
   4  Prefactor     7.1246        5.7671        .28268E-06   -.30903E-03
   5  norm          .10000E-03    12.385       -.44369E-06** at limit **
   6  Prefactor     8.1164        13.299       -.62812E-06   -.27671E-05
   7  norm          5.5909        5.0341       -.32936E-06   -.52993E-04
   8  Prefactor     11.765        17.833        .19728E-05    .46010E-04
   9  Prefactor     .10000E-03    23.371       -.27153E-05** at limit **
  10  Prefactor     19.249        7.0403        .10700E-06   -.91674E-04
  11  norm          19.523        18.544       -.26348E-06    .26725E-04
  12  norm          1.6682        1.5809        .85404E-07    .77408E-05
  13  Prefactor     .10000E-03    29.183       -.20000E-06** at limit **
  14  norm          2.9175        8.4854        .50225E-05    .11642E-03
  15  Prefactor     .10000E-03    27.722        .14536E-05** at limit **
  16  norm          30.238        8.3911        .20701E-06   -.29199E-04
  17  Prefactor     74.910        52.580       -.28873E-06   -.25252E-04
  18  norm          7.5873        7.1233       -.73657E-06   -.17205E-04
  19  Prefactor     .10000E-03    6.2605        .22987E-06** at limit **
  20  Prefactor     2.3225        7.4384        .71240E-05    .12253E-03
  21  norm          .10000E-03    .62433        .24322E-06** at limit **
  22  Normalizat    1.2504        .20466        .22498E-06   -.82570E-04
  23  Prefactor     .68730        .19071       -.36703E-05   -.28184E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100725
  Prefactor  = 0.88406
  Prefactor  = 35.3085
  Prefactor  = 7.12457
  norm       = 0.0001
  Prefactor  = 8.11637
  norm       = 5.5909
  Prefactor  = 11.7646
  Prefactor  = 0.000100002
  Prefactor  = 19.2488
  norm       = 19.5227
  norm       = 1.66821
  Prefactor  = 0.0001
  norm       = 2.91746
  Prefactor  = 0.0001
  norm       = 30.2379
  Prefactor  = 74.9104
  norm       = 7.58732
  Prefactor  = 0.0001
  Prefactor  = 2.3225
  norm       = 0.0001
  Normalizat = 1.25035
  Prefactor  = 0.687301
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.989     FROM HESSE     STATUS=OK           376 CALLS     2941 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10072E-03    161.04        .50288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .88406        273.04        .76796E-02   -1.5520    
   3  Prefactor     35.308        66.508        .67372E-04   -1.4519    
   4  Prefactor     7.1246        5.7705        .15032E-03   -1.5174    
   5  norm          .10000E-03    12.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1164        13.289        .14072E-03   -1.5138    
   7  norm          5.5909        5.0258        .15384E-03   -1.5235    
   8  Prefactor     11.765        17.875        .11699E-03   -1.5022    
   9  Prefactor     .10000E-03    23.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.249        7.0774        .91290E-04   -1.4830    
  11  norm          19.523        18.539        .90649E-04   -1.4824    
  12  norm          1.6682        1.5843        .91320E-04   -1.5450    
  13  Prefactor     .10000E-03    29.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9175        8.4982        .11894E-02   -1.5366    
  15  Prefactor     .10000E-03    27.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          30.238        8.4004        .72861E-04   -1.4608    
  17  Prefactor     74.910        52.961        .46390E-04   -1.3975    
  18  norm          7.5873        7.1264        .14560E-03   -1.5157    
  19  Prefactor     .10000E-03    6.2737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.3225        7.4560        .13424E-02   -1.5403    
  21  norm          .10000E-03    .63373        .59226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2504        .25132        .23976E-03   -.85061    
  23  Prefactor     .68730        .22889        .31151E-03   -1.0403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34818e-08
Minuit parameter uncertainties:
  1  0.0216685
  2  31.2156
  3  66.6485
  4  5.77099
  5  7.2512e-05
  6  13.2938
  7  5.02617
  8  17.8829
  9  0.000478116
  10  7.07768
  11  18.5446
  12  1.58436
  13  5.09893e-06
  14  8.50167
  15  1.74761e-05
  16  8.40077
  17  52.9941
  18  7.12719
  19  7.68933e-06
  20  7.45896
  21  1.21718e-06
  22  0.251566
  23  0.2292
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.925e+01  7.078e+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:  6.873e-01  2.292e-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.250e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.15
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 6.37e-08
Energy Flux (Fixed Index): 5.68e-05 +/- 2.09e-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) = 5892.3012016
delta logL = 0.687655622859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5892.27064348
delta logL = 0.718213741399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.194       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8351       1.0000          .0000       10.000    
     3 'Normalizat'    1.1789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73827       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5892.271     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.195        7.5507        .87715E-04   -.15194E-02
   2  Index         2.8354        .40380        .36280E-02   -.39410E-03
   3  Normalizat    1.1789        .23605        .24536E-03    .10680E-03
   4  Prefactor     .73840        .22812        .30145E-03    .17163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1947
  Index      = 2.83543
  Normalizat = 1.17887
  Prefactor  = 0.738403
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.271     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.195        7.1721        .35086E-05   -1.4954    
   2  Index         2.8354        .38320        .14512E-03   -.44772    
   3  Normalizat    1.1789        .23606        .98142E-05   -.87258    
   4  Prefactor     .73840        .22807        .12058E-04   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89635e-10
Minuit parameter uncertainties:
  1  7.17249
  2  0.383663
  3  0.23627
  4  0.228359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386018': 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) = 5892.27064087
delta logL = 0.718216358203

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  7.384e-01  2.284e-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.179e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.79
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.84 +/- 0.38
Photon Flux (Free Index): 2.34e-07 +/- 8.79e-08
Energy Flux (Free Index): 5.13e-05 +/- 1.72e-05

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/386018/cmap_HighResolution_650160001_650419201_4FGL_J1422.3+3223_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='5.13e-05', photon_flux_error='6.37e-08', dlogl='7.18e-01', energy_flux='5.68e-05', photon_flux2='2.34e-07', job_status='DONE', time_completed='2021-09-09 12:03:19.891002', photon_index_error2='0.38', photon_index2='2.84', ts='17.15', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.25', time_epoch_completed='1631214199.89', return_code='0', job_id='386018', GAL2='0.74', EG2='1.18', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='8.79e-08', ts2='18.79', photon_index='2.40' WHERE bin_id='1585' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 386018: <4FGL_J1422.3+3223_daily_bin1585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1585 215.577 32.3911 650160001 650419201 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 :                                   564.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

