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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1561
RA = 215.577, Dec = 32.3911
tmin = 643939201, tmax = 644198401
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='385981', job_status='RUN', time_executed='2021-09-09 11:53:59.219556', time_epoch_executed='1631213639.22' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385981/ft1_4FGL_J1422.3+3223_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385981/ft2_4FGL_J1422.3+3223_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385981/ft1_4FGL_J1422.3+3223_daily_bin1561.fits outfile=/scratch/kocevski/385981/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1561.fits ra=215.577 dec=32.3911 rad=12.0 tmin=643939201.0 tmax=644198401.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.41
user 4.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385981/ft1_filtered_4FGL_J1422.3+3223_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/385981/ft2_4FGL_J1422.3+3223_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/385981/ltcube_643939201_644198401_4FGL_J1422.3+3223_daily_bin1561.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/385981/ft2_4FGL_J1422.3+3223_daily_bin1561.fits
.....................!
real 11.65
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385981/ft1_filtered_4FGL_J1422.3+3223_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/385981/ft2_4FGL_J1422.3+3223_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/385981/ltcube_643939201_644198401_4FGL_J1422.3+3223_daily_bin1561.fits outfile=/scratch/kocevski/385981/expmap_643939201_644198401_4FGL_J1422.3+3223_daily_bin1561.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/385981/ltcube_643939201_644198401_4FGL_J1422.3+3223_daily_bin1561.fits
.....................!
real 190.46
user 185.08
sys 5.03

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/385981/ft1_filtered_4FGL_J1422.3+3223_daily_bin1561.fits scfile=/scratch/kocevski/385981/ft2_4FGL_J1422.3+3223_daily_bin1561.fits outfile=/scratch/kocevski/385981/cmap_643939201_644198401_4FGL_J1422.3+3223_daily_bin1561.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385981/ft1_filtered_4FGL_J1422.3+3223_daily_bin1561.fits scfile=/scratch/kocevski/385981/ft2_4FGL_J1422.3+3223_daily_bin1561.fits outfile=/scratch/kocevski/385981/cmap_HighResolution_643939201_644198401_4FGL_J1422.3+3223_daily_bin1561.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    57.954       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9524       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8730       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .17625E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3713       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.539       1.0000         .10000E-03   10000.    
    11 'norm      '    13.334       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2971       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.754       1.0000         .10000E-03   10000.    
    14 'norm      '    6.6840       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.303       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.936       1.0000         .10000E-03   10000.    
    18 'norm      '    7.2027       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1156       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .69191       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92436       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0208       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6221.938     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2495 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8149         .0000    ** at limit **
   2  Prefactor     10.773        20.326         .0000        .38947E-03
   3  Prefactor     57.954        70.943         .0000        .10795E-02
   4  Prefactor     2.9524        3.9197         .0000        .96678E-03
   5  norm          3.8715        10.915         .0000        .50599E-03
   6  Prefactor     .10013E-03    8.4436         .0000    ** at limit **
   7  norm          .10012E-03    1.9523         .0000    ** at limit **
   8  Prefactor     1.3627        27.063         .0000        .82036E-02
   9  Prefactor     .10000E-03    4.7865         .0000    ** at limit **
  10  Prefactor     10.539        4.1836         .0000        .30495E-03
  11  norm          13.325        15.796         .0000        .58613E-02
  12  norm          5.2971        2.5339         .0000        .88099E-05
  13  Prefactor     10.752        19.590         .0000        .27277E-02
  14  norm          6.6833        5.6391         .0000        .22095E-03
  15  Prefactor     .10000E-03    14.134         .0000    ** at limit **
  16  norm          12.304        5.4828         .0000        .10847E-03
  17  Prefactor     31.936        30.620         .0000        .37797E-03
  18  norm          7.2027        6.8487         .0000       -.16934E-02
  19  Prefactor     9.1151        10.237         .0000        .30569E-03
  20  Prefactor     .10000E-03    2.9743         .0000    ** at limit **
  21  norm          .69165        1.3033         .0000        .74166E-03
  22  Normalizat    .92442        .17530         .0000        .15525E-03
  23  Prefactor     1.0208        .18263         .0000        .11211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.7727
  Prefactor  = 57.9538
  Prefactor  = 2.95244
  norm       = 3.87149
  Prefactor  = 0.000100132
  norm       = 0.000100117
  Prefactor  = 1.36267
  Prefactor  = 0.000100002
  Prefactor  = 10.5394
  norm       = 13.3253
  norm       = 5.29713
  Prefactor  = 10.7521
  norm       = 6.68327
  Prefactor  = 0.000100001
  norm       = 12.3037
  Prefactor  = 31.9359
  norm       = 7.20267
  Prefactor  = 9.11515
  Prefactor  = 0.0001
  norm       = 0.691653
  Normalizat = 0.924424
  Prefactor  = 1.02077
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.938     FROM HESSE     STATUS=OK           372 CALLS     2867 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8159        .15046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.773        20.320        .12207E-03   -1.5051    
   3  Prefactor     57.954        71.242        .52698E-04   -1.4184    
   4  Prefactor     2.9524        3.9127        .16949E-03   -1.5364    
   5  norm          3.8715        10.898        .20504E-03   -1.5314    
   6  Prefactor     .10013E-03    8.4522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10012E-03    7.5963        .20976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3627        25.687        .18613E-02   -1.5474    
   9  Prefactor     .10000E-03    4.7871        .16837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.539        4.1829        .96965E-04   -1.5059    
  11  norm          13.325        15.369        .10969E-03   -1.4978    
  12  norm          5.2971        2.5345        .84189E-04   -1.5248    
  13  Prefactor     10.752        19.597        .12217E-03   -1.5052    
  14  norm          6.6833        5.6357        .15521E-03   -1.5191    
  15  Prefactor     .10000E-03    14.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.304        5.4865        .11420E-03   -1.5006    
  17  Prefactor     31.936        30.643        .70904E-04   -1.4577    
  18  norm          7.2027        6.8506        .74730E-03   -1.5171    
  19  Prefactor     9.1151        10.224        .13275E-03   -1.5104    
  20  Prefactor     .10000E-03    2.9824        .13274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .69165        1.2738        .11774E-03   -1.5542    
  22  Normalizat    .92442        .20421        .24196E-03   -.95607    
  23  Prefactor     1.0208        .21274        .25271E-03   -.92040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44363e-07
