/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 173 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin50
RA = 160.805, Dec = 24.146
tmin = 252288001, tmax = 252547201
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='71834', job_status='RUN', time_executed='2021-09-02 08:49:26.120635', time_epoch_executed='1630597766.12' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71834/ft1_4FGL_J1043.2+2408_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71834/ft2_4FGL_J1043.2+2408_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71834/ft1_4FGL_J1043.2+2408_daily_bin50.fits outfile=/scratch/kocevski/71834/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin50.fits ra=160.805 dec=24.146 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.58
user 2.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71834/ft2_4FGL_J1043.2+2408_daily_bin50.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/71834/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/71834/ft1_filtered_4FGL_J1043.2+2408_daily_bin50.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/71834/ft1_filtered_4FGL_J1043.2+2408_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/71834/ft2_4FGL_J1043.2+2408_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/71834/ltcube_252288001_252547201_4FGL_J1043.2+2408_daily_bin50.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/71834/ft2_4FGL_J1043.2+2408_daily_bin50.fits
.....................!
real 17.40
user 16.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71834/ft1_filtered_4FGL_J1043.2+2408_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/71834/ft2_4FGL_J1043.2+2408_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/71834/ltcube_252288001_252547201_4FGL_J1043.2+2408_daily_bin50.fits outfile=/scratch/kocevski/71834/expmap_252288001_252547201_4FGL_J1043.2+2408_daily_bin50.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/71834/ltcube_252288001_252547201_4FGL_J1043.2+2408_daily_bin50.fits
.....................!
real 191.39
user 186.39
sys 4.44

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/71834/ft1_filtered_4FGL_J1043.2+2408_daily_bin50.fits scfile=/scratch/kocevski/71834/ft2_4FGL_J1043.2+2408_daily_bin50.fits outfile=/scratch/kocevski/71834/cmap_252288001_252547201_4FGL_J1043.2+2408_daily_bin50.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.57
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43679       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1519       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11318E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12559E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15416E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12337E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65178       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0638       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32681E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14210E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2615       1.0000         .10000E-03   10000.    
    16 'norm      '    .90422       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.173       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3187       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7815.368     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1704 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1794         .0000    ** at limit **
   2  Prefactor     .43719        1.1575         .0000        .16983E-02
   3  norm          2.1642        6.3134         .0000        .19505E-02
   4  Prefactor     .10000E-03    9.4850         .0000    ** at limit **
   5  Prefactor     .10001E-03    19.493         .0000    ** at limit **
   6  Prefactor     .10000E-03    3.7382         .0000    ** at limit **
   7  Prefactor     .10000E-03    .87140         .0000    ** at limit **
   8  Prefactor     .63959        5.5918         .0000        .46364E-01
   9  Prefactor     4.0833        7.3243         .0000        .15654E-02
  10  Prefactor     .10000E-03    7.3617         .0000    ** at limit **
  11  Prefactor     .10000E-03    3.6249         .0000    ** at limit **
  12  Prefactor     4.6921        8.0565         .0000        .17789E-02
  13  Prefactor     1.8400        8.4213         .0000       -.96473E-03
  14  Prefactor     .10000E-03    1.3838         .0000    ** at limit **
  15  Prefactor     5.2734        5.5667         .0000        .44699E-02
  16  norm          .90801        6.8035         .0000        .68010E-03
  17  Prefactor     14.083        10.754         .0000       -.17878E-02
  18  Normalizat    1.3188        .15006         .0000        .10058E-03
  19  Prefactor     .79210        .15171         .0000        .11364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.437193
  norm       = 2.16419
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.639594
  Prefactor  = 4.08332
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.69209
  Prefactor  = 1.84003
  Prefactor  = 0.000100001
  Prefactor  = 5.27341
  norm       = 0.908008
  Prefactor  = 14.0831
  Normalizat = 1.31875
  Prefactor  = 0.7921
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.368     FROM HESSE     STATUS=OK           284 CALLS     1988 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2263        .15387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .43719        1.0736        .14935E-02   -1.5576    
   3  norm          2.1642        6.2926        .28087E-03   -1.5414    
   4  Prefactor     .10000E-03    9.4908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    19.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0695        .49041E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4999        .15593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .63959        5.6966        .19969E-02   -1.5548    
   9  Prefactor     4.0833        7.2301        .20001E-03   -1.5304    
  10  Prefactor     .10000E-03    7.3782        .21353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6472        .16426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.6921        7.9644        .18587E-03   -1.5275    
  13  Prefactor     1.8400        8.2604        .30620E-03   -1.5437    
  14  Prefactor     .10000E-03    3.7219        .19864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2734        5.5570        .87616E-03   -1.5249    
  16  norm          .90801        18.800        .43636E-02   -1.5517    
  17  Prefactor     14.083        10.749        .10639E-03   -1.4957    
  18  Normalizat    1.3188        .17555        .21276E-03   -.83008    
  19  Prefactor     .79210        .17821        .28169E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71237e-08
