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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1022
RA = 181.432, Dec = -26.5946
tmin = 504230401, tmax = 504489601
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='318215', job_status='RUN', time_executed='2021-09-04 23:40:53.786036', time_epoch_executed='1630824053.79' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318215/ft1_4FGL_J1205.7-2635_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318215/ft1_4FGL_J1205.7-2635_daily_bin1022.fits outfile=/scratch/kocevski/318215/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1022.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=504230401.0 tmax=504489601.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.57
user 3.36
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.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/318215/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/318215/ltcube_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.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/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits
.....................!
real 11.73
user 11.33
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/318215/ltcube_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.fits outfile=/scratch/kocevski/318215/expmap_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.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/318215/ltcube_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.fits
.....................!
real 189.84
user 184.71
sys 4.62

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/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.fits scfile=/scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits outfile=/scratch/kocevski/318215/cmap_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.fits scfile=/scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits outfile=/scratch/kocevski/318215/cmap_HighResolution_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.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/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318215/Model_4FGL_J1205.7-2635_daily_bin1022.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/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.fits.....................!
real 85.29
user 83.89
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.fits', '/scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits', expMap='/scratch/kocevski/318215/expmap_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.fits', expCube='/scratch/kocevski/318215/ltcube_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318215/Model_4FGL_J1205.7-2635_daily_bin1022.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/318215/ft1_filtered_4FGL_J1205.7-2635_daily_bin1022.fits
Spacecraft file(s): /scratch/kocevski/318215/ft2_4FGL_J1205.7-2635_daily_bin1022.fits
Exposure map: /scratch/kocevski/318215/expmap_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.fits
Exposure cube: /scratch/kocevski/318215/ltcube_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318215/Model_4FGL_J1205.7-2635_daily_bin1022.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) = 10755.9103986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.79       1.0000         .10000E-03   10000.    
     4 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7266       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.4654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .69894E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.333       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.867       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .81896       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.952       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89984       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10755.82     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2052 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7017       -.27809E-06** at limit **
   2  Prefactor     .10000E-03    4.2625        .12151E-06** at limit **
   3  Prefactor     103.79        46.288       -.12403E-06   -.35470E-04
   4  norm          .10000E-03    .41655        .20113E-07** at limit **
   5  Prefactor     .10000E-03    1.8781        .16157E-07** at limit **
   6  Prefactor     .10000E-03    2.0809       -.47309E-07** at limit **
   7  Prefactor     3.7253        19.278       -.64631E-06   -.24945E-04
   8  norm          .10000E-03    4.5379       -.69120E-07** at limit **
   9  Prefactor     .10000E-03    6.4816        .10969E-06** at limit **
  10  norm          6.4650        3.4654       -.12826E-07   -.23139E-03
  11  Prefactor     6.3397        3.7101        .17495E-05   -.12076E-02
  12  Prefactor     .10000E-03    26.874       -.50958E-06** at limit **
  13  Prefactor     .10006E-03    4.0785        .66523E-06** at limit **
  14  Prefactor     .10000E-03    13.979       -.10909E-05** at limit **
  15  Prefactor     14.335        13.328        .79040E-06    .35972E-04
  16  Prefactor     21.847        36.582       -.47710E-05   -.31784E-03
  17  Prefactor     11.697        14.473       -.24778E-06   -.37722E-04
  18  Prefactor     .10000E-03    14.219        .76958E-06** at limit **
  19  norm          .81909        .53834        .18741E-07   -.61625E-05
  20  Prefactor     55.936        51.128       -.22113E-05   -.23167E-03
  21  Normalizat    1.0519        .16832       -.27571E-06   -.64795E-04
  22  Prefactor     .89986        .83775E-01   -.78487E-08   -.14698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72533
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.46502
  Prefactor  = 6.33965
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  Prefactor  = 0.000100001
  Prefactor  = 14.3346
  Prefactor  = 21.8466
  Prefactor  = 11.6973
  Prefactor  = 0.0001
  norm       = 0.819092
  Prefactor  = 55.936
  Normalizat = 1.05192
  Prefactor  = 0.899856
 **********
 **   18 **HESSE 
 **********

 FCN=   10755.82     FROM HESSE     STATUS=OK           336 CALLS     2388 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     103.79        46.291        .39468E-04   -1.3667    
   4  norm          .10000E-03    .43010        .13051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8807        .13880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1207        .14594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7253        19.246        .20918E-03   -1.5322    
   8  norm          .10000E-03    4.5417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.4650        3.4608        .13517E-03   -1.5199    
  11  Prefactor     6.3397        3.8012        .74601E-03   -1.5204    
  12  Prefactor     .10000E-03    26.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    32.476        .40347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.335        13.468        .10580E-03   -1.4951    
  16  Prefactor     21.847        38.329        .85655E-04   -1.4773    
  17  Prefactor     11.697        14.474        .11712E-03   -1.5024    
  18  Prefactor     .10000E-03    14.794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .81909        .54197        .59615E-04   -1.5527    
  20  Prefactor     55.936        52.099        .53628E-04   -1.4211    
  21  Normalizat    1.0519        .20177        .31677E-03   -.91311    
  22  Prefactor     .89986        .10074        .17045E-03   -.96146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98905e-09
