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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin551
RA = 160.805, Dec = 24.146
tmin = 382147201, tmax = 382406401
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='74326', job_status='RUN', time_executed='2021-09-02 08:59:29.585190', time_epoch_executed='1630598369.59' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74326/ft1_4FGL_J1043.2+2408_daily_bin551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74326/ft2_4FGL_J1043.2+2408_daily_bin551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74326/ft1_4FGL_J1043.2+2408_daily_bin551.fits outfile=/scratch/kocevski/74326/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin551.fits ra=160.805 dec=24.146 rad=12.0 tmin=382147201.0 tmax=382406401.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.47
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74326/ft1_filtered_4FGL_J1043.2+2408_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/74326/ft2_4FGL_J1043.2+2408_daily_bin551.fits sctable="SC_DATA" expcube=/scratch/kocevski/74326/ltcube_382147201_382406401_4FGL_J1043.2+2408_daily_bin551.fits outfile=/scratch/kocevski/74326/expmap_382147201_382406401_4FGL_J1043.2+2408_daily_bin551.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/74326/ltcube_382147201_382406401_4FGL_J1043.2+2408_daily_bin551.fits
.....................!
real 192.63
user 187.41
sys 4.50

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/74326/ft1_filtered_4FGL_J1043.2+2408_daily_bin551.fits scfile=/scratch/kocevski/74326/ft2_4FGL_J1043.2+2408_daily_bin551.fits outfile=/scratch/kocevski/74326/cmap_382147201_382406401_4FGL_J1043.2+2408_daily_bin551.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74326/ft1_filtered_4FGL_J1043.2+2408_daily_bin551.fits scfile=/scratch/kocevski/74326/ft2_4FGL_J1043.2+2408_daily_bin551.fits outfile=/scratch/kocevski/74326/cmap_HighResolution_382147201_382406401_4FGL_J1043.2+2408_daily_bin551.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3538       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1166       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11338E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2749       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8932       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7934       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1653       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4528       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79840       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3350       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=   5735.042     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1875 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3541        7.5431       -.93279E-07   -.61640E-04
   2  Prefactor     1.1167        1.9138        .48514E-07   -.12852E-03
   3  norm          .10000E-03    4.5300       -.22040E-07** at limit **
   4  Prefactor     .10000E-03    83.376       -.17675E-06** at limit **
   5  Prefactor     .10000E-03    15.172       -.14496E-05** at limit **
   6  Prefactor     .10000E-03    2.3885       -.30044E-07** at limit **
   7  Prefactor     3.2751        2.6970        .11713E-06   -.92639E-04
   8  Prefactor     7.8937        5.9561        .44623E-06   -.83229E-03
   9  Prefactor     .10000E-03    5.3223        .19218E-06** at limit **
  10  Prefactor     .10000E-03    8.0843       -.14843E-06** at limit **
  11  Prefactor     20.052        12.546       -.15609E-05   -.23919E-03
  12  Prefactor     6.7937        7.4375       -.86437E-07   -.31641E-04
  13  Prefactor     .10000E-03    15.316        .12320E-05** at limit **
  14  Prefactor     .10000E-03    1.1611        .65203E-07** at limit **
  15  Prefactor     6.1655        5.5506       -.93404E-07    .46522E-03
  16  norm          .10000E-03    13.600        .52707E-06** at limit **
  17  Prefactor     8.4542        14.483       -.60707E-06   -.42805E-04
  18  Normalizat    .79839        .17716        .34520E-06   -.82676E-05
  19  Prefactor     1.3349        .19407        .13685E-06    .12906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3541
  Prefactor  = 1.11667
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.27511
  Prefactor  = 7.89375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0521
  Prefactor  = 6.7937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.16546
  norm       = 0.0001
  Prefactor  = 8.45424
  Normalizat = 0.798395
  Prefactor  = 1.33493
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.042     FROM HESSE     STATUS=OK           270 CALLS     2145 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3541        7.5343        .17369E-03   -1.5245    
   2  Prefactor     1.1167        1.6460        .13191E-02   -1.5497    
   3  norm          .10000E-03    4.6368        .15738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    84.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3971        .11426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2751        2.6924        .10624E-03   -1.5346    
   8  Prefactor     7.8937        8.9440        .71360E-03   -1.5146    
   9  Prefactor     .10000E-03    5.3845        .17087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.052        12.776        .89450E-04   -1.4812    
  12  Prefactor     6.7937        7.4385        .15394E-03   -1.5187    
  13  Prefactor     .10000E-03    15.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1846        .79587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1655        5.8263        .80841E-03   -1.5211    
  16  norm          .10000E-03    13.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.4542        14.625        .13788E-03   -1.5126    
  18  Normalizat    .79839        .20674        .26588E-03   -1.0013    
  19  Prefactor     1.3349        .22746        .23885E-03   -.82274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13606e-09
