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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin203
RA = 160.805, Dec = 24.146
tmin = 291945601, tmax = 292204801
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='71904', job_status='RUN', time_executed='2021-09-02 08:49:03.275889', time_epoch_executed='1630597743.28' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71904

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71904/ft1_4FGL_J1043.2+2408_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71904/ft2_4FGL_J1043.2+2408_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71904/ft1_4FGL_J1043.2+2408_daily_bin203.fits outfile=/scratch/kocevski/71904/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin203.fits ra=160.805 dec=24.146 rad=12.0 tmin=291945601.0 tmax=292204801.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.81
user 3.58
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71904/ft1_filtered_4FGL_J1043.2+2408_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/71904/ft2_4FGL_J1043.2+2408_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/71904/ltcube_291945601_292204801_4FGL_J1043.2+2408_daily_bin203.fits outfile=/scratch/kocevski/71904/expmap_291945601_292204801_4FGL_J1043.2+2408_daily_bin203.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/71904/ltcube_291945601_292204801_4FGL_J1043.2+2408_daily_bin203.fits
.....................!
real 192.46
user 188.05
sys 4.01

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/71904/ft1_filtered_4FGL_J1043.2+2408_daily_bin203.fits scfile=/scratch/kocevski/71904/ft2_4FGL_J1043.2+2408_daily_bin203.fits outfile=/scratch/kocevski/71904/cmap_291945601_292204801_4FGL_J1043.2+2408_daily_bin203.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71904/ft1_filtered_4FGL_J1043.2+2408_daily_bin203.fits scfile=/scratch/kocevski/71904/ft2_4FGL_J1043.2+2408_daily_bin203.fits outfile=/scratch/kocevski/71904/cmap_HighResolution_291945601_292204801_4FGL_J1043.2+2408_daily_bin203.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1188       1.0000         .10000E-03   10000.    
     3 'norm      '    11.681       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5277       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6852       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7396       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17938E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .97587E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3659       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8137       1.0000         .10000E-03   10000.    
    16 'norm      '    4.8768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .80797       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1625       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=   5270.001     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1930 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5881        .13063E-05** at limit **
   2  Prefactor     4.1183        2.4664       -.84240E-07   -.95531E-04
   3  norm          11.678        8.2013       -.21363E-05   -.47735E-04
   4  Prefactor     4.5147        108.18       -.29763E-04   -.50830E-05
   5  Prefactor     14.725        48.727       -.29538E-04    .28854E-05
   6  Prefactor     2.6854        3.9312       -.74563E-06   -.14450E-03
   7  Prefactor     1.7390        2.4446       -.34357E-06   -.49450E-03
   8  Prefactor     .10000E-03    6.2028       -.65749E-06** at limit **
   9  Prefactor     .10000E-03    5.1487       -.15502E-06** at limit **
  10  Prefactor     .10000E-03    6.1919       -.95262E-06** at limit **
  11  Prefactor     6.6196        6.5632        .14170E-05    .20964E-03
  12  Prefactor     .10000E-03    5.8389       -.16277E-05** at limit **
  13  Prefactor     .56579E-01    10.368       -.11650E-05    .33602E-04
  14  Prefactor     5.3651        3.0942       -.40680E-06   -.62522E-04
  15  Prefactor     8.8120        7.9613       -.47927E-05    .17847E-04
  16  norm          4.8734        10.339        .79495E-05   -.11204E-03
  17  Prefactor     .10000E-03    6.5693        .86080E-06** at limit **
  18  Normalizat    .80811        .17770        .20066E-05    .23524E-03
  19  Prefactor     1.1625        .19188        .18574E-05    .15242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.11825
  norm       = 11.6781
  Prefactor  = 4.51471
  Prefactor  = 14.725
  Prefactor  = 2.68537
  Prefactor  = 1.73897
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.6196
  Prefactor  = 0.0001
  Prefactor  = 0.0565793
  Prefactor  = 5.36509
  Prefactor  = 8.81204
  norm       = 4.87344
  Prefactor  = 0.0001
  Normalizat = 0.808112
  Prefactor  = 1.16252
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.001     FROM HESSE     STATUS=OK           282 CALLS     2212 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7540        .33484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1183        2.4635        .85018E-04   -1.5302    
   3  norm          11.678        8.2125        .11721E-03   -1.5024    
   4  Prefactor     4.5147        109.02        .18920E-03   -1.5283    
   5  Prefactor     14.725        48.881        .10422E-03   -1.4940    
   6  Prefactor     2.6854        3.9134        .16800E-03   -1.5380    
   7  Prefactor     1.7390        2.4229        .12636E-03   -1.5444    
   8  Prefactor     .10000E-03    20.257        .34373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1782        .16062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1932        .17643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6196        6.5946        .15602E-03   -1.5193    
  12  Prefactor     .10000E-03    5.8883        .17128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .56579E-01    16.479        .69358E-01   -1.5660    
  14  Prefactor     5.3651        3.0945        .92347E-04   -1.5245    
  15  Prefactor     8.8120        7.9689        .13501E-03   -1.5114    
  16  norm          4.8734        10.236        .18215E-03   -1.5266    
  17  Prefactor     .10000E-03    6.6064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .80811        .20575        .25019E-03   -.99768    
  19  Prefactor     1.1625        .22500        .23909E-03   -.87493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27402e-10
