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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin924
RA = 160.805, Dec = 24.146
tmin = 478828801, tmax = 479088001
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='75794', job_status='RUN', time_executed='2021-09-02 09:04:42.126266', time_epoch_executed='1630598682.13' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75794/ft1_4FGL_J1043.2+2408_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75794/ft2_4FGL_J1043.2+2408_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75794/ft1_4FGL_J1043.2+2408_daily_bin924.fits outfile=/scratch/kocevski/75794/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin924.fits ra=160.805 dec=24.146 rad=12.0 tmin=478828801.0 tmax=479088001.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.49
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75794/ft1_filtered_4FGL_J1043.2+2408_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/75794/ft2_4FGL_J1043.2+2408_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/75794/ltcube_478828801_479088001_4FGL_J1043.2+2408_daily_bin924.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/75794/ft2_4FGL_J1043.2+2408_daily_bin924.fits
.....................!
real 15.75
user 15.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75794/ft1_filtered_4FGL_J1043.2+2408_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/75794/ft2_4FGL_J1043.2+2408_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/75794/ltcube_478828801_479088001_4FGL_J1043.2+2408_daily_bin924.fits outfile=/scratch/kocevski/75794/expmap_478828801_479088001_4FGL_J1043.2+2408_daily_bin924.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/75794/ltcube_478828801_479088001_4FGL_J1043.2+2408_daily_bin924.fits
.....................!
real 192.99
user 187.54
sys 4.63

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/75794/ft1_filtered_4FGL_J1043.2+2408_daily_bin924.fits scfile=/scratch/kocevski/75794/ft2_4FGL_J1043.2+2408_daily_bin924.fits outfile=/scratch/kocevski/75794/cmap_478828801_479088001_4FGL_J1043.2+2408_daily_bin924.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75794/ft1_filtered_4FGL_J1043.2+2408_daily_bin924.fits scfile=/scratch/kocevski/75794/ft2_4FGL_J1043.2+2408_daily_bin924.fits outfile=/scratch/kocevski/75794/cmap_HighResolution_478828801_479088001_4FGL_J1043.2+2408_daily_bin924.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2325       1.0000         .10000E-03   10000.    
     3 'norm      '    17.028       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.518       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49400E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4422       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.458       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9874       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1260       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .85488       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1792       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=   5664.047     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1937 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9591        .90712E-02** at limit **
   2  Prefactor     3.2329        2.5406        .56325E-02    .29466E-03
   3  norm          17.028        7.7428        .24265E-02   -.27619E-04
   4  Prefactor     .10000E-03    10.500        .90712E-02** at limit **
   5  Prefactor     39.518        70.240        .15940E-02    .34567E-03
   6  Prefactor     .10000E-03    3.6370        .76303E-01** at limit **
   7  Prefactor     2.4405        2.4970        .65450E-02    .64937E-03
   8  Prefactor     8.5481        6.9502        .34277E-02    .26313E-02
   9  Prefactor     .10002E-03    6.7284        .90712E-02** at limit **
  10  Prefactor     .10002E-03    8.2001        .90712E-02** at limit **
  11  Prefactor     18.453        13.401        .23306E-02   -.10969E-03
  12  Prefactor     .10000E-03    3.8283        .90712E-02** at limit **
  13  Prefactor     2.9859        18.868        .58719E-02   -.15409E-03
  14  Prefactor     1.3872        2.4282        .92291E-02    .78942E-03
  15  Prefactor     .10000E-03    4.4263        .90712E-02** at limit **
  16  norm          .10001E-03    5.7631        .90712E-02** at limit **
  17  Prefactor     6.1258        11.056        .40552E-02    .17503E-03
  18  Normalizat    .85474        .17627        .44322E-01    .59466E-04
  19  Prefactor     1.1793        .18666        .55282E-01    .29683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.23287
  norm       = 17.0275
  Prefactor  = 0.000100003
  Prefactor  = 39.5179
  Prefactor  = 0.0001
  Prefactor  = 2.44049
  Prefactor  = 8.54813
  Prefactor  = 0.000100024
  Prefactor  = 0.000100019
  Prefactor  = 18.4534
  Prefactor  = 0.0001
  Prefactor  = 2.98594
  Prefactor  = 1.38716
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 6.12576
  Normalizat = 0.854736
  Prefactor  = 1.17934
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.047     FROM HESSE     STATUS=OK           270 CALLS     2207 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9675        .10286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2329        2.5357        .10191E-03   -1.5348    
   3  norm          17.028        7.7443        .97060E-04   -1.4882    
   4  Prefactor     .10000E-03    10.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.518        70.462        .63761E-04   -1.4450    
   6  Prefactor     .10000E-03    37.166        .26769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4405        2.4366        .11058E-03   -1.5396    
   8  Prefactor     8.5481        6.9495        .68553E-03   -1.5123    
   9  Prefactor     .10002E-03    6.7825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    8.2047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.453        13.229        .93225E-04   -1.4849    
  12  Prefactor     .10000E-03    3.8382        .14377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9859        18.415        .23488E-03   -1.5362    
  14  Prefactor     1.3872        2.4037        .14665E-03   -1.5472    
  15  Prefactor     .10000E-03    4.4510        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    5.8222        .17642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1258        11.044        .16221E-03   -1.5213    
  18  Normalizat    .85474        .20344        .24905E-03   -.98069    
  19  Prefactor     1.1793        .21771        .24444E-03   -.86969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23109e-09
