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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin157
RA = 160.805, Dec = 24.146
tmin = 280022401, tmax = 280281601
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='70764', job_status='RUN', time_executed='2021-09-02 08:46:41.523941', time_epoch_executed='1630597601.52' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70764

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70764/ft1_4FGL_J1043.2+2408_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70764/ft2_4FGL_J1043.2+2408_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70764/ft1_4FGL_J1043.2+2408_daily_bin157.fits outfile=/scratch/kocevski/70764/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin157.fits ra=160.805 dec=24.146 rad=12.0 tmin=280022401.0 tmax=280281601.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 3.64
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70764/ft2_4FGL_J1043.2+2408_daily_bin157.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/70764/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin157.fits evtable="EVENTS" outfile="/scratch/kocevski/70764/ft1_filtered_4FGL_J1043.2+2408_daily_bin157.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70764/ft1_filtered_4FGL_J1043.2+2408_daily_bin157.fits" evtable="EVENTS" scfile=/scratch/kocevski/70764/ft2_4FGL_J1043.2+2408_daily_bin157.fits sctable="SC_DATA" outfile=/scratch/kocevski/70764/ltcube_280022401_280281601_4FGL_J1043.2+2408_daily_bin157.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/70764/ft2_4FGL_J1043.2+2408_daily_bin157.fits
.....................!
real 12.95
user 12.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70764/ft1_filtered_4FGL_J1043.2+2408_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/70764/ft2_4FGL_J1043.2+2408_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/70764/ltcube_280022401_280281601_4FGL_J1043.2+2408_daily_bin157.fits outfile=/scratch/kocevski/70764/expmap_280022401_280281601_4FGL_J1043.2+2408_daily_bin157.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/70764/ltcube_280022401_280281601_4FGL_J1043.2+2408_daily_bin157.fits
.....................!
real 190.01
user 185.41
sys 4.17

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/70764/ft1_filtered_4FGL_J1043.2+2408_daily_bin157.fits scfile=/scratch/kocevski/70764/ft2_4FGL_J1043.2+2408_daily_bin157.fits outfile=/scratch/kocevski/70764/cmap_280022401_280281601_4FGL_J1043.2+2408_daily_bin157.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70764/ft1_filtered_4FGL_J1043.2+2408_daily_bin157.fits scfile=/scratch/kocevski/70764/ft2_4FGL_J1043.2+2408_daily_bin157.fits outfile=/scratch/kocevski/70764/cmap_HighResolution_280022401_280281601_4FGL_J1043.2+2408_daily_bin157.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0709       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1710       1.0000         .10000E-03   10000.    
     3 'norm      '    19.867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.767       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9478       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2179       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12579E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7315       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2074       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2706       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0141       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=   6138.184     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1657 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0715        7.8585        .19772E-06   -.57713E-05
   2  Prefactor     1.1708        2.2386        .24313E-06    .25081E-04
   3  norm          19.865        13.027        .31476E-06   -.21876E-05
   4  Prefactor     44.719        42.274        .69512E-05    .22740E-04
   5  Prefactor     .10000E-03    31.568       -.27698E-06** at limit **
   6  Prefactor     .10000E-03    8.9475       -.44138E-06** at limit **
   7  Prefactor     1.9476        2.2939        .14143E-06    .18898E-03
   8  Prefactor     2.2157        9.4894        .89522E-05    .16241E-03
   9  Prefactor     6.7446        9.3373        .44160E-06    .33627E-03
  10  Prefactor     .10000E-03    14.695        .13854E-05** at limit **
  11  Prefactor     .10000E-03    16.371       -.12704E-05** at limit **
  12  Prefactor     .10000E-03    6.5961        .13634E-06** at limit **
  13  Prefactor     .10022E-03    8.6437       -.30008E-05** at limit **
  14  Prefactor     4.7303        3.6637        .76419E-06    .15712E-03
  15  Prefactor     6.2079        5.5540        .91371E-07    .45325E-04
  16  norm          .10000E-03    3.1139        .20638E-07** at limit **
  17  Prefactor     .10000E-03    4.1506        .73055E-08** at limit **
  18  Normalizat    1.2709        .19567       -.17678E-05    .21027E-03
  19  Prefactor     1.0139        .19879       -.83447E-06    .13995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.07149
  Prefactor  = 1.17079
  norm       = 19.8648
  Prefactor  = 44.7187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.94758
  Prefactor  = 2.21567
  Prefactor  = 6.7446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100224
  Prefactor  = 4.73031
  Prefactor  = 6.20791
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27089
  Prefactor  = 1.0139
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.184     FROM HESSE     STATUS=OK           270 CALLS     1927 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0715        7.8489        .13307E-03   -1.5105    
   2  Prefactor     1.1708        2.1893        .15590E-03   -1.5492    
   3  norm          19.865        13.026        .89858E-04   -1.4816    
   4  Prefactor     44.719        42.267        .29961E-03   -1.4370    
   5  Prefactor     .10000E-03    31.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9476        2.2768        .12218E-03   -1.5429    
   8  Prefactor     2.2157        9.6162        .13807E-02   -1.5410    
   9  Prefactor     6.7446        9.1174        .15468E-03   -1.5189    
  10  Prefactor     .10000E-03    14.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10022E-03    48.943        .40855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7303        3.6675        .62538E-03   -1.5273    
  15  Prefactor     6.2079        5.5554        .16113E-03   -1.5210    
  16  norm          .10000E-03    3.1165        .13502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1590        .15588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2709        .23485        .24810E-03   -.84440    
  19  Prefactor     1.0139        .23876        .28715E-03   -.92268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59697e-09
