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


Performing analysis on: 4FGL_J0431.8+7403_monthly_bin158
RA = 67.9517, Dec = 74.0552
tmin = 646531201, tmax = 649123201
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='960889', job_status='RUN', time_executed='2021-10-13 06:05:27.574319', time_epoch_executed='1634130327.57' WHERE source_name='4FGL J0431.8+7403' and cadence='monthly' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960889

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960889/ft1_4FGL_J0431.8+7403_monthly_bin158.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960889/ft1_4FGL_J0431.8+7403_monthly_bin158.fits outfile=/scratch/kocevski/960889/ft1_filteredMKT_4FGL_J0431.8+7403_monthly_bin158.fits ra=67.9517 dec=74.0552 rad=12.0 tmin=646531201.0 tmax=649123201.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 30.34
user 29.49
sys 0.66

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.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/960889/ft1_filteredMKT_4FGL_J0431.8+7403_monthly_bin158.fits evtable="EVENTS" outfile="/scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.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.90
user 0.65
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/960889/ltcube_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.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/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits
.....................!
real 108.95
user 108.33
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/960889/ltcube_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.fits outfile=/scratch/kocevski/960889/expmap_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.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/960889/ltcube_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.fits
.....................!
real 192.61
user 186.40
sys 5.75

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 204 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0431.8+7403 @ 67.9517 74.0552

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.fits scfile=/scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits outfile=/scratch/kocevski/960889/cmap_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.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=67.9517 yref=74.0552 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.84
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.fits scfile=/scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits outfile=/scratch/kocevski/960889/cmap_HighResolution_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.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=67.9517 yref=74.0552 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.82
user 0.65
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960889/Model_4FGL_J0431.8+7403_monthly_bin158.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.fits.....................!
real 2615.76
user 2609.66
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.fits', '/scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits', expMap='/scratch/kocevski/960889/expmap_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.fits', expCube='/scratch/kocevski/960889/ltcube_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/960889/Model_4FGL_J0431.8+7403_monthly_bin158.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0431.8+7403'

4FGL J0431.8+7403
   Spectrum: PowerLaw
301    Prefactor:  5.218e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.977e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.973e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/960889/ft1_filtered_4FGL_J0431.8+7403_monthly_bin158.fits
Spacecraft file(s): /scratch/kocevski/960889/ft2_4FGL_J0431.8+7403_monthly_bin158.fits
Exposure map: /scratch/kocevski/960889/expmap_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.fits
Exposure cube: /scratch/kocevski/960889/ltcube_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/960889/Model_4FGL_J0431.8+7403_monthly_bin158.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) = 209807.623603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24530E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .30452E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9525       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4233       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0409       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12920E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6689       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.958       1.0000         .10000E-03   10000.    
    12 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0968       1.0000         .10000E-03   10000.    
    16 'norm      '    .47619E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.888       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.141       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.569       1.0000         .10000E-03   10000.    
    20 'norm      '    5.6449       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1038       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   209806.5     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     2598 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11260E-03    1.5180        .17203    ** at limit **
   2  norm          .10003E-03    .41316        .10870    ** at limit **
   3  Prefactor     .69294        .70521        .35060E-03    .10356E-02
   4  Prefactor     1.9518        2.3010        .29697E-03    .56352E-04
   5  norm          6.4220        2.1215        .15836E-03    .64323E-04
   6  norm          1.0409        .96764        .41321E-03   -.10301E-03
   7  Prefactor     .10000E-03    9.1432        .36285E-03** at limit **
   8  Prefactor     1.6693        .76083        .26066E-03    .30147E-03
   9  Prefactor     .10000E-03    2.2599        .45785E-02** at limit **
  10  Prefactor     3.5190        1.7691        .21551E-03   -.64146E-04
  11  Prefactor     11.960        5.8929        .11584E-03    .75370E-04
  12  norm          .10000E-03    2.7069        .50265E-02** at limit **
  13  norm          .10000E-03    6.0417        .36285E-03** at limit **
  14  Prefactor     2.4578        2.2953        .26093E-03   -.18125E-04
  15  Prefactor     6.1101        8.6886        .16260E-03   -.80546E-04
  16  norm          .40972E-02    4.6100        .50000        .37019E-03
  17  Prefactor     23.887        8.6924        .81957E-04    .31072E-04
  18  Prefactor     10.135        6.6943        .12583E-03   -.12433E-03
  19  Prefactor     18.564        8.2488        .92947E-04   -.18396E-03
  20  norm          5.6449        2.8872        .84538E-03    .67563E-04
  21  Normalizat    1.1039        .56222E-01    .51532E-03    .12919E-02
  22  Prefactor     1.0038        .13707E-01    .13144E-03    .65548E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112602
  norm       = 0.000100031
  Prefactor  = 0.692945
  Prefactor  = 1.95184
  norm       = 6.42197
  norm       = 1.04091
  Prefactor  = 0.0001
  Prefactor  = 1.66932
  Prefactor  = 0.0001
  Prefactor  = 3.51897
  Prefactor  = 11.9602
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 2.45775
  Prefactor  = 6.11014
  norm       = 0.0040972
  Prefactor  = 23.8873
  Prefactor  = 10.1353
  Prefactor  = 18.5641
  norm       = 5.64492
  Normalizat = 1.10385
  Prefactor  = 1.00382
 **********
 **   18 **HESSE 
 **********

 FCN=   209806.5     FROM HESSE     STATUS=OK           348 CALLS     2946 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11260E-03    1.5296        .17073       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10003E-03    .41351        .10859       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .69294        .70443        .14024E-04   -1.5541    
   4  Prefactor     1.9518        2.3007        .11879E-04   -1.5429    
   5  norm          6.4220        2.1215        .63345E-05   -1.5201    
   6  norm          1.0409        .96724        .16528E-04   -1.5504    
   7  Prefactor     .10000E-03    9.1435        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6693        .76075        .10426E-04   -1.5450    
   9  Prefactor     .10000E-03    2.3456        .18314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5190        1.7689        .86206E-05   -1.5333    
  11  Prefactor     11.960        5.8930        .46338E-05   -1.5016    
  12  norm          .10000E-03    2.8055        .20106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0420        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4578        2.2954        .10437E-04   -1.5394    
  15  Prefactor     6.1101        8.6904        .65040E-05   -1.5214    
  16  norm          .40972E-02    4.6100        .50000       -1.5695    
  17  Prefactor     23.887        8.6887        .32783E-05   -1.4730    
  18  Prefactor     10.135        6.6896        .50330E-05   -1.5071    
  19  Prefactor     18.564        8.2419        .37179E-05   -1.4846    
  20  norm          5.6449        2.8871        .33815E-04   -1.5233    
  21  Normalizat    1.1039        .56199E-01    .20613E-04   -.89628    
  22  Prefactor     1.0038        .13702E-01    .26288E-04   -.92602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94252e-09
