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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin407
RA = 160.805, Dec = 24.146
tmin = 344822401, tmax = 345081601
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='72989', job_status='RUN', time_executed='2021-09-02 08:51:25.850566', time_epoch_executed='1630597885.85' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72989

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72989/ft1_4FGL_J1043.2+2408_daily_bin407.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72989/ft2_4FGL_J1043.2+2408_daily_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72989/ft1_4FGL_J1043.2+2408_daily_bin407.fits outfile=/scratch/kocevski/72989/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin407.fits ra=160.805 dec=24.146 rad=12.0 tmin=344822401.0 tmax=345081601.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.40
user 3.17
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72989/ft1_filtered_4FGL_J1043.2+2408_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/72989/ft2_4FGL_J1043.2+2408_daily_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/72989/ltcube_344822401_345081601_4FGL_J1043.2+2408_daily_bin407.fits outfile=/scratch/kocevski/72989/expmap_344822401_345081601_4FGL_J1043.2+2408_daily_bin407.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/72989/ltcube_344822401_345081601_4FGL_J1043.2+2408_daily_bin407.fits
.....................!
real 193.31
user 186.30
sys 6.23

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/72989/ft1_filtered_4FGL_J1043.2+2408_daily_bin407.fits scfile=/scratch/kocevski/72989/ft2_4FGL_J1043.2+2408_daily_bin407.fits outfile=/scratch/kocevski/72989/cmap_344822401_345081601_4FGL_J1043.2+2408_daily_bin407.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72989/ft1_filtered_4FGL_J1043.2+2408_daily_bin407.fits scfile=/scratch/kocevski/72989/ft2_4FGL_J1043.2+2408_daily_bin407.fits outfile=/scratch/kocevski/72989/cmap_HighResolution_344822401_345081601_4FGL_J1043.2+2408_daily_bin407.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3331       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4634       1.0000         .10000E-03   10000.    
     3 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.081       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.129       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4249       1.0000         .10000E-03   10000.    
    16 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97735       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1533       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=   6557.938     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1676 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3334        7.7342        .18183E-06   -.31725E-04
   2  Prefactor     5.4631        3.1166        .35421E-07   -.90610E-04
   3  norm          .10000E-03    4.3211        .22419E-06** at limit **
   4  Prefactor     23.081        24.300       -.22344E-06   -.28480E-04
   5  Prefactor     .10000E-03    238.77       -.19755E-05** at limit **
   6  Prefactor     11.130        7.0075       -.12406E-06   -.42259E-04
   7  Prefactor     .10000E-03    1.7539        .51466E-07** at limit **
   8  Prefactor     5.4230        4.7812        .14971E-05   -.19752E-02
   9  Prefactor     .10000E-03    9.5014       -.18489E-05** at limit **
  10  Prefactor     .10000E-03    11.911       -.51431E-05** at limit **
  11  Prefactor     14.179        9.4334        .10075E-05    .42358E-03
  12  Prefactor     .10000E-03    3.6692        .35166E-07** at limit **
  13  Prefactor     .10000E-03    7.5682        .23165E-06** at limit **
  14  Prefactor     .10000E-03    1.2619        .60168E-07** at limit **
  15  Prefactor     6.4249        6.1963        .44357E-07   -.56137E-04
  16  norm          .10000E-03    11.037        .65850E-05** at limit **
  17  Prefactor     .10000E-03    3.3241        .55863E-08** at limit **
  18  Normalizat    .97739        .17094       -.57231E-06   -.84221E-04
  19  Prefactor     1.1532        .17932       -.13707E-06   -.82422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.33345
  Prefactor  = 5.46309
  norm       = 0.000100001
  Prefactor  = 23.0812
  Prefactor  = 0.0001
  Prefactor  = 11.1301
  Prefactor  = 0.0001
  Prefactor  = 5.42301
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 14.1787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42486
  norm       = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 0.977395
  Prefactor  = 1.15322
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.938     FROM HESSE     STATUS=OK           268 CALLS     1944 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3334        7.6776        .13118E-03   -1.5097    
   2  Prefactor     5.4631        3.1152        .10251E-03   -1.5240    
   3  norm          .10000E-03    24.977        .32036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.081        24.303        .83376E-04   -1.4747    
   5  Prefactor     .10000E-03    242.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.130        6.9031        .12009E-03   -1.5041    
   7  Prefactor     .10000E-03    3.5842        .20157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4230        6.9927        .86276E-03   -1.5242    
   9  Prefactor     .10000E-03    9.7716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.179        9.4715        .10638E-03   -1.4955    
  12  Prefactor     .10000E-03    3.6763        .15146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.2728        .17428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4249        6.1934        .15834E-03   -1.5201    
  16  norm          .10000E-03    11.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3299        .14418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .97739        .20011        .25042E-03   -.93792    
  19  Prefactor     1.1532        .21182        .25301E-03   -.87783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26507e-09
Minuit parameter uncertainties:
  1  7.67846
  2  3.11532
  3  0.00025257
  4  24.3133
  5  0.000524028
  6  6.90362
  7  6.25806e-06
  8  6.99374
  9  0.000165595
  10  0.000407029
  11  9.47247
  12  1.7015e-06
  13  2.97409e-06
  14  4.35875e-06
  15  6.19403
  16  0.0004315
  17  3.06501e-07
  18  0.200267
  19  0.211977
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.258e-06  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.153e+00  2.120e-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:  9.774e-01  2.003e-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: 7.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72989/likelihoodResults_344822401_345081601_4FGL_J1043.2+2408_daily_bin407.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) = 6557.93964273
delta logL = -0.00132958192353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6557.93830754
delta logL = 5.61149681744e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14474E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4380       1.0000          .0000       10.000    
     3 'Normalizat'    .97718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1535       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=   6557.590     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      277 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14343        2.0556        .83117E-02   -.73712E-02
   2  Index         4.0067        2.2714        .18019       -.22585E-03
   3  Normalizat    .92944        .26477E-01    .45880E-01   -.37498E-03
   4  Prefactor     1.1824        .28964E-01    .56584E-01   -.33592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.143433
  Index      = 4.0067
  Normalizat = 0.929438
  Prefactor  = 1.18235
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.590     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14343        11.109        .37309E-04   -1.5632    
   2  Index         4.0067        6.7525        .62709E-02   -.19999    
   3  Normalizat    .92944        .17460        .25590E-03   -.95433    
   4  Prefactor     1.1824        .18994        .25020E-03   -.86876    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81733e-08
Minuit parameter uncertainties:
  1  2.52418
  2  8.93134
  3  0.174706
  4  0.19005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72989': 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) = 6557.5895345
delta logL = 0.348778646347

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.434e-01  2.524e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  4.007e+00  8.931e+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.182e+00  1.900e-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:  9.294e-01  1.747e-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/72989/cmap_HighResolution_344822401_345081601_4FGL_J1043.2+2408_daily_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-02 09:01:22.867492', job_id='72989', GAL2='1.18', fit_tolerance='1e-08', EG2='0.93', EG='0.98', time_epoch_completed='1630598482.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.49e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='407' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:01:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 72989: <4FGL_J1043.2+2408_daily_bin407> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin407 160.805 24.146 344822401 345081601 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 :                                   593.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            619 sec.

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

