/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 188 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 = 7439
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin829
RA = 160.805, Dec = 24.146
tmin = 454204801, tmax = 454464001
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='75666', job_status='RUN', time_executed='2021-09-02 09:05:09.224196', time_epoch_executed='1630598709.22' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75666/ft1_4FGL_J1043.2+2408_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75666/ft2_4FGL_J1043.2+2408_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75666/ft1_4FGL_J1043.2+2408_daily_bin829.fits outfile=/scratch/kocevski/75666/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin829.fits ra=160.805 dec=24.146 rad=12.0 tmin=454204801.0 tmax=454464001.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.70
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75666/ft2_4FGL_J1043.2+2408_daily_bin829.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/75666/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin829.fits evtable="EVENTS" outfile="/scratch/kocevski/75666/ft1_filtered_4FGL_J1043.2+2408_daily_bin829.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.61
user 0.36
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75666/ft1_filtered_4FGL_J1043.2+2408_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/75666/ft2_4FGL_J1043.2+2408_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/75666/ltcube_454204801_454464001_4FGL_J1043.2+2408_daily_bin829.fits outfile=/scratch/kocevski/75666/expmap_454204801_454464001_4FGL_J1043.2+2408_daily_bin829.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/75666/ltcube_454204801_454464001_4FGL_J1043.2+2408_daily_bin829.fits
.....................!
real 193.05
user 186.65
sys 5.05

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/75666/ft1_filtered_4FGL_J1043.2+2408_daily_bin829.fits scfile=/scratch/kocevski/75666/ft2_4FGL_J1043.2+2408_daily_bin829.fits outfile=/scratch/kocevski/75666/cmap_454204801_454464001_4FGL_J1043.2+2408_daily_bin829.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75666/ft1_filtered_4FGL_J1043.2+2408_daily_bin829.fits scfile=/scratch/kocevski/75666/ft2_4FGL_J1043.2+2408_daily_bin829.fits outfile=/scratch/kocevski/75666/cmap_HighResolution_454204801_454464001_4FGL_J1043.2+2408_daily_bin829.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.62
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8423       1.0000         .10000E-03   10000.    
     3 'norm      '    32.101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7932       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.260       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34333E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.241       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2029       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79972       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=   5794.216     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1884 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.365       -.93764E-06** at limit **
   2  Prefactor     1.8427        2.1612       -.63777E-07   -.19790E-03
   3  norm          32.107        12.634       -.35946E-06    .70006E-04
   4  Prefactor     .10000E-03    35.994       -.48193E-06** at limit **
   5  Prefactor     54.824        69.555       -.18420E-04    .13298E-04
   6  Prefactor     14.450        10.681        .41675E-06   -.13988E-04
   7  Prefactor     .69123        2.5915       -.15780E-05   -.16069E-02
   8  Prefactor     4.6671        6.4679       -.13917E-05   -.26825E-03
   9  Prefactor     4.8016        9.8706       -.23402E-05   -.54277E-03
  10  Prefactor     20.256        29.606       -.60694E-05    .52754E-05
  11  Prefactor     .10007E-03    7.4988        .28397E-05** at limit **
  12  Prefactor     22.387        13.840        .12489E-06    .76844E-05
  13  Prefactor     .10000E-03    7.1200        .69657E-07** at limit **
  14  Prefactor     .10000E-03    1.2260        .76384E-07** at limit **
  15  Prefactor     .10000E-03    2.7820       -.84047E-07** at limit **
  16  norm          .10000E-03    3.7524       -.87146E-07** at limit **
  17  Prefactor     10.240        11.163       -.14332E-06   -.40437E-04
  18  Normalizat    1.2028        .18672        .31160E-05   -.19014E-03
  19  Prefactor     .79985        .18197        .45150E-06    .21828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.84268
  norm       = 32.1067
  Prefactor  = 0.0001
  Prefactor  = 54.824
  Prefactor  = 14.4498
  Prefactor  = 0.691232
  Prefactor  = 4.66706
  Prefactor  = 4.80158
  Prefactor  = 20.2557
  Prefactor  = 0.000100066
  Prefactor  = 22.3867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2395
  Normalizat = 1.20282
  Prefactor  = 0.799853
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.216     FROM HESSE     STATUS=OK           270 CALLS     2154 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8427        2.1504        .11703E-03   -1.5436    
   3  norm          32.107        12.641        .70721E-04   -1.4574    
   4  Prefactor     .10000E-03    36.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.824        67.751        .54166E-04   -1.4226    
   6  Prefactor     14.450        10.532        .10537E-03   -1.4948    
   7  Prefactor     .69123        2.6400        .21783E-03   -1.5542    
   8  Prefactor     4.6671        6.5000        .18627E-03   -1.5276    
   9  Prefactor     4.8016        9.4526        .18376E-03   -1.5270    
  10  Prefactor     20.256        29.505        .88985E-04   -1.4808    
  11  Prefactor     .10007E-03    23.498        .37708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.387        13.836        .84657E-04   -1.4761    
  13  Prefactor     .10000E-03    7.1394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2362        .82198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7894        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7601        .14401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.240        11.170        .12521E-03   -1.5068    
  18  Normalizat    1.2028        .21940        .23529E-03   -.86516    
  19  Prefactor     .79985        .21286        .29022E-03   -.99734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69447e-09
