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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin321
RA = 160.805, Dec = 24.146
tmin = 322531201, tmax = 322790401
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='72068', job_status='RUN', time_executed='2021-09-02 08:47:43.678008', time_epoch_executed='1630597663.68' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72068

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72068/ft1_4FGL_J1043.2+2408_daily_bin321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72068/ft2_4FGL_J1043.2+2408_daily_bin321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72068/ft1_4FGL_J1043.2+2408_daily_bin321.fits outfile=/scratch/kocevski/72068/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin321.fits ra=160.805 dec=24.146 rad=12.0 tmin=322531201.0 tmax=322790401.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 6.84
user 6.54
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72068/ft1_filtered_4FGL_J1043.2+2408_daily_bin321.fits" evtable="EVENTS" scfile=/scratch/kocevski/72068/ft2_4FGL_J1043.2+2408_daily_bin321.fits sctable="SC_DATA" outfile=/scratch/kocevski/72068/ltcube_322531201_322790401_4FGL_J1043.2+2408_daily_bin321.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/72068/ft2_4FGL_J1043.2+2408_daily_bin321.fits
.....................!
real 12.33
user 11.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72068/ft1_filtered_4FGL_J1043.2+2408_daily_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/72068/ft2_4FGL_J1043.2+2408_daily_bin321.fits sctable="SC_DATA" expcube=/scratch/kocevski/72068/ltcube_322531201_322790401_4FGL_J1043.2+2408_daily_bin321.fits outfile=/scratch/kocevski/72068/expmap_322531201_322790401_4FGL_J1043.2+2408_daily_bin321.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/72068/ltcube_322531201_322790401_4FGL_J1043.2+2408_daily_bin321.fits
.....................!
real 156.41
user 151.77
sys 4.22

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/72068/ft1_filtered_4FGL_J1043.2+2408_daily_bin321.fits scfile=/scratch/kocevski/72068/ft2_4FGL_J1043.2+2408_daily_bin321.fits outfile=/scratch/kocevski/72068/cmap_322531201_322790401_4FGL_J1043.2+2408_daily_bin321.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.51
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72068/ft1_filtered_4FGL_J1043.2+2408_daily_bin321.fits scfile=/scratch/kocevski/72068/ft2_4FGL_J1043.2+2408_daily_bin321.fits outfile=/scratch/kocevski/72068/cmap_HighResolution_322531201_322790401_4FGL_J1043.2+2408_daily_bin321.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.48
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0249       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2164       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0398       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0641       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87674       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96398       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=   4317.983     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1636 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7353        .25352E-06** at limit **
   2  Prefactor     1.0237        2.7427       -.97964E-06   -.81706E-03
   3  norm          .10000E-03    2.1560        .12120E-07** at limit **
   4  Prefactor     35.665        36.759       -.29820E-04    .75569E-05
   5  Prefactor     2.1771        100.66       -.45045E-04   -.20685E-04
   6  Prefactor     .10000E-03    3.3022       -.15342E-06** at limit **
   7  Prefactor     .10000E-03    1.6637        .16113E-06** at limit **
   8  Prefactor     6.0395        8.4641       -.13998E-05   -.15959E-03
   9  Prefactor     6.7086        11.840       -.94836E-05   -.44577E-03
  10  Prefactor     19.784        24.263       -.17322E-05    .19818E-04
  11  Prefactor     .10000E-03    4.9390       -.39080E-06** at limit **
  12  Prefactor     5.1083        12.496       -.80179E-05   -.10795E-03
  13  Prefactor     5.0341        22.449        .29496E-04    .56028E-04
  14  Prefactor     .10000E-03    2.0574        .22073E-06** at limit **
  15  Prefactor     .10000E-03    2.6531       -.19672E-06** at limit **
  16  norm          .10000E-03    20.057       -.69718E-06** at limit **
  17  Prefactor     .10000E-03    7.5275       -.82902E-07** at limit **
  18  Normalizat    .87680        .18447        .21700E-05    .61881E-04
  19  Prefactor     .96398        .19184        .25256E-05    .52085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.02369
  norm       = 0.0001
  Prefactor  = 35.6649
  Prefactor  = 2.1771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.03947
  Prefactor  = 6.70863
  Prefactor  = 19.7837
  Prefactor  = 0.0001
  Prefactor  = 5.10831
  Prefactor  = 5.03406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.876798
  Prefactor  = 0.963976
 **********
 **   18 **HESSE 
 **********

 FCN=   4317.983     FROM HESSE     STATUS=OK           270 CALLS     1906 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7608        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0237        2.7376        .16515E-03   -1.5506    
   3  norm          .10000E-03    2.1587        .94226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.665        36.548        .67066E-04   -1.4513    
   5  Prefactor     2.1771        101.77        .27625E-03   -1.5413    
   6  Prefactor     .10000E-03    3.3253        .11656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9175        .16250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0395        8.4604        .16338E-03   -1.5216    
   9  Prefactor     6.7086        11.611        .15507E-03   -1.5190    
  10  Prefactor     19.784        24.270        .90041E-04   -1.4818    
  11  Prefactor     .10000E-03    4.9432        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1083        12.503        .17791E-03   -1.5256    
  13  Prefactor     5.0341        21.588        .17868E-03   -1.5259    
  14  Prefactor     .10000E-03    2.1066        .18331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6619        .10453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5660        .17607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .87680        .21614        .22166E-03   -.97280    
  19  Prefactor     .96398        .22549        .23593E-03   -.93940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38914e-09
