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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin437
RA = 160.805, Dec = 24.146
tmin = 352598401, tmax = 352857601
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='73026', job_status='RUN', time_executed='2021-09-02 08:54:16.426595', time_epoch_executed='1630598056.43' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73026/ft1_4FGL_J1043.2+2408_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73026/ft2_4FGL_J1043.2+2408_daily_bin437.fits


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

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

Done.
real 4.18
user 3.94
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73026/ft2_4FGL_J1043.2+2408_daily_bin437.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/73026/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin437.fits evtable="EVENTS" outfile="/scratch/kocevski/73026/ft1_filtered_4FGL_J1043.2+2408_daily_bin437.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.60
user 0.35
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73026/ft1_filtered_4FGL_J1043.2+2408_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/73026/ft2_4FGL_J1043.2+2408_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/73026/ltcube_352598401_352857601_4FGL_J1043.2+2408_daily_bin437.fits outfile=/scratch/kocevski/73026/expmap_352598401_352857601_4FGL_J1043.2+2408_daily_bin437.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/73026/ltcube_352598401_352857601_4FGL_J1043.2+2408_daily_bin437.fits
.....................!
real 194.37
user 189.10
sys 4.70

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/73026/ft1_filtered_4FGL_J1043.2+2408_daily_bin437.fits scfile=/scratch/kocevski/73026/ft2_4FGL_J1043.2+2408_daily_bin437.fits outfile=/scratch/kocevski/73026/cmap_352598401_352857601_4FGL_J1043.2+2408_daily_bin437.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73026/ft1_filtered_4FGL_J1043.2+2408_daily_bin437.fits scfile=/scratch/kocevski/73026/ft2_4FGL_J1043.2+2408_daily_bin437.fits outfile=/scratch/kocevski/73026/cmap_HighResolution_352598401_352857601_4FGL_J1043.2+2408_daily_bin437.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6307       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2104       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .81585       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.534       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41853E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.014       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0411       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6927       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1495       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1150       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=   5628.906     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1972 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2224       -.22932E-07** at limit **
   2  Prefactor     1.6302        1.8590        .14778E-07   -.25547E-04
   3  norm          2.1798        7.6947        .25627E-05   -.10037E-04
   4  Prefactor     .10000E-03    18.798        .59619E-06** at limit **
   5  Prefactor     .10000E-03    38.952       -.40450E-06** at limit **
   6  Prefactor     .10000E-03    2.6472        .36600E-08** at limit **
   7  Prefactor     5.2107        2.8454        .54762E-07    .10129E-03
   8  Prefactor     .83655        5.6050       -.81919E-06    .33652E-03
   9  Prefactor     .10000E-03    9.9570       -.22554E-06** at limit **
  10  Prefactor     17.537        30.045       -.11566E-05   -.10420E-06
  11  Prefactor     .10001E-03    4.7332       -.72606E-06** at limit **
  12  Prefactor     .10000E-03    14.883       -.65615E-06** at limit **
  13  Prefactor     .10000E-03    18.442        .21041E-05** at limit **
  14  Prefactor     .30530E-02    1.7519        .25939E-07    .34541E-05
  15  Prefactor     21.008        12.694        .20249E-05    .30412E-04
  16  norm          1.0462        10.689       -.50733E-07   -.40430E-04
  17  Prefactor     1.6935        2.6351       -.46975E-07   -.22797E-03
  18  Normalizat    1.1498        .19367       -.64013E-07    .13653E-03
  19  Prefactor     1.1151        .19873       -.17342E-06    .11366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.63025
  norm       = 2.17981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.21068
  Prefactor  = 0.836549
  Prefactor  = 0.0001
  Prefactor  = 17.5369
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.003053
  Prefactor  = 21.0076
  norm       = 1.04616
  Prefactor  = 1.69351
  Normalizat = 1.14978
  Prefactor  = 1.11508
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.906     FROM HESSE     STATUS=OK           282 CALLS     2254 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2446        .13151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6302        1.8403        .10598E-03   -1.5453    
   3  norm          2.1798        7.7170        .27862E-03   -1.5413    
   4  Prefactor     .10000E-03    18.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6548        .11918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2107        2.8433        .89302E-04   -1.5251    
   8  Prefactor     .83655        28.341        .31888E-02   -1.5525    
   9  Prefactor     .10000E-03    10.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.537        30.080        .95648E-04   -1.4870    
  11  Prefactor     .10001E-03    19.111        .31006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .30530E-02    5.5878        .31272E-01   -1.5697    
  15  Prefactor     21.008        12.943        .87375E-04   -1.4791    
  16  norm          1.0462        35.086        .45976E-02   -1.5503    
  17  Prefactor     1.6935        16.690        .16175E-02   -1.5448    
  18  Normalizat    1.1498        .23098        .24774E-03   -.88169    
  19  Prefactor     1.1151        .23670        .26864E-03   -.88986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18083e-08