Minuit parameter uncertainties:
  1  5.24802e-06
  2  2.53581
  3  7.74479
  4  0.000361054
  5  70.611
  6  0.000239098
  7  2.43665
  8  6.95017
  9  0.000811836
  10  0.000799774
  11  13.2314
  12  9.65129e-06
  13  14.837
  14  2.40382
  15  4.48706e-05
  16  0.00038045
  17  11.0481
  18  0.203626
  19  0.217876
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.440e+00  2.437e+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.179e+00  2.179e-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.547e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.32e-05

TS (Fixed Index): 1.36
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75794/likelihoodResults_478828801_479088001_4FGL_J1043.2+2408_daily_bin924.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) = 5663.30264586
delta logL = 0.74435135407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5663.290416
delta logL = 0.756581211584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65003       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4958       1.0000          .0000       10.000    
     3 'Normalizat'    .80497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2162       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=   5663.290     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      248 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64948        6.5723        .90286E-02    .82495E-03
   2  Index         3.4963        2.6191        .12657        .12604E-03
   3  Normalizat    .80497        .44134E-01    .43675E-01    .14825E-04
   4  Prefactor     1.2162        .49684E-01    .54546E-01    .18479E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.649479
  Index      = 3.4963
  Normalizat = 0.804967
  Prefactor  = 1.21619
 **********
 **   18 **HESSE 
 **********

 FCN=   5663.290     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64948        15.153        .40833E-04   -1.5547    
   2  Index         3.4963        6.7158        .46276E-02   -.30547    
   3  Normalizat    .80497        .21346        .25565E-03   -.99885    
   4  Prefactor     1.2162        .24297        .24117E-03   -.85834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.15381e-07
Minuit parameter uncertainties:
  1  6.27559
  2  5.26582
  3  0.213684
  4  0.243191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75794': 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) = 5663.29041591
delta logL = 0.756581303093

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  6.495e-01  6.276e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  3.496e+00  5.266e+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.216e+00  2.432e-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.050e-01  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 160.805 24.146
Photon Index (Free Index): 3.50 +/- 5.27
Photon Flux (Free Index): 7.32e-08 +/- 5.38e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.69e-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/75794/cmap_HighResolution_478828801_479088001_4FGL_J1043.2+2408_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='1.22e-05', photon_flux_error='3.60e-08', dlogl='7.57e-01', energy_flux='1.32e-05', photon_flux2='7.32e-08', job_status='DONE', time_completed='2021-09-02 09:14:28.135608', photon_index_error2='5.27', photon_index2='3.50', ts='1.36', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.69e-05', EG='0.85', time_epoch_completed='1630599268.14', return_code='0', job_id='75794', GAL2='1.22', EG2='0.80', return_code2='102', energy_flux_error='1.32e-05', photon_flux_error2='5.38e-08', ts2='2.98', photon_index='2.32' WHERE bin_id='924' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:14:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 75794: <4FGL_J1043.2+2408_daily_bin924> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin924> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:33 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:02:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:02:34 2021
Terminated at Thu Sep  2 09:14:28 2021
Results reported at Thu Sep  2 09:14:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin924 160.805 24.146 478828801 479088001 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 :                                   575.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            775 sec.

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

