/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 179 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin54
RA = 160.805, Dec = 24.146
tmin = 253324801, tmax = 253584001
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='70636', job_status='RUN', time_executed='2021-09-02 08:45:48.101054', time_epoch_executed='1630597548.1' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70636/ft1_4FGL_J1043.2+2408_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70636/ft2_4FGL_J1043.2+2408_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70636/ft1_4FGL_J1043.2+2408_daily_bin54.fits outfile=/scratch/kocevski/70636/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin54.fits ra=160.805 dec=24.146 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.45
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70636/ft1_filtered_4FGL_J1043.2+2408_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/70636/ft2_4FGL_J1043.2+2408_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/70636/ltcube_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.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/70636/ft2_4FGL_J1043.2+2408_daily_bin54.fits
.....................!
real 17.03
user 16.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70636/ft1_filtered_4FGL_J1043.2+2408_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/70636/ft2_4FGL_J1043.2+2408_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/70636/ltcube_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.fits outfile=/scratch/kocevski/70636/expmap_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.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/70636/ltcube_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.fits
.....................!
real 191.11
user 186.16
sys 4.33

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/70636/ft1_filtered_4FGL_J1043.2+2408_daily_bin54.fits scfile=/scratch/kocevski/70636/ft2_4FGL_J1043.2+2408_daily_bin54.fits outfile=/scratch/kocevski/70636/cmap_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.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 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70636/ft1_filtered_4FGL_J1043.2+2408_daily_bin54.fits scfile=/scratch/kocevski/70636/ft2_4FGL_J1043.2+2408_daily_bin54.fits outfile=/scratch/kocevski/70636/cmap_HighResolution_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70636/ft1_filtered_4FGL_J1043.2+2408_daily_bin54.fits', '/scratch/kocevski/70636/ft2_4FGL_J1043.2+2408_daily_bin54.fits', expMap='/scratch/kocevski/70636/expmap_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.fits', expCube='/scratch/kocevski/70636/ltcube_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70636/Model_4FGL_J1043.2+2408_daily_bin54.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/70636/ft1_filtered_4FGL_J1043.2+2408_daily_bin54.fits
Spacecraft file(s): /scratch/kocevski/70636/ft2_4FGL_J1043.2+2408_daily_bin54.fits
Exposure map: /scratch/kocevski/70636/expmap_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.fits
Exposure cube: /scratch/kocevski/70636/ltcube_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70636/Model_4FGL_J1043.2+2408_daily_bin54.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) = 5821.41641432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1638       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0466       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.293       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.589       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25854       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2153       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97957       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=   5821.371     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1627 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1647        6.0219        .11052E-05   -.22136E-03
   2  Prefactor     .10000E-03    1.3785       -.69676E-07** at limit **
   3  norm          .10000E-03    5.7959        .89933E-06** at limit **
   4  Prefactor     .10000E-03    9.5926        .36942E-06** at limit **
   5  Prefactor     .10000E-03    45.663       -.15670E-06** at limit **
   6  Prefactor     1.0452        7.7522        .32320E-05   -.37173E-03
   7  Prefactor     1.5056        1.6161       -.13376E-06   -.26939E-03
   8  Prefactor     .10000E-03    1.8603        .51101E-07** at limit **
   9  Prefactor     4.2556        7.4831        .11897E-06   -.18504E-03
  10  Prefactor     .10000E-03    6.6605       -.16243E-06** at limit **
  11  Prefactor     11.294        11.101        .19991E-06   -.47261E-04
  12  Prefactor     .10000E-03    3.6397        .21858E-06** at limit **
  13  Prefactor     15.584        17.873       -.78314E-06   -.53740E-03
  14  Prefactor     .25678        2.5661        .24743E-05   -.73559E-03
  15  Prefactor     .10000E-03    3.8571       -.22255E-06** at limit **
  16  norm          .10000E-03    6.6804       -.66966E-06** at limit **
  17  Prefactor     4.2085        9.8527        .22863E-05    .68068E-03
  18  Normalizat    1.0327        .16678       -.95393E-06   -.50724E-03
  19  Prefactor     .97956        .17669       -.44946E-06   -.43150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16467
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.04522
  Prefactor  = 1.50563
  Prefactor  = 0.0001
  Prefactor  = 4.25562
  Prefactor  = 0.0001
  Prefactor  = 11.2937
  Prefactor  = 0.0001
  Prefactor  = 15.5839
  Prefactor  = 0.256775
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.20848
  Normalizat = 1.03272
  Prefactor  = 0.979558
 **********
 **   18 **HESSE 
 **********

 FCN=   5821.371     FROM HESSE     STATUS=OK           266 CALLS     1893 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1647        6.0807        .28000E-03   -1.5414    
   2  Prefactor     .10000E-03    2.4084        .17216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.1131        .36229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0452        9.0888        .42178E-03   -1.5503    
   7  Prefactor     1.5056        1.6086        .95623E-04   -1.5463    
   8  Prefactor     .10000E-03    1.8679        .10164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2556        7.4005        .19532E-03   -1.5295    
  10  Prefactor     .10000E-03    6.6679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.294        11.086        .11922E-03   -1.5036    
  12  Prefactor     .10000E-03    3.6564        .14216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.584        18.031        .10144E-03   -1.4918    
  14  Prefactor     .25678        3.0284        .18205E-02   -1.5607    
  15  Prefactor     .10000E-03    3.9140        .14665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.8260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2085        10.286        .19628E-03   -1.5298    
  18  Normalizat    1.0327        .19346        .22252E-03   -.91942    
  19  Prefactor     .97956        .20616        .24983E-03   -.93414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25042e-09
