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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin620
RA = 160.805, Dec = 24.146
tmin = 400032001, tmax = 400291201
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='74451', job_status='RUN', time_executed='2021-09-02 08:59:53.992729', time_epoch_executed='1630598393.99' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74451

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74451/ft1_4FGL_J1043.2+2408_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74451/ft2_4FGL_J1043.2+2408_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74451/ft1_4FGL_J1043.2+2408_daily_bin620.fits outfile=/scratch/kocevski/74451/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin620.fits ra=160.805 dec=24.146 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.40
user 4.15
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74451/ft2_4FGL_J1043.2+2408_daily_bin620.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/74451/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin620.fits evtable="EVENTS" outfile="/scratch/kocevski/74451/ft1_filtered_4FGL_J1043.2+2408_daily_bin620.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74451/ft1_filtered_4FGL_J1043.2+2408_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/74451/ft2_4FGL_J1043.2+2408_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/74451/ltcube_400032001_400291201_4FGL_J1043.2+2408_daily_bin620.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/74451/ft2_4FGL_J1043.2+2408_daily_bin620.fits
.....................!
real 16.33
user 15.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74451/ft1_filtered_4FGL_J1043.2+2408_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/74451/ft2_4FGL_J1043.2+2408_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/74451/ltcube_400032001_400291201_4FGL_J1043.2+2408_daily_bin620.fits outfile=/scratch/kocevski/74451/expmap_400032001_400291201_4FGL_J1043.2+2408_daily_bin620.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/74451/ltcube_400032001_400291201_4FGL_J1043.2+2408_daily_bin620.fits
.....................!
real 192.58
user 187.17
sys 4.86

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/74451/ft1_filtered_4FGL_J1043.2+2408_daily_bin620.fits scfile=/scratch/kocevski/74451/ft2_4FGL_J1043.2+2408_daily_bin620.fits outfile=/scratch/kocevski/74451/cmap_400032001_400291201_4FGL_J1043.2+2408_daily_bin620.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74451/ft1_filtered_4FGL_J1043.2+2408_daily_bin620.fits scfile=/scratch/kocevski/74451/ft2_4FGL_J1043.2+2408_daily_bin620.fits outfile=/scratch/kocevski/74451/cmap_HighResolution_400032001_400291201_4FGL_J1043.2+2408_daily_bin620.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.498       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42597       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5743       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4503       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2664       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6462       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1394       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92221       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=   5655.327     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1875 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.499        10.178        .27798E-06    .19642E-03
   2  Prefactor     .42650        1.5734        .11896E-06   -.22432E-03
   3  norm          .10000E-03    4.6274       -.97333E-07** at limit **
   4  Prefactor     32.760        41.184       -.56856E-09    .26261E-04
   5  Prefactor     19.330        40.170        .26857E-05   -.79905E-05
   6  Prefactor     6.5705        7.7219        .35824E-06    .36012E-03
   7  Prefactor     .10000E-03    1.6158       -.46076E-06** at limit **
   8  Prefactor     1.4549        15.969        .15435E-04   -.73009E-04
   9  Prefactor     10.463        12.418        .16858E-05    .56518E-03
  10  Prefactor     .10000E-03    15.837       -.36162E-06** at limit **
  11  Prefactor     .10000E-03    4.4527        .38908E-06** at limit **
  12  Prefactor     .10000E-03    3.4453       -.19392E-06** at limit **
  13  Prefactor     8.9065        24.614       -.34786E-05   -.13197E-03
  14  Prefactor     3.2666        3.6618        .43853E-06    .13307E-03
  15  Prefactor     .10000E-03    5.6596        .79072E-06** at limit **
  16  norm          1.6483        16.721        .11884E-05   -.86846E-05
  17  Prefactor     .10000E-03    11.691        .36259E-06** at limit **
  18  Normalizat    1.1393        .19710       -.26614E-05    .42635E-03
  19  Prefactor     .92216        .19347        .90074E-06    .36496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4992
  Prefactor  = 0.426498
  norm       = 0.0001
  Prefactor  = 32.76
  Prefactor  = 19.3302
  Prefactor  = 6.5705
  Prefactor  = 0.0001
  Prefactor  = 1.4549
  Prefactor  = 10.4632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.9065
  Prefactor  = 3.26658
  Prefactor  = 0.000100001
  norm       = 1.64829
  Prefactor  = 0.0001
  Normalizat = 1.1393
  Prefactor  = 0.922161
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.327     FROM HESSE     STATUS=OK           276 CALLS     2151 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.499        10.173        .76397E-04   -1.4659    
   2  Prefactor     .42650        1.5314        .17478E-03   -1.5577    
   3  norm          .10000E-03    4.6838        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.760        41.226        .70014E-04   -1.4563    
   5  Prefactor     19.330        39.993        .91050E-04   -1.4828    
   6  Prefactor     6.5705        7.7122        .15651E-03   -1.5195    
   7  Prefactor     .10000E-03    1.6236        .32938E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4549        16.129        .17888E-02   -1.5467    
   9  Prefactor     10.463        12.510        .12377E-03   -1.5061    
  10  Prefactor     .10000E-03    15.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4598        .15499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4485        .13632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.9065        24.873        .13437E-03   -1.5111    
  14  Prefactor     3.2666        3.6588        .14235E-03   -1.5346    
  15  Prefactor     .10000E-03    5.7286        .17504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6483        16.786        .32918E-03   -1.5451    
  17  Prefactor     .10000E-03    11.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1393        .23225        .23757E-03   -.88500    
  19  Prefactor     .92216        .22819        .27461E-03   -.95371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47547e-09
