/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 1 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 = 7390
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin868
RA = 160.805, Dec = 24.146
tmin = 464313601, tmax = 464572801
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='75719', job_status='RUN', time_executed='2021-09-02 09:02:21.758103', time_epoch_executed='1630598541.76' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75719

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75719/ft1_4FGL_J1043.2+2408_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75719/ft2_4FGL_J1043.2+2408_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75719/ft1_4FGL_J1043.2+2408_daily_bin868.fits outfile=/scratch/kocevski/75719/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin868.fits ra=160.805 dec=24.146 rad=12.0 tmin=464313601.0 tmax=464572801.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.91
user 2.68
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75719/ft1_filtered_4FGL_J1043.2+2408_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/75719/ft2_4FGL_J1043.2+2408_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/75719/ltcube_464313601_464572801_4FGL_J1043.2+2408_daily_bin868.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/75719/ft2_4FGL_J1043.2+2408_daily_bin868.fits
.....................!
real 15.04
user 14.36
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75719/ft1_filtered_4FGL_J1043.2+2408_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/75719/ft2_4FGL_J1043.2+2408_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/75719/ltcube_464313601_464572801_4FGL_J1043.2+2408_daily_bin868.fits outfile=/scratch/kocevski/75719/expmap_464313601_464572801_4FGL_J1043.2+2408_daily_bin868.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/75719/ltcube_464313601_464572801_4FGL_J1043.2+2408_daily_bin868.fits
.....................!
real 153.77
user 149.10
sys 3.46

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/75719/ft1_filtered_4FGL_J1043.2+2408_daily_bin868.fits scfile=/scratch/kocevski/75719/ft2_4FGL_J1043.2+2408_daily_bin868.fits outfile=/scratch/kocevski/75719/cmap_464313601_464572801_4FGL_J1043.2+2408_daily_bin868.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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75719/ft1_filtered_4FGL_J1043.2+2408_daily_bin868.fits scfile=/scratch/kocevski/75719/ft2_4FGL_J1043.2+2408_daily_bin868.fits outfile=/scratch/kocevski/75719/cmap_HighResolution_464313601_464572801_4FGL_J1043.2+2408_daily_bin868.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.47
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8225       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.336       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12727E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33101       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.323       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.420       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8663       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7954       1.0000         .10000E-03   10000.    
    16 'norm      '    8.6701       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.906       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89738       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0277       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=   5997.753     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1668 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8218        8.0658        .11301E-07   -.47331E-03
   2  Prefactor     .10000E-03    .50180       -.33909E-09** at limit **
   3  norm          18.333        8.9146       -.14953E-07    .35287E-03
   4  Prefactor     .10000E-03    27.043       -.45998E-09** at limit **
   5  Prefactor     .10166E-03    44.275       -.31277E-07** at limit **
   6  Prefactor     34.321        10.580       -.11074E-07   -.70403E-04
   7  Prefactor     .10000E-03    1.0784       -.95758E-09** at limit **
   8  Prefactor     17.348        8.6597        .94731E-08   -.58086E-03
   9  Prefactor     10.415        11.478        .10118E-06   -.12231E-02
  10  Prefactor     .10000E-03    21.533       -.35985E-08** at limit **
  11  Prefactor     3.8635        9.4362       -.79803E-07    .30992E-04
  12  Prefactor     .10000E-03    8.0398       -.16054E-08** at limit **
  13  Prefactor     .10000E-03    10.854       -.85808E-09** at limit **
  14  Prefactor     .10000E-03    1.2241       -.41168E-09** at limit **
  15  Prefactor     4.7857        2.3783       -.42842E-06   -.33679E-03
  16  norm          8.6751        10.829       -.10207E-07    .98900E-04
  17  Prefactor     17.929        15.348        .75653E-07   -.46864E-04
  18  Normalizat    .89756        .18391        .13489E-07    .16826E-04
  19  Prefactor     1.0277        .18743        .33027E-07    .17302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82179
  Prefactor  = 0.0001
  norm       = 18.3334
  Prefactor  = 0.0001
  Prefactor  = 0.000101655
  Prefactor  = 34.321
  Prefactor  = 0.0001
  Prefactor  = 17.3483
  Prefactor  = 10.4153
  Prefactor  = 0.0001
  Prefactor  = 3.86346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.78574
  norm       = 8.67506
  Prefactor  = 17.9286
  Normalizat = 0.897556
  Prefactor  = 1.02772
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.753     FROM HESSE     STATUS=OK           276 CALLS     1944 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8218        8.0792        .15361E-03   -1.5186    
   2  Prefactor     .10000E-03    .50301        .53569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.333        8.9142        .93533E-04   -1.4851    
   4  Prefactor     .10000E-03    27.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10166E-03    45.816        .15286       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.321        10.601        .68400E-04   -1.4536    
   7  Prefactor     .10000E-03    1.1029        .15684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.348        8.6683        .96150E-04   -1.4875    
   9  Prefactor     10.415        11.388        .12413E-03   -1.5062    
  10  Prefactor     .10000E-03    21.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8635        9.3604        .20522E-03   -1.5315    
  12  Prefactor     .10000E-03    8.1101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2425        .83613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7857        9.1749        .91859E-03   -1.5270    
  16  norm          8.6751        10.835        .13613E-03   -1.5119    
  17  Prefactor     17.929        15.594        .47325E-03   -1.4861    
  18  Normalizat    .89756        .21240        .25830E-03   -.96546    
  19  Prefactor     1.0277        .21577        .25803E-03   -.91811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58691e-09
