/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7376
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin776
RA = 160.805, Dec = 24.146
tmin = 440467201, tmax = 440726401
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='75588', job_status='RUN', time_executed='2021-09-02 09:03:28.321331', time_epoch_executed='1630598608.32' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75588/ft1_4FGL_J1043.2+2408_daily_bin776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75588/ft2_4FGL_J1043.2+2408_daily_bin776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75588/ft1_4FGL_J1043.2+2408_daily_bin776.fits outfile=/scratch/kocevski/75588/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin776.fits ra=160.805 dec=24.146 rad=12.0 tmin=440467201.0 tmax=440726401.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.44
user 3.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75588/ft1_filtered_4FGL_J1043.2+2408_daily_bin776.fits evtable="EVENTS" scfile=/scratch/kocevski/75588/ft2_4FGL_J1043.2+2408_daily_bin776.fits sctable="SC_DATA" expcube=/scratch/kocevski/75588/ltcube_440467201_440726401_4FGL_J1043.2+2408_daily_bin776.fits outfile=/scratch/kocevski/75588/expmap_440467201_440726401_4FGL_J1043.2+2408_daily_bin776.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/75588/ltcube_440467201_440726401_4FGL_J1043.2+2408_daily_bin776.fits
.....................!
real 193.15
user 186.23
sys 4.64

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/75588/ft1_filtered_4FGL_J1043.2+2408_daily_bin776.fits scfile=/scratch/kocevski/75588/ft2_4FGL_J1043.2+2408_daily_bin776.fits outfile=/scratch/kocevski/75588/cmap_440467201_440726401_4FGL_J1043.2+2408_daily_bin776.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75588/ft1_filtered_4FGL_J1043.2+2408_daily_bin776.fits scfile=/scratch/kocevski/75588/ft2_4FGL_J1043.2+2408_daily_bin776.fits outfile=/scratch/kocevski/75588/cmap_HighResolution_440467201_440726401_4FGL_J1043.2+2408_daily_bin776.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3295       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21610E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12901E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2207       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5501       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16924E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.535       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8646       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0752       1.0000         .10000E-03   10000.    
    16 'norm      '    15.931       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5853       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .80429       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1732       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6477.516     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     1333 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3294        1.0514       -.20201E-06    .67125E-03
   2  Prefactor     .10000E-03    1.9341       -.10281E-05** at limit **
   3  norm          .10000E-03    3.0626        .36359E-06** at limit **
   4  Prefactor     .10000E-03    10.304       -.23624E-05** at limit **
   5  Prefactor     .10000E-03    86.035       -.33997E-05** at limit **
   6  Prefactor     2.9341        2.5372        .30846E-06   -.19092E-02
   7  Prefactor     5.2208        2.5558        .13299E-06    .30510E-03
   8  Prefactor     .10000E-03    3.2849        .13783E-06** at limit **
   9  Prefactor     4.5735        2.0974        .29263E-06   -.21091E-02
  10  Prefactor     .10000E-03    5.6775        .39643E-06** at limit **
  11  Prefactor     .10001E-03    4.3549        .87078E-07** at limit **
  12  Prefactor     .10000E-03    3.1206       -.19306E-05** at limit **
  13  Prefactor     11.543        1.4915       -.31727E-06    .26679E-03
  14  Prefactor     2.8646        2.8146        .95748E-07   -.68391E-04
  15  Prefactor     3.0751        4.3156       -.36788E-05   -.13080E-02
  16  norm          15.950        11.084       -.28555E-05    .10243E-02
  17  Prefactor     4.5574        1.2184       -.33815E-06   -.54623E-04
  18  Normalizat    .80412        .18273       -.78958E-05    .13048E-04
  19  Prefactor     1.1733        .19498        .50959E-05    .10427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32942
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 2.93409
  Prefactor  = 5.22078
  Prefactor  = 0.0001
  Prefactor  = 4.5735
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 11.543
  Prefactor  = 2.86461
  Prefactor  = 3.07509
  norm       = 15.9503
  Prefactor  = 4.5574
  Normalizat = 0.804125
  Prefactor  = 1.17326
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.516     FROM HESSE     STATUS=OK           312 CALLS     1645 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3294        5.8007        .34726E-02   -1.5131    
   2  Prefactor     .10000E-03    1.1775        .33887E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.0440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    85.745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9341        6.7064        .59236E-02   -1.5365    
   7  Prefactor     5.2208        2.6281        .43982E-02   -1.5251    
   8  Prefactor     .10000E-03    3.2606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5735        7.2342        .47181E-02   -1.5280    
  10  Prefactor     .10000E-03    9.8664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    9.8089        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.543        15.140        .29489E-02   -1.5028    
  14  Prefactor     2.8646        2.8345        .60045E-02   -1.5369    
  15  Prefactor     3.0751        4.5959        .57826E-02   -1.5357    
  16  norm          15.950        11.477        .25087E-02   -1.4909    
  17  Prefactor     4.5574        7.0906        .46995E-02   -1.5281    
  18  Normalizat    .80412        .16120        .43666E-01   -.99916    
  19  Prefactor     1.1733        .16773        .53448E-01   -.87158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19389e-08
