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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin351
RA = 160.805, Dec = 24.146
tmin = 330307201, tmax = 330566401
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='72109', job_status='RUN', time_executed='2021-09-02 08:50:57.049687', time_epoch_executed='1630597857.05' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72109

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72109/ft1_4FGL_J1043.2+2408_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72109/ft2_4FGL_J1043.2+2408_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72109/ft1_4FGL_J1043.2+2408_daily_bin351.fits outfile=/scratch/kocevski/72109/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin351.fits ra=160.805 dec=24.146 rad=12.0 tmin=330307201.0 tmax=330566401.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.88
user 3.63
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72109/ft1_filtered_4FGL_J1043.2+2408_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/72109/ft2_4FGL_J1043.2+2408_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/72109/ltcube_330307201_330566401_4FGL_J1043.2+2408_daily_bin351.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/72109/ft2_4FGL_J1043.2+2408_daily_bin351.fits
.....................!
real 18.88
user 18.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72109/ft1_filtered_4FGL_J1043.2+2408_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/72109/ft2_4FGL_J1043.2+2408_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/72109/ltcube_330307201_330566401_4FGL_J1043.2+2408_daily_bin351.fits outfile=/scratch/kocevski/72109/expmap_330307201_330566401_4FGL_J1043.2+2408_daily_bin351.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/72109/ltcube_330307201_330566401_4FGL_J1043.2+2408_daily_bin351.fits
.....................!
real 194.13
user 188.27
sys 5.17

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/72109/ft1_filtered_4FGL_J1043.2+2408_daily_bin351.fits scfile=/scratch/kocevski/72109/ft2_4FGL_J1043.2+2408_daily_bin351.fits outfile=/scratch/kocevski/72109/cmap_330307201_330566401_4FGL_J1043.2+2408_daily_bin351.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72109/ft1_filtered_4FGL_J1043.2+2408_daily_bin351.fits scfile=/scratch/kocevski/72109/ft2_4FGL_J1043.2+2408_daily_bin351.fits outfile=/scratch/kocevski/72109/cmap_HighResolution_330307201_330566401_4FGL_J1043.2+2408_daily_bin351.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11523E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35625E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4094       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29196E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38478E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6189       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4022       1.0000         .10000E-03   10000.    
    16 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30570E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4504       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .47781       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=   5744.821     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     1936 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6832        .14735E-06** at limit **
   2  Prefactor     .10000E-03    .81467        .20562E-07** at limit **
   3  norm          21.930        10.278       -.25441E-06   -.76598E-06
   4  Prefactor     15.438        50.369        .82865E-06    .34791E-05
   5  Prefactor     .10000E-03    34.921        .28517E-05** at limit **
   6  Prefactor     .31482        8.9201       -.13015E-06   -.32018E-04
   7  Prefactor     6.4122        3.4204       -.48959E-07    .89273E-04
   8  Prefactor     4.8064        8.5113        .46725E-06    .33649E-05
   9  Prefactor     6.9886        10.667        .51987E-06    .73700E-04
  10  Prefactor     .10000E-03    20.890        .27976E-08** at limit **
  11  Prefactor     22.468        13.602        .45582E-06    .65965E-04
  12  Prefactor     .10000E-03    6.9281       -.34932E-07** at limit **
  13  Prefactor     .10000E-03    11.214       -.82162E-06** at limit **
  14  Prefactor     3.6149        3.7389        .15760E-05   -.42309E-05
  15  Prefactor     1.3974        11.748        .61953E-07    .13534E-04
  16  norm          .10000E-03    4.7619        .26970E-07** at limit **
  17  Prefactor     .10000E-03    11.890        .55769E-06** at limit **
  18  Normalizat    1.4508        .19395       -.11240E-05    .14540E-03
  19  Prefactor     .47785        .18278        .71039E-06    .46714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.9298
  Prefactor  = 15.4379
  Prefactor  = 0.0001
  Prefactor  = 0.314821
  Prefactor  = 6.41217
  Prefactor  = 4.80638
  Prefactor  = 6.98857
  Prefactor  = 0.0001
  Prefactor  = 22.4678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61492
  Prefactor  = 1.39744
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45075
  Prefactor  = 0.477852
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.821     FROM HESSE     STATUS=OK           274 CALLS     2210 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0001        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3685        .13331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.930        10.292        .85477E-04   -1.4771    
   4  Prefactor     15.438        50.309        .10088E-03   -1.4922    
   5  Prefactor     .10000E-03    34.812        .21316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .31482        56.341        .39665E-02   -1.5596    
   7  Prefactor     6.4122        3.4051        .92120E-04   -1.5201    
   8  Prefactor     4.8064        8.5231        .18318E-03   -1.5269    
   9  Prefactor     6.9886        10.622        .15167E-03   -1.5179    
  10  Prefactor     .10000E-03    20.942        .21401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.468        13.587        .84583E-04   -1.4760    
  12  Prefactor     .10000E-03    6.9506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.334        .21281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6149        3.7530        .69384E-03   -1.5328    
  15  Prefactor     1.3974        11.735        .36633E-03   -1.5472    
  16  norm          .10000E-03    4.7796        .16152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.120        .21382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4508        .22133        .21096E-03   -.79172    
  19  Prefactor     .47785        .20536        .34753E-03   -1.1300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39689e-08
