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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1608
RA = 181.432, Dec = -26.5946
tmin = 656121601, tmax = 656380801
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='326844', job_status='RUN', time_executed='2021-12-07 22:52:47.606431', time_epoch_executed='1638946367.61' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326844

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326844/ft1_4FGL_J1205.7-2635_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326844/ft2_4FGL_J1205.7-2635_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326844/ft1_4FGL_J1205.7-2635_daily_bin1608.fits outfile=/scratch/kocevski/326844/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1608.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=656121601.0 tmax=656380801.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.53
user 3.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326844/ft2_4FGL_J1205.7-2635_daily_bin1608.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/326844/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1608.fits evtable="EVENTS" outfile="/scratch/kocevski/326844/ft1_filtered_4FGL_J1205.7-2635_daily_bin1608.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326844/ft1_filtered_4FGL_J1205.7-2635_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/326844/ft2_4FGL_J1205.7-2635_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/326844/ltcube_656121601_656380801_4FGL_J1205.7-2635_daily_bin1608.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/326844/ft2_4FGL_J1205.7-2635_daily_bin1608.fits
.....................!
real 12.65
user 12.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326844/ft1_filtered_4FGL_J1205.7-2635_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/326844/ft2_4FGL_J1205.7-2635_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/326844/ltcube_656121601_656380801_4FGL_J1205.7-2635_daily_bin1608.fits outfile=/scratch/kocevski/326844/expmap_656121601_656380801_4FGL_J1205.7-2635_daily_bin1608.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/326844/ltcube_656121601_656380801_4FGL_J1205.7-2635_daily_bin1608.fits
.....................!
real 190.71
user 185.32
sys 4.85

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/326844/ft1_filtered_4FGL_J1205.7-2635_daily_bin1608.fits scfile=/scratch/kocevski/326844/ft2_4FGL_J1205.7-2635_daily_bin1608.fits outfile=/scratch/kocevski/326844/cmap_656121601_656380801_4FGL_J1205.7-2635_daily_bin1608.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326844/ft1_filtered_4FGL_J1205.7-2635_daily_bin1608.fits scfile=/scratch/kocevski/326844/ft2_4FGL_J1205.7-2635_daily_bin1608.fits outfile=/scratch/kocevski/326844/cmap_HighResolution_656121601_656380801_4FGL_J1205.7-2635_daily_bin1608.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/326844/ft1_filtered_4FGL_J1205.7-2635_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/326844/ft2_4FGL_J1205.7-2635_daily_bin1608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/326844/Model_4FGL_J1205.7-2635_daily_bin1608.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/326844/ft1_filtered_4FGL_J1205.7-2635_daily_bin1608.fits.....................!
real 70.66
user 69.32
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6838       1.0000         .10000E-03   10000.    
     4 'norm      '    .62432       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.984       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8799       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3136       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0061       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=   8744.640     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2333 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7111        17.491        .12589E-06   -.33165E-05
   2  Prefactor     .10000E-03    5.0868        .50497E-07** at limit **
   3  Prefactor     8.6822        51.541       -.10519E-06   -.10193E-04
   4  norm          .62423        .67756       -.13776E-07    .62818E-04
   5  Prefactor     .10000E-03    6.7995        .89508E-07** at limit **
   6  Prefactor     11.040        5.3836        .39210E-07   -.61077E-04
   7  Prefactor     .10000E-03    8.1769       -.76964E-07** at limit **
   8  norm          16.984        18.163        .68843E-07   -.33402E-05
   9  Prefactor     .10000E-03    10.101        .33614E-07** at limit **
  10  norm          .10000E-03    1.4337        .10617E-07** at limit **
  11  Prefactor     6.7473        5.1052       -.42201E-07   -.47077E-03
  12  Prefactor     .10000E-03    14.113        .34408E-07** at limit **
  13  Prefactor     .10000E-03    3.9913        .19164E-07** at limit **
  14  Prefactor     .10001E-03    49.468        .48482E-05** at limit **
  15  Prefactor     .10000E-03    33.620       -.73618E-06** at limit **
  16  Prefactor     .10001E-03    63.173       -.53497E-05** at limit **
  17  Prefactor     38.310        22.631       -.16620E-06   -.10545E-03
  18  Prefactor     5.8792        15.179        .47618E-05   -.18106E-03
  19  norm          1.3552        1.0306        .41675E-07   -.14999E-03
  20  Prefactor     .10000E-03    34.190       -.49590E-06** at limit **
  21  Normalizat    1.3136        .21976       -.29273E-06   -.23408E-04
  22  Prefactor     1.0061        .10693       -.16246E-06   -.25060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.71112
  Prefactor  = 0.0001
  Prefactor  = 8.68217
  norm       = 0.624227
  Prefactor  = 0.0001
  Prefactor  = 11.0401
  Prefactor  = 0.0001
  norm       = 16.9844
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.74726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 38.3098
  Prefactor  = 5.87915
  norm       = 1.35524
  Prefactor  = 0.0001
  Normalizat = 1.3136
  Prefactor  = 1.0061
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.640     FROM HESSE     STATUS=OK           340 CALLS     2673 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7111        17.483        .14440E-03   -1.5153    
   2  Prefactor     .10000E-03    5.1336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6822        51.295        .13603E-03   -1.5119    
   4  norm          .62423        .67578        .77231E-04   -1.5550    
   5  Prefactor     .10000E-03    6.8505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.040        5.3898        .12058E-03   -1.5043    
   7  Prefactor     .10000E-03    8.1822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.984        18.171        .97185E-04   -1.4883    
   9  Prefactor     .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4472        .10932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7473        5.1814        .15439E-03   -1.5188    
  12  Prefactor     .10000E-03    14.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    53.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    66.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.310        22.693        .64750E-04   -1.4469    
  18  Prefactor     5.8792        15.650        .82807E-03   -1.5223    
  19  norm          1.3552        1.0154        .79420E-04   -1.5475    
  20  Prefactor     .10000E-03    34.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3136        .26209        .33689E-03   -.83161    
  22  Prefactor     1.0061        .12767        .18775E-03   -.92526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59418e-10
