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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin575
RA = 160.805, Dec = 24.146
tmin = 388368001, tmax = 388627201
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='74378', job_status='RUN', time_executed='2021-09-02 08:59:11.900368', time_epoch_executed='1630598351.9' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74378/ft1_4FGL_J1043.2+2408_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74378/ft1_4FGL_J1043.2+2408_daily_bin575.fits outfile=/scratch/kocevski/74378/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin575.fits ra=160.805 dec=24.146 rad=12.0 tmin=388368001.0 tmax=388627201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.56
user 4.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.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/74378/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin575.fits evtable="EVENTS" outfile="/scratch/kocevski/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.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.55
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/74378/ltcube_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.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/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits
.....................!
real 17.42
user 16.98
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/74378/ltcube_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.fits outfile=/scratch/kocevski/74378/expmap_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.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/74378/ltcube_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.fits
.....................!
real 193.72
user 188.22
sys 4.60

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J1043.2+2408 @ 160.805 24.146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.fits scfile=/scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits outfile=/scratch/kocevski/74378/cmap_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.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=160.805 yref=24.146 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 2.43
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.fits scfile=/scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits outfile=/scratch/kocevski/74378/cmap_HighResolution_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.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=160.805 yref=24.146 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.59
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/74378/Model_4FGL_J1043.2+2408_daily_bin575.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/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.fits.....................!
real 50.97
user 49.28
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.fits', '/scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits', expMap='/scratch/kocevski/74378/expmap_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.fits', expCube='/scratch/kocevski/74378/ltcube_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74378/Model_4FGL_J1043.2+2408_daily_bin575.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1043.2+2408'

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.079e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/74378/ft1_filtered_4FGL_J1043.2+2408_daily_bin575.fits
Spacecraft file(s): /scratch/kocevski/74378/ft2_4FGL_J1043.2+2408_daily_bin575.fits
Exposure map: /scratch/kocevski/74378/expmap_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.fits
Exposure cube: /scratch/kocevski/74378/ltcube_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74378/Model_4FGL_J1043.2+2408_daily_bin575.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) = 5399.29984594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10885E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7736       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3030       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3931       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1396       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.390       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9922       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1148       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6344       1.0000         .10000E-03   10000.    
    16 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .51782       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5399.202     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1933 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8227        .59573E-07** at limit **
   2  Prefactor     .10000E-03    1.4738        .37397E-06** at limit **
   3  norm          6.2928        6.6095        .66638E-07   -.50448E-04
   4  Prefactor     7.6439        63.782        .15678E-04    .52292E-05
   5  Prefactor     14.307        35.570       -.35400E-05   -.20706E-04
   6  Prefactor     2.3046        5.4025        .54653E-05   -.94678E-04
   7  Prefactor     2.3930        1.8903       -.15656E-06   -.58077E-04
   8  Prefactor     3.5650        7.6149        .36217E-06   -.75775E-05
   9  Prefactor     6.1249        11.149        .16903E-07    .31457E-04
  10  Prefactor     32.567        21.021        .50697E-06   -.16744E-05
  11  Prefactor     30.395        14.657        .29742E-06    .87276E-05
  12  Prefactor     .10000E-03    8.0795        .23441E-06** at limit **
  13  Prefactor     4.9938        13.383       -.11623E-05   -.38322E-04
  14  Prefactor     1.1158        2.1259        .36708E-06    .64320E-04
  15  Prefactor     5.6336        5.8483        .20993E-06    .19227E-05
  16  norm          .10000E-03    4.3325        .12881E-06** at limit **
  17  Prefactor     .10000E-03    3.7297        .88272E-07** at limit **
  18  Normalizat    .51776        .16569       -.19056E-05   -.10874E-03
  19  Prefactor     1.3145        .18234       -.48914E-06   -.14845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.29284
  Prefactor  = 7.64386
  Prefactor  = 14.3069
  Prefactor  = 2.30459
  Prefactor  = 2.39304
  Prefactor  = 3.56497
  Prefactor  = 6.12486
  Prefactor  = 32.567
  Prefactor  = 30.3947
  Prefactor  = 0.0001
  Prefactor  = 4.9938
  Prefactor  = 1.11584
  Prefactor  = 5.63358
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.517764
  Prefactor  = 1.31453
 **********
 **   18 **HESSE 
 **********

 FCN=   5399.202     FROM HESSE     STATUS=OK           276 CALLS     2209 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8705        .14024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6466        .17183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2928        6.6020        .16000E-03   -1.5206    
   4  Prefactor     7.6439        63.778        .14382E-03   -1.5155    
   5  Prefactor     14.307        35.547        .10534E-03   -1.4951    
   6  Prefactor     2.3046        5.4104        .12368E-02   -1.5404    
   7  Prefactor     2.3930        1.8884        .85214E-04   -1.5399    
   8  Prefactor     3.5650        7.5920        .21406E-03   -1.5330    
   9  Prefactor     6.1249        11.015        .16202E-03   -1.5213    
  10  Prefactor     32.567        21.019        .70213E-04   -1.4566    
  11  Prefactor     30.395        14.596        .72680E-04   -1.4605    
  12  Prefactor     .10000E-03    8.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9938        13.238        .17999E-03   -1.5261    
  14  Prefactor     1.1158        2.0831        .14031E-03   -1.5497    
  15  Prefactor     5.6336        5.8443        .16924E-03   -1.5233    
  16  norm          .10000E-03    4.3594        .14936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7389        .13858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .51776        .18974        .28204E-03   -1.1160    
  19  Prefactor     1.3145        .21290        .21332E-03   -.82876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05345e-11
