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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1067
RA = 181.432, Dec = -26.5946
tmin = 515894401, tmax = 516153601
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='318286', job_status='RUN', time_executed='2021-09-04 23:42:02.633617', time_epoch_executed='1630824122.63' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318286/ft1_4FGL_J1205.7-2635_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318286/ft2_4FGL_J1205.7-2635_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318286/ft1_4FGL_J1205.7-2635_daily_bin1067.fits outfile=/scratch/kocevski/318286/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1067.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=515894401.0 tmax=516153601.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.76
user 3.54
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318286/ft1_filtered_4FGL_J1205.7-2635_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/318286/ft2_4FGL_J1205.7-2635_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/318286/ltcube_515894401_516153601_4FGL_J1205.7-2635_daily_bin1067.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/318286/ft2_4FGL_J1205.7-2635_daily_bin1067.fits
.....................!
real 12.88
user 12.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318286/ft1_filtered_4FGL_J1205.7-2635_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/318286/ft2_4FGL_J1205.7-2635_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/318286/ltcube_515894401_516153601_4FGL_J1205.7-2635_daily_bin1067.fits outfile=/scratch/kocevski/318286/expmap_515894401_516153601_4FGL_J1205.7-2635_daily_bin1067.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/318286/ltcube_515894401_516153601_4FGL_J1205.7-2635_daily_bin1067.fits
.....................!
real 190.99
user 186.06
sys 4.49

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/318286/ft1_filtered_4FGL_J1205.7-2635_daily_bin1067.fits scfile=/scratch/kocevski/318286/ft2_4FGL_J1205.7-2635_daily_bin1067.fits outfile=/scratch/kocevski/318286/cmap_515894401_516153601_4FGL_J1205.7-2635_daily_bin1067.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318286/ft1_filtered_4FGL_J1205.7-2635_daily_bin1067.fits scfile=/scratch/kocevski/318286/ft2_4FGL_J1205.7-2635_daily_bin1067.fits outfile=/scratch/kocevski/318286/cmap_HighResolution_515894401_516153601_4FGL_J1205.7-2635_daily_bin1067.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/318286/ft1_filtered_4FGL_J1205.7-2635_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/318286/ft2_4FGL_J1205.7-2635_daily_bin1067.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318286/Model_4FGL_J1205.7-2635_daily_bin1067.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/318286/ft1_filtered_4FGL_J1205.7-2635_daily_bin1067.fits.....................!
real 53.47
user 52.17
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.480       1.0000         .10000E-03   10000.    
     4 'norm      '    .69630       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12415E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.820       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7580       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.681       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3798       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5078       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2469       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91274       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=   5938.168     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2339 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.751        25.758       -.70972E-06   -.10690E-04
   2  Prefactor     .10000E-03    4.0736        .40144E-07** at limit **
   3  Prefactor     45.477        47.015       -.20521E-05    .36947E-05
   4  norm          .69735        1.4493       -.18334E-06   -.12747E-02
   5  Prefactor     .10000E-03    6.3234       -.85324E-07** at limit **
   6  Prefactor     .10000E-03    10.079        .85096E-06** at limit **
   7  Prefactor     .10000E-03    29.047        .47485E-05** at limit **
   8  norm          .10000E-03    80.574        .62229E-04** at limit **
   9  Prefactor     .10000E-03    9.5812       -.53837E-06** at limit **
  10  norm          .10000E-03    1.5010       -.43798E-07** at limit **
  11  Prefactor     8.0472        8.7434       -.14539E-05   -.19081E-03
  12  Prefactor     .10000E-03    137.68       -.12837E-03** at limit **
  13  Prefactor     17.820        16.130       -.28525E-07   -.23766E-04
  14  Prefactor     4.7652        57.747        .77731E-05   -.12701E-04
  15  Prefactor     13.668        28.250       -.21469E-05    .13945E-03
  16  Prefactor     .10000E-03    87.271        .59081E-04** at limit **
  17  Prefactor     .10000E-03    12.507       -.65678E-06** at limit **
  18  Prefactor     6.3802        10.989       -.17924E-06   -.33755E-04
  19  norm          4.5078        1.5606       -.15366E-06   -.31949E-02
  20  Prefactor     .10000E-03    52.887       -.41078E-04** at limit **
  21  Normalizat    1.2465        .26283       -.24199E-06   -.82430E-04
  22  Prefactor     .91288        .12325        .55588E-07   -.18591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7514
  Prefactor  = 0.0001
  Prefactor  = 45.4774
  norm       = 0.697346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.04716
  Prefactor  = 0.000100003
  Prefactor  = 17.8201
  Prefactor  = 4.76518
  Prefactor  = 13.6684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.38025
  norm       = 4.50782
  Prefactor  = 0.0001
  Normalizat = 1.24653
  Prefactor  = 0.91288
 **********
 **   18 **HESSE 
 **********

 FCN=   5938.168     FROM HESSE     STATUS=OK           342 CALLS     2681 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.751        25.756        .11685E-03   -1.5022    
   2  Prefactor     .10000E-03    4.0777        .15188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.477        46.916        .29726E-03   -1.4358    
   4  norm          .69735        1.3419        .12802E-02   -1.5541    
   5  Prefactor     .10000E-03    6.3333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    81.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5051        .92184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0472        8.6767        .14134E-03   -1.5141    
  12  Prefactor     .10000E-03    137.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.820        16.135        .94878E-04   -1.4863    
  14  Prefactor     4.7652        56.647        .18446E-03   -1.5271    
  15  Prefactor     13.668        28.202        .10829E-03   -1.4968    
  16  Prefactor     .10000E-03    87.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3802        10.982        .15891E-03   -1.5203    
  19  norm          4.5078        1.5613        .27192E-03   -1.5283    
  20  Prefactor     .10000E-03    52.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2465        .31482        .34012E-03   -.85177    
  22  Prefactor     .91288        .14858        .18531E-03   -.95692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05401e-09
