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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin626
RA = 160.805, Dec = 24.146
tmin = 401587201, tmax = 401846401
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='74462', job_status='RUN', time_executed='2021-09-02 09:01:09.811635', time_epoch_executed='1630598469.81' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74462

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74462/ft1_4FGL_J1043.2+2408_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74462/ft2_4FGL_J1043.2+2408_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74462/ft1_4FGL_J1043.2+2408_daily_bin626.fits outfile=/scratch/kocevski/74462/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin626.fits ra=160.805 dec=24.146 rad=12.0 tmin=401587201.0 tmax=401846401.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 4.26
user 4.01
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74462/ft2_4FGL_J1043.2+2408_daily_bin626.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/74462/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin626.fits evtable="EVENTS" outfile="/scratch/kocevski/74462/ft1_filtered_4FGL_J1043.2+2408_daily_bin626.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.56
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74462/ft1_filtered_4FGL_J1043.2+2408_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/74462/ft2_4FGL_J1043.2+2408_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/74462/ltcube_401587201_401846401_4FGL_J1043.2+2408_daily_bin626.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/74462/ft2_4FGL_J1043.2+2408_daily_bin626.fits
.....................!
real 18.01
user 17.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74462/ft1_filtered_4FGL_J1043.2+2408_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/74462/ft2_4FGL_J1043.2+2408_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/74462/ltcube_401587201_401846401_4FGL_J1043.2+2408_daily_bin626.fits outfile=/scratch/kocevski/74462/expmap_401587201_401846401_4FGL_J1043.2+2408_daily_bin626.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/74462/ltcube_401587201_401846401_4FGL_J1043.2+2408_daily_bin626.fits
.....................!
real 193.89
user 188.36
sys 4.93

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/74462/ft1_filtered_4FGL_J1043.2+2408_daily_bin626.fits scfile=/scratch/kocevski/74462/ft2_4FGL_J1043.2+2408_daily_bin626.fits outfile=/scratch/kocevski/74462/cmap_401587201_401846401_4FGL_J1043.2+2408_daily_bin626.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74462/ft1_filtered_4FGL_J1043.2+2408_daily_bin626.fits scfile=/scratch/kocevski/74462/ft2_4FGL_J1043.2+2408_daily_bin626.fits outfile=/scratch/kocevski/74462/cmap_HighResolution_401587201_401846401_4FGL_J1043.2+2408_daily_bin626.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.61
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2011       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7172       1.0000         .10000E-03   10000.    
     3 'norm      '    .14404       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1286       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1153       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.228       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.928       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84337       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2000       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=   4948.744     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     1956 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2095        7.5451       -.96897E-07    .26568E-03
   2  Prefactor     3.7175        2.9108       -.32752E-06    .12163E-03
   3  norm          .27713E-02    7.9801       -.39233E-05   -.10111E-04
   4  Prefactor     6.1052        36.217       -.76487E-05   -.64327E-05
   5  Prefactor     53.461        60.304       -.38922E-04    .40219E-04
   6  Prefactor     7.1147        7.2690       -.18712E-05   -.12751E-04
   7  Prefactor     .10000E-03    .79537       -.38561E-08** at limit **
   8  Prefactor     18.613        8.6413        .42085E-06    .23432E-04
   9  Prefactor     18.225        10.430       -.13783E-05    .14866E-03
  10  Prefactor     17.909        30.600       -.32180E-04    .25438E-04
  11  Prefactor     .10000E-03    7.0071       -.10845E-05** at limit **
  12  Prefactor     .10000E-03    6.8294        .49571E-06** at limit **
  13  Prefactor     .10000E-03    19.794       -.73767E-06** at limit **
  14  Prefactor     .10000E-03    1.4417       -.35441E-06** at limit **
  15  Prefactor     .10000E-03    2.1216       -.13553E-06** at limit **
  16  norm          .10000E-03    7.0258        .62217E-06** at limit **
  17  Prefactor     .10000E-03    4.0675       -.10384E-06** at limit **
  18  Normalizat    .84333        .19386        .10271E-04    .22168E-03
  19  Prefactor     1.2005        .20512       -.13290E-05    .68697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.20945
  Prefactor  = 3.7175
  norm       = 0.00277126
  Prefactor  = 6.10515
  Prefactor  = 53.4607
  Prefactor  = 7.11475
  Prefactor  = 0.0001
  Prefactor  = 18.613
  Prefactor  = 18.2247
  Prefactor  = 17.9088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.843332
  Prefactor  = 1.20052
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.744     FROM HESSE     STATUS=OK           276 CALLS     2232 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2095        7.5434        .13213E-03   -1.5101    
   2  Prefactor     3.7175        2.9085        .10136E-03   -1.5322    
   3  norm          .27713E-02    3.9301        .11169       -1.5698    
   4  Prefactor     6.1052        36.312        .16217E-03   -1.5214    
   5  Prefactor     53.461        60.332        .54839E-04   -1.4244    
   6  Prefactor     7.1147        7.2631        .15038E-03   -1.5174    
   7  Prefactor     .10000E-03    .80975        .61216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.613        8.6403        .92825E-04   -1.4845    
   9  Prefactor     18.225        10.457        .93811E-04   -1.4854    
  10  Prefactor     17.909        30.662        .94591E-04   -1.4861    
  11  Prefactor     .10000E-03    7.0334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8636        .17946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3353        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.1245        .10007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.1016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0808        .13856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .84333        .22609        .25352E-03   -.98481    
  19  Prefactor     1.2005        .24129        .24424E-03   -.86315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54791e-09
