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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin550
RA = 160.805, Dec = 24.146
tmin = 381888001, tmax = 382147201
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='74325', job_status='RUN', time_executed='2021-09-02 08:58:17.284160', time_epoch_executed='1630598297.28' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74325/ft1_4FGL_J1043.2+2408_daily_bin550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74325/ft2_4FGL_J1043.2+2408_daily_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74325/ft1_4FGL_J1043.2+2408_daily_bin550.fits outfile=/scratch/kocevski/74325/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin550.fits ra=160.805 dec=24.146 rad=12.0 tmin=381888001.0 tmax=382147201.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.82
user 4.57
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74325/ft1_filtered_4FGL_J1043.2+2408_daily_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/74325/ft2_4FGL_J1043.2+2408_daily_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/74325/ltcube_381888001_382147201_4FGL_J1043.2+2408_daily_bin550.fits outfile=/scratch/kocevski/74325/expmap_381888001_382147201_4FGL_J1043.2+2408_daily_bin550.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/74325/ltcube_381888001_382147201_4FGL_J1043.2+2408_daily_bin550.fits
.....................!
real 191.65
user 186.80
sys 4.41

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/74325/ft1_filtered_4FGL_J1043.2+2408_daily_bin550.fits scfile=/scratch/kocevski/74325/ft2_4FGL_J1043.2+2408_daily_bin550.fits outfile=/scratch/kocevski/74325/cmap_381888001_382147201_4FGL_J1043.2+2408_daily_bin550.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.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9856       1.0000         .10000E-03   10000.    
     3 'norm      '    21.482       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3208       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1046       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.779       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8923       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36314       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.534       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7732       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4909       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .38840       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=   5092.615     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     1906 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5114        11.948        .17322E-02    .15099E-03
   2  Prefactor     4.9867        3.0496        .93042E-04    .71358E-04
   3  norm          21.487        11.299        .86419E-04    .40350E-03
   4  Prefactor     .10000E-03    8.5439        .18142E-02** at limit **
   5  Prefactor     .10000E-03    19.864        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.5078        .13005E-02** at limit **
   7  Prefactor     2.3208        1.9930        .89607E-04    .21340E-03
   8  Prefactor     1.5952        10.303        .16780E-02    .54574E-04
   9  Prefactor     .10000E-03    6.4450        .17549E-02** at limit **
  10  Prefactor     1.0665        269.96        .74452E-02    .28186E-04
  11  Prefactor     17.777        11.166        .94987E-04    .50053E-04
  12  Prefactor     .10000E-03    4.8053        .15208E-02** at limit **
  13  Prefactor     4.8903        12.034        .18185E-03    .66704E-04
  14  Prefactor     .36274        1.3895        .14791E-02    .11689E-02
  15  Prefactor     18.532        9.8393        .93034E-04   -.37515E-04
  16  norm          3.7729        7.9797        .20783E-03    .30633E-04
  17  Prefactor     .10000E-03    6.4821        .17711E-02** at limit **
  18  Normalizat    1.4909        .21968        .19937E-03   -.31527E-03
  19  Prefactor     .38845        .21142        .37200E-03   -.26781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51143
  Prefactor  = 4.98671
  norm       = 21.4867
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.32078
  Prefactor  = 1.59523
  Prefactor  = 0.000100001
  Prefactor  = 1.06651
  Prefactor  = 17.7768
  Prefactor  = 0.0001
  Prefactor  = 4.89029
  Prefactor  = 0.362738
  Prefactor  = 18.5322
  norm       = 3.77286
  Prefactor  = 0.0001
  Normalizat = 1.49091
  Prefactor  = 0.388447
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.615     FROM HESSE     STATUS=OK           256 CALLS     2162 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5114        11.868        .69288E-04   -1.5462    
   2  Prefactor     4.9867        3.0475        .37217E-05   -1.5261    
   3  norm          21.487        11.286        .17284E-04   -1.4781    
   4  Prefactor     .10000E-03    8.5439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5082        .26011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3208        1.9923        .35843E-05   -1.5403    
   8  Prefactor     1.5952        10.232        .67120E-04   -1.5455    
   9  Prefactor     .10000E-03    6.4481        .35099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0665        268.69        .29781E-03   -1.5501    
  11  Prefactor     17.777        11.163        .18997E-04   -1.4864    
  12  Prefactor     .10000E-03    4.8065        .30416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8903        12.029        .72741E-05   -1.5266    
  14  Prefactor     .36274        1.3874        .59164E-04   -1.5588    
  15  Prefactor     18.532        9.8344        .37214E-05   -1.4847    
  16  norm          3.7729        7.9767        .83132E-05   -1.5319    
  17  Prefactor     .10000E-03    6.4829        .35422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4909        .21876        .39874E-04   -.78034    
  19  Prefactor     .38845        .21142        .14880E-04   -1.1740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55229e-09
Minuit parameter uncertainties:
  1  8.47263
  2  3.04756
  3  11.287
  4  8.3811e-05
  5  0.000337902
  6  6.7367e-05
  7  1.99237
  8  8.0818
  9  0.000116266
  10  34.0101
  11  11.1641
  12  4.42662e-05
  13  12.0353
  14  1.38757
  15  9.83527
  16  7.97896
  17  5.59067e-05
  18  0.2189
  19  0.211845
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.321e+00  1.992e+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:  3.884e-01  2.118e-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.491e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.08e-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) = 5092.59710676
delta logL = 0.0182045302863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5092.59487991
delta logL = 0.0204313758477

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4388       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1726       1.0000          .0000       10.000    
     3 'Normalizat'    1.4966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38530       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=   5092.595     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4392        77.318        .65500E-02    .14518E-04
   2  Index         2.1725        5.2419        .18492        .30034E-04
   3  Normalizat    1.4967        .11471        .45035E-01   -.11073E-04
   4  Prefactor     .38515        .84532E-01    .84297E-01    .48597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.43921
  Index      = 2.17248
  Normalizat = 1.49673
  Prefactor  = 0.385154
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.595     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4392        2.1921        .94874E-04   -1.5396    
   2  Index         2.1725        .74475        .97269E-02   -.60104    
   3  Normalizat    1.4967        .21099        .19906E-03   -.77870    
   4  Prefactor     .38515        .21133        .37352E-03   -1.1757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01415e-10
Minuit parameter uncertainties:
  1  2.19218
  2  0.748854
  3  0.211113
  4  0.21176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74325': 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) = 5092.59487958
delta logL = 0.0204317044027

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.439e+00  2.192e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.172e+00  7.489e-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:  3.852e-01  2.118e-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.497e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.17 +/- 0.75
Photon Flux (Free Index): 2.89e-08 +/- 3.61e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.43e-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/74325/cmap_HighResolution_381888001_382147201_4FGL_J1043.2+2408_daily_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.37e-05', photon_flux_error='2.94e-08', dlogl='2.04e-02', energy_flux='1.25e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-02 09:06:46.209085', photon_index_error2='0.75', photon_index2='2.17', ts='4.70', fit_tolerance='1e-08', GAL='0.39', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.49', time_epoch_completed='1630598806.21', return_code='0', job_id='74325', GAL2='0.39', EG2='1.50', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.61e-08', ts2='4.74', photon_index='2.32' WHERE bin_id='550' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 74325: <4FGL_J1043.2+2408_daily_bin550> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin550 160.805 24.146 381888001 382147201 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 :                                   506.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            633 sec.

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