Minuit parameter uncertainties:
  1  3.04257e-06
  2  1.84034
  3  7.72048
  4  2.66026e-07
  5  3.20174e-06
  6  3.91983e-07
  7  2.84339
  8  9.74277
  9  3.51886e-06
  10  30.1064
  11  0.00084249
  12  6.55965e-06
  13  2.34039e-05
  14  0.256935
  15  12.9443
  16  12.1242
  17  10.6365
  18  0.231186
  19  0.236928
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  5.211e+00  2.843e+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.115e+00  2.369e-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.150e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.28
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.70e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 1.54e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5628.47308838
delta logL = 0.433238048659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5628.47297683
delta logL = 0.433349598994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6010       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9476       1.0000          .0000       10.000    
     3 'Normalizat'    1.1747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0959       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=   5628.473     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      239 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5999        101.58        .39048E-02    .12465E-03
   2  Index         1.9477        5.8469        .15433        .18081E-04
   3  Normalizat    1.1747        .29597        .55508E-01    .75590E-05
   4  Prefactor     1.0960        .29635        .61165E-01    .74689E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5999
  Index      = 1.94767
  Normalizat = 1.17469
  Prefactor  = 1.09597
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.473     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5999        3.6130        .10058E-03   -1.5194    
   2  Index         1.9477        .37795        .61049E-02   -.65665    
   3  Normalizat    1.1747        .22039        .24545E-03   -.87389    
   4  Prefactor     1.0960        .23571        .27051E-03   -.89596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16062e-13
Minuit parameter uncertainties:
  1  3.61316
  2  0.378527
  3  0.220562
  4  0.235937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73026': 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) = 5628.47297678
delta logL = 0.433349656255

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  6.600e+00  3.613e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.948e+00  3.785e-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.096e+00  2.359e-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.175e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.16
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.95 +/- 0.38
Photon Flux (Free Index): 5.80e-08 +/- 3.82e-08
Energy Flux (Free Index): 4.58e-05 +/- 3.74e-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/73026/cmap_HighResolution_352598401_352857601_4FGL_J1043.2+2408_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.70e-08', energy_flux2='4.58e-05', photon_flux_error='4.20e-08', dlogl='4.33e-01', energy_flux='2.81e-05', photon_flux2='5.80e-08', job_status='DONE', time_completed='2021-09-02 09:03:19.774743', photon_index_error2='0.38', photon_index2='1.95', ts='6.28', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='3.74e-05', EG='1.15', time_epoch_completed='1630598599.77', return_code='0', job_id='73026', GAL2='1.10', EG2='1.17', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='3.82e-08', ts2='7.16', photon_index='2.32' WHERE bin_id='437' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:03:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 73026: <4FGL_J1043.2+2408_daily_bin437> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin437> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:51:07 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:51:16 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:51:16 2021
Terminated at Thu Sep  2 09:03:20 2021
Results reported at Thu Sep  2 09:03:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin437 160.805 24.146 352598401 352857601 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 :                                   538.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            733 sec.

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

