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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin546
RA = 160.805, Dec = 24.146
tmin = 380851201, tmax = 381110401
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='74319', job_status='RUN', time_executed='2021-09-02 08:58:55.679711', time_epoch_executed='1630598335.68' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74319

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74319/ft1_4FGL_J1043.2+2408_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74319/ft2_4FGL_J1043.2+2408_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74319/ft1_4FGL_J1043.2+2408_daily_bin546.fits outfile=/scratch/kocevski/74319/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin546.fits ra=160.805 dec=24.146 rad=12.0 tmin=380851201.0 tmax=381110401.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.49
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74319/ft2_4FGL_J1043.2+2408_daily_bin546.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/74319/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin546.fits evtable="EVENTS" outfile="/scratch/kocevski/74319/ft1_filtered_4FGL_J1043.2+2408_daily_bin546.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74319/ft1_filtered_4FGL_J1043.2+2408_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/74319/ft2_4FGL_J1043.2+2408_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/74319/ltcube_380851201_381110401_4FGL_J1043.2+2408_daily_bin546.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/74319/ft2_4FGL_J1043.2+2408_daily_bin546.fits
.....................!
real 16.55
user 16.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74319/ft1_filtered_4FGL_J1043.2+2408_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/74319/ft2_4FGL_J1043.2+2408_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/74319/ltcube_380851201_381110401_4FGL_J1043.2+2408_daily_bin546.fits outfile=/scratch/kocevski/74319/expmap_380851201_381110401_4FGL_J1043.2+2408_daily_bin546.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/74319/ltcube_380851201_381110401_4FGL_J1043.2+2408_daily_bin546.fits
.....................!
real 192.06
user 187.18
sys 4.26

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/74319/ft1_filtered_4FGL_J1043.2+2408_daily_bin546.fits scfile=/scratch/kocevski/74319/ft2_4FGL_J1043.2+2408_daily_bin546.fits outfile=/scratch/kocevski/74319/cmap_380851201_381110401_4FGL_J1043.2+2408_daily_bin546.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.56
user 0.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74319/ft1_filtered_4FGL_J1043.2+2408_daily_bin546.fits scfile=/scratch/kocevski/74319/ft2_4FGL_J1043.2+2408_daily_bin546.fits outfile=/scratch/kocevski/74319/cmap_HighResolution_380851201_381110401_4FGL_J1043.2+2408_daily_bin546.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2848       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7682       1.0000         .10000E-03   10000.    
     3 'norm      '    11.673       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.034       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2762       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.691       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0711       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7076       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.8153       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .58496       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0901       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=   5460.320     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1876 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2848        6.5480        .14701E-06   -.22857E-04
   2  Prefactor     7.7683        3.2868        .14508E-06   -.93935E-04
   3  norm          11.673        9.4215        .15421E-06   -.44944E-04
   4  Prefactor     41.034        38.086        .25927E-06   -.84410E-05
   5  Prefactor     4.6820        196.75        .16689E-04   -.11512E-04
   6  Prefactor     8.5766        7.4206       -.27994E-06   -.21479E-03
   7  Prefactor     .10000E-03    1.5234        .55769E-06** at limit **
   8  Prefactor     6.4293        8.0343        .42654E-06   -.15540E-04
   9  Prefactor     4.2761        6.5970       -.18760E-06   -.89165E-04
  10  Prefactor     19.284        17.820       -.62679E-07   -.14574E-04
  11  Prefactor     .10000E-03    4.5540        .16650E-06** at limit **
  12  Prefactor     10.104        16.304        .13179E-06   -.41171E-04
  13  Prefactor     .10000E-03    4.1327        .97208E-07** at limit **
  14  Prefactor     10.691        4.5674        .29742E-07   -.12282E-03
  15  Prefactor     2.0709        4.4026        .24724E-05   -.50235E-04
  16  norm          7.7070        10.634        .36655E-06   -.10967E-04
  17  Prefactor     8.8153        8.3382       -.66772E-07   -.93744E-05
  18  Normalizat    .58500        .17738       -.11217E-05   -.16195E-03
  19  Prefactor     1.0901        .18055       -.40379E-06   -.16006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.28478
  Prefactor  = 7.76829
  norm       = 11.6728
  Prefactor  = 41.0339
  Prefactor  = 4.68202
  Prefactor  = 8.57658
  Prefactor  = 0.0001
  Prefactor  = 6.42934
  Prefactor  = 4.2761
  Prefactor  = 19.2844
  Prefactor  = 0.0001
  Prefactor  = 10.1041
  Prefactor  = 0.0001
  Prefactor  = 10.6911
  Prefactor  = 2.07095
  norm       = 7.70703
  Prefactor  = 8.81528
  Normalizat = 0.584999
  Prefactor  = 1.0901
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.320     FROM HESSE     STATUS=OK           280 CALLS     2156 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2848        6.5412        .16012E-03   -1.5207    
   2  Prefactor     7.7683        3.2853        .83377E-04   -1.5150    
   3  norm          11.673        9.4187        .11725E-03   -1.5025    
   4  Prefactor     41.034        38.133        .62576E-04   -1.4426    
   5  Prefactor     4.6820        195.67        .18533E-03   -1.5275    
   6  Prefactor     8.5766        7.3636        .13688E-03   -1.5122    
   7  Prefactor     .10000E-03    2.5092        .17180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4293        8.0371        .15828E-03   -1.5201    
   9  Prefactor     4.2761        6.5739        .19483E-03   -1.5294    
  10  Prefactor     19.284        17.826        .91207E-04   -1.4829    
  11  Prefactor     .10000E-03    4.5761        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.104        16.278        .12605E-03   -1.5072    
  13  Prefactor     .10000E-03    4.1376        .14671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.691        4.5722        .87974E-04   -1.5054    
  15  Prefactor     2.0709        4.4073        .11000E-02   -1.5420    
  16  norm          7.7070        10.648        .14444E-03   -1.5153    
  17  Prefactor     8.8153        8.3471        .13500E-03   -1.5114    
  18  Normalizat    .58500        .19950        .28353E-03   -1.0862    
  19  Prefactor     1.0901        .20458        .22932E-03   -.89784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74414e-11
