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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin423
RA = 160.805, Dec = 24.146
tmin = 348969601, tmax = 349228801
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='73008', job_status='RUN', time_executed='2021-09-02 08:54:39.550699', time_epoch_executed='1630598079.55' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73008/ft1_4FGL_J1043.2+2408_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73008/ft2_4FGL_J1043.2+2408_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73008/ft1_4FGL_J1043.2+2408_daily_bin423.fits outfile=/scratch/kocevski/73008/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin423.fits ra=160.805 dec=24.146 rad=12.0 tmin=348969601.0 tmax=349228801.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.82
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73008/ft1_filtered_4FGL_J1043.2+2408_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/73008/ft2_4FGL_J1043.2+2408_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/73008/ltcube_348969601_349228801_4FGL_J1043.2+2408_daily_bin423.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/73008/ft2_4FGL_J1043.2+2408_daily_bin423.fits
.....................!
real 17.26
user 16.83
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73008/ft1_filtered_4FGL_J1043.2+2408_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/73008/ft2_4FGL_J1043.2+2408_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/73008/ltcube_348969601_349228801_4FGL_J1043.2+2408_daily_bin423.fits outfile=/scratch/kocevski/73008/expmap_348969601_349228801_4FGL_J1043.2+2408_daily_bin423.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/73008/ltcube_348969601_349228801_4FGL_J1043.2+2408_daily_bin423.fits
.....................!
real 194.22
user 188.49
sys 5.15

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/73008/ft1_filtered_4FGL_J1043.2+2408_daily_bin423.fits scfile=/scratch/kocevski/73008/ft2_4FGL_J1043.2+2408_daily_bin423.fits outfile=/scratch/kocevski/73008/cmap_348969601_349228801_4FGL_J1043.2+2408_daily_bin423.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.59
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.4105       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6698       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16973E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.662       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4509       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0805       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1301       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0111       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=   6069.932     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1649 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9668        .80508E-07** at limit **
   2  Prefactor     3.4105        2.6574        .81699E-07   -.34862E-03
   3  norm          5.6098        6.3921        .24352E-06   -.64624E-04
   4  Prefactor     .10000E-03    25.148        .22530E-06** at limit **
   5  Prefactor     3.6597        136.12        .13378E-04   -.80061E-04
   6  Prefactor     .10000E-03    4.5767        .34262E-06** at limit **
   7  Prefactor     2.6699        1.9497        .45946E-07   -.32845E-03
   8  Prefactor     .95653        5.3785        .16629E-05    .15015E-03
   9  Prefactor     .10000E-03    4.8669        .17769E-06** at limit **
  10  Prefactor     .10000E-03    69.897       -.10017E-05** at limit **
  11  Prefactor     .10003E-03    5.6488       -.22423E-05** at limit **
  12  Prefactor     11.514        10.548       -.88836E-07   -.12647E-03
  13  Prefactor     14.664        14.514       -.51771E-06   -.14406E-03
  14  Prefactor     1.2477        3.1828        .75372E-06    .11384E-03
  15  Prefactor     1.4506        7.2488        .14546E-04   -.70678E-04
  16  norm          .10000E-03    15.040        .70678E-06** at limit **
  17  Prefactor     2.0747        26.194        .35764E-05    .94957E-04
  18  Normalizat    1.1301        .17619       -.93720E-06   -.42548E-03
  19  Prefactor     1.0111        .18126       -.25657E-05   -.56789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.41054
  norm       = 5.60984
  Prefactor  = 0.0001
  Prefactor  = 3.65969
  Prefactor  = 0.0001
  Prefactor  = 2.66991
  Prefactor  = 0.956529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 11.5137
  Prefactor  = 14.6638
  Prefactor  = 1.24775
  Prefactor  = 1.45064
  norm       = 0.000100001
  Prefactor  = 2.07469
  Normalizat = 1.13012
  Prefactor  = 1.01107
 **********
 **   18 **HESSE 
 **********

 FCN=   6069.932     FROM HESSE     STATUS=OK           270 CALLS     1919 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9701        .10670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4105        2.6532        .10804E-03   -1.5339    
   3  norm          5.6098        6.3877        .16961E-03   -1.5234    
   4  Prefactor     .10000E-03    25.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6597        137.13        .20925E-03   -1.5325    
   6  Prefactor     .10000E-03    4.6178        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6699        1.9419        .89458E-04   -1.5381    
   8  Prefactor     .95653        5.3485        .34702E-03   -1.5512    
   9  Prefactor     .10000E-03    4.8877        .16768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    70.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    36.718        .34342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.514        10.435        .11805E-03   -1.5029    
  13  Prefactor     14.664        14.224        .10460E-03   -1.4942    
  14  Prefactor     1.2477        3.1332        .19846E-03   -1.5485    
  15  Prefactor     1.4506        7.2755        .17883E-02   -1.5467    
  16  norm          .10000E-03    15.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0747        25.212        .14315E-02   -1.5420    
  18  Normalizat    1.1301        .20500        .23840E-03   -.88791    
  19  Prefactor     1.0111        .21114        .26376E-03   -.92362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99473e-09
