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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1062
RA = 181.432, Dec = -26.5946
tmin = 514598401, tmax = 514857601
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='318278', job_status='RUN', time_executed='2021-09-04 23:44:43.382460', time_epoch_executed='1630824283.38' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1062'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318278/ft1_4FGL_J1205.7-2635_daily_bin1062.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318278/ft2_4FGL_J1205.7-2635_daily_bin1062.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318278/ft1_4FGL_J1205.7-2635_daily_bin1062.fits outfile=/scratch/kocevski/318278/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1062.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=514598401.0 tmax=514857601.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.98
user 3.76
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318278/ft1_filtered_4FGL_J1205.7-2635_daily_bin1062.fits" evtable="EVENTS" scfile=/scratch/kocevski/318278/ft2_4FGL_J1205.7-2635_daily_bin1062.fits sctable="SC_DATA" outfile=/scratch/kocevski/318278/ltcube_514598401_514857601_4FGL_J1205.7-2635_daily_bin1062.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/318278/ft2_4FGL_J1205.7-2635_daily_bin1062.fits
.....................!
real 11.79
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318278/ft1_filtered_4FGL_J1205.7-2635_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/318278/ft2_4FGL_J1205.7-2635_daily_bin1062.fits sctable="SC_DATA" expcube=/scratch/kocevski/318278/ltcube_514598401_514857601_4FGL_J1205.7-2635_daily_bin1062.fits outfile=/scratch/kocevski/318278/expmap_514598401_514857601_4FGL_J1205.7-2635_daily_bin1062.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/318278/ltcube_514598401_514857601_4FGL_J1205.7-2635_daily_bin1062.fits
.....................!
real 189.15
user 184.68
sys 4.07

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/318278/ft1_filtered_4FGL_J1205.7-2635_daily_bin1062.fits scfile=/scratch/kocevski/318278/ft2_4FGL_J1205.7-2635_daily_bin1062.fits outfile=/scratch/kocevski/318278/cmap_514598401_514857601_4FGL_J1205.7-2635_daily_bin1062.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318278/ft1_filtered_4FGL_J1205.7-2635_daily_bin1062.fits scfile=/scratch/kocevski/318278/ft2_4FGL_J1205.7-2635_daily_bin1062.fits outfile=/scratch/kocevski/318278/cmap_HighResolution_514598401_514857601_4FGL_J1205.7-2635_daily_bin1062.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318278/ft1_filtered_4FGL_J1205.7-2635_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/318278/ft2_4FGL_J1205.7-2635_daily_bin1062.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318278/Model_4FGL_J1205.7-2635_daily_bin1062.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/318278/ft1_filtered_4FGL_J1205.7-2635_daily_bin1062.fits.....................!
real 68.16
user 65.43
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2925       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2391       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1639       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.4763       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.513       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.441       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.444       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4294       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .48841E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96030       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99649       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=   7699.923     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2338 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.639        .13714E-05** at limit **
   2  Prefactor     6.2925        7.1513       -.28282E-07   -.10756E-04
   3  Prefactor     .10000E-03    18.273       -.16728E-05** at limit **
   4  norm          1.2391        1.2864        .81698E-07    .35617E-04
   5  Prefactor     .10000E-03    4.5656       -.81836E-08** at limit **
   6  Prefactor     3.1643        6.0854        .43003E-05   -.32469E-04
   7  Prefactor     .10000E-03    21.286        .20590E-05** at limit **
   8  norm          6.4756        24.338       -.38193E-06   -.30486E-06
   9  Prefactor     .10000E-03    10.431       -.32587E-06** at limit **
  10  norm          5.7806        3.8327        .32348E-07   -.17965E-04
  11  Prefactor     12.513        8.0531       -.34135E-06   -.23512E-04
  12  Prefactor     21.002        36.158        .54035E-05    .14874E-04
  13  Prefactor     .10000E-03    11.811        .14529E-06** at limit **
  14  Prefactor     50.438        47.590        .37911E-06   -.25943E-05
  15  Prefactor     .10000E-03    6.6293       -.20051E-06** at limit **
  16  Prefactor     .10000E-03    22.783       -.19448E-05** at limit **
  17  Prefactor     36.441        21.986       -.81455E-06   -.12176E-04
  18  Prefactor     .10000E-03    3.7716       -.33465E-07** at limit **
  19  norm          3.4295        1.2308        .28643E-08   -.35177E-03
  20  Prefactor     .10000E-03    572.21        .30014E-04** at limit **
  21  Normalizat    .96028        .22526       -.25737E-05   -.41431E-04
  22  Prefactor     .99653        .10676        .40187E-06   -.18049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.29253
  Prefactor  = 0.0001
  norm       = 1.2391
  Prefactor  = 0.0001
  Prefactor  = 3.16425
  Prefactor  = 0.0001
  norm       = 6.47559
  Prefactor  = 0.0001
  norm       = 5.78056
  Prefactor  = 12.5131
  Prefactor  = 21.0017
  Prefactor  = 0.0001
  Prefactor  = 50.4378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.4409
  Prefactor  = 0.0001
  norm       = 3.4295
  Prefactor  = 0.0001
  Normalizat = 0.960278
  Prefactor  = 0.996531
 **********
 **   18 **HESSE 
 **********

 FCN=   7699.923     FROM HESSE     STATUS=OK           342 CALLS     2680 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2925        7.1538        .16002E-03   -1.5206    
   3  Prefactor     .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2391        1.2603        .97700E-04   -1.5485    
   5  Prefactor     .10000E-03    4.5899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1643        6.0929        .11393E-02   -1.5352    
   7  Prefactor     .10000E-03    21.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.4756        24.332        .15771E-03   -1.5199    
   9  Prefactor     .10000E-03    10.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7806        3.8262        .66770E-03   -1.5227    
  11  Prefactor     12.513        8.0447        .11324E-03   -1.5000    
  12  Prefactor     21.002        36.229        .87510E-04   -1.4791    
  13  Prefactor     .10000E-03    11.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     50.438        47.524        .56466E-04   -1.4286    
  15  Prefactor     .10000E-03    6.6343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.441        21.980        .66387E-04   -1.4500    
  18  Prefactor     .10000E-03    3.7817        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4295        1.2296        .56137E-04   -1.5338    
  20  Prefactor     .10000E-03    573.70        .19235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96028        .26265        .35962E-03   -.94373    
  22  Prefactor     .99653        .12615        .17577E-03   -.92845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45749e-10
