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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin704
RA = 160.805, Dec = 24.146
tmin = 421804801, tmax = 422064001
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='74597', job_status='RUN', time_executed='2021-09-02 08:59:41.704924', time_epoch_executed='1630598381.7' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74597/ft1_4FGL_J1043.2+2408_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74597/ft2_4FGL_J1043.2+2408_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74597/ft1_4FGL_J1043.2+2408_daily_bin704.fits outfile=/scratch/kocevski/74597/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin704.fits ra=160.805 dec=24.146 rad=12.0 tmin=421804801.0 tmax=422064001.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.94
user 2.71
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74597/ft1_filtered_4FGL_J1043.2+2408_daily_bin704.fits" evtable="EVENTS" scfile=/scratch/kocevski/74597/ft2_4FGL_J1043.2+2408_daily_bin704.fits sctable="SC_DATA" outfile=/scratch/kocevski/74597/ltcube_421804801_422064001_4FGL_J1043.2+2408_daily_bin704.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/74597/ft2_4FGL_J1043.2+2408_daily_bin704.fits
.....................!
real 14.94
user 14.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74597/ft1_filtered_4FGL_J1043.2+2408_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/74597/ft2_4FGL_J1043.2+2408_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/74597/ltcube_421804801_422064001_4FGL_J1043.2+2408_daily_bin704.fits outfile=/scratch/kocevski/74597/expmap_421804801_422064001_4FGL_J1043.2+2408_daily_bin704.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/74597/ltcube_421804801_422064001_4FGL_J1043.2+2408_daily_bin704.fits
.....................!
real 155.81
user 151.19
sys 4.04

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/74597/ft1_filtered_4FGL_J1043.2+2408_daily_bin704.fits scfile=/scratch/kocevski/74597/ft2_4FGL_J1043.2+2408_daily_bin704.fits outfile=/scratch/kocevski/74597/cmap_421804801_422064001_4FGL_J1043.2+2408_daily_bin704.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 1.14
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74597/ft1_filtered_4FGL_J1043.2+2408_daily_bin704.fits scfile=/scratch/kocevski/74597/ft2_4FGL_J1043.2+2408_daily_bin704.fits outfile=/scratch/kocevski/74597/cmap_HighResolution_421804801_422064001_4FGL_J1043.2+2408_daily_bin704.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.93
user 0.34
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5372       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10719E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.468       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71289E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.845       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .69334       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0413       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0194       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=   5424.931     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1950 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5370        6.1936       -.34211E-07    .16029E-05
   2  Prefactor     .10000E-03    1.6985        .12536E-06** at limit **
   3  norm          .10000E-03    4.2785        .57590E-07** at limit **
   4  Prefactor     .10000E-03    21.178       -.11590E-05** at limit **
   5  Prefactor     38.428        45.289        .49729E-05    .46292E-04
   6  Prefactor     .10009E-03    8.7945        .26899E-07** at limit **
   7  Prefactor     .53360        2.0341        .29705E-06    .45722E-04
   8  Prefactor     1.1672        8.6925        .22517E-05    .14740E-03
   9  Prefactor     .10000E-03    9.2170        .27347E-06** at limit **
  10  Prefactor     .10000E-03    14.828        .16076E-06** at limit **
  11  Prefactor     2.9483        6.9620        .61426E-05    .77725E-03
  12  Prefactor     .10000E-03    25.107        .99774E-06** at limit **
  13  Prefactor     13.844        11.863       -.59940E-06   -.82658E-04
  14  Prefactor     2.9096        3.1022       -.14430E-06   -.66019E-03
  15  Prefactor     .10000E-03    9.5282       -.28980E-07** at limit **
  16  norm          .66647        37.229        .18852E-04   -.31533E-03
  17  Prefactor     .10000E-03    5.2352        .34085E-07** at limit **
  18  Normalizat    1.0418        .18970       -.11322E-05   -.25839E-03
  19  Prefactor     1.0190        .19230       -.73500E-06   -.26613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.53701
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.4275
  Prefactor  = 0.000100085
  Prefactor  = 0.533604
  Prefactor  = 1.16721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.94833
  Prefactor  = 0.0001
  Prefactor  = 13.8439
  Prefactor  = 2.90959
  Prefactor  = 0.0001
  norm       = 0.666468
  Prefactor  = 0.0001
  Normalizat = 1.04181
  Prefactor  = 1.01895
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.931     FROM HESSE     STATUS=OK           276 CALLS     2226 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5370        6.1809        .17074E-03   -1.5237    
   2  Prefactor     .10000E-03    4.1967        .18571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3055        .14876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.428        45.374        .64622E-04   -1.4467    
   6  Prefactor     .10009E-03    14.563        .52038E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .53360        1.9606        .18649E-03   -1.5562    
   8  Prefactor     1.1672        8.8535        .41213E-03   -1.5492    
   9  Prefactor     .10000E-03    9.3725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9483        8.1472        .11826E-02   -1.5365    
  12  Prefactor     .10000E-03    25.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.844        11.900        .10765E-03   -1.4964    
  14  Prefactor     2.9096        3.0885        .12731E-03   -1.5367    
  15  Prefactor     .10000E-03    9.8205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .66647        60.762        .46829E-02   -1.5545    
  17  Prefactor     .10000E-03    5.2497        .16458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0418        .22058        .23479E-03   -.91643    
  19  Prefactor     1.0190        .22466        .25160E-03   -.92100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29953e-09
