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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1125
RA = 215.577, Dec = 32.3911
tmin = 530928001, tmax = 531187201
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='384292', job_status='RUN', time_executed='2021-09-09 11:50:16.397788', time_epoch_executed='1631213416.4' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384292/ft1_4FGL_J1422.3+3223_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384292/ft2_4FGL_J1422.3+3223_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384292/ft1_4FGL_J1422.3+3223_daily_bin1125.fits outfile=/scratch/kocevski/384292/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1125.fits ra=215.577 dec=32.3911 rad=12.0 tmin=530928001.0 tmax=531187201.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.63
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384292/ft2_4FGL_J1422.3+3223_daily_bin1125.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/384292/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1125.fits evtable="EVENTS" outfile="/scratch/kocevski/384292/ft1_filtered_4FGL_J1422.3+3223_daily_bin1125.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384292/ft1_filtered_4FGL_J1422.3+3223_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/384292/ft2_4FGL_J1422.3+3223_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/384292/ltcube_530928001_531187201_4FGL_J1422.3+3223_daily_bin1125.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/384292/ft2_4FGL_J1422.3+3223_daily_bin1125.fits
.....................!
real 11.86
user 11.41
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384292/ft1_filtered_4FGL_J1422.3+3223_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/384292/ft2_4FGL_J1422.3+3223_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/384292/ltcube_530928001_531187201_4FGL_J1422.3+3223_daily_bin1125.fits outfile=/scratch/kocevski/384292/expmap_530928001_531187201_4FGL_J1422.3+3223_daily_bin1125.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/384292/ltcube_530928001_531187201_4FGL_J1422.3+3223_daily_bin1125.fits
.....................!
real 191.00
user 185.50
sys 5.15

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/384292/ft1_filtered_4FGL_J1422.3+3223_daily_bin1125.fits scfile=/scratch/kocevski/384292/ft2_4FGL_J1422.3+3223_daily_bin1125.fits outfile=/scratch/kocevski/384292/cmap_530928001_531187201_4FGL_J1422.3+3223_daily_bin1125.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384292/ft1_filtered_4FGL_J1422.3+3223_daily_bin1125.fits scfile=/scratch/kocevski/384292/ft2_4FGL_J1422.3+3223_daily_bin1125.fits outfile=/scratch/kocevski/384292/cmap_HighResolution_530928001_531187201_4FGL_J1422.3+3223_daily_bin1125.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3047       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2252       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.231       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.163       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.641       1.0000         .10000E-03   10000.    
    14 'norm      '    11.533       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.1147       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.629       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9961       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1220       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .66338       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=   5658.218     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2481 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.417        21.157       -.41854E-05   -.16365E-03
   2  Prefactor     8.3096        30.400        .10009E-04    .50597E-04
   3  Prefactor     .10000E-03    15.077       -.41021E-05** at limit **
   4  Prefactor     2.2261        4.5999        .11644E-05   -.10122E-03
   5  norm          1.8529        9.5039        .31817E-05   -.81576E-03
   6  Prefactor     .10000E-03    8.0115        .10565E-05** at limit **
   7  norm          .10000E-03    2.3432        .32943E-07** at limit **
   8  Prefactor     .10000E-03    6.7772       -.72117E-06** at limit **
   9  Prefactor     .10000E-03    23.903       -.41230E-05** at limit **
  10  Prefactor     23.232        6.0900        .77799E-07   -.57257E-04
  11  norm          .10000E-03    5.2367        .14771E-06** at limit **
  12  norm          10.163        3.4232        .70457E-07    .32523E-05
  13  Prefactor     17.648        28.828        .82356E-05    .14192E-03
  14  norm          11.535        8.7133       -.84308E-07   -.28461E-04
  15  Prefactor     .10000E-03    22.781        .21405E-05** at limit **
  16  norm          6.1145        4.2699        .84659E-07   -.36571E-04
  17  Prefactor     .10000E-03    17.943        .55085E-05** at limit **
  18  norm          15.628        11.682       -.49998E-07   -.18089E-04
  19  Prefactor     5.9963        10.922        .27217E-06   -.48587E-03
  20  Prefactor     .10000E-03    4.5393        .50514E-08** at limit **
  21  norm          .10000E-03    .52288        .54094E-07** at limit **
  22  Normalizat    1.1220        .18322       -.18892E-05    .42151E-04
  23  Prefactor     .66349        .17494        .42022E-06   -.81905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4174
  Prefactor  = 8.30962
  Prefactor  = 0.0001
  Prefactor  = 2.22614
  norm       = 1.85287
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.2318
  norm       = 0.0001
  norm       = 10.163
  Prefactor  = 17.6481
  norm       = 11.5349
  Prefactor  = 0.0001
  norm       = 6.1145
  Prefactor  = 0.000100001
  norm       = 15.6281
  Prefactor  = 5.99625
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.12195
  Prefactor  = 0.66349
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.218     FROM HESSE     STATUS=OK           372 CALLS     2853 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.417        21.259        .84589E-04   -1.4761    
   2  Prefactor     8.3096        30.357        .13911E-03   -1.5131    
   3  Prefactor     .10000E-03    15.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2261        4.6103        .21688E-03   -1.5410    
   5  norm          1.8529        37.564        .15315E-02   -1.5436    
   6  Prefactor     .10000E-03    8.0245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3790        .11240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.232        6.1187        .83105E-04   -1.4744    
  11  norm          .10000E-03    5.2390        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.163        3.4271        .77877E-04   -1.5070    
  13  Prefactor     17.648        28.979        .95357E-04   -1.4868    
  14  norm          11.535        8.7203        .11796E-03   -1.5029    
  15  Prefactor     .10000E-03    22.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.1145        4.2739        .12519E-03   -1.5213    
  17  Prefactor     .10000E-03    18.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.628        11.680        .10131E-03   -1.4917    
  19  Prefactor     5.9963        11.177        .81989E-03   -1.5218    
  20  Prefactor     .10000E-03    4.5949        .15645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .52980        .53091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1220        .21624        .22583E-03   -.89050    
  23  Prefactor     .66349        .20242        .28784E-03   -1.0498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11318e-08