Minuit parameter uncertainties:
  1  3.79175e-05
  2  5.44436e-06
  3  46.307
  4  2.06991e-07
  5  1.5224e-07
  6  5.78301e-06
  7  16.9434
  8  9.66152e-06
  9  3.80264e-05
  10  3.46093
  11  3.80134
  12  4.20586e-06
  13  0.00270462
  14  0.000180538
  15  13.4711
  16  38.3719
  17  14.4782
  18  0.000120265
  19  0.541971
  20  52.1416
  21  0.201918
  22  0.100758
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  6.340e+00  3.801e+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.999e-01  1.008e-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.052e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 5.87e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 9.89e-06

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) = 10755.741881
delta logL = 0.0819599957522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10755.7337031
delta logL = 0.0901378945837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2642       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3133       1.0000          .0000       10.000    
     3 'Normalizat'    1.0638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89570       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10755.73     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      272 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2640        4.7330        .14882E-03    .12012E-02
   2  Index         2.3135        .49505        .90906E-02    .21221E-03
   3  Normalizat    1.0638        .20067        .31522E-03    .51328E-03
   4  Prefactor     .89570        .10052        .17080E-03    .97383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.264
  Index      = 2.31354
  Normalizat = 1.06381
  Prefactor  = 0.895701
 **********
 **   18 **HESSE 
 **********

 FCN=   10755.73     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2640        4.6521        .59528E-05   -1.5169    
   2  Index         2.3135        .48636        .36363E-03   -.56722    
   3  Normalizat    1.0638        .20074        .12609E-04   -.90922    
   4  Prefactor     .89570        .10057        .34160E-04   -.96291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80337e-10
Minuit parameter uncertainties:
  1  4.65235
  2  0.487442
  3  0.200888
  4  0.100586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318215': 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) = 10755.7337031
delta logL = 0.0901379661282

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  7.264e+00  4.652e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.314e+00  4.874e-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.957e-01  1.006e-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.064e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.87
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 2.31 +/- 0.49
Photon Flux (Free Index): 5.13e-08 +/- 3.67e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.35e-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/318215/cmap_HighResolution_504230401_504489601_4FGL_J1205.7-2635_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.87e-08', energy_flux2='1.90e-05', photon_flux_error='3.51e-08', dlogl='9.01e-02', energy_flux='1.65e-05', photon_flux2='5.13e-08', job_status='DONE', time_completed='2021-09-04 23:53:28.208866', photon_index_error2='0.49', photon_index2='2.31', ts='4.69', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='1.05', time_epoch_completed='1630824808.21', return_code='0', job_id='318215', GAL2='0.90', EG2='1.06', return_code2='0', energy_flux_error='9.89e-06', photon_flux_error2='3.67e-08', ts2='4.87', photon_index='2.53' WHERE bin_id='1022' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:53:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 318215: <4FGL_J1205.7-2635_daily_bin1022> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin1022> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 23:40:43 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:40:45 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:40:45 2021
Terminated at Sat Sep  4 23:53:29 2021
Results reported at Sat Sep  4 23:53:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1022 181.432 -26.5946 504230401 504489601 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 :                                   751.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            766 sec.

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