Minuit parameter uncertainties:
  1  8.36758e-06
  2  2.6533
  3  6.38847
  4  0.000146344
  5  44.9147
  6  5.29379e-05
  7  1.94193
  8  4.52411
  9  3.16493e-05
  10  0.000116059
  11  0.00215486
  12  10.4369
  13  14.2271
  14  3.13365
  15  6.49847
  16  0.000182844
  17  14.472
  18  0.20515
  19  0.21131
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.670e+00  1.942e+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.011e+00  2.113e-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.130e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/73008/likelihoodResults_348969601_349228801_4FGL_J1043.2+2408_daily_bin423.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) = 6069.88780081
delta logL = 0.0437047789501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6069.88094496
delta logL = 0.0505606240622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9097       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1196       1.0000          .0000       10.000    
     3 'Normalizat'    1.1387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0057       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=   6069.881     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9104        72.690        .59547E-02    .10192E-03
   2  Index         2.1197        5.3871        .18081        .23145E-04
   3  Normalizat    1.1386        .15471        .53741E-01    .65201E-05
   4  Prefactor     1.0057        .10388        .44046E-01    .91825E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91041
  Index      = 2.11972
  Normalizat = 1.13863
  Prefactor  = 1.00574
 **********
 **   18 **HESSE 
 **********

 FCN=   6069.881     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9104        2.2049        .94834E-04   -1.5367    
   2  Index         2.1197        .62299        .93956E-02   -.61389    
   3  Normalizat    1.1386        .20010        .23762E-03   -.88521    
   4  Prefactor     1.0057        .21025        .26436E-03   -.92539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73634e-13
Minuit parameter uncertainties:
  1  2.205
  2  0.625431
  3  0.200236
  4  0.210417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73008': 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) = 6069.88094487
delta logL = 0.0505607174264

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.910e+00  2.205e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.120e+00  6.254e-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.006e+00  2.104e-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.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.95
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.12 +/- 0.63
Photon Flux (Free Index): 3.20e-08 +/- 3.21e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.63e-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/73008/cmap_HighResolution_348969601_349228801_4FGL_J1043.2+2408_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.68e-05', photon_flux_error='2.87e-08', dlogl='5.06e-02', energy_flux='1.44e-05', photon_flux2='3.20e-08', job_status='DONE', time_completed='2021-09-02 09:04:12.868549', photon_index_error2='0.63', photon_index2='2.12', ts='3.85', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.63e-05', EG='1.13', time_epoch_completed='1630598652.87', return_code='0', job_id='73008', GAL2='1.01', EG2='1.14', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.21e-08', ts2='3.95', photon_index='2.32' WHERE bin_id='423' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:04:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 73008: <4FGL_J1043.2+2408_daily_bin423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin423 160.805 24.146 348969601 349228801 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 :                                   570.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            787 sec.

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