Minuit parameter uncertainties:
  1  7.53562
  2  1.64608
  3  2.96907e-06
  4  6.7156e-05
  5  6.28386e-05
  6  2.31401e-07
  7  2.69246
  8  8.9455
  9  2.7048e-05
  10  6.37789e-06
  11  12.7775
  12  7.43953
  13  0.000112564
  14  1.264e-07
  15  5.82684
  16  1.01178e-05
  17  14.6311
  18  0.206944
  19  0.227625
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.275e+00  2.692e+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:  1.335e+00  2.276e-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:  7.984e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.01
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/74326/likelihoodResults_382147201_382406401_4FGL_J1043.2+2408_daily_bin551.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) = 5735.02253684
delta logL = 0.0194051696371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5735.01192689
delta logL = 0.0300151273605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8258       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4673       1.0000          .0000       10.000    
     3 'Normalizat'    .79248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3400       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.

 FCN=   5735.012     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8255        3.2764        .96884E-04    .71861E-03
   2  Index         2.4675        .65425        .59647E-02    .12693E-03
   3  Normalizat    .79252        .20259        .26676E-03   -.28055E-03
   4  Prefactor     1.3399        .22837        .23848E-03   -.37887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82552
  Index      = 2.46747
  Normalizat = 0.792523
  Prefactor  = 1.33995
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.012     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8255        3.0678        .38753E-05   -1.5372    
   2  Index         2.4675        .61259        .23859E-03   -.53113    
   3  Normalizat    .79252        .20265        .10670E-04   -1.0035    
   4  Prefactor     1.3399        .22835        .47696E-04   -.82127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5025e-10
Minuit parameter uncertainties:
  1  3.06796
  2  0.614674
  3  0.202839
  4  0.228523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74326': 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) = 5735.01192679
delta logL = 0.0300152234377

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.826e+00  3.068e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.467e+00  6.147e-01  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:  1.340e+00  2.285e-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:  7.925e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.47 +/- 0.61
Photon Flux (Free Index): 5.23e-08 +/- 4.36e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.47e-05

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/74326/cmap_HighResolution_382147201_382406401_4FGL_J1043.2+2408_daily_bin551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.92e-03', comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='1.58e-05', photon_flux_error='3.98e-08', dlogl='3.00e-02', energy_flux='1.77e-05', photon_flux2='5.23e-08', job_status='DONE', time_completed='2021-09-02 09:09:05.843033', photon_index_error2='0.61', photon_index2='2.47', ts='2.01', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.47e-05', EG='0.80', time_epoch_completed='1630598945.84', return_code='0', job_id='74326', GAL2='1.34', EG2='0.79', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.36e-08', ts2='2.07', photon_index='2.32' WHERE bin_id='551' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:09:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 74326: <4FGL_J1043.2+2408_daily_bin551> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin551 160.805 24.146 382147201 382406401 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 :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            773 sec.

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

