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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1413
RA = 181.432, Dec = -26.5946
tmin = 605577601, tmax = 605836801
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='319696', job_status='RUN', time_executed='2021-09-04 23:45:47.577316', time_epoch_executed='1630824347.58' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319696/ft1_4FGL_J1205.7-2635_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319696/ft2_4FGL_J1205.7-2635_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319696/ft1_4FGL_J1205.7-2635_daily_bin1413.fits outfile=/scratch/kocevski/319696/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1413.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=605577601.0 tmax=605836801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.02
user 4.75
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319696/ft1_filtered_4FGL_J1205.7-2635_daily_bin1413.fits" evtable="EVENTS" scfile=/scratch/kocevski/319696/ft2_4FGL_J1205.7-2635_daily_bin1413.fits sctable="SC_DATA" outfile=/scratch/kocevski/319696/ltcube_605577601_605836801_4FGL_J1205.7-2635_daily_bin1413.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/319696/ft2_4FGL_J1205.7-2635_daily_bin1413.fits
.....................!
real 11.59
user 11.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319696/ft1_filtered_4FGL_J1205.7-2635_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/319696/ft2_4FGL_J1205.7-2635_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/319696/ltcube_605577601_605836801_4FGL_J1205.7-2635_daily_bin1413.fits outfile=/scratch/kocevski/319696/expmap_605577601_605836801_4FGL_J1205.7-2635_daily_bin1413.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/319696/ltcube_605577601_605836801_4FGL_J1205.7-2635_daily_bin1413.fits
.....................!
real 191.44
user 187.07
sys 3.96

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/319696/ft1_filtered_4FGL_J1205.7-2635_daily_bin1413.fits scfile=/scratch/kocevski/319696/ft2_4FGL_J1205.7-2635_daily_bin1413.fits outfile=/scratch/kocevski/319696/cmap_605577601_605836801_4FGL_J1205.7-2635_daily_bin1413.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/319696/ft1_filtered_4FGL_J1205.7-2635_daily_bin1413.fits scfile=/scratch/kocevski/319696/ft2_4FGL_J1205.7-2635_daily_bin1413.fits outfile=/scratch/kocevski/319696/cmap_HighResolution_605577601_605836801_4FGL_J1205.7-2635_daily_bin1413.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/319696/ft1_filtered_4FGL_J1205.7-2635_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/319696/ft2_4FGL_J1205.7-2635_daily_bin1413.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319696/Model_4FGL_J1205.7-2635_daily_bin1413.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/319696/ft1_filtered_4FGL_J1205.7-2635_daily_bin1413.fits.....................!
real 75.30
user 73.90
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19458E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.797       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    87.649       1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.170       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1884       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .37959E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.3853       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1684       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9842       1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    125.84       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75176       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0105       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=   9342.594     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2393 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3679        20.623        .30540E-07    .45666E-04
   2  Prefactor     .10000E-03    3.3027       -.10364E-06** at limit **
   3  Prefactor     .10000E-03    16.590        .12984E-06** at limit **
   4  norm          .10000E-03    .20756       -.33868E-08** at limit **
   5  Prefactor     .10000E-03    23.464        .17621E-04** at limit **
   6  Prefactor     15.795        5.8603       -.10496E-06    .19965E-03
   7  Prefactor     .10000E-03    9.0834       -.12850E-06** at limit **
   8  norm          .10000E-03    16.333       -.36267E-06** at limit **
   9  Prefactor     87.652        17.639       -.31081E-07    .21594E-03
  10  norm          .10000E-03    2.5292       -.38929E-06** at limit **
  11  Prefactor     5.1411        3.8072        .20158E-06    .17652E-03
  12  Prefactor     11.173        21.053       -.21347E-07    .22846E-04
  13  Prefactor     .10000E-03    4.5545       -.13848E-06** at limit **
  14  Prefactor     3.1885        49.066       -.15401E-05   -.29596E-04
  15  Prefactor     .10005E-03    40.478       -.23453E-04** at limit **
  16  Prefactor     8.4128        23.679        .38640E-07    .70843E-04
  17  Prefactor     8.1668        16.903       -.73488E-07    .39752E-04
  18  Prefactor     2.9835        7.3400        .34723E-06    .30578E-03
  19  norm          .10000E-03    .23078        .46247E-06** at limit **
  20  Prefactor     125.88        89.847       -.32885E-05    .54159E-04
  21  Normalizat    .75183        .19073        .23226E-05    .47627E-03
  22  Prefactor     1.0105        .93315E-01   -.29429E-06    .58809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 15.7951
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 87.6518
  norm       = 0.0001
  Prefactor  = 5.14109
  Prefactor  = 11.1734
  Prefactor  = 0.0001
  Prefactor  = 3.18855
  Prefactor  = 0.000100055
  Prefactor  = 8.41282
  Prefactor  = 8.16683
  Prefactor  = 2.98348
  norm       = 0.0001
  Prefactor  = 125.883
  Normalizat = 0.751828
  Prefactor  = 1.01053
 **********
 **   18 **HESSE 
 **********

 FCN=   9342.594     FROM HESSE     STATUS=OK           354 CALLS     2747 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3679        20.601        .22048E-03   -1.5341    
   2  Prefactor     .10000E-03    3.3170        .17153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .20757        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.823        .43013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.795        5.8638        .10077E-03   -1.4913    
   7  Prefactor     .10000E-03    9.0910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     87.652        17.588        .42915E-04   -1.3833    
  10  norm          .10000E-03    2.5600        .14974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1411        3.7763        .14852E-03   -1.5254    
  12  Prefactor     11.173        21.049        .11987E-03   -1.5039    
  13  Prefactor     .10000E-03    4.5784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1885        48.035        .22693E-03   -1.5351    
  15  Prefactor     .10005E-03    10.550        .10034       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4128        26.859        .13844E-03   -1.5128    
  17  Prefactor     8.1668        16.853        .14028E-03   -1.5136    
  18  Prefactor     2.9835        7.3362        .23501E-03   -1.5362    
  19  norm          .10000E-03    .36698        .90138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     125.88        89.780        .17942E-03   -1.3459    
  21  Normalizat    .75183        .22066        .37469E-03   -1.0188    
  22  Prefactor     1.0105        .10881        .16492E-03   -.92379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10485e-09
