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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin559
RA = 160.805, Dec = 24.146
tmin = 384220801, tmax = 384480001
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='74341', job_status='RUN', time_executed='2021-09-02 08:58:40.492181', time_epoch_executed='1630598320.49' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74341/ft1_4FGL_J1043.2+2408_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74341/ft2_4FGL_J1043.2+2408_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74341/ft1_4FGL_J1043.2+2408_daily_bin559.fits outfile=/scratch/kocevski/74341/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin559.fits ra=160.805 dec=24.146 rad=12.0 tmin=384220801.0 tmax=384480001.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.81
user 13.35
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74341/ft2_4FGL_J1043.2+2408_daily_bin559.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/74341/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/74341/ft1_filtered_4FGL_J1043.2+2408_daily_bin559.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.54
user 0.36
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74341/ft1_filtered_4FGL_J1043.2+2408_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/74341/ft2_4FGL_J1043.2+2408_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/74341/ltcube_384220801_384480001_4FGL_J1043.2+2408_daily_bin559.fits outfile=/scratch/kocevski/74341/expmap_384220801_384480001_4FGL_J1043.2+2408_daily_bin559.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/74341/ltcube_384220801_384480001_4FGL_J1043.2+2408_daily_bin559.fits
.....................!
real 192.22
user 187.18
sys 4.56

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/74341/ft1_filtered_4FGL_J1043.2+2408_daily_bin559.fits scfile=/scratch/kocevski/74341/ft2_4FGL_J1043.2+2408_daily_bin559.fits outfile=/scratch/kocevski/74341/cmap_384220801_384480001_4FGL_J1043.2+2408_daily_bin559.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74341/ft1_filtered_4FGL_J1043.2+2408_daily_bin559.fits scfile=/scratch/kocevski/74341/ft2_4FGL_J1043.2+2408_daily_bin559.fits outfile=/scratch/kocevski/74341/cmap_HighResolution_384220801_384480001_4FGL_J1043.2+2408_daily_bin559.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.60
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.543       1.0000         .10000E-03   10000.    
     3 'norm      '    .10714E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .87978       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3548       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9537       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8369       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9990       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .88396       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.577       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3313       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2090       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91413       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5672.987     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     2248 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2115        5.7339        .19636E-03   -.24606E-03
   2  Prefactor     11.540        3.4129        .71953E-04   -.32548E-03
   3  norm          .10003E-03    32.369        .34862E-02** at limit **
   4  Prefactor     .81005        321.39        .79638E-02    .42410E-04
   5  Prefactor     48.732        55.008        .57445E-04    .11083E-04
   6  Prefactor     9.3473        10.009        .13103E-03   -.11505E-03
   7  Prefactor     1.9546        2.1795        .55535E-03   -.37309E-03
   8  Prefactor     1.0593        13.719        .47715E-03    .38070E-04
   9  Prefactor     .10000E-03    4.1012        .14867E-02** at limit **
  10  Prefactor     2.8333        93.903        .24143E-03    .33904E-05
  11  Prefactor     5.0005        7.0497        .17986E-03    .36218E-04
  12  Prefactor     .71863E-03    17.730        .70578E-01** at limit **
  13  Prefactor     .10000E-03    6.7196        .18142E-02** at limit **
  14  Prefactor     .88857        2.6910        .20364E-03    .16396E-03
  15  Prefactor     13.572        10.040        .10870E-03   -.27297E-04
  16  norm          3.3317        13.867        .22177E-03   -.13687E-04
  17  Prefactor     .10000E-03    4.6394        .15839E-02** at limit **
  18  Normalizat    1.2089        .23197        .23860E-03   -.39937E-03
  19  Prefactor     .91439        .23278        .28407E-03   -.31391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.21148
  Prefactor  = 11.5396
  norm       = 0.00010003
  Prefactor  = 0.810054
  Prefactor  = 48.7317
  Prefactor  = 9.34726
  Prefactor  = 1.95456
  Prefactor  = 1.05926
  Prefactor  = 0.0001
  Prefactor  = 2.83335
  Prefactor  = 5.00049
  Prefactor  = 0.000718629
  Prefactor  = 0.0001
  Prefactor  = 0.888572
  Prefactor  = 13.5725
  norm       = 3.33175
  Prefactor  = 0.0001
  Normalizat = 1.20889
  Prefactor  = 0.914392
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.987     FROM HESSE     STATUS=OK           262 CALLS     2510 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2115        5.7314        .78544E-05   -1.5298    
   2  Prefactor     11.540        3.4121        .28781E-05   -1.5028    
   3  norm          .10003E-03    32.944        .69724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81005        326.79        .31855E-03   -1.5528    
   5  Prefactor     48.732        54.988        .22978E-05   -1.4311    
   6  Prefactor     9.3473        10.006        .52412E-05   -1.5096    
   7  Prefactor     1.9546        2.1781        .22214E-04   -1.5428    
   8  Prefactor     1.0593        13.701        .95430E-04   -1.5502    
   9  Prefactor     .10000E-03    4.1015        .29734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8333        93.758        .96571E-05   -1.5371    
  11  Prefactor     5.0005        7.0494        .71944E-05   -1.5261    
  12  Prefactor     .71863E-03    14.880        .78912E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .88857        2.6890        .81457E-05   -1.5519    
  15  Prefactor     13.572        10.039        .43481E-05   -1.4971    
  16  norm          3.3317        13.855        .88707E-05   -1.5343    
  17  Prefactor     .10000E-03    4.6395        .31678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2089        .23214        .47721E-04   -.86329    
  19  Prefactor     .91439        .23203        .56814E-04   -.95640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85156e-09