Minuit parameter uncertainties:
  1  5.10825e-06
  2  7.15479
  3  6.81467e-06
  4  1.26034
  5  3.09841e-07
  6  6.09413
  7  4.03904e-06
  8  24.3691
  9  3.95974e-05
  10  3.82638
  11  8.04543
  12  36.2672
  13  2.18922e-06
  14  47.5601
  15  1.98616e-05
  16  6.65135e-05
  17  21.9848
  18  7.54419e-07
  19  1.22965
  20  0.000755764
  21  0.263002
  22  0.126184
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.251e+01  8.045e+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:  9.965e-01  1.262e-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:  9.603e-01  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.04
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 7.44e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 2.09e-05

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) = 7699.36486193
delta logL = 0.557905523145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7699.3570728
delta logL = 0.565694653344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7036       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3275       1.0000          .0000       10.000    
     3 'Normalizat'    .88529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0241       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=   7699.357     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      254 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7007        39.371        .42048E-02    .34450E-03
   2  Index         3.3278        2.8492        .12864        .16261E-03
   3  Normalizat    .88528        .86956E-01    .84114E-01    .22268E-04
   4  Prefactor     1.0241        .39614E-01    .41757E-01   -.16155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.70071
  Index      = 3.32783
  Normalizat = 0.885282
  Prefactor  = 1.02408
 **********
 **   18 **HESSE 
 **********

 FCN=   7699.357     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7007        13.859        .94285E-04   -1.5230    
   2  Index         3.3278        1.6479        .48584E-02   -.34101    
   3  Normalizat    .88528        .27337        .37242E-03   -.96979    
   4  Prefactor     1.0241        .13348        .17362E-03   -.91931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51023e-08
Minuit parameter uncertainties:
  1  13.8666
  2  1.68345
  3  0.273801
  4  0.133522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318278': 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) = 7699.35707273
delta logL = 0.565694727386

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  5.701e+00  1.387e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  3.328e+00  1.683e+00  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:  1.024e+00  1.335e-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:  8.853e-01  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.45
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 3.33 +/- 1.68
Photon Flux (Free Index): 1.66e-07 +/- 8.62e-08
Energy Flux (Free Index): 2.90e-05 +/- 1.74e-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/318278/cmap_HighResolution_514598401_514857601_4FGL_J1205.7-2635_daily_bin1062.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='2.90e-05', photon_flux_error='7.44e-08', dlogl='5.66e-01', energy_flux='3.26e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-04 23:55:37.180672', photon_index_error2='1.68', photon_index2='3.33', ts='5.04', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.74e-05', EG='0.96', time_epoch_completed='1630824937.18', return_code='0', job_id='318278', GAL2='1.02', EG2='0.89', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='8.62e-08', ts2='6.45', photon_index='2.53' WHERE bin_id='1062' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:55:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 318278: <4FGL_J1205.7-2635_daily_bin1062> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin1062> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 23:40:49 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:40:51 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:51 2021
Terminated at Sat Sep  4 23:55:37 2021
Results reported at Sat Sep  4 23:55:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1062 181.432 -26.5946 514598401 514857601 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 :                                   649.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

