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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin240
RA = 160.805, Dec = 24.146
tmin = 301536001, tmax = 301795201
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='71955', job_status='RUN', time_executed='2021-09-02 08:49:49.980097', time_epoch_executed='1630597789.98' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71955

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71955/ft1_4FGL_J1043.2+2408_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71955/ft2_4FGL_J1043.2+2408_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71955/ft1_4FGL_J1043.2+2408_daily_bin240.fits outfile=/scratch/kocevski/71955/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin240.fits ra=160.805 dec=24.146 rad=12.0 tmin=301536001.0 tmax=301795201.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.83
user 3.57
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71955/ft2_4FGL_J1043.2+2408_daily_bin240.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/71955/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/71955/ft1_filtered_4FGL_J1043.2+2408_daily_bin240.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.46
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71955/ft1_filtered_4FGL_J1043.2+2408_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/71955/ft2_4FGL_J1043.2+2408_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/71955/ltcube_301536001_301795201_4FGL_J1043.2+2408_daily_bin240.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/71955/ft2_4FGL_J1043.2+2408_daily_bin240.fits
.....................!
real 13.46
user 13.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71955/ft1_filtered_4FGL_J1043.2+2408_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/71955/ft2_4FGL_J1043.2+2408_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/71955/ltcube_301536001_301795201_4FGL_J1043.2+2408_daily_bin240.fits outfile=/scratch/kocevski/71955/expmap_301536001_301795201_4FGL_J1043.2+2408_daily_bin240.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/71955/ltcube_301536001_301795201_4FGL_J1043.2+2408_daily_bin240.fits
.....................!
real 157.67
user 152.73
sys 4.54

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/71955/ft1_filtered_4FGL_J1043.2+2408_daily_bin240.fits scfile=/scratch/kocevski/71955/ft2_4FGL_J1043.2+2408_daily_bin240.fits outfile=/scratch/kocevski/71955/cmap_301536001_301795201_4FGL_J1043.2+2408_daily_bin240.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71955/ft1_filtered_4FGL_J1043.2+2408_daily_bin240.fits scfile=/scratch/kocevski/71955/ft2_4FGL_J1043.2+2408_daily_bin240.fits outfile=/scratch/kocevski/71955/cmap_HighResolution_301536001_301795201_4FGL_J1043.2+2408_daily_bin240.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.51
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.665       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    40.739       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.312       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.588       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .92846       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8851       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3583       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.177       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4419       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .56899       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=   5696.018     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1904 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.665        7.8982        .52115E-07   -.58977E-05
   2  Prefactor     .10000E-03    .91986       -.29544E-07** at limit **
   3  norm          40.738        12.705       -.65773E-06   -.39179E-04
   4  Prefactor     32.305        37.276       -.98847E-05   -.38524E-04
   5  Prefactor     15.586        36.468       -.33423E-05   -.64448E-05
   6  Prefactor     .93106        4.6491        .32292E-06    .14559E-04
   7  Prefactor     2.8844        2.2563        .76709E-08   -.21094E-04
   8  Prefactor     .10000E-03    8.6869        .30049E-05** at limit **
   9  Prefactor     .10000E-03    6.7490       -.22986E-05** at limit **
  10  Prefactor     .10000E-03    12.705       -.12362E-05** at limit **
  11  Prefactor     1.3580        8.5437       -.15519E-06   -.55758E-04
  12  Prefactor     1.8359        2.9990        .51276E-06   -.10846E-02
  13  Prefactor     .10000E-03    3.7638       -.89074E-06** at limit **
  14  Prefactor     3.0471        2.9491        .15016E-05    .70034E-04
  15  Prefactor     15.177        7.5197       -.78174E-07   -.20468E-04
  16  norm          .10000E-03    3.1362        .56268E-08** at limit **
  17  Prefactor     .10000E-03    4.4067        .11689E-05** at limit **
  18  Normalizat    1.4419        .18620        .57004E-07   -.68276E-04
  19  Prefactor     .56898        .18776        .41344E-06   -.40515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6655
  Prefactor  = 0.0001
  norm       = 40.7376
  Prefactor  = 32.3047
  Prefactor  = 15.5865
  Prefactor  = 0.931061
  Prefactor  = 2.88443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35803
  Prefactor  = 1.83591
  Prefactor  = 0.0001
  Prefactor  = 3.04708
  Prefactor  = 15.1768
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44189
  Prefactor  = 0.568983
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.018     FROM HESSE     STATUS=OK           270 CALLS     2174 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.665        7.9024        .11256E-03   -1.4996    
   2  Prefactor     .10000E-03    .92824        .70661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          40.738        12.703        .62802E-04   -1.4431    
   4  Prefactor     32.305        37.308        .70491E-04   -1.4571    
   5  Prefactor     15.586        36.490        .10144E-03   -1.4918    
   6  Prefactor     .93106        13.914        .29842E-02   -1.5515    
   7  Prefactor     2.8844        2.2409        .94806E-04   -1.5368    
   8  Prefactor     .10000E-03    8.9056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3580        8.5248        .37488E-03   -1.5475    
  12  Prefactor     1.8359        10.077        .15395E-02   -1.5437    
  13  Prefactor     .10000E-03    3.7668        .14299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0471        3.0640        .12137E-03   -1.5359    
  15  Prefactor     15.177        7.5240        .10281E-03   -1.4929    
  16  norm          .10000E-03    3.1409        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4246        .15469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4419        .21463        .21386E-03   -.79425    
  19  Prefactor     .56898        .21504        .33562E-03   -1.0891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69883e-09