Minuit parameter uncertainties:
  1  8.64194e-05
  2  20.3334
  3  71.3466
  4  3.91303
  5  10.9041
  6  0.00211427
  7  0.00188619
  8  11.838
  9  0.000197457
  10  4.18297
  11  15.3739
  12  2.53453
  13  19.6083
  14  5.63614
  15  0.000240829
  16  5.48671
  17  30.6583
  18  6.85137
  19  10.2256
  20  1.4497e-05
  21  1.27386
  22  0.204378
  23  0.212913
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.054e+01  4.183e+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.021e+00  2.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  9.244e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.50
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.23e-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) = 6221.22616494
delta logL = 0.711773851573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6221.22608671
delta logL = 0.711852074241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.674       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0137       1.0000          .0000       10.000    
     3 'Normalizat'    .95470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99409       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=   6221.226     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      238 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.675        9.6393        .27080E-02    .57007E-04
   2  Index         2.0137        .48576        .12393        .21872E-04
   3  Normalizat    .95470        .16602        .45597E-01    .89743E-05
   4  Prefactor     .99409        .18109        .46193E-01    .11688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.675
  Index      = 2.01373
  Normalizat = 0.9547
  Prefactor  = 0.994085
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.226     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.675        5.5573        .10832E-03   -1.4968    
   2  Index         2.0137        .29852        .51328E-02   -.64007    
   3  Normalizat    .95470        .19236        .23851E-03   -.94564    
   4  Prefactor     .99409        .20947        .25550E-03   -.92927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56192e-11
Minuit parameter uncertainties:
  1  5.55751
  2  0.298794
  3  0.192496
  4  0.209646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385981': 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) = 6221.22608668
delta logL = 0.711852110987

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  1.368e+01  5.558e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.014e+00  2.988e-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.941e-01  2.096e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  9.547e-01  1.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.89
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.01 +/- 0.30
Photon Flux (Free Index): 7.80e-08 +/- 3.49e-08
Energy Flux (Free Index): 5.21e-05 +/- 3.37e-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/385981/cmap_HighResolution_643939201_644198401_4FGL_J1422.3+3223_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='5.21e-05', photon_flux_error='3.77e-08', dlogl='7.12e-01', energy_flux='3.11e-05', photon_flux2='7.80e-08', job_status='DONE', time_completed='2021-09-09 12:03:30.035197', photon_index_error2='0.30', photon_index2='2.01', ts='15.50', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.37e-05', EG='0.92', time_epoch_completed='1631214210.04', return_code='0', job_id='385981', GAL2='0.99', EG2='0.95', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.49e-08', ts2='16.89', photon_index='2.40' WHERE bin_id='1561' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 385981: <4FGL_J1422.3+3223_daily_bin1561> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1561 215.577 32.3911 643939201 644198401 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 :                                   566.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            730 sec.

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