Minuit parameter uncertainties:
  1  25.78
  2  2.14586e-06
  3  46.9542
  4  1.34197
  5  1.41457e-06
  6  3.47301e-05
  7  3.02703e-05
  8  0.000809829
  9  3.44139e-05
  10  4.86955e-06
  11  8.6781
  12  0.00124379
  13  16.1392
  14  32.898
  15  28.2291
  16  0.000338757
  17  1.53789e-06
  18  10.9856
  19  1.56129
  20  1.40705e-05
  21  0.3153
  22  0.148647
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  8.047e+00  8.678e+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.129e-01  1.486e-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.247e+00  3.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 7.45e-08 +/- 8.02e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 2.26e-05

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

Saving results to:
/scratch/kocevski/318286/likelihoodResults_515894401_516153601_4FGL_J1205.7-2635_daily_bin1067.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) = 5937.79935567
delta logL = 0.368926494649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5937.77624899
delta logL = 0.392033174319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5336       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6621       1.0000          .0000       10.000    
     3 'Normalizat'    1.1693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94172       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=   5937.776     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      255 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5308        41.175        .64150E-02    .67594E-03
   2  Index         3.6633        3.7452        .12892        .15015E-03
   3  Normalizat    1.1692        .86323E-01    .78958E-01    .27504E-04
   4  Prefactor     .94173        .40561E-01    .45535E-01    .57754E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53083
  Index      = 3.6633
  Normalizat = 1.16917
  Prefactor  = 0.941729
 **********
 **   18 **HESSE 
 **********

 FCN=   5937.776     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5308        72.246        .90876E-04   -1.5390    
   2  Index         3.6633        6.8187        .62949E-02   -.27063    
   3  Normalizat    1.1692        .31887        .34951E-03   -.87561    
   4  Prefactor     .94173        .16004        .18275E-03   -.94698    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.3293e-10
Minuit parameter uncertainties:
  1  27.0795
  2  6.75503
  3  0.319403
  4  0.160116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318286': 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): 102
logL (Free Index) = 5937.77624825
delta logL = 0.392033907706

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  2.531e+00  2.708e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  3.663e+00  6.755e+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:  9.417e-01  1.601e-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.169e+00  3.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 3.66 +/- 6.76
Photon Flux (Free Index): 1.24e-07 +/- 9.80e-08
Energy Flux (Free Index): 1.98e-05 +/- 3.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/318286/cmap_HighResolution_515894401_516153601_4FGL_J1205.7-2635_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-02', comment='SUCCESS', photon_flux='7.45e-08', energy_flux2='1.98e-05', photon_flux_error='8.02e-08', dlogl='3.92e-01', energy_flux='2.09e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-04 23:52:25.659251', photon_index_error2='6.76', photon_index2='3.66', ts='1.22', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.24e-07', energy_flux_error2='3.37e-05', EG='1.25', time_epoch_completed='1630824745.66', return_code='0', job_id='318286', GAL2='0.94', EG2='1.17', return_code2='102', energy_flux_error='2.26e-05', photon_flux_error2='9.80e-08', ts2='2.11', photon_index='2.53' WHERE bin_id='1067' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:52:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 318286: <4FGL_J1205.7-2635_daily_bin1067> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1067 181.432 -26.5946 515894401 516153601 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 :                                   618.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            696 sec.

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

