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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin125
RA = 181.432, Dec = -26.5946
tmin = 271728001, tmax = 271987201
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='312406', job_status='RUN', time_executed='2021-09-04 23:24:24.309423', time_epoch_executed='1630823064.31' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312406

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312406/ft1_4FGL_J1205.7-2635_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312406/ft1_4FGL_J1205.7-2635_daily_bin125.fits outfile=/scratch/kocevski/312406/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin125.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=271728001.0 tmax=271987201.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.14
user 2.93
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.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/312406/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.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.56
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/312406/ltcube_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.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/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits
.....................!
real 11.93
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/312406/ltcube_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.fits outfile=/scratch/kocevski/312406/expmap_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.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/312406/ltcube_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.fits
.....................!
real 189.92
user 184.92
sys 4.53

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1205.7-2635 @ 181.432 -26.5946

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.fits scfile=/scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits outfile=/scratch/kocevski/312406/cmap_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.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=181.432 yref=-26.5946 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.fits scfile=/scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits outfile=/scratch/kocevski/312406/cmap_HighResolution_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.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=181.432 yref=-26.5946 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312406/Model_4FGL_J1205.7-2635_daily_bin125.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/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.fits.....................!
real 71.53
user 70.25
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.fits', '/scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits', expMap='/scratch/kocevski/312406/expmap_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.fits', expCube='/scratch/kocevski/312406/ltcube_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/312406/Model_4FGL_J1205.7-2635_daily_bin125.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1205.7-2635'

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  2.173e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.083e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/312406/ft1_filtered_4FGL_J1205.7-2635_daily_bin125.fits
Spacecraft file(s): /scratch/kocevski/312406/ft2_4FGL_J1205.7-2635_daily_bin125.fits
Exposure map: /scratch/kocevski/312406/expmap_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.fits
Exposure cube: /scratch/kocevski/312406/ltcube_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/312406/Model_4FGL_J1205.7-2635_daily_bin125.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) = 8186.05192247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.714       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.960       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2368       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.919       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.727       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6392       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.307       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.525       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.277       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2451       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1881       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12958E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6000       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85727       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8186.051     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2329 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.271        .90712E-02** at limit **
   2  Prefactor     13.714        13.651        .27040E-02    .73605E-04
   3  Prefactor     43.962        53.652        .15117E-02   -.65264E-03
   4  norm          .10000E-03    .35803        .90712E-02** at limit **
   5  Prefactor     5.2371        8.5583        .43913E-02    .10272E-03
   6  Prefactor     4.7769        6.7264        .46023E-02   -.23827E-02
   7  Prefactor     .10000E-03    14.408        .90712E-02** at limit **
   8  norm          14.921        25.597        .25923E-02    .13393E-04
   9  Prefactor     .10000E-03    6.2633        .90712E-02** at limit **
  10  norm          10.729        4.9020        .30582E-02    .10399E-03
  11  Prefactor     2.6395        3.6747        .62745E-02    .64981E-03
  12  Prefactor     22.306        52.499        .21202E-02    .21045E-03
  13  Prefactor     17.526        14.294        .23918E-02    .38968E-03
  14  Prefactor     .10001E-03    17.844        .90712E-02** at limit **
  15  Prefactor     20.278        18.910        .22237E-02    .97123E-04
  16  Prefactor     .10001E-03    19.723        .90712E-02** at limit **
  17  Prefactor     .10000E-03    12.456        .90712E-02** at limit **
  18  Prefactor     4.2436        10.782        .48891E-02    .32515E-03
  19  norm          1.1879        .90755        .10457E-01    .71716E-03
  20  Prefactor     .10000E-03    131.86        .90712E-02** at limit **
  21  Normalizat    1.5999        .23529        .72669E-01    .10269E-03
  22  Prefactor     .85726        .10988        .44458E-01    .10715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.7135
  Prefactor  = 43.9617
  norm       = 0.0001
  Prefactor  = 5.23712
  Prefactor  = 4.77686
  Prefactor  = 0.000100002
  norm       = 14.9213
  Prefactor  = 0.0001
  norm       = 10.7289
  Prefactor  = 2.63946
  Prefactor  = 22.3064
  Prefactor  = 17.5256
  Prefactor  = 0.000100015
  Prefactor  = 20.2776
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 4.2436
  norm       = 1.18786
  Prefactor  = 0.000100001
  Normalizat = 1.59989
  Prefactor  = 0.857261
 **********
 **   18 **HESSE 
 **********

 FCN=   8186.051     FROM HESSE     STATUS=OK           342 CALLS     2671 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.714        13.656        .10816E-03   -1.4967    
   3  Prefactor     43.962        53.662        .60467E-04   -1.4381    
   4  norm          .10000E-03    .36005        .52818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2371        8.5597        .17565E-03   -1.5250    
   6  Prefactor     4.7769        6.7529        .18409E-03   -1.5271    
   7  Prefactor     .10000E-03    14.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.921        25.631        .10369E-03   -1.4935    
   9  Prefactor     .10000E-03    6.2714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.729        4.8996        .12233E-03   -1.5053    
  11  Prefactor     2.6395        3.6565        .19704E-03   -1.5383    
  12  Prefactor     22.306        52.436        .84807E-04   -1.4763    
  13  Prefactor     17.526        14.299        .47837E-03   -1.4870    
  14  Prefactor     .10001E-03    17.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.278        18.895        .88947E-04   -1.4807    
  16  Prefactor     .10001E-03    19.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2436        10.772        .19556E-03   -1.5296    
  19  norm          1.1879        .89399        .72396E-04   -1.5490    
  20  Prefactor     .10000E-03    132.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5999        .28115        .32152E-03   -.75009    
  22  Prefactor     .85726        .13115        .20082E-03   -.97651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2027e-08
