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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin207
RA = 160.805, Dec = 24.146
tmin = 292982401, tmax = 293241601
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='71909', job_status='RUN', time_executed='2021-09-02 08:50:41.243495', time_epoch_executed='1630597841.24' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71909/ft1_4FGL_J1043.2+2408_daily_bin207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71909/ft2_4FGL_J1043.2+2408_daily_bin207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71909/ft1_4FGL_J1043.2+2408_daily_bin207.fits outfile=/scratch/kocevski/71909/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin207.fits ra=160.805 dec=24.146 rad=12.0 tmin=292982401.0 tmax=293241601.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.73
user 3.48
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71909/ft1_filtered_4FGL_J1043.2+2408_daily_bin207.fits" evtable="EVENTS" scfile=/scratch/kocevski/71909/ft2_4FGL_J1043.2+2408_daily_bin207.fits sctable="SC_DATA" outfile=/scratch/kocevski/71909/ltcube_292982401_293241601_4FGL_J1043.2+2408_daily_bin207.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/71909/ft2_4FGL_J1043.2+2408_daily_bin207.fits
.....................!
real 17.64
user 17.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71909/ft1_filtered_4FGL_J1043.2+2408_daily_bin207.fits evtable="EVENTS" scfile=/scratch/kocevski/71909/ft2_4FGL_J1043.2+2408_daily_bin207.fits sctable="SC_DATA" expcube=/scratch/kocevski/71909/ltcube_292982401_293241601_4FGL_J1043.2+2408_daily_bin207.fits outfile=/scratch/kocevski/71909/expmap_292982401_293241601_4FGL_J1043.2+2408_daily_bin207.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/71909/ltcube_292982401_293241601_4FGL_J1043.2+2408_daily_bin207.fits
.....................!
real 196.55
user 191.08
sys 4.98

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/71909/ft1_filtered_4FGL_J1043.2+2408_daily_bin207.fits scfile=/scratch/kocevski/71909/ft2_4FGL_J1043.2+2408_daily_bin207.fits outfile=/scratch/kocevski/71909/cmap_292982401_293241601_4FGL_J1043.2+2408_daily_bin207.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71909/ft1_filtered_4FGL_J1043.2+2408_daily_bin207.fits scfile=/scratch/kocevski/71909/ft2_4FGL_J1043.2+2408_daily_bin207.fits outfile=/scratch/kocevski/71909/cmap_HighResolution_292982401_293241601_4FGL_J1043.2+2408_daily_bin207.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.57
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.593       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5134       1.0000         .10000E-03   10000.    
     3 'norm      '    42.607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.081       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .74147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .68215E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6646       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0548       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8997       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1493       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89078       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=   6392.262     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1869 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.594        8.4446        .16369E-06    .53483E-04
   2  Prefactor     2.5142        3.0400        .16666E-06   -.13283E-03
   3  norm          42.604        11.860       -.26332E-07   -.47065E-04
   4  Prefactor     .10000E-03    31.568        .25072E-05** at limit **
   5  Prefactor     64.521        59.484        .48399E-05    .28334E-03
   6  Prefactor     15.073        8.5173       -.12428E-06   -.11672E-03
   7  Prefactor     .73799        2.1144        .96973E-06    .54844E-04
   8  Prefactor     7.7830        7.9905        .22556E-05   -.62528E-03
   9  Prefactor     .10016E-03    6.0150       -.13102E-05** at limit **
  10  Prefactor     .10000E-03    21.370       -.27143E-06** at limit **
  11  Prefactor     .10000E-03    3.1249       -.55751E-07** at limit **
  12  Prefactor     .10000E-03    5.5900       -.36682E-08** at limit **
  13  Prefactor     5.6137        14.837       -.65850E-06   -.12442E-03
  14  Prefactor     3.0541        2.3676        .64398E-07    .40256E-05
  15  Prefactor     .10000E-03    8.6138       -.25506E-07** at limit **
  16  norm          .10000E-03    4.7930        .17356E-07** at limit **
  17  Prefactor     6.8973        11.510        .36824E-06    .20974E-04
  18  Normalizat    1.1492        .18209       -.16847E-06    .14167E-03
  19  Prefactor     .89086        .18019       -.65846E-06    .10707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5943
  Prefactor  = 2.51418
  norm       = 42.6039
  Prefactor  = 0.000100002
  Prefactor  = 64.5207
  Prefactor  = 15.0729
  Prefactor  = 0.737991
  Prefactor  = 7.78303
  Prefactor  = 0.000100155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61371
  Prefactor  = 3.05415
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.89734
  Normalizat = 1.14915
  Prefactor  = 0.890857
 **********
 **   18 **HESSE 
 **********

 FCN=   6392.262     FROM HESSE     STATUS=OK           270 CALLS     2139 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.594        8.4411        .11288E-03   -1.4998    
   2  Prefactor     2.5142        3.0357        .14532E-03   -1.5391    
   3  norm          42.604        11.861        .61416E-04   -1.4402    
   4  Prefactor     .10000E-03    32.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     64.521        62.398        .49968E-04   -1.4100    
   6  Prefactor     15.073        8.4222        .10314E-03   -1.4931    
   7  Prefactor     .73799        2.0795        .18253E-03   -1.5536    
   8  Prefactor     7.7830        8.3827        .71864E-03   -1.5150    
   9  Prefactor     .10016E-03    36.500        .33805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1267        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6137        14.554        .16878E-03   -1.5234    
  14  Prefactor     3.0541        2.3641        .10445E-03   -1.5358    
  15  Prefactor     .10000E-03    8.6899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.8075        .17093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8973        11.512        .15274E-03   -1.5183    
  18  Normalizat    1.1492        .21656        .24437E-03   -.88189    
  19  Prefactor     .89086        .21328        .28526E-03   -.96461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2015e-09
