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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1051
RA = 215.577, Dec = 32.3911
tmin = 511747201, tmax = 512006401
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='383087', job_status='RUN', time_executed='2021-09-09 11:44:00.410847', time_epoch_executed='1631213040.41' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383087/ft1_4FGL_J1422.3+3223_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383087/ft2_4FGL_J1422.3+3223_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383087/ft1_4FGL_J1422.3+3223_daily_bin1051.fits outfile=/scratch/kocevski/383087/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1051.fits ra=215.577 dec=32.3911 rad=12.0 tmin=511747201.0 tmax=512006401.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.50
user 3.29
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383087/ft1_filtered_4FGL_J1422.3+3223_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/383087/ft2_4FGL_J1422.3+3223_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/383087/ltcube_511747201_512006401_4FGL_J1422.3+3223_daily_bin1051.fits outfile=/scratch/kocevski/383087/expmap_511747201_512006401_4FGL_J1422.3+3223_daily_bin1051.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/383087/ltcube_511747201_512006401_4FGL_J1422.3+3223_daily_bin1051.fits
.....................!
real 192.51
user 187.16
sys 4.99

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/383087/ft1_filtered_4FGL_J1422.3+3223_daily_bin1051.fits scfile=/scratch/kocevski/383087/ft2_4FGL_J1422.3+3223_daily_bin1051.fits outfile=/scratch/kocevski/383087/cmap_511747201_512006401_4FGL_J1422.3+3223_daily_bin1051.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383087/ft1_filtered_4FGL_J1422.3+3223_daily_bin1051.fits scfile=/scratch/kocevski/383087/ft2_4FGL_J1422.3+3223_daily_bin1051.fits outfile=/scratch/kocevski/383087/cmap_HighResolution_511747201_512006401_4FGL_J1422.3+3223_daily_bin1051.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23000E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5367       1.0000         .10000E-03   10000.    
    11 'norm      '    11.411       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7350       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.7553       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.1397       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2044       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93281       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=   6267.182     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     3817 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.895        .18142E-02** at limit **
   2  Prefactor     30.267        25.682        .72850E-04   -.32772E-05
   3  Prefactor     .10000E-03    24.816        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.1435        .11205E-02** at limit **
   5  norm          .10000E-03    6.9546        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.2997        .18142E-02** at limit **
   7  norm          .10000E-03    1.8231        .10368E-02** at limit **
   8  Prefactor     .10000E-03    51.968        .70816E-01** at limit **
   9  Prefactor     15.633        26.153        .10120E-03   -.68865E-04
  10  Prefactor     6.5363        3.8180        .11308E-03    .13673E-04
  11  norm          11.389        20.324        .11859E-03   -.25116E-04
  12  norm          3.7351        2.1856        .87005E-04    .47040E-05
  13  Prefactor     .10000E-03    16.299        .18142E-02** at limit **
  14  norm          8.7559        5.5994        .13547E-03    .10222E-03
  15  Prefactor     .10000E-03    12.711        .18142E-02** at limit **
  16  norm          6.1396        4.2295        .13049E-03   -.16292E-04
  17  Prefactor     .10000E-03    15.019        .18142E-02** at limit **
  18  norm          .10000E-03    2.4353        .12064E-02** at limit **
  19  Prefactor     .10000E-03    5.3270        .17819E-02** at limit **
  20  Prefactor     .10000E-03    11.335        .36285E-03** at limit **
  21  norm          .10000E-03    .76054        .13160E-03** at limit **
  22  Normalizat    1.2044        .20431        .22653E-03    .19499E-03
  23  Prefactor     .93275        .21252        .27007E-03    .21764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.2667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6332
  Prefactor  = 6.53631
  norm       = 11.3895
  norm       = 3.73508
  Prefactor  = 0.0001
  norm       = 8.75587
  Prefactor  = 0.0001
  norm       = 6.13963
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20442
  Prefactor  = 0.932752
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.182     FROM HESSE     STATUS=OK           356 CALLS     4173 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.267        25.677        .29140E-05   -1.4607    
   3  Prefactor     .10000E-03    24.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1442        .22411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.9559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.3000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8234        .20736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.895        .82542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.633        25.263        .40479E-05   -1.4917    
  10  Prefactor     6.5363        3.8179        .45230E-05   -1.5197    
  11  norm          11.389        20.201        .47438E-05   -1.5033    
  12  norm          3.7351        2.1856        .34802E-05   -1.5321    
  13  Prefactor     .10000E-03    16.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.7559        5.5993        .54186E-05   -1.5116    
  15  Prefactor     .10000E-03    12.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.1396        4.2295        .52195E-05   -1.5212    
  17  Prefactor     .10000E-03    15.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.4353        .24127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3276        .35638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.335        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .76054        .26320E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2044        .20454        .45306E-04   -.86466    
  23  Prefactor     .93275        .21274        .10803E-04   -.95006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39476e-10