Minuit parameter uncertainties:
  1  16.6676
  2  1.88852e-05
  3  6.51401e-05
  4  1.62179e-07
  5  0.000794449
  6  5.86398
  7  2.50145e-05
  8  8.58487e-05
  9  17.5894
  10  4.56118e-05
  11  3.77643
  12  21.0625
  13  2.89888e-05
  14  24.775
  15  0.00152286
  16  26.8975
  17  16.8633
  18  7.3384
  19  2.44844e-05
  20  89.8773
  21  0.220919
  22  0.108833
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  5.141e+00  3.776e+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:  1.011e+00  1.088e-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:  7.518e-01  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 9.83e-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) = 9341.36308195
delta logL = 1.23088526736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9341.17955738
delta logL = 1.41440983986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3626       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3547       1.0000          .0000       10.000    
     3 'Normalizat'    .78451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0053       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=   9341.180     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3613        2.1904        .66653E-02   -.25271E-03
   2  Index         1.3536        .34395        .23270       -.96300E-04
   3  Normalizat    .78441        .18185        .83066E-01    .40919E-04
   4  Prefactor     1.0053        .92117E-01    .44133E-01   -.14075E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36132
  Index      = 1.35357
  Normalizat = 0.784411
  Prefactor  = 1.00532
 **********
 **   18 **HESSE 
 **********

 FCN=   9341.180     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3613        3.4244        .12699E-03   -1.5401    
   2  Index         1.3536        .61372        .89735E-02   -.81728    
   3  Normalizat    .78441        .21223        .36781E-03   -1.0065    
   4  Prefactor     1.0053        .10782        .16542E-03   -.92553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54879e-12
Minuit parameter uncertainties:
  1  3.42471
  2  0.617065
  3  0.212455
  4  0.107847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319696': 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) = 9341.17955423
delta logL = 1.4144129831

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  2.361e+00  3.425e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.354e+00  6.171e-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:  1.005e+00  1.078e-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:  7.844e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.99
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 1.35 +/- 0.62
Photon Flux (Free Index): 8.63e-09 +/- 1.16e-08
Energy Flux (Free Index): 4.44e-05 +/- 5.90e-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/319696/cmap_HighResolution_605577601_605836801_4FGL_J1205.7-2635_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='4.44e-05', photon_flux_error='3.49e-08', dlogl='1.41e+00', energy_flux='1.34e-05', photon_flux2='8.63e-09', job_status='DONE', time_completed='2021-09-04 23:58:18.084692', photon_index_error2='0.62', photon_index2='1.35', ts='5.16', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='5.90e-05', EG='0.75', time_epoch_completed='1630825098.08', return_code='0', job_id='319696', GAL2='1.01', EG2='0.78', return_code2='0', energy_flux_error='9.83e-06', photon_flux_error2='1.16e-08', ts2='7.99', photon_index='2.53' WHERE bin_id='1413' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:58:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 319696: <4FGL_J1205.7-2635_daily_bin1413> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin1413> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 23:45:25 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:45:26 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:45:26 2021
Terminated at Sat Sep  4 23:58:18 2021
Results reported at Sat Sep  4 23:58:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1413 181.432 -26.5946 605577601 605836801 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 :                                   746.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

