/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 193 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 = 7436
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin235
RA = 160.805, Dec = 24.146
tmin = 300240001, tmax = 300499201
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='71947', job_status='RUN', time_executed='2021-09-02 08:50:22.522368', time_epoch_executed='1630597822.52' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71947

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71947/ft1_4FGL_J1043.2+2408_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71947/ft2_4FGL_J1043.2+2408_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71947/ft1_4FGL_J1043.2+2408_daily_bin235.fits outfile=/scratch/kocevski/71947/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin235.fits ra=160.805 dec=24.146 rad=12.0 tmin=300240001.0 tmax=300499201.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 13.71
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71947/ft1_filtered_4FGL_J1043.2+2408_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/71947/ft2_4FGL_J1043.2+2408_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/71947/ltcube_300240001_300499201_4FGL_J1043.2+2408_daily_bin235.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/71947/ft2_4FGL_J1043.2+2408_daily_bin235.fits
.....................!
real 14.65
user 14.13
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71947/ft1_filtered_4FGL_J1043.2+2408_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/71947/ft2_4FGL_J1043.2+2408_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/71947/ltcube_300240001_300499201_4FGL_J1043.2+2408_daily_bin235.fits outfile=/scratch/kocevski/71947/expmap_300240001_300499201_4FGL_J1043.2+2408_daily_bin235.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/71947/ltcube_300240001_300499201_4FGL_J1043.2+2408_daily_bin235.fits
.....................!
real 191.65
user 186.15
sys 4.91

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/71947/ft1_filtered_4FGL_J1043.2+2408_daily_bin235.fits scfile=/scratch/kocevski/71947/ft2_4FGL_J1043.2+2408_daily_bin235.fits outfile=/scratch/kocevski/71947/cmap_300240001_300499201_4FGL_J1043.2+2408_daily_bin235.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71947/ft1_filtered_4FGL_J1043.2+2408_daily_bin235.fits scfile=/scratch/kocevski/71947/ft2_4FGL_J1043.2+2408_daily_bin235.fits outfile=/scratch/kocevski/71947/cmap_HighResolution_300240001_300499201_4FGL_J1043.2+2408_daily_bin235.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.56
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6567       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0094       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13636E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.080       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0624       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.986       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0693       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=   5378.023     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1647 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6586        5.5892       -.88213E-06   -.17213E-02
   2  Prefactor     .10000E-03    1.5230        .17344E-06** at limit **
   3  norm          .98073        5.7126       -.22618E-07   -.15821E-03
   4  Prefactor     .10000E-03    14.689       -.85631E-06** at limit **
   5  Prefactor     .10000E-03    58.511       -.17908E-05** at limit **
   6  Prefactor     .10000E-03    3.4851        .49172E-07** at limit **
   7  Prefactor     2.6193        2.2664        .18548E-07   -.26241E-03
   8  Prefactor     .10000E-03    10.194       -.76903E-06** at limit **
   9  Prefactor     4.1545        9.5408        .23509E-05   -.26335E-03
  10  Prefactor     .10000E-03    7.5327       -.21050E-06** at limit **
  11  Prefactor     17.086        12.588       -.24255E-05    .16997E-03
  12  Prefactor     .10000E-03    3.5558       -.42848E-07** at limit **
  13  Prefactor     .10000E-03    10.385        .95156E-06** at limit **
  14  Prefactor     2.0619        2.2510       -.11371E-06   -.30886E-03
  15  Prefactor     13.979        9.0165        .39037E-06   -.10137E-03
  16  norm          9.6141        11.553        .36675E-05   -.32435E-03
  17  Prefactor     .10000E-03    4.7984       -.72623E-07** at limit **
  18  Normalizat    1.0388        .18123       -.54278E-06   -.22144E-04
  19  Prefactor     1.0692        .19332        .12602E-06   -.45992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.65859
  Prefactor  = 0.0001
  norm       = 0.980733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61931
  Prefactor  = 0.0001
  Prefactor  = 4.15446
  Prefactor  = 0.0001
  Prefactor  = 17.0861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06191
  Prefactor  = 13.979
  norm       = 9.61412
  Prefactor  = 0.0001
  Normalizat = 1.03882
  Prefactor  = 1.0692
 **********
 **   18 **HESSE 
 **********

 FCN=   5378.023     FROM HESSE     STATUS=OK           272 CALLS     1919 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6586        6.2419        .77765E-03   -1.5192    
   2  Prefactor     .10000E-03    2.5700        .17480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .98073        21.603        .32383E-02   -1.5510    
   4  Prefactor     .10000E-03    14.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5362        .13363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6193        2.2603        .97743E-04   -1.5384    
   8  Prefactor     .10000E-03    10.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1545        9.1990        .19750E-03   -1.5300    
  10  Prefactor     .10000E-03    7.5360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.086        12.129        .96911E-04   -1.4881    
  12  Prefactor     .10000E-03    3.5607        .13504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0619        2.2442        .11094E-03   -1.5421    
  15  Prefactor     13.979        8.9950        .10710E-03   -1.4960    
  16  norm          9.6141        11.043        .12917E-03   -1.5088    
  17  Prefactor     .10000E-03    4.8134        .15687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0388        .21030        .23405E-03   -.91741    
  19  Prefactor     1.0692        .22641        .25682E-03   -.90457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24294e-09