Minuit parameter uncertainties:
  1  1.2513e-05
  2  1.53108e-06
  3  10.2928
  4  50.4472
  5  3.55207e-05
  6  8.42989
  7  3.40525
  8  8.52524
  9  10.6251
  10  1.13015e-05
  11  13.5885
  12  1.07882e-05
  13  4.96704e-05
  14  3.75326
  15  8.1011
  16  5.76062e-07
  17  0.000129472
  18  0.221476
  19  0.205681
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  6.412e+00  3.405e+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:  4.779e-01  2.057e-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.451e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.17
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 9.47e-08 +/- 5.03e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 1.84e-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) = 5744.65415958
delta logL = 0.166521258109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5744.64638665
delta logL = 0.174294184963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2457       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5947       1.0000          .0000       10.000    
     3 'Normalizat'    1.4232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49658       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=   5744.646     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2457        3.6660        .77357E-04    .24146E-03
   2  Index         2.5948        .50033        .46692E-02    .57396E-04
   3  Normalizat    1.4233        .21222        .21249E-03    .82392E-05
   4  Prefactor     .49654        .20694        .34130E-03    .39605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.24573
  Index      = 2.59476
  Normalizat = 1.42326
  Prefactor  = 0.496537
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.646     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2457        3.4760        .30943E-05   -1.5250    
   2  Index         2.5948        .47391        .18677E-03   -.50185    
   3  Normalizat    1.4233        .21198        .84997E-05   -.79958    
   4  Prefactor     .49654        .20674        .13652E-04   -1.1214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30987e-11
Minuit parameter uncertainties:
  1  3.47612
  2  0.47484
  3  0.212107
  4  0.207058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72109': 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) = 5744.6463866
delta logL = 0.174294237706

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  5.246e+00  3.476e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.595e+00  4.748e-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:  4.965e-01  2.071e-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.423e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.56
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.59 +/- 0.47
Photon Flux (Free Index): 1.19e-07 +/- 6.79e-08
Energy Flux (Free Index): 3.14e-05 +/- 1.54e-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/72109/cmap_HighResolution_330307201_330566401_4FGL_J1043.2+2408_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.47e-08', energy_flux2='3.14e-05', photon_flux_error='5.03e-08', dlogl='1.74e-01', energy_flux='3.46e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-02 08:59:58.191523', photon_index_error2='0.47', photon_index2='2.59', ts='8.17', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.45', time_epoch_completed='1630598398.19', return_code='0', job_id='72109', GAL2='0.50', EG2='1.42', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='6.79e-08', ts2='8.56', photon_index='2.32' WHERE bin_id='351' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:59:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 72109: <4FGL_J1043.2+2408_daily_bin351> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin351> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:47 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:47:38 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:47:38 2021
Terminated at Thu Sep  2 08:59:58 2021
Results reported at Thu Sep  2 08:59:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin351 160.805 24.146 330307201 330566401 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 :                                   537.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            791 sec.

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

