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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1560
RA = 181.432, Dec = -26.5946
tmin = 643680001, tmax = 643939201
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='319927', job_status='RUN', time_executed='2021-09-04 23:47:44.474193', time_epoch_executed='1630824464.47' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319927

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319927/ft1_4FGL_J1205.7-2635_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319927/ft2_4FGL_J1205.7-2635_daily_bin1560.fits


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

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

Done.
real 3.57
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319927/ft1_filtered_4FGL_J1205.7-2635_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/319927/ft2_4FGL_J1205.7-2635_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/319927/ltcube_643680001_643939201_4FGL_J1205.7-2635_daily_bin1560.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/319927/ft2_4FGL_J1205.7-2635_daily_bin1560.fits
.....................!
real 11.74
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319927/ft1_filtered_4FGL_J1205.7-2635_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/319927/ft2_4FGL_J1205.7-2635_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/319927/ltcube_643680001_643939201_4FGL_J1205.7-2635_daily_bin1560.fits outfile=/scratch/kocevski/319927/expmap_643680001_643939201_4FGL_J1205.7-2635_daily_bin1560.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/319927/ltcube_643680001_643939201_4FGL_J1205.7-2635_daily_bin1560.fits
.....................!
real 192.08
user 187.10
sys 4.61

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/319927/ft1_filtered_4FGL_J1205.7-2635_daily_bin1560.fits scfile=/scratch/kocevski/319927/ft2_4FGL_J1205.7-2635_daily_bin1560.fits outfile=/scratch/kocevski/319927/cmap_643680001_643939201_4FGL_J1205.7-2635_daily_bin1560.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=181.432 yref=-26.5946 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/319927/ft1_filtered_4FGL_J1205.7-2635_daily_bin1560.fits scfile=/scratch/kocevski/319927/ft2_4FGL_J1205.7-2635_daily_bin1560.fits outfile=/scratch/kocevski/319927/cmap_HighResolution_643680001_643939201_4FGL_J1205.7-2635_daily_bin1560.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/319927/ft1_filtered_4FGL_J1205.7-2635_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/319927/ft2_4FGL_J1205.7-2635_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319927/Model_4FGL_J1205.7-2635_daily_bin1560.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/319927/ft1_filtered_4FGL_J1205.7-2635_daily_bin1560.fits.....................!
real 53.45
user 52.09
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.960       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1831       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.051       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.723       1.0000         .10000E-03   10000.    
    10 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.046       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.225       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11777       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4387       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85320       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=   5746.145     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2351 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.946        52.436       -.15987E-04   -.85701E-05
   2  Prefactor     .10000E-03    6.1872        .58924E-07** at limit **
   3  Prefactor     .10000E-03    28.620       -.96699E-05** at limit **
   4  norm          2.1833        1.6577       -.10037E-06   -.68114E-04
   5  Prefactor     2.2686        24.716       -.27387E-05   -.12147E-03
   6  Prefactor     .10004E-03    5.5203        .14545E-05** at limit **
   7  Prefactor     .10000E-03    16.480        .80714E-05** at limit **
   8  norm          19.053        31.080        .96056E-06   -.73273E-05
   9  Prefactor     25.727        17.262       -.58689E-06   -.94483E-04
  10  norm          .10000E-03    1.7406       -.14704E-07** at limit **
  11  Prefactor     11.051        9.2991       -.20363E-06   -.38063E-03
  12  Prefactor     .10000E-03    24.962       -.10959E-04** at limit **
  13  Prefactor     .10000E-03    9.6014       -.27051E-05** at limit **
  14  Prefactor     .10000E-03    32.986        .27540E-05** at limit **
  15  Prefactor     .10000E-03    10.540        .75037E-05** at limit **
  16  Prefactor     .10000E-03    45.445        .35487E-04** at limit **
  17  Prefactor     38.212        41.763       -.13664E-04   -.21582E-05
  18  Prefactor     .10000E-03    12.373       -.11943E-04** at limit **
  19  norm          .12231        .67759       -.17299E-06   -.14331E-03
  20  Prefactor     .10000E-03    69.268       -.30625E-04** at limit **
  21  Normalizat    1.4386        .28226        .30422E-05   -.12997E-03
  22  Prefactor     .85322        .12725        .90197E-06   -.60076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.9457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18327
  Prefactor  = 2.26861
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  norm       = 19.0526
  Prefactor  = 25.7273
  norm       = 0.0001
  Prefactor  = 11.0509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2118
  Prefactor  = 0.0001
  norm       = 0.12231
  Prefactor  = 0.0001
  Normalizat = 1.43856
  Prefactor  = 0.853216
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.145     FROM HESSE     STATUS=OK           344 CALLS     2695 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.946        52.496        .61164E-04   -1.4396    
   2  Prefactor     .10000E-03    6.1959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1833        1.6600        .82232E-04   -1.5412    
   5  Prefactor     2.2686        24.820        .27270E-03   -1.5407    
   6  Prefactor     .10004E-03    15.652        .33591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.053        31.103        .91763E-04   -1.4835    
   9  Prefactor     25.727        17.251        .78984E-04   -1.4693    
  10  norm          .10000E-03    1.7437        .97565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.051        9.2647        .12055E-03   -1.5043    
  12  Prefactor     .10000E-03    24.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.6281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.212        41.764        .64827E-04   -1.4471    
  18  Prefactor     .10000E-03    12.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .12231        2.7198        .11785E-02   -1.5638    
  20  Prefactor     .10000E-03    69.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4386        .33643        .33059E-03   -.79520    
  22  Prefactor     .85322        .15381        .19280E-03   -.97796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59228e-08