Minuit parameter uncertainties:
  1  7.84976
  2  2.18945
  3  13.028
  4  42.2957
  5  1.57245e-05
  6  2.03364e-05
  7  2.27693
  8  9.23406
  9  9.11924
  10  1.64184e-05
  11  4.46997e-05
  12  6.20521e-06
  13  0.00663272
  14  3.66768
  15  5.55584
  16  1.92987e-06
  17  2.91726e-06
  18  0.235042
  19  0.239011
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.948e+00  2.277e+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.014e+00  2.390e-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.271e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/70764/likelihoodResults_280022401_280281601_4FGL_J1043.2+2408_daily_bin157.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) = 6138.14404521
delta logL = 0.0403973156926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6138.12822739
delta logL = 0.0562151341965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5261       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7627       1.0000          .0000       10.000    
     3 'Normalizat'    1.2481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0295       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=   6138.128     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5230        34.702        .86414E-02    .41596E-03
   2  Index         2.7645        6.3775        .16655        .80902E-04
   3  Normalizat    1.2481        .59281E-01    .56533E-01   -.24646E-04
   4  Prefactor     1.0296        .54361E-01    .64485E-01   -.29304E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.523
  Index      = 2.76455
  Normalizat = 1.24806
  Prefactor  = 1.02956
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.128     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5230        3.0660        .95650E-04   -1.5461    
   2  Index         2.7645        1.6776        .94643E-02   -.46351    
   3  Normalizat    1.2481        .24507        .25000E-03   -.85130    
   4  Prefactor     1.0296        .24704        .28523E-03   -.91751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96742e-08
Minuit parameter uncertainties:
  1  3.06633
  2  1.71962
  3  0.245294
  4  0.247311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70764': 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) = 6138.12822638
delta logL = 0.0562161465978

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.523e+00  3.066e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.765e+00  1.720e+00  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.030e+00  2.473e-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.248e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.76 +/- 1.72
Photon Flux (Free Index): 4.60e-08 +/- 7.33e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.10e-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/70764/cmap_HighResolution_280022401_280281601_4FGL_J1043.2+2408_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='1.06e-05', photon_flux_error='3.36e-08', dlogl='5.62e-02', energy_flux='1.05e-05', photon_flux2='4.60e-08', job_status='DONE', time_completed='2021-09-02 08:56:02.030708', photon_index_error2='1.72', photon_index2='2.76', ts='1.36', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.10e-05', EG='1.27', time_epoch_completed='1630598162.03', return_code='0', job_id='70764', GAL2='1.03', EG2='1.25', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='7.33e-08', ts2='1.48', photon_index='2.32' WHERE bin_id='157' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:56:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 70764: <4FGL_J1043.2+2408_daily_bin157> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin157> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:41:30 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:43:47 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:43:47 2021
Terminated at Thu Sep  2 08:56:02 2021
Results reported at Thu Sep  2 08:56:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin157 160.805 24.146 280022401 280281601 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 :                                   557.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            872 sec.

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

