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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin484
RA = 160.805, Dec = 24.146
tmin = 364780801, tmax = 365040001
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='73088', job_status='RUN', time_executed='2021-09-02 08:54:56.112905', time_epoch_executed='1630598096.11' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73088

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73088/ft1_4FGL_J1043.2+2408_daily_bin484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73088/ft2_4FGL_J1043.2+2408_daily_bin484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73088/ft1_4FGL_J1043.2+2408_daily_bin484.fits outfile=/scratch/kocevski/73088/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin484.fits ra=160.805 dec=24.146 rad=12.0 tmin=364780801.0 tmax=365040001.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.35
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73088/ft1_filtered_4FGL_J1043.2+2408_daily_bin484.fits" evtable="EVENTS" scfile=/scratch/kocevski/73088/ft2_4FGL_J1043.2+2408_daily_bin484.fits sctable="SC_DATA" outfile=/scratch/kocevski/73088/ltcube_364780801_365040001_4FGL_J1043.2+2408_daily_bin484.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/73088/ft2_4FGL_J1043.2+2408_daily_bin484.fits
.....................!
real 17.03
user 16.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73088/ft1_filtered_4FGL_J1043.2+2408_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/73088/ft2_4FGL_J1043.2+2408_daily_bin484.fits sctable="SC_DATA" expcube=/scratch/kocevski/73088/ltcube_364780801_365040001_4FGL_J1043.2+2408_daily_bin484.fits outfile=/scratch/kocevski/73088/expmap_364780801_365040001_4FGL_J1043.2+2408_daily_bin484.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/73088/ltcube_364780801_365040001_4FGL_J1043.2+2408_daily_bin484.fits
.....................!
real 192.58
user 187.52
sys 4.63

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/73088/ft1_filtered_4FGL_J1043.2+2408_daily_bin484.fits scfile=/scratch/kocevski/73088/ft2_4FGL_J1043.2+2408_daily_bin484.fits outfile=/scratch/kocevski/73088/cmap_364780801_365040001_4FGL_J1043.2+2408_daily_bin484.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.59
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73088/ft1_filtered_4FGL_J1043.2+2408_daily_bin484.fits scfile=/scratch/kocevski/73088/ft2_4FGL_J1043.2+2408_daily_bin484.fits outfile=/scratch/kocevski/73088/cmap_HighResolution_364780801_365040001_4FGL_J1043.2+2408_daily_bin484.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.370       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26459       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2796       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9667       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0830       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5577       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19688E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .89812       1.0000         .10000E-03   10000.    
    16 'norm      '    12.237       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .50890       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.7027       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5774.654     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1915 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6805        5.8932         .0000        .42424E-02
   2  Prefactor     .10000E-03    .84681         .0000    ** at limit **
   3  norm          .10000E-03    1.7775         .0000    ** at limit **
   4  Prefactor     34.369        39.154         .0000        .96568E-03
   5  Prefactor     .10001E-03    11.197         .0000    ** at limit **
   6  Prefactor     9.0024        8.5707         .0000       -.71732E-03
   7  Prefactor     .27850        1.6818         .0000        .98574E-03
   8  Prefactor     3.2797        6.3509         .0000        .69874E-03
   9  Prefactor     6.9645        7.4952         .0000       -.46506E-02
  10  Prefactor     16.485        23.605         .0000       -.29711E-04
  11  Prefactor     9.7056        13.305         .0000       -.38000E-02
  12  Prefactor     5.1055        13.721         .0000       -.74655E-03
  13  Prefactor     1.5410        45.646         .0000        .49009E-03
  14  Prefactor     .10000E-03    1.7429         .0000    ** at limit **
  15  Prefactor     .89546        12.109         .0000        .29222E-01
  16  norm          12.238        9.7371         .0000        .83214E-03
  17  Prefactor     .10001E-03    14.994         .0000    ** at limit **
  18  Normalizat    .50891        .18723         .0000       -.17371E-03
  19  Prefactor     1.7028        .20463         .0000       -.19026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6805
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.369
  Prefactor  = 0.000100007
  Prefactor  = 9.00243
  Prefactor  = 0.2785
  Prefactor  = 3.27973
  Prefactor  = 6.9645
  Prefactor  = 16.4853
  Prefactor  = 9.70565
  Prefactor  = 5.10549
  Prefactor  = 1.54097
  Prefactor  = 0.0001
  Prefactor  = 0.895456
  norm       = 12.2385
  Prefactor  = 0.000100006
  Normalizat = 0.508915
  Prefactor  = 1.70277
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.654     FROM HESSE     STATUS=OK           272 CALLS     2187 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6805        5.8696        .24892E-03   -1.5381    
   2  Prefactor     .10000E-03    .85843        .68238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7791        .98938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.369        39.139        .68354E-04   -1.4535    
   5  Prefactor     .10001E-03    11.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0024        8.3910        .13357E-03   -1.5108    
   7  Prefactor     .27850        5.4682        .16791E-02   -1.5602    
   8  Prefactor     3.2797        6.3304        .22359E-03   -1.5346    
   9  Prefactor     6.9645        7.3916        .15199E-03   -1.5180    
  10  Prefactor     16.485        23.589        .98646E-04   -1.4896    
  11  Prefactor     9.7056        12.930        .12862E-03   -1.5085    
  12  Prefactor     5.1055        13.318        .17834E-03   -1.5256    
  13  Prefactor     1.5410        42.140        .34104E-03   -1.5460    
  14  Prefactor     .10000E-03    4.2484        .18868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .89546        12.353        .24937E-02   -1.5519    
  16  norm          12.238        9.7344        .57256E-03   -1.5008    
  17  Prefactor     .10001E-03    15.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .50891        .20791        .32215E-03   -1.1200    
  19  Prefactor     1.7028        .23345        .22179E-03   -.72008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02943e-08
