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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin13
RA = 160.805, Dec = 24.146
tmin = 242697601, tmax = 242956801
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='70576', job_status='RUN', time_executed='2021-09-02 08:43:24.737915', time_epoch_executed='1630597404.74' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70576/ft1_4FGL_J1043.2+2408_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70576/ft2_4FGL_J1043.2+2408_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70576/ft1_4FGL_J1043.2+2408_daily_bin13.fits outfile=/scratch/kocevski/70576/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin13.fits ra=160.805 dec=24.146 rad=12.0 tmin=242697601.0 tmax=242956801.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 1.45
user 1.28
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70576/ft1_filtered_4FGL_J1043.2+2408_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/70576/ft2_4FGL_J1043.2+2408_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/70576/ltcube_242697601_242956801_4FGL_J1043.2+2408_daily_bin13.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/70576/ft2_4FGL_J1043.2+2408_daily_bin13.fits
.....................!
real 16.47
user 16.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70576/ft1_filtered_4FGL_J1043.2+2408_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/70576/ft2_4FGL_J1043.2+2408_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/70576/ltcube_242697601_242956801_4FGL_J1043.2+2408_daily_bin13.fits outfile=/scratch/kocevski/70576/expmap_242697601_242956801_4FGL_J1043.2+2408_daily_bin13.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/70576/ltcube_242697601_242956801_4FGL_J1043.2+2408_daily_bin13.fits
.....................!
real 194.73
user 188.62
sys 5.70

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/70576/ft1_filtered_4FGL_J1043.2+2408_daily_bin13.fits scfile=/scratch/kocevski/70576/ft2_4FGL_J1043.2+2408_daily_bin13.fits outfile=/scratch/kocevski/70576/cmap_242697601_242956801_4FGL_J1043.2+2408_daily_bin13.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70576/ft1_filtered_4FGL_J1043.2+2408_daily_bin13.fits scfile=/scratch/kocevski/70576/ft2_4FGL_J1043.2+2408_daily_bin13.fits outfile=/scratch/kocevski/70576/cmap_HighResolution_242697601_242956801_4FGL_J1043.2+2408_daily_bin13.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.670       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.371       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0958       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2163       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5347       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.887       1.0000         .10000E-03   10000.    
    16 'norm      '    14.139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1953       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0075       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=   8787.253     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1850 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9713        .20860E-06** at limit **
   2  Prefactor     .10000E-03    .65270       -.77894E-07** at limit **
   3  norm          12.672        6.7679        .22518E-06   -.64909E-04
   4  Prefactor     29.373        25.505        .17964E-05   -.67141E-05
   5  Prefactor     .10000E-03    8.5887       -.36682E-06** at limit **
   6  Prefactor     3.0959        6.1805       -.46022E-06   -.54527E-03
   7  Prefactor     3.2160        2.1613        .98834E-07   -.51428E-03
   8  Prefactor     .10000E-03    3.7541        .25109E-06** at limit **
   9  Prefactor     .10000E-03    2.8214        .11983E-07** at limit **
  10  Prefactor     20.261        26.136        .22938E-04   -.16163E-04
  11  Prefactor     4.5339        5.2689        .12200E-05   -.46871E-05
  12  Prefactor     6.4571        10.067       -.40911E-06   -.15266E-03
  13  Prefactor     .10000E-03    16.909       -.20056E-05** at limit **
  14  Prefactor     .10000E-03    1.0268        .14139E-06** at limit **
  15  Prefactor     16.885        7.1861        .10094E-06   -.12987E-03
  16  norm          14.140        10.485       -.44475E-06   -.11421E-02
  17  Prefactor     .10000E-03    5.3020        .61211E-06** at limit **
  18  Normalizat    1.1952        .15326       -.12335E-05   -.73548E-04
  19  Prefactor     1.0075        .15998       -.15814E-05   -.10049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.672
  Prefactor  = 29.3728
  Prefactor  = 0.0001
  Prefactor  = 3.09587
  Prefactor  = 3.21598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2605
  Prefactor  = 4.53392
  Prefactor  = 6.45713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8853
  norm       = 14.14
  Prefactor  = 0.0001
  Normalizat = 1.19519
  Prefactor  = 1.00749
 **********
 **   18 **HESSE 
 **********

 FCN=   8787.253     FROM HESSE     STATUS=OK           268 CALLS     2118 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9871        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .66278        .73929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.672        6.7663        .11254E-03   -1.4996    
   4  Prefactor     29.373        25.503        .73927E-04   -1.4624    
   5  Prefactor     .10000E-03    8.5897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0959        6.1745        .23049E-03   -1.5356    
   7  Prefactor     3.2160        2.1494        .10580E-03   -1.5349    
   8  Prefactor     .10000E-03    3.7991        .17729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8365        .15368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.261        25.837        .89020E-04   -1.4807    
  11  Prefactor     4.5339        5.2642        .18905E-03   -1.5282    
  12  Prefactor     6.4571        10.054        .15794E-03   -1.5200    
  13  Prefactor     .10000E-03    17.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0420        .92555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.885        7.1142        .97464E-04   -1.4886    
  16  norm          14.140        10.574        .53259E-03   -1.4956    
  17  Prefactor     .10000E-03    22.176        .41264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1952        .17949        .23810E-03   -.86752    
  19  Prefactor     1.0075        .18704        .27560E-03   -.92480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51113e-09