Minuit parameter uncertainties:
  1  6.24249
  2  1.39708e-05
  3  9.20915
  4  3.31846e-05
  5  0.000160214
  6  1.06649e-06
  7  2.26042
  8  4.21986e-05
  9  9.20215
  10  6.48217e-06
  11  12.1312
  12  1.40558e-06
  13  2.03533e-05
  14  2.24431
  15  8.99584
  16  11.0449
  17  3.36516e-06
  18  0.210468
  19  0.226615
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.619e+00  2.260e+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.069e+00  2.266e-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.039e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.22e-05

TS (Fixed Index): 2.57
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71947/likelihoodResults_300240001_300499201_4FGL_J1043.2+2408_daily_bin235.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) = 5377.85850011
delta logL = 0.164187542989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5377.85415496
delta logL = 0.168532700663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8475       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7803       1.0000          .0000       10.000    
     3 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0858       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=   5377.854     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      242 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8475        28.931        .76694E-02    .33357E-03
   2  Index         2.7803        3.6939        .12348        .11714E-03
   3  Normalizat    1.0144        .64286E-01    .44351E-01    .89185E-05
   4  Prefactor     1.0858        .65043E-01    .57685E-01    .70829E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84754
  Index      = 2.78027
  Normalizat = 1.01437
  Prefactor  = 1.08582
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.854     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8475        2.5811        .70815E-04   -1.5436    
   2  Index         2.7803        .93986        .63617E-02   -.46000    
   3  Normalizat    1.0144        .20959        .23644E-03   -.92551    
   4  Prefactor     1.0858        .22902        .25508E-03   -.89921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67027e-11
Minuit parameter uncertainties:
  1  2.58129
  2  0.94689
  3  0.209759
  4  0.229227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71947': 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) = 5377.85415495
delta logL = 0.168532705815

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.848e+00  2.581e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.780e+00  9.469e-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.086e+00  2.292e-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.014e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.78 +/- 0.95
Photon Flux (Free Index): 5.74e-08 +/- 4.95e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.01e-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/71947/cmap_HighResolution_300240001_300499201_4FGL_J1043.2+2408_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-03', comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='1.30e-05', photon_flux_error='3.34e-08', dlogl='1.69e-01', energy_flux='1.41e-05', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-09-02 08:59:41.089973', photon_index_error2='0.95', photon_index2='2.78', ts='2.57', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.01e-05', EG='1.04', time_epoch_completed='1630598381.09', return_code='0', job_id='71947', GAL2='1.09', EG2='1.01', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.95e-08', ts2='2.92', photon_index='2.32' WHERE bin_id='235' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:59:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 71947: <4FGL_J1043.2+2408_daily_bin235> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin235> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:29 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:46:58 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:46:58 2021
Terminated at Thu Sep  2 08:59:41 2021
Results reported at Thu Sep  2 08:59:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin235 160.805 24.146 300240001 300499201 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 :                                   545.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            792 sec.

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