Minuit parameter uncertainties:
  1  0.000253345
  2  13.6589
  3  53.7206
  4  7.83533e-07
  5  8.56165
  6  6.75401
  7  0.000346642
  8  25.6496
  9  1.21231e-05
  10  4.89978
  11  3.65679
  12  52.5444
  13  14.3019
  14  0.00102904
  15  18.9002
  16  0.000746281
  17  0.00012857
  18  10.7774
  19  0.893995
  20  0.000856079
  21  0.28143
  22  0.131199
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  2.639e+00  3.657e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.083e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.573e-01  1.312e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.600e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 181.432 -26.595
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312406/likelihoodResults_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.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) = 8184.81834392
delta logL = 1.23216789952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8184.77874255
delta logL = 1.2717692776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5612       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4967       1.0000          .0000       10.000    
     3 'Normalizat'    1.6259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8184.779     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5612        3.1923        .53542E-02   -.40969E-02
   2  Index         1.4967        .36121        .24097       -.67723E-04
   3  Normalizat    1.6260        .22614        .72192E-01    .47440E-05
   4  Prefactor     .84626        .10818        .44317E-01    .12464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56124
  Index      = 1.49674
  Normalizat = 1.62598
  Prefactor  = 0.846261
 **********
 **   18 **HESSE 
 **********

 FCN=   8184.779     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5612        3.7287        .14924E-03   -1.5331    
   2  Index         1.4967        .50242        .89529E-02   -.77631    
   3  Normalizat    1.6260        .26843        .31940E-03   -.74297    
   4  Prefactor     .84626        .12853        .20180E-03   -.98045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19974e-08
Minuit parameter uncertainties:
  1  3.72899
  2  0.504096
  3  0.268666
  4  0.128575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312406': 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) = 8184.77874252
delta logL = 1.27176930387

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  3.561e+00  3.729e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.497e+00  5.041e-01  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  7.083e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.463e-01  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.626e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 1.50 +/- 0.50
Photon Flux (Free Index): 1.30e-08 +/- 1.42e-08
Energy Flux (Free Index): 4.15e-05 +/- 5.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/312406/cmap_HighResolution_271728001_271987201_4FGL_J1205.7-2635_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', comment='SUCCESS', energy_flux2='4.15e-05', dlogl='1.27e+00', photon_flux2='1.30e-08', job_status='DONE', time_completed='2021-09-04 23:36:43.857950', photon_index_error2='0.50', photon_index2='1.50', ts='0.79', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='5.77e-05', EG='1.60', time_epoch_completed='1630823803.86', return_code='0', job_id='312406', GAL2='0.85', EG2='1.63', return_code2='0', photon_flux_error2='1.42e-08', ts2='3.35', photon_index='2.53' WHERE bin_id='125' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 312406: <4FGL_J1205.7-2635_daily_bin125> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin125> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:21:12 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:21:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:21:13 2021
Terminated at Sat Sep  4 23:36:44 2021
Results reported at Sat Sep  4 23:36:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin125 181.432 -26.5946 271728001 271987201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1205.7-2635 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   736.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

