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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin273
RA = 160.805, Dec = 24.146
tmin = 310089601, tmax = 310348801
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='72002', job_status='RUN', time_executed='2021-09-02 08:51:11.651635', time_epoch_executed='1630597871.65' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72002/ft1_4FGL_J1043.2+2408_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72002/ft2_4FGL_J1043.2+2408_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72002/ft1_4FGL_J1043.2+2408_daily_bin273.fits outfile=/scratch/kocevski/72002/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin273.fits ra=160.805 dec=24.146 rad=12.0 tmin=310089601.0 tmax=310348801.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 2.83
user 2.59
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72002/ft2_4FGL_J1043.2+2408_daily_bin273.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/72002/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin273.fits evtable="EVENTS" outfile="/scratch/kocevski/72002/ft1_filtered_4FGL_J1043.2+2408_daily_bin273.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/72002/ft1_filtered_4FGL_J1043.2+2408_daily_bin273.fits" evtable="EVENTS" scfile=/scratch/kocevski/72002/ft2_4FGL_J1043.2+2408_daily_bin273.fits sctable="SC_DATA" outfile=/scratch/kocevski/72002/ltcube_310089601_310348801_4FGL_J1043.2+2408_daily_bin273.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/72002/ft2_4FGL_J1043.2+2408_daily_bin273.fits
.....................!
real 15.95
user 15.57
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72002/ft1_filtered_4FGL_J1043.2+2408_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/72002/ft2_4FGL_J1043.2+2408_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/72002/ltcube_310089601_310348801_4FGL_J1043.2+2408_daily_bin273.fits outfile=/scratch/kocevski/72002/expmap_310089601_310348801_4FGL_J1043.2+2408_daily_bin273.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/72002/ltcube_310089601_310348801_4FGL_J1043.2+2408_daily_bin273.fits
.....................!
real 157.94
user 152.57
sys 4.48

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/72002/ft1_filtered_4FGL_J1043.2+2408_daily_bin273.fits scfile=/scratch/kocevski/72002/ft2_4FGL_J1043.2+2408_daily_bin273.fits outfile=/scratch/kocevski/72002/cmap_310089601_310348801_4FGL_J1043.2+2408_daily_bin273.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72002/ft1_filtered_4FGL_J1043.2+2408_daily_bin273.fits scfile=/scratch/kocevski/72002/ft2_4FGL_J1043.2+2408_daily_bin273.fits outfile=/scratch/kocevski/72002/cmap_HighResolution_310089601_310348801_4FGL_J1043.2+2408_daily_bin273.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1580       1.0000         .10000E-03   10000.    
     3 'norm      '    17.792       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8898       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8286       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .87648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22523E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5990       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9673       1.0000         .10000E-03   10000.    
    16 'norm      '    .52589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9091       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3876       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .70842       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=   6112.542     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1691 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.684        8.1261        .67010E-07    .52575E-04
   2  Prefactor     4.1577        2.4898       -.56945E-07    .22845E-04
   3  norm          17.791        9.3580        .82519E-07    .42601E-04
   4  Prefactor     22.433        29.042        .27685E-05    .66999E-04
   5  Prefactor     .10000E-03    11.723       -.88782E-07** at limit **
   6  Prefactor     .10000E-03    3.7797       -.43118E-07** at limit **
   7  Prefactor     3.8931        2.7538       -.63230E-07    .23164E-03
   8  Prefactor     1.8273        6.3746       -.11991E-05    .16085E-03
   9  Prefactor     .82009        5.9995        .55991E-06    .11548E-03
  10  Prefactor     5.0017        16.554       -.52349E-06    .10345E-04
  11  Prefactor     .10000E-03    27.406       -.17328E-05** at limit **
  12  Prefactor     .10000E-03    3.0210       -.27254E-07** at limit **
  13  Prefactor     .10001E-03    13.843       -.24379E-05** at limit **
  14  Prefactor     3.5982        2.8853       -.66358E-07    .10317E-03
  15  Prefactor     9.9681        7.0480        .72562E-07    .42519E-04
  16  norm          .56981        33.579        .57907E-05   -.19637E-06
  17  Prefactor     3.9072        10.663       -.50827E-06    .33235E-04
  18  Normalizat    1.3878        .18098        .10150E-06    .21384E-03
  19  Prefactor     .70838        .18009        .10574E-05    .10310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6843
  Prefactor  = 4.15769
  norm       = 17.7906
  Prefactor  = 22.4333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89314
  Prefactor  = 1.82731
  Prefactor  = 0.820089
  Prefactor  = 5.0017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 3.59825
  Prefactor  = 9.96812
  norm       = 0.569812
  Prefactor  = 3.90723
  Normalizat = 1.38778
  Prefactor  = 0.708376
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.542     FROM HESSE     STATUS=OK           280 CALLS     1971 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.684        8.1475        .11719E-03   -1.5024    
   2  Prefactor     4.1577        2.4918        .91712E-04   -1.5300    
   3  norm          17.791        9.3569        .94954E-04   -1.4864    
   4  Prefactor     22.433        29.170        .84541E-04   -1.4760    
   5  Prefactor     .10000E-03    11.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8161        .14834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8931        2.7400        .10087E-03   -1.5313    
   8  Prefactor     1.8273        6.4960        .30867E-03   -1.5438    
   9  Prefactor     .82009        24.572        .31163E-02   -1.5527    
  10  Prefactor     5.0017        16.562        .17973E-03   -1.5261    
  11  Prefactor     .10000E-03    28.169        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0233        .13269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    65.987        .44763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5982        2.8894        .11306E-03   -1.5329    
  15  Prefactor     9.9681        7.0362        .12692E-03   -1.5076    
  16  norm          .56981        35.428        .42013E-02   -1.5557    
  17  Prefactor     3.9072        10.662        .20406E-03   -1.5313    
  18  Normalizat    1.3878        .21240        .21673E-03   -.80983    
  19  Prefactor     .70838        .20823        .31173E-03   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84718e-08