Minuit parameter uncertainties:
  1  5.80107
  2  8.66795e-07
  3  1.94957e-05
  4  0.000429253
  5  0.000722009
  6  6.70811
  7  2.62819
  8  1.58021e-05
  9  7.23563
  10  1.97389e-05
  11  0.000496002
  12  3.80667e-05
  13  15.1453
  14  2.83464
  15  4.5964
  16  11.4782
  17  7.09189
  18  0.161299
  19  0.167806
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  5.221e+00  2.628e+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.173e+00  1.678e-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:  8.041e-01  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.16
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.71e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 1.42e-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) = 6477.51055252
delta logL = 0.00577718532804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6477.50780873
delta logL = 0.00852097191091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4321       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2720       1.0000          .0000       10.000    
     3 'Normalizat'    .80733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1709       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=   6477.508     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4318        54.079        .43102E-02    .69331E-03
   2  Index         2.2724        3.2657        .13729        .19557E-03
   3  Normalizat    .80726        .93412E-01    .43706E-01   -.80592E-04
   4  Prefactor     1.1710        .87594E-01    .53491E-01   -.14046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.43177
  Index      = 2.27239
  Normalizat = 0.807257
  Prefactor  = 1.171
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.508     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4318        3.1474        .88359E-04   -1.5242    
   2  Index         2.2724        .39099        .53389E-02   -.57701    
   3  Normalizat    .80726        .17999        .25663E-03   -.99800    
   4  Prefactor     1.1710        .19525        .23650E-03   -.87228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47368e-10
Minuit parameter uncertainties:
  1  3.14749
  2  0.39156
  3  0.180127
  4  0.195372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75588': 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) = 6477.50780789
delta logL = 0.00852181074697

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.171e+00  1.954e-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:  8.073e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.18
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.27 +/- 0.39
Photon Flux (Free Index): 7.44e-08 +/- 4.20e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.81e-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/75588/cmap_HighResolution_440467201_440726401_4FGL_J1043.2+2408_daily_bin776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.71e-08', energy_flux2='2.95e-05', photon_flux_error='3.88e-08', dlogl='8.52e-03', energy_flux='2.82e-05', photon_flux2='7.44e-08', job_status='DONE', time_completed='2021-09-02 09:12:25.017830', photon_index_error2='0.39', photon_index2='2.27', ts='7.16', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.81e-05', EG='0.80', time_epoch_completed='1630599145.02', return_code='0', job_id='75588', GAL2='1.17', EG2='0.81', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.20e-08', ts2='7.18', photon_index='2.32' WHERE bin_id='776' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 75588: <4FGL_J1043.2+2408_daily_bin776> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin776> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:13 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:01:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:01:23 2021
Terminated at Thu Sep  2 09:12:25 2021
Results reported at Thu Sep  2 09:12:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin776 160.805 24.146 440467201 440726401 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 :                                   509.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            672 sec.

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