Minuit parameter uncertainties:
  1  2.54586e-05
  2  1.07366
  3  6.2945
  4  0.000127951
  5  0.00100954
  6  0.000149076
  7  8.90616e-05
  8  3.81778
  9  7.23167
  10  4.94604e-05
  11  0.000152023
  12  7.9662
  13  7.79888
  14  0.000116801
  15  5.55755
  16  8.26576
  17  10.7507
  18  0.175625
  19  0.178344
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  8.906e-05  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:  7.921e-01  1.783e-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.319e+00  1.756e-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: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71834/likelihoodResults_252288001_252547201_4FGL_J1043.2+2408_daily_bin50.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7815.36959068
delta logL = -0.00136701602696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7815.36822793
delta logL = -4.27211671195e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15338E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3924       1.0000          .0000       10.000    
     3 'Normalizat'    1.3190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79186       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7815.304     FROM MIGRAD    STATUS=FAILED       160 CALLS      337 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13900E-01    .15172        .21063E-03   -.32656E-01
   2  Index         4.7281        3.1321        .95771E-02    .15143E-04
   3  Normalizat    1.2976        .17961        .21424E-03    .12988E-03
   4  Prefactor     .80564        .18301        .27957E-03    .54858E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7815.304     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      405 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13900E-01    .15172        .81968E-04   -1.5731    
   2  Index         4.7281        3.1321        .70292E-02   -.54406E-01
   3  Normalizat    1.2976        .17961        .18544E-03   -.83637    
   4  Prefactor     .80564        .18301        .15242E-03   -.99521    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7815.304     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      442 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13901E-01    .25779        .42127E-04    .29011E-03
   2  Index         4.7281        3.8345        .38308E-03    .29677E-06
   3  Normalizat    1.2976        .17875        .42848E-04   -.85753E-04
   4  Prefactor     .80565        .18267        .11183E-04   -.36599E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.013901
  Index      = 4.72808
  Normalizat = 1.29764
  Prefactor  = 0.805645
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.304     FROM HESSE     STATUS=OK            25 CALLS      467 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13901E-01    .76546        .16851E-05   -1.5731    
   2  Index         4.7281        7.3639        .15323E-04   -.54410E-01
   3  Normalizat    1.2976        .17880        .85696E-05   -.83637    
   4  Prefactor     .80565        .18299        .22365E-05   -.99521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94393e-11
Minuit parameter uncertainties:
  1  0.205567
  2  7.52468
  3  0.178884
  4  0.183124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71834': 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) = 7815.30443762
delta logL = 0.063786042002

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.390e-02  2.056e-01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.728e+00  7.525e+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:  8.056e-01  1.831e-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.298e+00  1.789e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/71834/cmap_HighResolution_252288001_252547201_4FGL_J1043.2+2408_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-02 09:00:24.687671', job_id='71834', GAL2='0.81', fit_tolerance='1e-08', EG2='1.30', EG='1.32', time_epoch_completed='1630598424.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='6.38e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='50' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:00:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 71834: <4FGL_J1043.2+2408_daily_bin50> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin50> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:18 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:46:24 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:46:24 2021
Terminated at Thu Sep  2 09:00:25 2021
Results reported at Thu Sep  2 09:00:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin50 160.805 24.146 252288001 252547201 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 :                                   654.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            847 sec.

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