Minuit parameter uncertainties:
  1  8.1483
  2  2.49188
  3  9.35765
  4  29.1884
  5  4.01974e-06
  6  8.66605e-06
  7  2.74004
  8  6.49855
  9  8.98144
  10  16.5767
  11  1.13368e-05
  12  1.19985e-06
  13  0.00138983
  14  2.88951
  15  7.03675
  16  8.99078
  17  10.6677
  18  0.212537
  19  0.20846
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.893e+00  2.740e+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:  7.084e-01  2.085e-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.388e+00  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 2.10e-05 +/- 1.48e-05

TS (Fixed Index): 3.04
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72002/likelihoodResults_310089601_310348801_4FGL_J1043.2+2408_daily_bin273.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) = 6111.76053314
delta logL = 0.781645510142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6111.74030623
delta logL = 0.801872423422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7007       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1707       1.0000          .0000       10.000    
     3 'Normalizat'    1.3256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75090       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=   6111.740     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      252 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7004        12.986        .80639E-02    .55664E-03
   2  Index         3.1708        2.6077        .11279        .14392E-03
   3  Normalizat    1.3256        .58906E-01    .49932E-01    .21651E-05
   4  Prefactor     .75092        .59148E-01    .68626E-01    .21293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70036
  Index      = 3.17079
  Normalizat = 1.3256
  Prefactor  = 0.750918
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.740     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7004        3.1032        .52002E-04   -1.5447    
   2  Index         3.1708        1.0830        .42821E-02   -.37454    
   3  Normalizat    1.3256        .20471        .22075E-03   -.82805    
   4  Prefactor     .75092        .21226        .30365E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84644e-08
Minuit parameter uncertainties:
  1  3.10349
  2  1.09302
  3  0.204835
  4  0.212486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72002': 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) = 6111.74030621
delta logL = 0.801872442615

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.700e+00  3.103e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.171e+00  1.093e+00  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:  7.509e-01  2.125e-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.326e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.73
Ra Dec: 160.805 24.146
Photon Index (Free Index): 3.17 +/- 1.09
Photon Flux (Free Index): 1.05e-07 +/- 6.26e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.13e-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/72002/cmap_HighResolution_310089601_310348801_4FGL_J1043.2+2408_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='1.95e-05', photon_flux_error='4.05e-08', dlogl='8.02e-01', energy_flux='2.10e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-02 08:59:33.019983', photon_index_error2='1.09', photon_index2='3.17', ts='3.04', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.13e-05', EG='1.39', time_epoch_completed='1630598373.02', return_code='0', job_id='72002', GAL2='0.75', EG2='1.33', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='6.26e-08', ts2='4.73', photon_index='2.32' WHERE bin_id='273' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:59:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 72002: <4FGL_J1043.2+2408_daily_bin273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin273 160.805 24.146 310089601 310348801 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 :                                   497.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            779 sec.

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

