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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin656
RA = 160.805, Dec = 24.146
tmin = 409363201, tmax = 409622401
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='74519', job_status='RUN', time_executed='2021-09-02 09:00:16.826137', time_epoch_executed='1630598416.83' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74519/ft1_4FGL_J1043.2+2408_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74519/ft2_4FGL_J1043.2+2408_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74519/ft1_4FGL_J1043.2+2408_daily_bin656.fits outfile=/scratch/kocevski/74519/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin656.fits ra=160.805 dec=24.146 rad=12.0 tmin=409363201.0 tmax=409622401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.63
user 5.35
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74519/ft1_filtered_4FGL_J1043.2+2408_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/74519/ft2_4FGL_J1043.2+2408_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/74519/ltcube_409363201_409622401_4FGL_J1043.2+2408_daily_bin656.fits outfile=/scratch/kocevski/74519/expmap_409363201_409622401_4FGL_J1043.2+2408_daily_bin656.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/74519/ltcube_409363201_409622401_4FGL_J1043.2+2408_daily_bin656.fits
.....................!
real 191.58
user 186.94
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/74519/ft1_filtered_4FGL_J1043.2+2408_daily_bin656.fits scfile=/scratch/kocevski/74519/ft2_4FGL_J1043.2+2408_daily_bin656.fits outfile=/scratch/kocevski/74519/cmap_409363201_409622401_4FGL_J1043.2+2408_daily_bin656.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74519/ft1_filtered_4FGL_J1043.2+2408_daily_bin656.fits scfile=/scratch/kocevski/74519/ft2_4FGL_J1043.2+2408_daily_bin656.fits outfile=/scratch/kocevski/74519/cmap_HighResolution_409363201_409622401_4FGL_J1043.2+2408_daily_bin656.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1414       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0460       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.021       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.047       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7849       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.732       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6476       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    32.556       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87548       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93029       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=   4656.497     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1866 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8561        6.8879        .38310E-02    .17768E-03
   2  Prefactor     1.1411        1.8284        .23070E-01    .43327E-03
   3  norm          .10000E-03    6.3197        .90712E-02** at limit **
   4  Prefactor     .10000E-03    52.097        .90712E-02** at limit **
   5  Prefactor     .10000E-03    18.745        .90712E-02** at limit **
   6  Prefactor     .10000E-03    1.6395        .90712E-02** at limit **
   7  Prefactor     2.0456        2.6101        .72264E-02    .47955E-03
   8  Prefactor     12.022        8.4103        .28885E-02    .14870E-02
   9  Prefactor     .10000E-03    12.135        .90712E-02** at limit **
  10  Prefactor     39.048        30.157        .16036E-02   -.11472E-03
  11  Prefactor     11.196        18.845        .29928E-02   -.50677E-03
  12  Prefactor     7.7850        7.8986        .35929E-02   -.37085E-03
  13  Prefactor     46.727        28.026        .14663E-02    .17008E-02
  14  Prefactor     4.6479        3.2080        .46671E-02    .11850E-03
  15  Prefactor     .10000E-03    5.4328        .90712E-02** at limit **
  16  norm          32.557        16.566        .17557E-02    .17652E-04
  17  Prefactor     .10000E-03    8.6120        .90712E-02** at limit **
  18  Normalizat    .87521        .19033        .44588E-01    .70022E-05
  19  Prefactor     .93057        .19522        .45390E-01    .49917E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.85608
  Prefactor  = 1.14111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04555
  Prefactor  = 12.022
  Prefactor  = 0.0001
  Prefactor  = 39.0478
  Prefactor  = 11.1961
  Prefactor  = 7.78499
  Prefactor  = 46.7274
  Prefactor  = 4.64788
  Prefactor  = 0.0001
  norm       = 32.5572
  Prefactor  = 0.0001
  Normalizat = 0.875208
  Prefactor  = 0.930574
 **********
 **   18 **HESSE 
 **********

 FCN=   4656.497     FROM HESSE     STATUS=OK           270 CALLS     2136 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8561        6.8824        .15324E-03   -1.5184    
   2  Prefactor     1.1411        1.6017        .11280E-02   -1.5494    
   3  norm          .10000E-03    6.4007        .16746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6410        .85318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0456        2.5895        .11673E-03   -1.5422    
   8  Prefactor     12.022        8.4197        .57770E-03   -1.5014    
   9  Prefactor     .10000E-03    12.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.048        30.163        .64143E-04   -1.4457    
  11  Prefactor     11.196        18.700        .11971E-03   -1.5039    
  12  Prefactor     7.7850        7.8966        .71858E-03   -1.5150    
  13  Prefactor     46.727        28.018        .58654E-04   -1.4340    
  14  Prefactor     4.6479        3.2065        .96761E-04   -1.5277    
  15  Prefactor     .10000E-03    5.4542        .15530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          32.557        16.583        .70227E-04   -1.4566    
  17  Prefactor     .10000E-03    8.6466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .87521        .21875        .24419E-03   -.97337    
  19  Prefactor     .93057        .22440        .25244E-03   -.95081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5649e-09
Minuit parameter uncertainties:
  1  6.8832
  2  1.60173
  3  2.3351e-06
  4  9.17627e-05
  5  1.09189e-05
  6  4.02255e-07
  7  2.58961
  8  8.42049
  9  5.65548e-06
  10  30.1751
  11  18.7097
  12  7.89763
  13  28.0262
  14  3.20666
  15  4.08662e-07
  16  16.5851
  17  7.12355e-07
  18  0.218971
  19  0.224619
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.046e+00  2.590e+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:  9.306e-01  2.246e-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.752e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/74519/likelihoodResults_409363201_409622401_4FGL_J1043.2+2408_daily_bin656.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) = 4656.49662895
delta logL = 0.000573788371184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4656.49634561
delta logL = 0.000857122889101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9757       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3569       1.0000          .0000       10.000    
     3 'Normalizat'    .87438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93131       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=   4656.496     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9752        88.683        .73735E-02    .60901E-03
   2  Index         2.3577        5.9551        .15791        .88134E-04
   3  Normalizat    .87436        .61136E-01    .44573E-01   -.72536E-04
   4  Prefactor     .93133        .68674E-01    .45403E-01   -.80861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9752
  Index      = 2.35773
  Normalizat = 0.874358
  Prefactor  = 0.931331
 **********
 **   18 **HESSE 
 **********

 FCN=   4656.496     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9752        3.2476        .11449E-03   -1.5427    
   2  Index         2.3577        .90527        .87477E-02   -.55678    
   3  Normalizat    .87436        .21018        .24429E-03   -.97367    
   4  Prefactor     .93133        .22387        .25235E-03   -.95055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80654e-11
Minuit parameter uncertainties:
  1  3.24791
  2  0.912275
  3  0.210379
  4  0.224097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74519': 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) = 4656.49634497
delta logL = 0.000857771249684

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.975e+00  3.248e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.358e+00  9.123e-01  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:  9.313e-01  2.241e-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.744e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.81
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/74519/cmap_HighResolution_409363201_409622401_4FGL_J1043.2+2408_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-02 09:09:10.588344', job_id='74519', GAL2='0.93', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1630598950.59', return_code2='0', ts='0.81', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.58e-04', ts2='0.81', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='656' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:09:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 74519: <4FGL_J1043.2+2408_daily_bin656> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin656 160.805 24.146 409363201 409622401 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 :                                   530.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            763 sec.

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