Minuit parameter uncertainties:
  1  7.90304
  2  4.18755e-07
  3  12.7034
  4  37.3347
  5  36.5421
  6  7.20012
  7  2.24093
  8  1.70013e-05
  9  1.93459e-06
  10  1.1924e-05
  11  6.80619
  12  8.60442
  13  2.64161e-06
  14  3.06414
  15  7.52444
  16  3.29228e-06
  17  1.52797e-06
  18  0.214767
  19  0.215346
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.884e+00  2.241e+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:  5.690e-01  2.153e-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.442e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 3.31e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/71955/likelihoodResults_301536001_301795201_4FGL_J1043.2+2408_daily_bin240.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) = 5696.0111446
delta logL = 0.00685587040334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5696.00941998
delta logL = 0.00858049743056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0166       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2390       1.0000          .0000       10.000    
     3 'Normalizat'    1.4456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56664       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=   5696.009     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      242 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0155        72.870        .58418E-02    .22523E-03
   2  Index         2.2386        5.7574        .16708        .60270E-04
   3  Normalizat    1.4457        .11753        .48324E-01   -.88491E-05
   4  Prefactor     .56653        .86818E-01    .75946E-01    .32905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01549
  Index      = 2.2386
  Normalizat = 1.44573
  Prefactor  = 0.566534
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.009     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0155        2.5268        .97795E-04   -1.5361    
   2  Index         2.2386        .64577        .86955E-02   -.58510    
   3  Normalizat    1.4457        .20967        .21362E-03   -.79315    
   4  Prefactor     .56653        .21497        .33628E-03   -1.0901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37553e-12
Minuit parameter uncertainties:
  1  2.52689
  2  0.648386
  3  0.209793
  4  0.215282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71955': 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) = 5696.00941942
delta logL = 0.00858105564294

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.015e+00  2.527e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.239e+00  6.484e-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:  5.665e-01  2.153e-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.446e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.24 +/- 0.65
Photon Flux (Free Index): 3.93e-08 +/- 3.91e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.52e-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/71955/cmap_HighResolution_301536001_301795201_4FGL_J1043.2+2408_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='1.65e-05', photon_flux_error='3.31e-08', dlogl='8.58e-03', energy_flux='1.56e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-02 08:57:55.651715', photon_index_error2='0.65', photon_index2='2.24', ts='3.16', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.52e-05', EG='1.44', time_epoch_completed='1630598275.65', return_code='0', job_id='71955', GAL2='0.57', EG2='1.45', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.91e-08', ts2='3.17', photon_index='2.32' WHERE bin_id='240' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:57:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 71955: <4FGL_J1043.2+2408_daily_bin240> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin240 160.805 24.146 301536001 301795201 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 :                                   477.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            685 sec.

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