Minuit parameter uncertainties:
  1  21.2659
  2  30.4132
  3  0.000121505
  4  4.61107
  5  16.6971
  6  2.45045e-05
  7  2.78098e-06
  8  1.99133e-05
  9  0.000233203
  10  6.11886
  11  2.42527e-06
  12  3.42714
  13  29.0023
  14  8.72129
  15  5.89597e-05
  16  4.2741
  17  0.000191096
  18  11.6817
  19  11.1813
  20  4.46535e-06
  21  9.9111e-07
  22  0.216406
  23  0.202645
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.323e+01  6.119e+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.635e-01  2.026e-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.122e+00  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.27
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.09e-07 +/- 5.51e-08
Energy Flux (Fixed Index): 6.85e-05 +/- 1.80e-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) = 5658.17640514
delta logL = 0.0413053389066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5658.17513479
delta logL = 0.0425756894465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.925       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4813       1.0000          .0000       10.000    
     3 'Normalizat'    1.1107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67155       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=   5658.175     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      291 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.925        7.5485        .85541E-04    .84880E-03
   2  Index         2.4813        .28464        .33672E-02    .17233E-03
   3  Normalizat    1.1106        .20235        .22676E-03   -.23714E-04
   4  Prefactor     .67169        .19958        .28624E-03   -.28795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9253
  Index      = 2.48133
  Normalizat = 1.11058
  Prefactor  = 0.671694
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.175     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.925        7.4050        .17108E-04   -1.4771    
   2  Index         2.4813        .27909        .13469E-03   -.52792    
   3  Normalizat    1.1106        .20246        .90704E-05   -.89413    
   4  Prefactor     .67169        .19969        .11450E-04   -1.0465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13113e-10
Minuit parameter uncertainties:
  1  7.40529
  2  0.27928
  3  0.202606
  4  0.199906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384292': 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) = 5658.17513451
delta logL = 0.0425759701329

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  2.193e+01  7.405e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.481e+00  2.793e-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:  6.717e-01  1.999e-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.111e+00  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.09
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.48 +/- 0.28
Photon Flux (Free Index): 2.20e-07 +/- 6.69e-08
Energy Flux (Free Index): 6.51e-05 +/- 1.99e-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/384292/cmap_HighResolution_530928001_531187201_4FGL_J1422.3+3223_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-07', energy_flux2='6.51e-05', photon_flux_error='5.51e-08', dlogl='4.26e-02', energy_flux='6.85e-05', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-09 11:59:29.223112', photon_index_error2='0.28', photon_index2='2.48', ts='36.27', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.12', time_epoch_completed='1631213969.22', return_code='0', job_id='384292', GAL2='0.67', EG2='1.11', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='6.69e-08', ts2='36.09', photon_index='2.40' WHERE bin_id='1125' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 384292: <4FGL_J1422.3+3223_daily_bin1125> in cluster <slac> Done

Job <4FGL_J1422.3+3223_daily_bin1125> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:46:10 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:46:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:46:11 2021
Terminated at Thu Sep  9 11:59:29 2021
Results reported at Thu Sep  9 11:59:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1422.3+3223_daily_bin1125 215.577 32.3911 530928001 531187201 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 :                                   539.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             207.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            799 sec.

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

