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


Performing analysis on: 4FGL_J1422.3+3223_daily_bin1352
RA = 215.577, Dec = 32.3911
tmin = 589766401, tmax = 590025601
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='384645', job_status='RUN', time_executed='2021-09-09 11:49:40.753434', time_epoch_executed='1631213380.75' WHERE source_name='4FGL J1422.3+3223' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384645/ft1_4FGL_J1422.3+3223_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384645/ft2_4FGL_J1422.3+3223_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384645/ft1_4FGL_J1422.3+3223_daily_bin1352.fits outfile=/scratch/kocevski/384645/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1352.fits ra=215.577 dec=32.3911 rad=12.0 tmin=589766401.0 tmax=590025601.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 5.27
user 4.99
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384645/ft2_4FGL_J1422.3+3223_daily_bin1352.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/384645/ft1_filteredMKT_4FGL_J1422.3+3223_daily_bin1352.fits evtable="EVENTS" outfile="/scratch/kocevski/384645/ft1_filtered_4FGL_J1422.3+3223_daily_bin1352.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384645/ft1_filtered_4FGL_J1422.3+3223_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/384645/ft2_4FGL_J1422.3+3223_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/384645/ltcube_589766401_590025601_4FGL_J1422.3+3223_daily_bin1352.fits outfile=/scratch/kocevski/384645/expmap_589766401_590025601_4FGL_J1422.3+3223_daily_bin1352.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/384645/ltcube_589766401_590025601_4FGL_J1422.3+3223_daily_bin1352.fits
.....................!
real 190.30
user 185.66
sys 4.29

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/384645/ft1_filtered_4FGL_J1422.3+3223_daily_bin1352.fits scfile=/scratch/kocevski/384645/ft2_4FGL_J1422.3+3223_daily_bin1352.fits outfile=/scratch/kocevski/384645/cmap_589766401_590025601_4FGL_J1422.3+3223_daily_bin1352.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384645/ft1_filtered_4FGL_J1422.3+3223_daily_bin1352.fits scfile=/scratch/kocevski/384645/ft2_4FGL_J1422.3+3223_daily_bin1352.fits outfile=/scratch/kocevski/384645/cmap_HighResolution_589766401_590025601_4FGL_J1422.3+3223_daily_bin1352.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.42
sys 0.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14679E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.864       1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40361E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.256       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.878       1.0000         .10000E-03   10000.    
    11 'norm      '    15.961       1.0000         .10000E-03   10000.    
    12 'norm      '    5.8545       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0888       1.0000         .10000E-03   10000.    
    14 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.035       1.0000         .10000E-03   10000.    
    18 'norm      '    13.868       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0254       1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2854       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72556       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=   6007.245     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2605 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    126.93       -.27980E-04** at limit **
   2  Prefactor     18.856        19.016        .75947E-06    .11991E-03
   3  Prefactor     71.246        76.511        .90502E-05    .11086E-03
   4  Prefactor     .10003E-03    2.5012        .40606E-06** at limit **
   5  norm          16.257        11.518       -.20370E-06    .12258E-04
   6  Prefactor     .10000E-03    4.2416       -.44513E-07** at limit **
   7  norm          .10000E-03    1.7208       -.23268E-06** at limit **
   8  Prefactor     .10000E-03    4.3580       -.62715E-07** at limit **
   9  Prefactor     .10000E-03    11.844        .19044E-06** at limit **
  10  Prefactor     61.883        8.9794        .10927E-06    .27550E-03
  11  norm          15.964        15.979       -.51722E-07    .43544E-04
  12  norm          5.8542        3.1947       -.10736E-06    .68948E-04
  13  Prefactor     2.0859        98.368       -.88072E-05   -.14869E-04
  14  norm          .10000E-03    13.738       -.26221E-05** at limit **
  15  Prefactor     .10000E-03    40.737       -.71993E-05** at limit **
  16  norm          .10000E-03    1.5519       -.29478E-06** at limit **
  17  Prefactor     61.043        50.343       -.10532E-05   -.17241E-04
  18  norm          13.869        10.162        .17142E-06    .60464E-04
  19  Prefactor     .10000E-03    31.456        .39095E-05** at limit **
  20  Prefactor     5.0265        5.8244        .35311E-06    .53277E-04
  21  norm          .10000E-03    .52433        .64658E-07** at limit **
  22  Normalizat    1.2851        .20585       -.17735E-05    .10052E-02
  23  Prefactor     .72592        .19694        .51280E-05    .25937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Prefactor  = 18.856
  Prefactor  = 71.2464
  Prefactor  = 0.000100028
  norm       = 16.2573
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.8826
  norm       = 15.9635
  norm       = 5.85419
  Prefactor  = 2.08593
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 61.0434
  norm       = 13.8687
  Prefactor  = 0.0001
  Prefactor  = 5.02654
  norm       = 0.0001
  Normalizat = 1.28509
  Prefactor  = 0.725925
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.245     FROM HESSE     STATUS=OK           366 CALLS     2971 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    127.11        .64560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.856        18.905        .92215E-04   -1.4839    
   3  Prefactor     71.246        76.268        .23771E-03   -1.4018    
   4  Prefactor     .10003E-03    12.044        .22448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.257        11.521        .99339E-04   -1.4901    
   6  Prefactor     .10000E-03    4.2424        .15590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7389        .99296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3638        .15800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.883        9.0052        .51010E-04   -1.4133    
  11  norm          15.964        15.969        .10025E-03   -1.4909    
  12  norm          5.8542        3.1961        .98764E-04   -1.5224    
  13  Prefactor     2.0859        102.35        .28566E-03   -1.5419    
  14  norm          .10000E-03    14.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5577        .94347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.043        50.463        .51359E-04   -1.4144    
  18  norm          13.869        10.157        .10756E-03   -1.4963    
  19  Prefactor     .10000E-03    32.121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0265        5.8088        .17938E-03   -1.5260    
  21  norm          .10000E-03    .53001        .54712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2851        .22976        .24130E-03   -.84013    
  23  Prefactor     .72592        .21913        .31585E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97341e-09
