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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin425
RA = 160.805, Dec = 24.146
tmin = 349488001, tmax = 349747201
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='73011', job_status='RUN', time_executed='2021-09-02 08:54:40.923142', time_epoch_executed='1630598080.92' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73011/ft1_4FGL_J1043.2+2408_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73011/ft2_4FGL_J1043.2+2408_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73011/ft1_4FGL_J1043.2+2408_daily_bin425.fits outfile=/scratch/kocevski/73011/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin425.fits ra=160.805 dec=24.146 rad=12.0 tmin=349488001.0 tmax=349747201.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.42
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73011/ft1_filtered_4FGL_J1043.2+2408_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/73011/ft2_4FGL_J1043.2+2408_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/73011/ltcube_349488001_349747201_4FGL_J1043.2+2408_daily_bin425.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/73011/ft2_4FGL_J1043.2+2408_daily_bin425.fits
.....................!
real 15.27
user 14.86
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73011/ft1_filtered_4FGL_J1043.2+2408_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/73011/ft2_4FGL_J1043.2+2408_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/73011/ltcube_349488001_349747201_4FGL_J1043.2+2408_daily_bin425.fits outfile=/scratch/kocevski/73011/expmap_349488001_349747201_4FGL_J1043.2+2408_daily_bin425.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/73011/ltcube_349488001_349747201_4FGL_J1043.2+2408_daily_bin425.fits
.....................!
real 192.89
user 187.93
sys 4.39

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/73011/ft1_filtered_4FGL_J1043.2+2408_daily_bin425.fits scfile=/scratch/kocevski/73011/ft2_4FGL_J1043.2+2408_daily_bin425.fits outfile=/scratch/kocevski/73011/cmap_349488001_349747201_4FGL_J1043.2+2408_daily_bin425.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.55
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11487E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4182       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.055       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8273       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15524E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1867       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8943       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6038       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .85474       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2358       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=   5770.312     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1890 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.757        .44825E-07** at limit **
   2  Prefactor     .10000E-03    1.3014        .35079E-08** at limit **
   3  norm          4.4173        7.8483        .33916E-06    .10948E-03
   4  Prefactor     .10000E-03    20.825       -.18350E-05** at limit **
   5  Prefactor     .10000E-03    31.712        .11427E-05** at limit **
   6  Prefactor     11.059        7.8283       -.17299E-06   -.45181E-03
   7  Prefactor     .10000E-03    .80527        .28563E-07** at limit **
   8  Prefactor     1.8288        2.4475        .16930E-05   -.16598E-02
   9  Prefactor     .10000E-03    15.028       -.82636E-05** at limit **
  10  Prefactor     6.9944        22.931       -.84123E-07    .21458E-06
  11  Prefactor     3.2043        11.990       -.48941E-05   -.56954E-03
  12  Prefactor     13.799        13.525       -.61453E-09   -.83926E-05
  13  Prefactor     14.693        16.312       -.15136E-06   -.41626E-03
  14  Prefactor     3.8943        4.5039       -.32642E-07   -.84442E-04
  15  Prefactor     7.6036        5.5247       -.13188E-07   -.90183E-04
  16  norm          .10000E-03    3.5941       -.33960E-07** at limit **
  17  Prefactor     .10000E-03    8.8202       -.76067E-08** at limit **
  18  Normalizat    .85472        .18083       -.15978E-06   -.42260E-05
  19  Prefactor     1.2359        .18869        .30073E-07   -.48313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.41734
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.0589
  Prefactor  = 0.0001
  Prefactor  = 1.82877
  Prefactor  = 0.0001
  Prefactor  = 6.99435
  Prefactor  = 3.2043
  Prefactor  = 13.7989
  Prefactor  = 14.6935
  Prefactor  = 3.89432
  Prefactor  = 7.6036
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.854723
  Prefactor  = 1.23587
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.312     FROM HESSE     STATUS=OK           272 CALLS     2162 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3297        .84580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4173        7.8441        .19159E-03   -1.5288    
   4  Prefactor     .10000E-03    20.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.059        7.8610        .60248E-03   -1.5043    
   7  Prefactor     .10000E-03    .81127        .66509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8288        4.7461        .12914E-02   -1.5437    
   9  Prefactor     .10000E-03    15.224        .33573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9944        22.952        .15170E-03   -1.5179    
  11  Prefactor     3.2043        11.707        .22700E-03   -1.5350    
  12  Prefactor     13.799        13.468        .10784E-03   -1.4965    
  13  Prefactor     14.693        16.038        .10449E-03   -1.4941    
  14  Prefactor     3.8943        4.4840        .15236E-03   -1.5313    
  15  Prefactor     7.6036        5.5264        .14543E-03   -1.5156    
  16  norm          .10000E-03    3.5983        .14063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.8839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .85472        .21123        .26330E-03   -.98070    
  19  Prefactor     1.2359        .22082        .24305E-03   -.85235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82465e-09
Minuit parameter uncertainties:
  1  0.000195216
  2  9.64537e-07
  3  7.84588
  4  0.000231687
  5  0.000176034
  6  7.86174
  7  6.90602e-06
  8  4.7471
  9  8.94154e-06
  10  22.9813
  11  11.7155
  12  13.4708
  13  16.0428
  14  4.48444
  15  5.52673
  16  4.13096e-06
  17  2.86952e-05
  18  0.211435
  19  0.220988
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.906e-06  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.236e+00  2.210e-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.547e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/73011/likelihoodResults_349488001_349747201_4FGL_J1043.2+2408_daily_bin425.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5770.31814541
delta logL = -0.00572403103524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5770.31242153
delta logL = -1.46866113937e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3189       1.0000          .0000       10.000    
     3 'Normalizat'    .85475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2359       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=   5770.312     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      240 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0256        .66559E-03** at limit **
   2  Index         2.3148        6.1394        .50000        .40844E-04
   3  Normalizat    .85472        .19972        .26330E-03    .16839E-05
   4  Prefactor     1.2359        .21836        .24305E-03   -.33210E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.31479
  Normalizat = 0.854723
  Prefactor  = 1.23587
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.312     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .81961        .13312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3148        6.1574        .50000       -.56693    
   3  Normalizat    .85472        .19991        .10532E-04   -.98070    
   4  Prefactor     1.2359        .21856        .97221E-05   -.85235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19272e-09
Minuit parameter uncertainties:
  1  5.70444e-05
  2  4.23729
  3  0.200083
  4  0.218725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73011': 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) = 5770.3124213
delta logL = 7.83420546213e-08

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  5.704e-05  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.315e+00  4.237e+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.236e+00  2.187e-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.547e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 160.805 24.146

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/73011/cmap_HighResolution_349488001_349747201_4FGL_J1043.2+2408_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.78e-08', time_completed='2021-09-02 09:04:11.887997', job_id='73011', GAL2='1.24', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630598651.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='7.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='425' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:04:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 73011: <4FGL_J1043.2+2408_daily_bin425> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin425 160.805 24.146 349488001 349747201 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 :                                   567.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            786 sec.

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

