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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin21
RA = 160.805, Dec = 24.146
tmin = 244771201, tmax = 245030401
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='70586', job_status='RUN', time_executed='2021-09-02 08:42:38.270003', time_epoch_executed='1630597358.27' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70586/ft1_4FGL_J1043.2+2408_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70586/ft2_4FGL_J1043.2+2408_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70586/ft1_4FGL_J1043.2+2408_daily_bin21.fits outfile=/scratch/kocevski/70586/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin21.fits ra=160.805 dec=24.146 rad=12.0 tmin=244771201.0 tmax=245030401.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.49
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70586/ft1_filtered_4FGL_J1043.2+2408_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/70586/ft2_4FGL_J1043.2+2408_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/70586/ltcube_244771201_245030401_4FGL_J1043.2+2408_daily_bin21.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/70586/ft2_4FGL_J1043.2+2408_daily_bin21.fits
.....................!
real 18.19
user 17.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70586/ft1_filtered_4FGL_J1043.2+2408_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/70586/ft2_4FGL_J1043.2+2408_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/70586/ltcube_244771201_245030401_4FGL_J1043.2+2408_daily_bin21.fits outfile=/scratch/kocevski/70586/expmap_244771201_245030401_4FGL_J1043.2+2408_daily_bin21.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/70586/ltcube_244771201_245030401_4FGL_J1043.2+2408_daily_bin21.fits
.....................!
real 193.30
user 187.29
sys 5.31

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/70586/ft1_filtered_4FGL_J1043.2+2408_daily_bin21.fits scfile=/scratch/kocevski/70586/ft2_4FGL_J1043.2+2408_daily_bin21.fits outfile=/scratch/kocevski/70586/cmap_244771201_245030401_4FGL_J1043.2+2408_daily_bin21.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70586/ft1_filtered_4FGL_J1043.2+2408_daily_bin21.fits scfile=/scratch/kocevski/70586/ft2_4FGL_J1043.2+2408_daily_bin21.fits outfile=/scratch/kocevski/70586/cmap_HighResolution_244771201_245030401_4FGL_J1043.2+2408_daily_bin21.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=160.805 yref=24.146 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    38.235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.482       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.541       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1143       1.0000         .10000E-03   10000.    
    16 'norm      '    24.233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .80105       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1346       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=   4907.102     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1611 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.614        .18749E-05** at limit **
   2  Prefactor     .10000E-03    .87825       -.19742E-06** at limit **
   3  norm          38.236        12.629       -.10863E-05    .50573E-04
   4  Prefactor     .10000E-03    18.364        .79994E-06** at limit **
   5  Prefactor     43.477        43.582       -.57842E-05    .98311E-04
   6  Prefactor     .10000E-03    1.5845       -.12340E-06** at limit **
   7  Prefactor     .10000E-03    1.4857       -.25928E-06** at limit **
   8  Prefactor     3.6376        7.2742       -.34828E-05   -.36375E-03
   9  Prefactor     .10000E-03    7.9082        .48941E-05** at limit **
  10  Prefactor     1.8300        143.51       -.23673E-03    .59509E-04
  11  Prefactor     28.533        13.918       -.35106E-05   -.85693E-04
  12  Prefactor     .10000E-03    4.1804        .11401E-06** at limit **
  13  Prefactor     .10000E-03    8.1460        .54902E-06** at limit **
  14  Prefactor     .10000E-03    1.5360       -.28657E-07** at limit **
  15  Prefactor     7.1133        6.7001       -.12639E-05   -.57023E-03
  16  norm          24.233        13.865       -.14372E-05    .10400E-03
  17  Prefactor     .10000E-03    8.6141       -.78604E-05** at limit **
  18  Normalizat    .80095        .17931        .11202E-04    .72211E-03
  19  Prefactor     1.1348        .19330        .26370E-05    .92243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 38.2362
  Prefactor  = 0.0001
  Prefactor  = 43.4774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63764
  Prefactor  = 0.0001
  Prefactor  = 1.83001
  Prefactor  = 28.5334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.11327
  norm       = 24.233
  Prefactor  = 0.0001
  Normalizat = 0.800952
  Prefactor  = 1.13483
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.102     FROM HESSE     STATUS=OK           262 CALLS     1873 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .89900        .64095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          38.236        12.630        .64818E-04   -1.4470    
   4  Prefactor     .10000E-03    18.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.477        43.585        .60797E-04   -1.4388    
   6  Prefactor     .10000E-03    1.5869        .86107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5410        .16651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6376        7.2728        .21176E-03   -1.5326    
   9  Prefactor     .10000E-03    7.9707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8300        146.51        .30448E-03   -1.5437    
  11  Prefactor     28.533        13.915        .74992E-04   -1.4639    
  12  Prefactor     .10000E-03    4.1878        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.1668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1234        .16793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1133        6.7054        .75197E-03   -1.5174    
  16  norm          24.233        13.878        .81372E-04   -1.4723    
  17  Prefactor     .10000E-03    8.6786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .80095        .20605        .25180E-03   -1.0003    
  19  Prefactor     1.1348        .22415        .24078E-03   -.88361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38315e-09
Minuit parameter uncertainties:
  1  0.000379811
  2  1.2897e-05
  3  12.6307
  4  9.22753e-05
  5  43.6174
  6  8.65257e-06
  7  2.47511e-05
  8  7.27457
  9  5.26277e-05
  10  32.8307
  11  13.917
  12  1.11056e-05
  13  3.60573e-05
  14  1.96196e-05
  15  6.70606
  16  13.8801
  17  6.40418e-05
  18  0.206247
  19  0.224339
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.475e-05  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.135e+00  2.243e-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:  8.010e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70586/likelihoodResults_244771201_245030401_4FGL_J1043.2+2408_daily_bin21.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) = 4907.10553806
delta logL = -0.00308738913554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4907.1024509
delta logL = -2.28616045206e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3293       1.0000          .0000       10.000    
     3 'Normalizat'    .80100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4907.102     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5769        .16669E-03** at limit **
   2  Index         2.3360        6.1680        .50000       -.37356E-04
   3  Normalizat    .80095        .19790        .25180E-03   -.16119E-04
   4  Prefactor     1.1348        .22256        .24078E-03   -.18414E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.33604
  Normalizat = 0.800952
  Prefactor  = 1.13483
 **********
 **   18 **HESSE 
 **********

 FCN=   4907.102     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5468        .33339E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3360        6.1679        .50000       -.56190    
   3  Normalizat    .80095        .19808        .10072E-04   -1.0003    
   4  Prefactor     1.1348        .22276        .96312E-05   -.88361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93092e-09
Minuit parameter uncertainties:
  1  0.000118064
  2  4.23277
  3  0.198256
  4  0.222942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70586': 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) = 4907.10245055
delta logL = 1.17081071949e-07

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.181e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.336e+00  4.233e+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:  1.135e+00  2.229e-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:  8.010e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 160.805 24.146

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/70586/cmap_HighResolution_244771201_245030401_4FGL_J1043.2+2408_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-02 08:51:35.634466', job_id='70586', GAL2='1.13', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630597895.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='21' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 70586: <4FGL_J1043.2+2408_daily_bin21> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin21 160.805 24.146 244771201 245030401 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 :                                   511.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            620 sec.

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