Minuit parameter uncertainties:
  1  52.5527
  2  3.15267e-05
  3  8.62344e-06
  4  1.66006
  5  15.0152
  6  0.00150535
  7  1.67403e-05
  8  31.1298
  9  17.2548
  10  1.2507e-06
  11  9.26592
  12  1.26996e-05
  13  1.18263e-05
  14  0.000132977
  15  1.83983e-05
  16  0.000147878
  17  41.796
  18  5.25511e-05
  19  1.15311
  20  9.99767e-06
  21  0.336947
  22  0.153886
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.105e+01  9.266e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.083e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.532e-01  1.539e-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.439e+00  3.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 8.57e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.41e-05

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

Saving results to:
/scratch/kocevski/319927/likelihoodResults_643680001_643939201_4FGL_J1205.7-2635_daily_bin1560.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) = 5745.21517234
delta logL = 0.929884563545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5745.20912441
delta logL = 0.935932490365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1308       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4650       1.0000          .0000       10.000    
     3 'Normalizat'    1.3480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5745.209     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      301 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1302        8.5220        .96302E-04   -.12880E-03
   2  Index         3.4651        1.0254        .48932E-02    .44027E-03
   3  Normalizat    1.3481        .33602        .33916E-03   -.13351E-03
   4  Prefactor     .88121        .15337        .18990E-03   -.22193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.1302
  Index      = 3.46507
  Normalizat = 1.34811
  Prefactor  = 0.881209
 **********
 **   18 **HESSE 
 **********

 FCN=   5745.209     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1302        6.9001        .38521E-05   -1.5255    
   2  Index         3.4651        .83170        .97864E-03   -.31202    
   3  Normalizat    1.3481        .33624        .13566E-04   -.82142    
   4  Prefactor     .88121        .15319        .37980E-04   -.96801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.515e-11
Minuit parameter uncertainties:
  1  6.90121
  2  0.835999
  3  0.336793
  4  0.15326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319927': 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) = 5745.20912427
delta logL = 0.935932628038

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  5.130e+00  6.901e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  3.465e+00  8.360e-01  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  7.083e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.812e-01  1.533e-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.348e+00  3.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.86
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 3.47 +/- 0.84
Photon Flux (Free Index): 1.84e-07 +/- 1.14e-07
Energy Flux (Free Index): 3.09e-05 +/- 1.93e-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/319927/cmap_HighResolution_643680001_643939201_4FGL_J1205.7-2635_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.09e-05', photon_flux_error='8.57e-08', dlogl='9.36e-01', energy_flux='2.88e-05', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-04 23:57:52.859257', photon_index_error2='0.84', photon_index2='3.47', ts='1.83', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='2.67e-07', energy_flux_error2='1.93e-05', EG='1.44', time_epoch_completed='1630825072.86', return_code='0', job_id='319927', GAL2='0.88', EG2='1.35', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='1.14e-07', ts2='3.86', photon_index='2.53' WHERE bin_id='1560' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:57:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 319927: <4FGL_J1205.7-2635_daily_bin1560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1560 181.432 -26.5946 643680001 643939201 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 :                                   605.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            727 sec.

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