Minuit parameter uncertainties:
  1  6.08247
  2  1.31809e-05
  3  0.000217237
  4  0.000119114
  5  9.4851e-05
  6  6.16531
  7  1.60862
  8  8.43909e-06
  9  7.40207
  10  4.27404e-05
  11  11.0879
  12  2.76728e-05
  13  18.0374
  14  1.76342
  15  6.63176e-05
  16  0.000178758
  17  10.2905
  18  0.193592
  19  0.20633
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.506e+00  1.609e+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:  9.796e-01  2.063e-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:  1.033e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 8.13e-06 +/- 8.69e-06

TS (Fixed Index): 2.28
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70636/likelihoodResults_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.txt

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) = 5820.94661411
delta logL = 0.424610194277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5820.92981815
delta logL = 0.441406159501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8413       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7054       1.0000          .0000       10.000    
     3 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97227       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=   5820.930     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      192 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8432        7.0382        .76848E-02   -.10977E-03
   2  Index         1.7056        1.6960        .26343       -.23260E-04
   3  Normalizat    1.0440        .16734        .40978E-01    .82301E-05
   4  Prefactor     .97225        .18267        .45920E-01    .10176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84321
  Index      = 1.70564
  Normalizat = 1.044
  Prefactor  = 0.972251
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.930     FROM HESSE     STATUS=OK            33 CALLS      225 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8432        1.9995        .10453E-03   -1.5436    
   2  Index         1.7056        .61214        .93973E-02   -.71932    
   3  Normalizat    1.0440        .18681        .22146E-03   -.91571    
   4  Prefactor     .97225        .20576        .25060E-03   -.93660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78618e-13
Minuit parameter uncertainties:
  1  1.99954
  2  0.614879
  3  0.186929
  4  0.205925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70636': 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) = 5820.92981769
delta logL = 0.441406617023

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.843e+00  2.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.706e+00  6.149e-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:  9.723e-01  2.059e-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:  1.044e+00  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.71 +/- 0.61
Photon Flux (Free Index): 1.25e-08 +/- 1.69e-08
Energy Flux (Free Index): 2.00e-05 +/- 3.02e-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/70636/cmap_HighResolution_253324801_253584001_4FGL_J1043.2+2408_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-03', comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='2.00e-05', photon_flux_error='2.38e-08', dlogl='4.41e-01', energy_flux='8.13e-06', photon_flux2='1.25e-08', job_status='DONE', time_completed='2021-09-02 08:55:00.380829', photon_index_error2='0.61', photon_index2='1.71', ts='2.28', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='3.02e-05', EG='1.03', time_epoch_completed='1630598100.38', return_code='0', job_id='70636', GAL2='0.97', EG2='1.04', return_code2='0', energy_flux_error='8.69e-06', photon_flux_error2='1.69e-08', ts2='3.17', photon_index='2.32' WHERE bin_id='54' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 70636: <4FGL_J1043.2+2408_daily_bin54> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin54> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:41:20 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:42:40 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:42:40 2021
Terminated at Thu Sep  2 08:55:01 2021
Results reported at Thu Sep  2 08:55:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin54 160.805 24.146 253324801 253584001 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 :                                   548.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            821 sec.

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