Minuit parameter uncertainties:
  1  8.44188
  2  3.03587
  3  11.8618
  4  0.000504616
  5  62.4612
  6  8.42286
  7  2.07966
  8  8.38397
  9  0.00476082
  10  6.30003e-05
  11  4.7584e-06
  12  2.41804e-06
  13  14.5632
  14  2.36414
  15  1.46612e-05
  16  2.46467e-06
  17  11.5152
  18  0.216726
  19  0.213484
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  7.380e-01  2.080e+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:  8.909e-01  2.135e-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.149e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71909/likelihoodResults_292982401_293241601_4FGL_J1043.2+2408_daily_bin207.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) = 6392.25821309
delta logL = 0.00351239388692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6392.25736239
delta logL = 0.00436309546239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82077       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1674       1.0000          .0000       10.000    
     3 'Normalizat'    1.1514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88895       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=   6392.257     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      223 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82535        23.726        .12517E-01    .10335E-02
   2  Index         2.1652        1.5842        .50000        .14502E-04
   3  Normalizat    1.1514        .18190E-01    .55219E-01    .29033E-04
   4  Prefactor     .88891        .18979E-01    .64558E-01   -.48350E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.82535
  Index      = 2.16524
  Normalizat = 1.15138
  Prefactor  = 0.888909
 **********
 **   18 **HESSE 
 **********

 FCN=   6392.257     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82535        2.3282        .18968E-03   -1.5526    
   2  Index         2.1652        1.5332        .76834E-02   -.60280    
   3  Normalizat    1.1514        .20408        .24417E-03   -.88119    
   4  Prefactor     .88891        .21343        .28554E-03   -.96530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00109e-10
Minuit parameter uncertainties:
  1  2.32847
  2  1.57106
  3  0.204221
  4  0.213631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71909': 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) = 6392.25735996
delta logL = 0.00436552448355

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  8.254e-01  2.328e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.165e+00  1.571e+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.889e-01  2.136e-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.151e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/71909/cmap_HighResolution_292982401_293241601_4FGL_J1043.2+2408_daily_bin207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', job_status='DONE', photon_flux_upper_limit='8.72e-08', time_completed='2021-09-02 09:00:51.790800', job_id='71909', GAL2='0.89', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630598451.79', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.37e-03', ts2='0.16', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='207' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:00:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 71909: <4FGL_J1043.2+2408_daily_bin207> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin207 160.805 24.146 292982401 293241601 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 :                                   606.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            867 sec.

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

