/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 223 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 = 7425
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1043.2+2408_daily_bin358
RA = 160.805, Dec = 24.146
tmin = 332121601, tmax = 332380801
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='72118', job_status='RUN', time_executed='2021-09-02 08:51:31.602696', time_epoch_executed='1630597891.6' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72118

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72118/ft1_4FGL_J1043.2+2408_daily_bin358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72118/ft2_4FGL_J1043.2+2408_daily_bin358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72118/ft1_4FGL_J1043.2+2408_daily_bin358.fits outfile=/scratch/kocevski/72118/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin358.fits ra=160.805 dec=24.146 rad=12.0 tmin=332121601.0 tmax=332380801.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.33
user 3.10
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72118/ft1_filtered_4FGL_J1043.2+2408_daily_bin358.fits" evtable="EVENTS" scfile=/scratch/kocevski/72118/ft2_4FGL_J1043.2+2408_daily_bin358.fits sctable="SC_DATA" outfile=/scratch/kocevski/72118/ltcube_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.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/72118/ft2_4FGL_J1043.2+2408_daily_bin358.fits
.....................!
real 14.29
user 13.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72118/ft1_filtered_4FGL_J1043.2+2408_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/72118/ft2_4FGL_J1043.2+2408_daily_bin358.fits sctable="SC_DATA" expcube=/scratch/kocevski/72118/ltcube_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.fits outfile=/scratch/kocevski/72118/expmap_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.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/72118/ltcube_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.fits
.....................!
real 193.40
user 187.81
sys 4.69

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/72118/ft1_filtered_4FGL_J1043.2+2408_daily_bin358.fits scfile=/scratch/kocevski/72118/ft2_4FGL_J1043.2+2408_daily_bin358.fits outfile=/scratch/kocevski/72118/cmap_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.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.55
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72118/ft1_filtered_4FGL_J1043.2+2408_daily_bin358.fits scfile=/scratch/kocevski/72118/ft2_4FGL_J1043.2+2408_daily_bin358.fits outfile=/scratch/kocevski/72118/cmap_HighResolution_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72118/ft1_filtered_4FGL_J1043.2+2408_daily_bin358.fits', '/scratch/kocevski/72118/ft2_4FGL_J1043.2+2408_daily_bin358.fits', expMap='/scratch/kocevski/72118/expmap_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.fits', expCube='/scratch/kocevski/72118/ltcube_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72118/Model_4FGL_J1043.2+2408_daily_bin358.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/72118/ft1_filtered_4FGL_J1043.2+2408_daily_bin358.fits
Spacecraft file(s): /scratch/kocevski/72118/ft2_4FGL_J1043.2+2408_daily_bin358.fits
Exposure map: /scratch/kocevski/72118/expmap_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.fits
Exposure cube: /scratch/kocevski/72118/ltcube_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72118/Model_4FGL_J1043.2+2408_daily_bin358.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5698.39085005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43623E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .73973       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0446       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9918       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6086       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.177       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3153       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1620       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0274       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=   5697.995     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1976 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5160        5.2842        .33020E-07    .94685E-04
   2  Prefactor     .10000E-03    .54048       -.71633E-08** at limit **
   3  norm          3.5710        5.6245        .15547E-05    .12728E-02
   4  Prefactor     .10000E-03    23.782       -.70836E-07** at limit **
   5  Prefactor     .10000E-03    20.673        .31176E-07** at limit **
   6  Prefactor     .10211E-03    8.8095       -.21681E-05** at limit **
   7  Prefactor     .74256        2.0238        .33193E-07    .25947E-03
   8  Prefactor     .10000E-03    5.9113       -.30048E-07** at limit **
   9  Prefactor     4.0606        13.093        .15922E-05    .85427E-04
  10  Prefactor     8.0452        14.811        .45448E-06    .19729E-04
  11  Prefactor     .10372E-03    31.741        .41521E-05** at limit **
  12  Prefactor     5.9875        8.5117        .12675E-05    .13357E-03
  13  Prefactor     1.5575        85.730        .15951E-05    .75086E-04
  14  Prefactor     2.0564        2.4858       -.10433E-06   -.41903E-04
  15  Prefactor     .10000E-03    2.5369        .12851E-07** at limit **
  16  norm          12.174        11.773       -.42422E-06   -.28890E-04
  17  Prefactor     3.3137        7.3381        .24607E-06    .39266E-04
  18  Normalizat    1.1621        .18203       -.94031E-07    .21500E-03
  19  Prefactor     1.0273        .18831        .12726E-06    .16316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51605
  Prefactor  = 0.0001
  norm       = 3.57099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102111
  Prefactor  = 0.742561
  Prefactor  = 0.0001
  Prefactor  = 4.06061
  Prefactor  = 8.04523
  Prefactor  = 0.000103717
  Prefactor  = 5.98754
  Prefactor  = 1.55748
  Prefactor  = 2.05637
  Prefactor  = 0.0001
  norm       = 12.174
  Prefactor  = 3.31369
  Normalizat = 1.16215
  Prefactor  = 1.02734
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.995     FROM HESSE     STATUS=OK           294 CALLS     2270 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5160        5.2666        .24140E-03   -1.5391    
   2  Prefactor     .10000E-03    .54324        .54189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5710        5.7684        .10694E-02   -1.5330    
   4  Prefactor     .10000E-03    23.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10211E-03    7.5529        .49719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .74256        1.9286        .16043E-03   -1.5536    
   8  Prefactor     .10000E-03    53.373        .35041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0606        14.248        .20050E-03   -1.5305    
  10  Prefactor     8.0452        14.778        .14134E-03   -1.5141    
  11  Prefactor     .10372E-03    19.314        .64596E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9875        8.3016        .16404E-03   -1.5219    
  13  Prefactor     1.5575        86.495        .33403E-03   -1.5458    
  14  Prefactor     2.0564        2.4675        .12329E-03   -1.5421    
  15  Prefactor     .10000E-03    2.5441        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.174        11.743        .11480E-03   -1.5010    
  17  Prefactor     3.3137        7.3150        .22233E-03   -1.5344    
  18  Normalizat    1.1621        .21017        .22454E-03   -.87781    
  19  Prefactor     1.0273        .21901        .26244E-03   -.91824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13369e-09