Minuit parameter uncertainties:
  1  8.39766e-05
  2  2.15046
  3  12.6419
  4  8.21304e-05
  5  67.8459
  6  10.5329
  7  2.64049
  8  6.50099
  9  9.45558
  10  29.5265
  11  0.00249152
  12  13.8383
  13  3.87978e-06
  14  4.23809e-06
  15  6.20188e-06
  16  7.55356e-06
  17  11.1722
  18  0.219567
  19  0.213076
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  6.912e-01  2.640e+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:  7.999e-01  2.131e-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.203e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75666/likelihoodResults_454204801_454464001_4FGL_J1043.2+2408_daily_bin829.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) = 5793.88676484
delta logL = 0.329000366207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5793.83750032
delta logL = 0.378264883548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39044       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6375       1.0000          .0000       10.000    
     3 'Normalizat'    1.1556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82747       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=   5793.837     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39063        7.5495        .10815E-01    .17801E-02
   2  Index         3.6389        3.3769        .12074        .14622E-03
   3  Normalizat    1.1554        .37773E-01    .54090E-01   -.14057E-04
   4  Prefactor     .82768        .39122E-01    .64579E-01    .74295E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.390632
  Index      = 3.63886
  Normalizat = 1.15536
  Prefactor  = 0.827682
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.837     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39063        24.945        .53252E-04   -1.5583    
   2  Index         3.6389        6.4733        .75387E-02   -.27571    
   3  Normalizat    1.1554        .20567        .23917E-03   -.87994    
   4  Prefactor     .82768        .21310        .28566E-03   -.98716    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45505e-09
Minuit parameter uncertainties:
  1  6.24512
  2  8.79279
  3  0.205809
  4  0.213317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75666': 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): 102
logL (Free Index) = 5793.8374971
delta logL = 0.378268109726

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.906e-01  6.245e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.639e+00  8.793e+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.277e-01  2.133e-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.155e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/75666/cmap_HighResolution_454204801_454464001_4FGL_J1043.2+2408_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-02 09:14:43.464737', job_id='75666', GAL2='0.83', fit_tolerance='1e-08', EG2='1.16', EG='1.20', time_epoch_completed='1630599283.46', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.78e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='829' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:14:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 75666: <4FGL_J1043.2+2408_daily_bin829> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin829> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:20 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:01:48 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:48 2021
Terminated at Thu Sep  2 09:14:44 2021
Results reported at Thu Sep  2 09:14:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin829 160.805 24.146 454204801 454464001 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 :                                   569.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            804 sec.

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