Minuit parameter uncertainties:
  1  5.73216
  2  3.41212
  3  0.00200583
  4  32.7193
  5  55.0457
  6  10.0076
  7  2.17824
  8  7.6209
  9  2.89892e-05
  10  32.6527
  11  7.05058
  12  0.191936
  13  2.38282e-05
  14  2.68936
  15  10.0402
  16  13.5936
  17  3.73055e-06
  18  0.232334
  19  0.232283
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.955e+00  2.178e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.144e-01  2.323e-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.209e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.89e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/74341/likelihoodResults_384220801_384480001_4FGL_J1043.2+2408_daily_bin559.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) = 5672.87526435
delta logL = 0.112228953674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5672.87177036
delta logL = 0.115722937232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2220       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9572       1.0000          .0000       10.000    
     3 'Normalizat'    1.2193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90793       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=   5672.872     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      231 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2220        106.07        .68965E-02   -.59400E-03
   2  Index         1.9573        5.2093        .26041       -.79912E-07
   3  Normalizat    1.2193        .99324E-01    .53766E-01    .57634E-05
   4  Prefactor     .90793        .86169E-01    .64476E-01    .13073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22198
  Index      = 1.95732
  Normalizat = 1.21926
  Prefactor  = 0.907933
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.872     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2220        2.4585        .12032E-03   -1.5410    
   2  Index         1.9573        .73384        .10015E-01   -.65422    
   3  Normalizat    1.2193        .21570        .23773E-03   -.86010    
   4  Prefactor     .90793        .22730        .28517E-03   -.95864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4084e-10
Minuit parameter uncertainties:
  1  2.45858
  2  0.738093
  3  0.215853
  4  0.227539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74341': 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) = 5672.87177034
delta logL = 0.115722957837

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.222e+00  2.459e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.957e+00  7.381e-01  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.079e-01  2.275e-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.219e+00  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.96 +/- 0.74
Photon Flux (Free Index): 1.98e-08 +/- 2.90e-08
Energy Flux (Free Index): 1.52e-05 +/- 2.20e-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/74341/cmap_HighResolution_384220801_384480001_4FGL_J1043.2+2408_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', comment='SUCCESS', photon_flux='2.89e-08', energy_flux2='1.52e-05', photon_flux_error='3.22e-08', dlogl='1.16e-01', energy_flux='1.06e-05', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-09-02 09:09:26.830871', photon_index_error2='0.74', photon_index2='1.96', ts='1.58', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.20e-05', EG='1.21', time_epoch_completed='1630598966.83', return_code='0', job_id='74341', GAL2='0.91', EG2='1.22', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.90e-08', ts2='1.81', photon_index='2.32' WHERE bin_id='559' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:09:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 74341: <4FGL_J1043.2+2408_daily_bin559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin559 160.805 24.146 384220801 384480001 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 :                                   639.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            793 sec.

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