Minuit parameter uncertainties:
  1  10.1736
  2  1.53155
  3  9.63094e-06
  4  41.2623
  5  40.0488
  6  7.71338
  7  3.34696e-05
  8  9.69142
  9  12.5133
  10  8.39676e-05
  11  3.97089e-05
  12  2.55482e-05
  13  24.9024
  14  3.65909
  15  0.000129482
  16  10.5237
  17  8.39381e-05
  18  0.232459
  19  0.228432
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.347e-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:  9.222e-01  2.284e-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.139e+00  2.325e-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: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74451/likelihoodResults_400032001_400291201_4FGL_J1043.2+2408_daily_bin620.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) = 5655.32818781
delta logL = -0.0016384476221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5655.32655031
delta logL = -9.47042281041e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3377       1.0000          .0000       10.000    
     3 'Normalizat'    1.1392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92237       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=   5655.327     FROM MIGRAD    STATUS=FAILED        92 CALLS      260 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    22.907        .18110E-02** at limit **
   2  Index         2.3883        6.2295        .50000       -.30879E-04
   3  Normalizat    1.1393        .12707E-01    .23757E-03    .35724E-03
   4  Prefactor     .92216        .13437E-01    .27461E-03    .30920E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5655.327     FROM SIMPLEX   STATUS=PROGRESS     124 CALLS      384 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    22.907        .22320E-03** at limit **
   2  Index         2.3871        6.2295        .42321E-03   -.30879E-04
   3  Normalizat    1.1393        .12707E-01    .21545E-05    .35724E-03
   4  Prefactor     .92216        .13437E-01    .21028E-05    .30920E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5655.327     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      417 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    119.63        .36221E-03** at limit **
   2  Index         2.4146        6.0924        .50000       -.24915E-04
   3  Normalizat    1.1393        .29938E-01    .47514E-04   -.22074E-02
   4  Prefactor     .92216        .31653E-01    .54922E-04   -.18872E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100234
  Index      = 2.41462
  Normalizat = 1.1393
  Prefactor  = 0.922156
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.327     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    535.09        .72441E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4146        5.6539        .50000       -.54343    
   3  Normalizat    1.1393        .87419E-01    .95029E-05   -.88500    
   4  Prefactor     .92216        .91969E-01    .10984E-04   -.95371    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.98289e-08
Minuit parameter uncertainties:
  1  0.0226082
  2  625.772
  3  0.0874304
  4  0.091984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74451': 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) = 5655.32654864
delta logL = 7.18228875485e-07

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.002e-04  2.261e-02  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.415e+00  6.258e+02  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:  9.222e-01  9.198e-02  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.139e+00  8.743e-02  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/74451/cmap_HighResolution_400032001_400291201_4FGL_J1043.2+2408_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-02 09:09:31.107837', job_id='74451', GAL2='0.92', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630598971.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='620' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 74451: <4FGL_J1043.2+2408_daily_bin620> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin620> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 08:56:23 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:56:59 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:56:59 2021
Terminated at Thu Sep  2 09:09:34 2021
Results reported at Thu Sep  2 09:09:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin620 160.805 24.146 400032001 400291201 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 :                                   573.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            791 sec.

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