Minuit parameter uncertainties:
  1  4.50297e-06
  2  4.92546e-06
  3  6.60274
  4  44.223
  5  35.5995
  6  5.4115
  7  1.88845
  8  7.59407
  9  11.0186
  10  21.024
  11  14.5972
  12  1.26498e-05
  13  13.2459
  14  2.08323
  15  5.84487
  16  9.992e-06
  17  4.63477e-06
  18  0.189973
  19  0.213042
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.393e+00  1.888e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.315e+00  2.130e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  5.178e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.49
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.54e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.02e-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) = 5398.93139535
delta logL = 0.270504420086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5398.92875572
delta logL = 0.273144040699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6068       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8745       1.0000          .0000       10.000    
     3 'Normalizat'    .53076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5398.929     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6068        5.4040        .63165E-02   -.32184E-02
   2  Index         1.8745        1.2143        .18815        .15655E-04
   3  Normalizat    .53076        .15877        .63018E-01    .30688E-04
   4  Prefactor     1.3084        .18206        .48373E-01   -.24499E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60683
  Index      = 1.87449
  Normalizat = 0.530763
  Prefactor  = 1.30842
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.929     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6068        2.3344        .99692E-04   -1.5385    
   2  Index         1.8745        .61581        .93187E-02   -.67526    
   3  Normalizat    .53076        .18089        .27885E-03   -1.1101    
   4  Prefactor     1.3084        .21039        .21384E-03   -.83057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06553e-09
Minuit parameter uncertainties:
  1  2.33447
  2  0.61839
  3  0.181091
  4  0.210526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74378': 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) = 5398.92875572
delta logL = 0.273144048401

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.607e+00  2.334e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.874e+00  6.184e-01  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.308e+00  2.105e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  5.308e-01  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.05
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.87 +/- 0.62
Photon Flux (Free Index): 2.10e-08 +/- 2.67e-08
Energy Flux (Free Index): 2.02e-05 +/- 2.41e-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/74378/cmap_HighResolution_388368001_388627201_4FGL_J1043.2+2408_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.54e-08', energy_flux2='2.02e-05', photon_flux_error='2.79e-08', dlogl='2.73e-01', energy_flux='1.29e-05', photon_flux2='2.10e-08', job_status='DONE', time_completed='2021-09-02 09:08:10.328096', photon_index_error2='0.62', photon_index2='1.87', ts='6.49', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='2.41e-05', EG='0.52', time_epoch_completed='1630598890.33', return_code='0', job_id='74378', GAL2='1.31', EG2='0.53', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='2.67e-08', ts2='7.05', photon_index='2.32' WHERE bin_id='575' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:08:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 74378: <4FGL_J1043.2+2408_daily_bin575> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin575> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 08:56:17 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:56:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 08:56:39 2021
Terminated at Thu Sep  2 09:08:11 2021
Results reported at Thu Sep  2 09:08:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin575 160.805 24.146 388368001 388627201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1043.2+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   529.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            714 sec.

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