Minuit parameter uncertainties:
  1  0.00317863
  2  18.9114
  3  76.3732
  4  0.00117128
  5  11.5225
  6  1.5041e-06
  7  6.58775e-06
  8  2.12967e-07
  9  1.80801e-05
  10  9.00537
  11  15.973
  12  3.19618
  13  29.2753
  14  7.57885e-05
  15  0.000394301
  16  8.27763e-06
  17  50.4985
  18  10.1579
  19  2.70231e-05
  20  5.80941
  21  1.34701e-06
  22  0.229946
  23  0.21939
Done.

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

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.188e+01  9.005e+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:  7.259e-01  2.194e-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.285e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 186.72
Ra Dec: 215.577 32.391
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.58e-07 +/- 8.11e-08
Energy Flux (Fixed Index): 1.83e-04 +/- 2.66e-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) = 6006.93483453
delta logL = 0.31044570689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6006.77106377
delta logL = 0.474216471746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.446       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2577       1.0000          .0000       10.000    
     3 'Normalizat'    1.3256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69851       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=   6006.771     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.450        11.714        .42240E-06    .34287E-04
   2  Index         2.2576        .14392        .25559E-05    .10066E-04
   3  Normalizat    1.3257        .18970       -.15688E-05   -.16243E-04
   4  Prefactor     .69841        .18649        .59749E-06   -.10949E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.4505
  Index      = 2.2576
  Normalizat = 1.32572
  Prefactor  = 0.698411
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.771     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.450        11.753        .48517E-04   -1.4051    
   2  Index         2.2576        .14430        .21122E-03   -.58055    
   3  Normalizat    1.3257        .21900        .23856E-03   -.82802    
   4  Prefactor     .69841        .21665        .32144E-03   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05059e-11
Minuit parameter uncertainties:
  1  11.7537
  2  0.144332
  3  0.219152
  4  0.216912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384645': 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) = 6006.77106334
delta logL = 0.47421689561

Extracting fit parameters...

4FGL J1422.3+3223
   Spectrum: PowerLaw
259    Prefactor:  6.845e+01  1.175e+01  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.258e+00  1.443e-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.984e-01  2.169e-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.326e+00  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 186.39
Ra Dec: 215.577 32.391
Photon Index (Free Index): 2.26 +/- 0.14
Photon Flux (Free Index): 5.15e-07 +/- 8.82e-08
Energy Flux (Free Index): 2.09e-04 +/- 4.47e-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/384645/cmap_HighResolution_589766401_590025601_4FGL_J1422.3+3223_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.58e-07', energy_flux2='2.09e-04', photon_flux_error='8.11e-08', dlogl='4.74e-01', energy_flux='1.83e-04', photon_flux2='5.15e-07', job_status='DONE', time_completed='2021-09-09 12:00:02.596973', photon_index_error2='0.14', photon_index2='2.26', ts='186.72', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='4.47e-05', EG='1.29', time_epoch_completed='1631214002.6', return_code='0', job_id='384645', GAL2='0.70', EG2='1.33', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='8.82e-08', ts2='186.39', photon_index='2.40' WHERE bin_id='1352' AND source_name='4FGL J1422.3+3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 384645: <4FGL_J1422.3+3223_daily_bin1352> in cluster <slac> Done

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

Your job looked like:

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

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