Minuit parameter uncertainties:
  1  6.54193
  2  3.28535
  3  9.41989
  4  38.1555
  5  60.7487
  6  7.36436
  7  9.31542e-06
  8  8.03844
  9  6.57505
  10  17.8309
  11  1.22129e-05
  12  16.2856
  13  5.91163e-06
  14  4.5723
  15  4.40802
  16  10.6502
  17  8.34821
  18  0.19974
  19  0.204726
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  9.315e-06  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.090e+00  2.047e-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.850e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74319/likelihoodResults_380851201_381110401_4FGL_J1043.2+2408_daily_bin546.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): 102
logL (Free Index) = 5460.32214967
delta logL = -0.00189931430214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.32024949
delta logL = 8.61678927322e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3968       1.0000          .0000       10.000    
     3 'Normalizat'    .58463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0905       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=   5459.477     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      295 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20342E-01    .70332        .19448E-02    .92363E-02
   2  Index         5.2908        3.8984        .12941       -.99136E-04
   3  Normalizat    .49466        .17050        .69320E-01    .35761E-04
   4  Prefactor     1.1507        .12259        .37957E-01   -.29301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0203421
  Index      = 5.29081
  Normalizat = 0.494663
  Prefactor  = 1.15071
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.477     FROM HESSE     STATUS=OK            33 CALLS      328 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20342E-01    .19087        .87895E-04   -1.5736    
   2  Index         5.2908        2.7732        .45977E-02    .58195E-01
   3  Normalizat    .49466        .19773        .30685E-03   -1.1266    
   4  Prefactor     1.1507        .20774        .22395E-03   -.87862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53897e-10
Minuit parameter uncertainties:
  1  0.124317
  2  2.94029
  3  0.198009
  4  0.207883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74319': 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) = 5459.47727227
delta logL = 0.842978084606

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.034e-02  1.243e-01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  5.291e+00  2.940e+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.151e+00  2.079e-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:  4.947e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 160.805 24.146
Photon Index (Free Index): 5.29 +/- 2.94
Photon Flux (Free Index): 7.89e-08 +/- 9.45e-07
Energy Flux (Free Index): 1.03e-05 +/- 1.21e-04

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/74319/cmap_HighResolution_380851201_381110401_4FGL_J1043.2+2408_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='8.43e-01', photon_flux2='7.89e-08', job_status='DONE', time_completed='2021-09-02 09:08:12.959733', photon_index_error2='2.94', photon_index2='5.29', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.66e-08', energy_flux_error2='1.21e-04', EG='0.58', time_epoch_completed='1630598892.96', return_code='0', job_id='74319', GAL2='1.15', EG2='0.49', return_code2='0', photon_flux_error2='9.45e-07', ts2='1.88', photon_index='2.32' WHERE bin_id='546' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:08:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 74319: <4FGL_J1043.2+2408_daily_bin546> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin546> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 08:56:12 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:56:22 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:22 2021
Terminated at Thu Sep  2 09:08:13 2021
Results reported at Thu Sep  2 09:08:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin546 160.805 24.146 380851201 381110401 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 :                                   552.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            721 sec.

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