Minuit parameter uncertainties:
  1  5.44034e-06
  2  2.78033e-06
  3  6.76672
  4  25.5126
  5  2.1285e-06
  6  6.17572
  7  2.14942
  8  2.09451e-05
  9  6.17823e-06
  10  25.8512
  11  5.26478
  12  10.0565
  13  7.12731e-05
  14  1.62145e-06
  15  7.11459
  16  10.575
  17  7.14715e-05
  18  0.179586
  19  0.187159
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.216e+00  2.149e+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.007e+00  1.872e-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.195e+00  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.75e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/70576/likelihoodResults_242697601_242956801_4FGL_J1043.2+2408_daily_bin13.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) = 8787.0682797
delta logL = 0.18495355109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8787.05149246
delta logL = 0.201740794842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3550       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6851       1.0000          .0000       10.000    
     3 'Normalizat'    1.1759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0213       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=   8787.051     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3550        26.433        .66771E-02    .11614E-02
   2  Index         2.6850        3.2229        .13240        .15982E-03
   3  Normalizat    1.1760        .58970E-01    .54218E-01    .95221E-05
   4  Prefactor     1.0213        .56441E-01    .61988E-01    .16279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.355
  Index      = 2.68501
  Normalizat = 1.17596
  Prefactor  = 1.02127
 **********
 **   18 **HESSE 
 **********

 FCN=   8787.051     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3550        2.4524        .83705E-04   -1.5401    
   2  Index         2.6850        .67174        .66062E-02   -.48138    
   3  Normalizat    1.1760        .17773        .23974E-03   -.87349    
   4  Prefactor     1.0213        .18845        .27415E-03   -.92024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50184e-09
Minuit parameter uncertainties:
  1  2.45246
  2  0.67434
  3  0.177825
  4  0.18857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70576': 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) = 8787.05149244
delta logL = 0.201740815668

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.355e+00  2.452e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.685e+00  6.743e-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.021e+00  1.886e-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.176e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 160.805 24.146
Photon Index (Free Index): 2.69 +/- 0.67
Photon Flux (Free Index): 6.22e-08 +/- 4.21e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/70576/cmap_HighResolution_242697601_242956801_4FGL_J1043.2+2408_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', comment='SUCCESS', photon_flux='4.75e-08', energy_flux2='1.52e-05', photon_flux_error='3.17e-08', dlogl='2.02e-01', energy_flux='1.74e-05', photon_flux2='6.22e-08', job_status='DONE', time_completed='2021-09-02 08:56:24.237547', photon_index_error2='0.67', photon_index2='2.69', ts='3.55', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.01e-05', EG='1.20', time_epoch_completed='1630598184.24', return_code='0', job_id='70576', GAL2='1.02', EG2='1.18', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='4.21e-08', ts2='3.96', photon_index='2.32' WHERE bin_id='13' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:56:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 70576: <4FGL_J1043.2+2408_daily_bin13> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin13> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:41:15 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:42:06 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:42:06 2021
Terminated at Thu Sep  2 08:56:25 2021
Results reported at Thu Sep  2 08:56:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin13 160.805 24.146 242697601 242956801 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            910 sec.

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