Minuit parameter uncertainties:
  1  7.54418
  2  2.90865
  3  0.204936
  4  29.8056
  5  60.401
  6  7.26397
  7  8.44685e-07
  8  8.64089
  9  10.4582
  10  30.6889
  11  2.2364e-06
  12  7.11856e-06
  13  0.000108704
  14  3.57523e-05
  15  8.43852e-06
  16  6.44955e-05
  17  1.93697e-05
  18  0.226338
  19  0.241508
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  8.447e-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.201e+00  2.415e-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.433e-01  2.263e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74462/likelihoodResults_401587201_401846401_4FGL_J1043.2+2408_daily_bin626.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) = 4948.74933703
delta logL = -0.00570327349033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4948.74363416
delta logL = -4.0469240048e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3084       1.0000          .0000       10.000    
     3 'Normalizat'    .84335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2006       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=   4948.744     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      214 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7811        .90712E-02** at limit **
   2  Index         1.9055        9.0388        .50000       -.77332E-06
   3  Normalizat    .84334        .92751E-02    .44173E-01    .16744E-03
   4  Prefactor     1.2005        .10514E-01    .55237E-01    .17045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90554
  Normalizat = 0.843338
  Prefactor  = 1.20051
 **********
 **   18 **HESSE 
 **********

 FCN=   4948.744     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      245 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.601        .65886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9055        5.8155        .50000       -.66733    
   3  Normalizat    .84334        .44117E-01    .25352E-03   -.98481    
   4  Prefactor     1.2005        .50003E-01    .24424E-03   -.86316    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.81152e-10
Minuit parameter uncertainties:
  1  0.000146351
  2  495.77
  3  0.044119
  4  0.050005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74462': 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) = 4948.74362593
delta logL = 7.82488859841e-06

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  1.464e-04  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.906e+00  4.958e+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.201e+00  5.000e-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:  8.433e-01  4.412e-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/74462/cmap_HighResolution_401587201_401846401_4FGL_J1043.2+2408_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-02 09:10:30.648682', job_id='74462', GAL2='1.20', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630599030.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='7.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='626' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:10:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 74462: <4FGL_J1043.2+2408_daily_bin626> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin626> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 08:56:24 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:57:01 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:57:01 2021
Terminated at Thu Sep  2 09:10:31 2021
Results reported at Thu Sep  2 09:10:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin626 160.805 24.146 401587201 401846401 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 :                                   558.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             248.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            847 sec.

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