Minuit parameter uncertainties:
  1  5.26761
  2  3.24625e-07
  3  5.76928
  4  1.03255e-05
  5  6.74681e-06
  6  0.00798779
  7  1.92881
  8  0.000288728
  9  14.26
  10  14.7845
  11  0.0169506
  12  8.30316
  13  23.2479
  14  2.46767
  15  4.76054e-06
  16  11.7451
  17  7.31697
  18  0.210325
  19  0.219203
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  7.426e-01  1.929e+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.027e+00  2.192e-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.162e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/72118/likelihoodResults_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.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) = 5697.64357566
delta logL = 0.351365032951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5697.60610059
delta logL = 0.38884010426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36135       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5498       1.0000          .0000       10.000    
     3 'Normalizat'    1.1197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0537       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=   5697.606     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36107        6.7108        .10691E-01    .17958E-02
   2  Index         3.5505        3.2975        .11945        .14898E-03
   3  Normalizat    1.1196        .36646E-01    .37250E-01    .53899E-05
   4  Prefactor     1.0537        .40732E-01    .58676E-01    .69017E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.361073
  Index      = 3.55048
  Normalizat = 1.11964
  Prefactor  = 1.05373
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.606     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      261 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36107        20.880        .48877E-03   -1.5588    
   2  Index         3.5505        6.5213        .71705E-02   -.29413    
   3  Normalizat    1.1196        .17050        .22814E-03   -.89124    
   4  Prefactor     1.0537        .18721        .25947E-03   -.90959    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4105e-10
Minuit parameter uncertainties:
  1  5.4928
  2  8.28493
  3  0.170585
  4  0.18733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72118': 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) = 5697.60610038
delta logL = 0.388840312386

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  3.611e-01  5.493e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.550e+00  8.285e+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.054e+00  1.873e-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.120e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 160.805 24.146
Photon Index (Free Index): 3.55 +/- 8.28
Photon Flux (Free Index): 4.51e-08 +/- 5.15e-08
Energy Flux (Free Index): 7.40e-06 +/- 1.49e-05

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/72118/cmap_HighResolution_332121601_332380801_4FGL_J1043.2+2408_daily_bin358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', comment='SUCCESS', energy_flux2='7.40e-06', dlogl='3.89e-01', photon_flux2='4.51e-08', job_status='DONE', time_completed='2021-09-02 09:01:20.220749', photon_index_error2='8.28', photon_index2='3.55', ts='0.20', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='8.55e-08', energy_flux_error2='1.49e-05', EG='1.16', time_epoch_completed='1630598480.22', return_code='0', job_id='72118', GAL2='1.05', EG2='1.12', return_code2='102', photon_flux_error2='5.15e-08', ts2='1.02', photon_index='2.32' WHERE bin_id='358' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 72118: <4FGL_J1043.2+2408_daily_bin358> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin358> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:48 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:47:39 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:47:39 2021
Terminated at Thu Sep  2 09:01:21 2021
Results reported at Thu Sep  2 09:01:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin358 160.805 24.146 332121601 332380801 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 :                                   586.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            873 sec.

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