Minuit parameter uncertainties:
  1  4.34388e-06
  2  2.73796
  3  6.97204e-07
  4  36.5709
  5  29.824
  6  1.77546e-05
  7  1.61758e-07
  8  8.46207
  9  11.6144
  10  24.282
  11  6.37654e-05
  12  12.5092
  13  20.8621
  14  2.9315e-05
  15  1.86031e-05
  16  0.000181812
  17  4.55733e-05
  18  0.216351
  19  0.225714
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.618e-07  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.640e-01  2.257e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  8.768e-01  2.164e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72068/likelihoodResults_322531201_322790401_4FGL_J1043.2+2408_daily_bin321.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) = 4317.98484832
delta logL = -0.00163513185544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4317.98321736
delta logL = -4.17757746618e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12730E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2897       1.0000          .0000       10.000    
     3 'Normalizat'    .87695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96389       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=   4317.983     FROM MIGRAD    STATUS=FAILED        91 CALLS      253 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10267E-03    28.023        .16860E-02** at limit **
   2  Index         2.2018        5.9989        .50000        .62100E-04
   3  Normalizat    .87679        .12596E-01    .22165E-03   -.50425E-03
   4  Prefactor     .96398        .14073E-01    .23592E-03   -.26911E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4317.983     FROM SIMPLEX   STATUS=PROGRESS     122 CALLS      375 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    28.023        .25646E-03** at limit **
   2  Index         2.2006        5.9989        .38354E-03    .62100E-04
   3  Normalizat    .87679        .12596E-01    .35333E-05   -.50425E-03
   4  Prefactor     .96397        .14073E-01    .33142E-05   -.26911E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4317.983     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      427 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.417        .33721E-02** at limit **
   2  Index         2.0122        7.7271        .50000        .15789E-06
   3  Normalizat    .87680        .10247E-01    .44331E-04    .35129E-03
   4  Prefactor     .96398        .11448E-01    .47185E-04    .34989E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01222
  Normalizat = 0.876799
  Prefactor  = 0.963976
 **********
 **   18 **HESSE 
 **********

 FCN=   4317.983     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      456 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.33        .67442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0122        5.6505        .50000       -.64045    
   3  Normalizat    .87680        .23898E-01    .88662E-05   -.97280    
   4  Prefactor     .96398        .26698E-01    .94370E-05   -.93940    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.61901e-10
Minuit parameter uncertainties:
  1  0.000136107
  2  275.904
  3  0.023898
  4  0.0266988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72068': 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) = 4317.98320947
delta logL = 3.71841179003e-06

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.361e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.012e+00  2.759e+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.640e-01  2.670e-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:  8.768e-01  2.390e-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/72068/cmap_HighResolution_322531201_322790401_4FGL_J1043.2+2408_daily_bin321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-02 08:55:00.446629', job_id='72068', GAL2='0.96', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630598100.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='321' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 72068: <4FGL_J1043.2+2408_daily_bin321> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin321 160.805 24.146 322531201 322790401 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 :                                   429.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   452 sec.
    Turnaround time :                            500 sec.

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

