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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin898
RA = 160.805, Dec = 24.146
tmin = 472089601, tmax = 472348801
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='75760', job_status='RUN', time_executed='2021-09-02 09:04:27.928788', time_epoch_executed='1630598667.93' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75760/ft1_4FGL_J1043.2+2408_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75760/ft2_4FGL_J1043.2+2408_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75760/ft1_4FGL_J1043.2+2408_daily_bin898.fits outfile=/scratch/kocevski/75760/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin898.fits ra=160.805 dec=24.146 rad=12.0 tmin=472089601.0 tmax=472348801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.29
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75760/ft1_filtered_4FGL_J1043.2+2408_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/75760/ft2_4FGL_J1043.2+2408_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/75760/ltcube_472089601_472348801_4FGL_J1043.2+2408_daily_bin898.fits outfile=/scratch/kocevski/75760/expmap_472089601_472348801_4FGL_J1043.2+2408_daily_bin898.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/75760/ltcube_472089601_472348801_4FGL_J1043.2+2408_daily_bin898.fits
.....................!
real 194.10
user 187.65
sys 5.72

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/75760/ft1_filtered_4FGL_J1043.2+2408_daily_bin898.fits scfile=/scratch/kocevski/75760/ft2_4FGL_J1043.2+2408_daily_bin898.fits outfile=/scratch/kocevski/75760/cmap_472089601_472348801_4FGL_J1043.2+2408_daily_bin898.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.73
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75760/ft1_filtered_4FGL_J1043.2+2408_daily_bin898.fits scfile=/scratch/kocevski/75760/ft2_4FGL_J1043.2+2408_daily_bin898.fits outfile=/scratch/kocevski/75760/cmap_HighResolution_472089601_472348801_4FGL_J1043.2+2408_daily_bin898.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.60
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50482E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.387       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.330       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56815E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.957       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2924       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2246       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1393       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .69175       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3483       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=   6590.506     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2178 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    10.498        .31762E-02** at limit **
   2  Prefactor     .10000E-03    .71862        .66614E-03** at limit **
   3  norm          20.654        9.1189        .88129E-04    .71337E-04
   4  Prefactor     .10000E-03    32.090        .18142E-02** at limit **
   5  Prefactor     38.385        41.786        .64691E-04   -.84003E-05
   6  Prefactor     10.333        7.0604        .12467E-03   -.94293E-04
   7  Prefactor     .10000E-03    .59256        .60758E-03** at limit **
   8  Prefactor     .10000E-03    39.453        .34368E-02** at limit **
   9  Prefactor     .10000E-03    3.1786        .14102E-02** at limit **
  10  Prefactor     16.959        23.127        .97263E-04    .11455E-04
  11  Prefactor     4.3112        5.4471        .19403E-03   -.16464E-04
  12  Prefactor     .10000E-03    9.4930        .18142E-02** at limit **
  13  Prefactor     .10000E-03    8.0610        .18142E-02** at limit **
  14  Prefactor     1.2894        2.2773        .15722E-03   -.27768E-04
  15  Prefactor     6.2233        6.6066        .80450E-03   -.34485E-03
  16  norm          8.8574        9.4187        .67337E-03   -.16495E-03
  17  Prefactor     7.1406        9.8233        .15013E-03   -.35591E-04
  18  Normalizat    .69161        .18417        .27870E-03   -.51805E-04
  19  Prefactor     1.3485        .20093        .23098E-03   -.68021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 20.6543
  Prefactor  = 0.0001
  Prefactor  = 38.3847
  Prefactor  = 10.3333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.959
  Prefactor  = 4.31122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.28944
  Prefactor  = 6.22333
  norm       = 8.85736
  Prefactor  = 7.14058
  Normalizat = 0.691605
  Prefactor  = 1.34854
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.506     FROM HESSE     STATUS=OK           248 CALLS     2426 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.579        .63523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .71869        .13323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.654        9.1185        .35252E-05   -1.4799    
   4  Prefactor     .10000E-03    32.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.385        41.785        .12938E-04   -1.4468    
   6  Prefactor     10.333        7.0601        .49867E-05   -1.5065    
   7  Prefactor     .10000E-03    .59258        .12152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.917        .13747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1789        .28204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.959        23.129        .38905E-05   -1.4884    
  11  Prefactor     4.3112        5.4469        .77613E-05   -1.5293    
  12  Prefactor     .10000E-03    9.4970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0632        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2894        2.2769        .62887E-05   -1.5481    
  15  Prefactor     6.2233        6.6052        .32180E-04   -1.5209    
  16  norm          8.8574        9.4176        .26935E-04   -1.5113    
  17  Prefactor     7.1406        9.8222        .60051E-05   -1.5173    
  18  Normalizat    .69161        .18425        .11148E-04   -1.0423    
  19  Prefactor     1.3485        .20108        .46196E-04   -.81875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11164e-09
Minuit parameter uncertainties:
  1  0.000660567
  2  1.05895e-06
  3  9.11916
  4  0.000236802
  5  41.8172
  6  7.06068
  7  6.87145e-07
  8  0.000227088
  9  1.4622e-06
  10  23.1407
  11  5.44756
  12  1.02901e-05
  13  2.36173e-06
  14  2.27708
  15  6.606
  16  9.4192
  17  9.82444
  18  0.184414
  19  0.201193
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.871e-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.349e+00  2.012e-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:  6.916e-01  1.844e-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: 4.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75760/likelihoodResults_472089601_472348801_4FGL_J1043.2+2408_daily_bin898.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) = 6590.51392482
delta logL = -0.007614413802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6590.50631082
delta logL = -4.11811925005e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3055       1.0000          .0000       10.000    
     3 'Normalizat'    .69158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3486       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=   6590.506     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      215 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1513        .90712E-02** at limit **
   2  Index         1.8338        9.0328        .50000        .99653E-06
   3  Normalizat    .69161        .82987E-02    .62998E-01    .12401E-05
   4  Prefactor     1.3485        .93265E-02    .52246E-01   -.27482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83383
  Normalizat = 0.691606
  Prefactor  = 1.34854
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.506     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.274        .67407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8338        8.2805        .50000       -.68572    
   3  Normalizat    .69161        .33187E-01    .27870E-03   -1.0423    
   4  Prefactor     1.3485        .37346E-01    .23098E-03   -.81875    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.46205e-09
Minuit parameter uncertainties:
  1  6.11303e-06
  2  328.483
  3  0.0331884
  4  0.0373469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75760': 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): 102
logL (Free Index) = 6590.50629493
delta logL = 1.54790104716e-05

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.113e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.834e+00  3.285e+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.349e+00  3.735e-02  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:  6.916e-01  3.319e-02  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/75760/cmap_HighResolution_472089601_472348801_4FGL_J1043.2+2408_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.45e-08', time_completed='2021-09-02 09:14:56.665747', job_id='75760', GAL2='1.35', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630599296.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='1.55e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='898' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:14:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 75760: <4FGL_J1043.2+2408_daily_bin898> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin898> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:29 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:02:24 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:24 2021
Terminated at Thu Sep  2 09:14:57 2021
Results reported at Thu Sep  2 09:14:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin898 160.805 24.146 472089601 472348801 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 :                                   622.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            808 sec.

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