Minuit parameter uncertainties:
  1  0.00878099
  2  0.000226152
  3  0.704434
  4  2.30082
  5  2.12149
  6  0.96725
  7  4.19578e-05
  8  0.760759
  9  2.69743e-05
  10  1.76897
  11  5.89326
  12  0.000212873
  13  8.92888e-05
  14  2.29545
  15  8.69223
  16  0.271512
  17  8.68918
  18  6.6901
  19  8.24236
  20  2.88717
  21  0.0562019
  22  0.0137022
Done.

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

Extracting fit parameters...

4FGL J0431.8+7403
   Spectrum: PowerLaw
301    Prefactor:  1.196e+01  5.893e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.977e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.973e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.004e+00  1.370e-02  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.104e+00  5.620e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.62
Ra Dec: 67.952 74.055
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.00e-08 +/- 4.93e-09
Energy Flux (Fixed Index): 7.32e-06 +/- 3.61e-06

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) = 209806.49962
delta logL = 0.0353473342839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 209806.471099
delta logL = 0.0638682300923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.905       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1149       1.0000          .0000       10.000    
     3 'Normalizat'    1.1011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0040       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   209806.5     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      266 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.905        6.9018        .12132E-03   -.53076E-03
   2  Index         2.1149        .42022        .10810E-01   -.22007E-03
   3  Normalizat    1.1011        .53169E-01    .51588E-03   -.98235E-03
   4  Prefactor     1.0040        .12891E-01    .13143E-03   -.15280E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9049
  Index      = 2.11488
  Normalizat = 1.10113
  Prefactor  = 1.004
 **********
 **   18 **HESSE 
 **********

 FCN=   209806.5     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.905        6.3039        .48528E-05   -1.5047    
   2  Index         2.1149        .38372        .43238E-03   -.61508    
   3  Normalizat    1.1011        .53011E-01    .20635E-04   -.89715    
   4  Prefactor     1.0040        .12888E-01    .52571E-05   -.92596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55315e-10
Minuit parameter uncertainties:
  1  6.30431
  2  0.384291
  3  0.0530132
  4  0.0128882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960889': 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) = 209806.471099
delta logL = 0.063868247933

Extracting fit parameters...

4FGL J0431.8+7403
   Spectrum: PowerLaw
301    Prefactor:  1.090e+01  6.304e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.115e+00  3.843e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.973e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.004e+00  1.289e-02  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.101e+00  5.301e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.76
Ra Dec: 67.952 74.055
Photon Index (Free Index): 2.11 +/- 0.38
Photon Flux (Free Index): 1.28e-08 +/- 9.98e-09
Energy Flux (Free Index): 6.79e-06 +/- 3.43e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/960889/cmap_HighResolution_646531201_649123201_4FGL_J0431.8+7403_monthly_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-08', energy_flux2='6.79e-06', photon_flux_error='4.93e-09', dlogl='6.39e-02', energy_flux='7.32e-06', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-10-13 10:02:35.718019', photon_index_error2='0.38', photon_index2='2.11', ts='8.62', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.43e-06', EG='1.10', time_epoch_completed='1634144555.72', return_code='0', job_id='960889', GAL2='1.00', EG2='1.10', return_code2='0', energy_flux_error='3.61e-06', photon_flux_error2='9.98e-09', ts2='8.76', photon_index='1.98' WHERE bin_id='158' AND source_name='4FGL J0431.8+7403' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 13 10:02:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 960889: <4FGL_J0431.8+7403_monthly_bin158> in cluster <slac> Done

Job <4FGL_J0431.8+7403_monthly_bin158> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Oct 13 06:05:12 2021
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 13 06:05:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 13 06:05:13 2021
Terminated at Wed Oct 13 10:02:36 2021
Results reported at Wed Oct 13 10:02:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0431.8+7403_monthly_bin158 67.9517 74.0552 646531201 649123201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0431.8+7403 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   14089.34 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             643.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3417 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   14243 sec.
    Turnaround time :                            14244 sec.

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

