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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin473
RA = 160.805, Dec = 24.146
tmin = 361929601, tmax = 362188801
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='73074', job_status='RUN', time_executed='2021-09-02 08:55:01.537239', time_epoch_executed='1630598101.54' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73074

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73074/ft1_4FGL_J1043.2+2408_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73074/ft2_4FGL_J1043.2+2408_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73074/ft1_4FGL_J1043.2+2408_daily_bin473.fits outfile=/scratch/kocevski/73074/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin473.fits ra=160.805 dec=24.146 rad=12.0 tmin=361929601.0 tmax=362188801.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 5.65
user 5.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73074/ft2_4FGL_J1043.2+2408_daily_bin473.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/73074/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin473.fits evtable="EVENTS" outfile="/scratch/kocevski/73074/ft1_filtered_4FGL_J1043.2+2408_daily_bin473.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.58
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73074/ft1_filtered_4FGL_J1043.2+2408_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/73074/ft2_4FGL_J1043.2+2408_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/73074/ltcube_361929601_362188801_4FGL_J1043.2+2408_daily_bin473.fits outfile=/scratch/kocevski/73074/expmap_361929601_362188801_4FGL_J1043.2+2408_daily_bin473.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/73074/ltcube_361929601_362188801_4FGL_J1043.2+2408_daily_bin473.fits
.....................!
real 194.69
user 187.61
sys 4.80

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/73074/ft1_filtered_4FGL_J1043.2+2408_daily_bin473.fits scfile=/scratch/kocevski/73074/ft2_4FGL_J1043.2+2408_daily_bin473.fits outfile=/scratch/kocevski/73074/cmap_361929601_362188801_4FGL_J1043.2+2408_daily_bin473.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.63
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73074/ft1_filtered_4FGL_J1043.2+2408_daily_bin473.fits scfile=/scratch/kocevski/73074/ft2_4FGL_J1043.2+2408_daily_bin473.fits outfile=/scratch/kocevski/73074/cmap_HighResolution_361929601_362188801_4FGL_J1043.2+2408_daily_bin473.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42301E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.581       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4121       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6610       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6732       1.0000         .10000E-03   10000.    
    16 'norm      '    19.068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1701       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0205       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=   5522.838     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1916 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4493       -.14199E-06** at limit **
   2  Prefactor     .10000E-03    .91175        .20892E-07** at limit **
   3  norm          .10000E-03    2.8585        .20698E-07** at limit **
   4  Prefactor     .10000E-03    18.721        .64333E-07** at limit **
   5  Prefactor     30.550        37.530       -.14544E-04   -.10813E-03
   6  Prefactor     3.2201        5.0466       -.88288E-06   -.10251E-03
   7  Prefactor     .10000E-03    1.6888        .98232E-07** at limit **
   8  Prefactor     .10000E-03    9.6925        .49095E-07** at limit **
   9  Prefactor     5.4091        10.716       -.43366E-06   -.72656E-03
  10  Prefactor     9.4039        27.698        .61894E-05    .24987E-04
  11  Prefactor     .10000E-03    6.7469       -.18841E-06** at limit **
  12  Prefactor     .10000E-03    4.3465        .55780E-08** at limit **
  13  Prefactor     1.6563        30.000        .25100E-05   -.63628E-03
  14  Prefactor     .10000E-03    1.3518       -.82951E-08** at limit **
  15  Prefactor     2.6720        4.5623        .33822E-06   -.19009E-02
  16  norm          19.065        15.700        .12844E-05    .34970E-04
  17  Prefactor     .10000E-03    4.9137       -.37688E-07** at limit **
  18  Normalizat    1.1702        .18949        .35020E-06   -.27496E-04
  19  Prefactor     1.0206        .19332       -.37316E-06    .16349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.5503
  Prefactor  = 3.2201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.40907
  Prefactor  = 9.40392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.65632
  Prefactor  = 0.0001
  Prefactor  = 2.67203
  norm       = 19.0647
  Prefactor  = 0.0001
  Normalizat = 1.1702
  Prefactor  = 1.02056
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.838     FROM HESSE     STATUS=OK           268 CALLS     2184 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.075        .38520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .92611        .69275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8640        .12269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.550        37.673        .72453E-04   -1.4602    
   6  Prefactor     3.2201        5.0125        .20011E-03   -1.5349    
   7  Prefactor     .10000E-03    3.3049        .18447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.4091        10.388        .86366E-03   -1.5243    
  10  Prefactor     9.4039        27.694        .13037E-03   -1.5095    
  11  Prefactor     .10000E-03    6.7655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3540        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6563        51.745        .16367E-02   -1.5451    
  14  Prefactor     .10000E-03    1.3736        .84340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6720        5.3730        .11885E-02   -1.5381    
  16  norm          19.065        15.701        .91722E-04   -1.4834    
  17  Prefactor     .10000E-03    4.9230        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1702        .22194        .23513E-03   -.87529    
  19  Prefactor     1.0206        .22749        .26368E-03   -.92047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00277e-08
Minuit parameter uncertainties:
  1  0.000374391
  2  7.91344e-07
  3  1.29414e-06
  4  2.20354e-06
  5  37.7025
  6  5.0132
  7  2.35918e-05
  8  2.32884e-06
  9  10.3919
  10  27.7314
  11  1.38531e-07
  12  2.26752e-06
  13  18.5325
  14  2.57031e-06
  15  5.37394
  16  15.7044
  17  2.1492e-06
  18  0.222122
  19  0.227706
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  2.359e-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.021e+00  2.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.170e+00  2.221e-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: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73074/likelihoodResults_361929601_362188801_4FGL_J1043.2+2408_daily_bin473.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) = 5522.83938738
delta logL = -0.00144242738497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5522.8379469
delta logL = -1.94908807316e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3550       1.0000          .0000       10.000    
     3 'Normalizat'    1.1699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0210       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=   5522.835     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      372 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23783E-01    1.8275        .13481E-01   -.16693E-02
   2  Index         3.6930        1.5042        .50000       -.41545E-05
   3  Normalizat    1.1660        .12643E-01    .23513E-03   -.26592E-04
   4  Prefactor     1.0229        .13400E-01    .26368E-03   -.19143E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0237834
  Index      = 3.69298
  Normalizat = 1.166
  Prefactor  = 1.02291
 **********
 **   18 **HESSE 
 **********

 FCN=   5522.835     FROM HESSE     STATUS=OK            31 CALLS      403 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23783E-01    1.3007        .72486E-03   -1.5739    
   2  Index         3.6930        6.8316        .84973E-02   -.26448    
   3  Normalizat    1.1660        .22103        .94054E-05   -.87660    
   4  Prefactor     1.0229        .22901        .10547E-04   -.91970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22002e-08
Minuit parameter uncertainties:
  1  0.351036
  2  5.77824
  3  0.221204
  4  0.229226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73074': 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) = 5522.83523284
delta logL = 0.00271211053951

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.378e-02  3.510e-01  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.693e+00  5.778e+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.023e+00  2.292e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.166e+00  2.212e-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/73074/cmap_HighResolution_361929601_362188801_4FGL_J1043.2+2408_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-09-02 09:04:43.634386', job_id='73074', GAL2='1.02', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630598683.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.71e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='473' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 73074: <4FGL_J1043.2+2408_daily_bin473> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin473> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  2 08:51:14 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:51:22 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:51:22 2021
Terminated at Thu Sep  2 09:04:44 2021
Results reported at Thu Sep  2 09:04:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin473 160.805 24.146 361929601 362188801 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 :                                   576.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            810 sec.

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