Minuit parameter uncertainties:
  1  8.08049
  2  8.76439e-08
  3  8.91487
  4  9.00333e-06
  5  0.0174314
  6  10.6019
  7  4.46351e-07
  8  8.66893
  9  11.3903
  10  1.35619e-05
  11  9.36394
  12  1.27506e-06
  13  9.52323e-07
  14  3.02688e-07
  15  9.17757
  16  10.8374
  17  15.5978
  18  0.2126
  19  0.215951
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  4.464e-07  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.028e+00  2.160e-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.976e-01  2.126e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75719/likelihoodResults_464313601_464572801_4FGL_J1043.2+2408_daily_bin868.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): 102
logL (Free Index) = 5997.75729622
delta logL = -0.00429532058479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5997.75300109
delta logL = -1.95013853954e-07

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 'Index     '    2.3259       1.0000          .0000       10.000    
     3 'Normalizat'    .89759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0277       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5997.753     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    1.2723        .15687E-03** at limit **
   2  Index         2.3700        5.0962        .50000       -.17929E-04
   3  Normalizat    .89756        .20101        .25830E-03    .62895E-04
   4  Prefactor     1.0277        .21451        .25803E-03    .73580E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5997.753     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      349 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    1.2723        .12740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3700        5.0962        .23114E-02   -.55389    
   3  Normalizat    .89756        .20101        .11293E-03   -.96546    
   4  Prefactor     1.0277        .21451        .19220E-04   -.91811    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5997.753     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      385 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1233        .31373E-04** at limit **
   2  Index         2.4852        5.8382        .50000       -.22283E-07
   3  Normalizat    .89755        .20132        .10332E-04   -.33692E-03
   4  Prefactor     1.0277        .21478        .10321E-04   -.19452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48521
  Normalizat = 0.897553
  Prefactor  = 1.02772
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.753     FROM HESSE     STATUS=OK            29 CALLS      414 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1150        .62747E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4852        5.7001        .50000       -.52702    
   3  Normalizat    .89755        .20164        .20664E-05   -.96546    
   4  Prefactor     1.0277        .21518        .20642E-05   -.91811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83924e-10
Minuit parameter uncertainties:
  1  2.4988e-06
  2  110.222
  3  0.201813
  4  0.215357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75719': 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) = 5997.75300042
delta logL = 4.79742993775e-07

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.499e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.485e+00  1.102e+02  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.028e+00  2.154e-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.976e-01  2.018e-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/75719/cmap_HighResolution_464313601_464572801_4FGL_J1043.2+2408_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-02 09:10:09.703976', job_id='75719', GAL2='1.03', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630599009.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='868' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:10:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 75719: <4FGL_J1043.2+2408_daily_bin868> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin868> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:25 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:02:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:02:12 2021
Terminated at Thu Sep  2 09:10:10 2021
Results reported at Thu Sep  2 09:10:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin868 160.805 24.146 464313601 464572801 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 :                                   462.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   477 sec.
    Turnaround time :                            525 sec.

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