Minuit parameter uncertainties:
  1  1.82715e-05
  2  2.46356
  3  8.21326
  4  44.4622
  5  49.0147
  6  3.91373
  7  2.42304
  8  0.00037331
  9  1.02001e-05
  10  8.75113e-07
  11  6.59534
  12  5.01271e-06
  13  1.93004
  14  3.09459
  15  7.96985
  16  10.2393
  17  2.27907e-05
  18  0.20595
  19  0.225189
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.739e+00  2.423e+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.163e+00  2.252e-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.081e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/71904/likelihoodResults_291945601_292204801_4FGL_J1043.2+2408_daily_bin203.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) = 5269.7076806
delta logL = 0.293319047296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5269.66819464
delta logL = 0.332805005317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5287       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7424       1.0000          .0000       10.000    
     3 'Normalizat'    .82368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1484       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=   5269.668     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5270        5.5726        .64218E-02    .23767E-03
   2  Index         1.7421        1.0058        .19686       -.27055E-04
   3  Normalizat    .82376        .17004        .43919E-01    .90477E-05
   4  Prefactor     1.1483        .19279        .54329E-01   -.84223E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52698
  Index      = 1.74209
  Normalizat = 0.823757
  Prefactor  = 1.14829
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.668     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .98E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5270        2.9818        .12723E-03   -1.5390    
   2  Index         1.7421        .63733        .97475E-02   -.70967    
   3  Normalizat    .82376        .19658        .24799E-03   -.99193    
   4  Prefactor     1.1483        .22230        .24022E-03   -.87938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84128e-13
Minuit parameter uncertainties:
  1  2.98195
  2  0.640364
  3  0.19675
  4  0.222481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71904': 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) = 5269.66819415
delta logL = 0.332805497965

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  2.527e+00  2.982e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  1.742e+00  6.404e-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:  1.148e+00  2.225e-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.238e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.74 +/- 0.64
Photon Flux (Free Index): 1.77e-08 +/- 2.60e-08
Energy Flux (Free Index): 2.53e-05 +/- 3.95e-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/71904/cmap_HighResolution_291945601_292204801_4FGL_J1043.2+2408_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', comment='SUCCESS', energy_flux2='2.53e-05', dlogl='3.33e-01', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-09-02 08:58:24.579490', photon_index_error2='0.64', photon_index2='1.74', ts='0.67', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='3.95e-05', EG='0.81', time_epoch_completed='1630598304.58', return_code='0', job_id='71904', GAL2='1.15', EG2='0.82', return_code2='0', photon_flux_error2='2.60e-08', ts2='1.34', photon_index='2.32' WHERE bin_id='203' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 08:58:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 71904: <4FGL_J1043.2+2408_daily_bin203> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin203> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 08:46:25 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 08:46:45 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:46:45 2021
Terminated at Thu Sep  2 08:58:25 2021
Results reported at Thu Sep  2 08:58:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin203 160.805 24.146 291945601 292204801 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 :                                   552.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            720 sec.

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