Minuit parameter uncertainties:
  1  0.000152072
  2  25.6865
  3  0.000162889
  4  1.04023e-05
  5  1.85582e-05
  6  1.47944e-05
  7  2.32094e-06
  8  0.000224233
  9  25.2798
  10  3.81806
  11  20.2131
  12  2.18562
  13  2.02901e-05
  14  5.59961
  15  2.60675e-05
  16  4.22966
  17  2.05386e-05
  18  1.89561e-07
  19  6.7347e-07
  20  2.7658e-05
  21  5.4572e-06
  22  0.204681
  23  0.212925
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.536e+00  3.818e+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.328e-01  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:  1.204e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.13e-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) = 6267.12562094
delta logL = 0.0558848090923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6267.12454927
delta logL = 0.056956482691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6915       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5786       1.0000          .0000       10.000    
     3 'Normalizat'    1.1958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93934       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=   6267.125     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      261 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6948        67.983        .42093E-02    .26456E-03
   2  Index         2.5794        3.6052        .16017        .11796E-03
   3  Normalizat    1.1957        .78386E-01    .51393E-01    .28443E-04
   4  Prefactor     .93926        .75604E-01    .45505E-01    .73808E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69479
  Index      = 2.57939
  Normalizat = 1.19571
  Prefactor  = 0.939255
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.125     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6948        4.5023        .10323E-03   -1.5231    
   2  Index         2.5794        .56865        .60364E-02   -.50536    
   3  Normalizat    1.1957        .19834        .22722E-03   -.86736    
   4  Prefactor     .93926        .20946        .26925E-03   -.94783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41049e-11
Minuit parameter uncertainties:
  1  4.50258
  2  0.570265
  3  0.198462
  4  0.209636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383087': 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) = 6267.12454543
delta logL = 0.0569603208633

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  5.695e+00  4.503e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.579e+00  5.703e-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.393e-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:  1.196e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.58 +/- 0.57
Photon Flux (Free Index): 6.52e-08 +/- 4.05e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.13e-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/383087/cmap_HighResolution_511747201_512006401_4FGL_J1422.3+3223_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='1.74e-05', photon_flux_error='3.44e-08', dlogl='5.70e-02', energy_flux='1.93e-05', photon_flux2='6.52e-08', job_status='DONE', time_completed='2021-09-09 11:55:08.427690', photon_index_error2='0.57', photon_index2='2.58', ts='6.16', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.20', time_epoch_completed='1631213708.43', return_code='0', job_id='383087', GAL2='0.94', EG2='1.20', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.05e-08', ts2='6.27', photon_index='2.40' WHERE bin_id='1051' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 383087: <4FGL_J1422.3+3223_daily_bin1051> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1051> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:41:33 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:41:35 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:41:35 2021
Terminated at Thu Sep  9 11:55:09 2021
Results reported at Thu Sep  9 11:55:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1051 215.577 32.3911 511747201 512006401 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