Minuit parameter uncertainties:
  1  5.87087
  2  8.87314e-06
  3  8.384e-06
  4  39.1681
  5  0.000560217
  6  8.3921
  7  2.46794
  8  6.3317
  9  7.39259
  10  23.6026
  11  12.9335
  12  13.3261
  13  16.1286
  14  2.18466e-05
  15  6.65306
  16  9.73569
  17  0.000619972
  18  0.208226
  19  0.233603
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.785e-01  2.468e+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.703e+00  2.336e-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.089e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/73088/likelihoodResults_364780801_365040001_4FGL_J1043.2+2408_daily_bin484.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) = 5772.78598174
delta logL = 1.86788354972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5772.51113399
delta logL = 2.14273129481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28677E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.4567       1.0000          .0000       10.000    
     3 'Normalizat'    .36799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8128       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=   5772.511     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      319 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28466E-03    .35530E-02    .16820E-03** at limit **
   2  Index         7.4603        2.2850        .97900E-01    .19058E-03
   3  Normalizat    .36788        .50034E-01    .84829E-01    .63248E-04
   4  Prefactor     1.8129        .59559E-01    .48875E-01    .51384E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000284657
  Index      = 7.46029
  Normalizat = 0.367883
  Prefactor  = 1.81293
 **********
 **   18 **HESSE 
 **********

 FCN=   5772.511     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      352 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28466E-03    .68657E-02    .86832E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.4603        3.2589        .40258E-02    .51445    
   3  Normalizat    .36788        .17654        .37569E-03   -1.1900    
   4  Prefactor     1.8129        .20597        .21603E-03   -.69114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63727e-10
Minuit parameter uncertainties:
  1  0.00225193
  2  3.68285
  3  0.176804
  4  0.206072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73088': 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): 102
logL (Free Index) = 5772.51113333
delta logL = 2.14273196144

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.847e-04  2.252e-03  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  7.460e+00  3.683e+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.813e+00  2.061e-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:  3.679e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 160.805 24.146
Photon Index (Free Index): 7.46 +/- 3.68
Photon Flux (Free Index): 1.02e-07 +/- 5.72e-08
Energy Flux (Free Index): 1.20e-05 +/- 7.09e-06

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/73088/cmap_HighResolution_364780801_365040001_4FGL_J1043.2+2408_daily_bin484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='2.14e+00', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-02 09:04:47.505216', photon_index_error2='3.68', photon_index2='7.46', ts='0.02', fit_tolerance='1e-08', GAL='1.70', photon_index_error='0.00', photon_flux_upper_limit='8.94e-08', energy_flux_error2='7.09e-06', EG='0.51', time_epoch_completed='1630598687.51', return_code='0', job_id='73088', GAL2='1.81', EG2='0.37', return_code2='102', photon_flux_error2='5.72e-08', ts2='4.81', photon_index='2.32' WHERE bin_id='484' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:04:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 73088: <4FGL_J1043.2+2408_daily_bin484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin484 160.805 24.146 364780801 365040001 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            813 sec.

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