Minuit parameter uncertainties:
  1  6.18159
  2  2.6171e-05
  3  6.90952e-06
  4  1.83228e-05
  5  45.4144
  6  0.00222722
  7  1.96079
  8  6.43033
  9  5.28114e-06
  10  2.36941e-05
  11  8.1503
  12  0.000157296
  13  11.9023
  14  3.08869
  15  2.25656e-05
  16  12.7396
  17  2.18234e-06
  18  0.220771
  19  0.224869
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  5.336e-01  1.961e+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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.019e+00  2.249e-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.042e+00  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74597/likelihoodResults_421804801_422064001_4FGL_J1043.2+2408_daily_bin704.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5424.86429127
delta logL = 0.0665169774675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5424.86280792
delta logL = 0.0680003213465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58732       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5941       1.0000          .0000       10.000    
     3 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0114       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=   5424.863     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      259 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58726        1.5998        .16034E-02    .59147E-03
   2  Index         1.5942        1.2984        .15080E-01    .37254E-04
   3  Normalizat    1.0508        .20980        .23388E-03   -.13951E-04
   4  Prefactor     1.0114        .22380        .25240E-03   -.11576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.587259
  Index      = 1.59422
  Normalizat = 1.05083
  Prefactor  = 1.01136
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.863     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58726        1.5937        .64135E-04   -1.5555    
   2  Index         1.5942        1.2961        .60320E-03   -.74934    
   3  Normalizat    1.0508        .21002        .93553E-05   -.91347    
   4  Prefactor     1.0114        .22406        .10096E-04   -.92352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43257e-10
Minuit parameter uncertainties:
  1  1.59379
  2  1.32481
  3  0.210182
  4  0.22427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74597': 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) = 5424.86280792
delta logL = 0.0680003262578

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  5.873e-01  1.594e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.594e+00  1.325e+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.011e+00  2.243e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.051e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/74597/cmap_HighResolution_421804801_422064001_4FGL_J1043.2+2408_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-02 09:07:25.662914', job_id='74597', GAL2='1.01', fit_tolerance='1e-08', EG2='1.05', EG='1.04', time_epoch_completed='1630598845.66', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.80e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='704' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:07:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 74597: <4FGL_J1043.2+2408_daily_bin704> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin704 160.805 24.146 421804801 422064001 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 :                                   455.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            652 sec.

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