Minuit parameter uncertainties:
  1  17.495
  2  2.72571e-06
  3  42.2612
  4  0.675787
  5  6.34514e-06
  6  5.39002
  7  5.71915e-06
  8  18.1769
  9  7.93681e-06
  10  6.80293e-07
  11  5.1817
  12  9.029e-06
  13  8.07326e-07
  14  0.00148998
  15  6.71204e-05
  16  0.00146429
  17  22.6986
  18  15.6607
  19  1.01537
  20  0.000109111
  21  0.262358
  22  0.12771
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  6.747e+00  5.182e+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.006e+00  1.277e-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.314e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 6.24e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.35e-05

TS (Fixed Index): 2.36
Ra Dec: 181.432 -26.595
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/326844/likelihoodResults_656121601_656380801_4FGL_J1205.7-2635_daily_bin1608.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) = 8744.46382479
delta logL = 0.175811730536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8744.45712811
delta logL = 0.18250840795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5083       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9964       1.0000          .0000       10.000    
     3 'Normalizat'    1.2889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0147       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=   8744.457     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      244 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5083        67.470        .47404E-02    .13519E-02
   2  Index         2.9965        3.7511        .14842        .15636E-03
   3  Normalizat    1.2889        .81962E-01    .76707E-01    .16572E-04
   4  Prefactor     1.0147        .38689E-01    .42719E-01    .39242E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50834
  Index      = 2.99648
  Normalizat = 1.28892
  Prefactor  = 1.01466
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.457     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5083        6.8110        .13284E-03   -1.5283    
   2  Index         2.9965        1.0352        .77343E-02   -.41228    
   3  Normalizat    1.2889        .26029        .33950E-03   -.83898    
   4  Prefactor     1.0147        .12832        .18703E-03   -.92243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46531e-08
Minuit parameter uncertainties:
  1  6.81215
  2  1.04421
  3  0.260556
  4  0.128358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326844': 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) = 8744.4571281
delta logL = 0.182508413869

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  4.508e+00  6.812e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.996e+00  1.044e+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.015e+00  1.284e-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.289e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 3.00 +/- 1.04
Photon Flux (Free Index): 7.98e-08 +/- 5.81e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.24e-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/326844/cmap_HighResolution_656121601_656380801_4FGL_J1205.7-2635_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='6.24e-08', energy_flux2='1.60e-05', photon_flux_error='4.79e-08', dlogl='1.83e-01', energy_flux='1.76e-05', photon_flux2='7.98e-08', job_status='DONE', time_completed='2021-12-07 23:05:50.316143', photon_index_error2='1.04', photon_index2='3.00', ts='2.36', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.24e-05', EG='1.31', time_epoch_completed='1638947150.32', return_code='0', job_id='326844', GAL2='1.01', EG2='1.29', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.81e-08', ts2='2.75', photon_index='2.53' WHERE bin_id='1608' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:05:50 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 326844: <4FGL_J1205.7-2635_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin1608> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 22:50:19 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 22:51:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 22:51:17 2021
Terminated at Tue Dec  7 23:05:51 2021
Results reported at Tue Dec  7 23:05:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1608 181.432 -26.5946 656121601 656380801 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 :                                   782.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            932 sec.

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

