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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1139
RA = 181.432, Dec = -26.5946
tmin = 534556801, tmax = 534816001
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='318395', job_status='RUN', time_executed='2021-09-04 23:43:44.972078', time_epoch_executed='1630824224.97' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318395

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318395/ft1_4FGL_J1205.7-2635_daily_bin1139.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318395/ft2_4FGL_J1205.7-2635_daily_bin1139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318395/ft1_4FGL_J1205.7-2635_daily_bin1139.fits outfile=/scratch/kocevski/318395/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1139.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=534556801.0 tmax=534816001.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.99
user 3.69
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318395/ft2_4FGL_J1205.7-2635_daily_bin1139.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/318395/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1139.fits evtable="EVENTS" outfile="/scratch/kocevski/318395/ft1_filtered_4FGL_J1205.7-2635_daily_bin1139.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318395/ft1_filtered_4FGL_J1205.7-2635_daily_bin1139.fits" evtable="EVENTS" scfile=/scratch/kocevski/318395/ft2_4FGL_J1205.7-2635_daily_bin1139.fits sctable="SC_DATA" outfile=/scratch/kocevski/318395/ltcube_534556801_534816001_4FGL_J1205.7-2635_daily_bin1139.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/318395/ft2_4FGL_J1205.7-2635_daily_bin1139.fits
.....................!
real 11.96
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318395/ft1_filtered_4FGL_J1205.7-2635_daily_bin1139.fits evtable="EVENTS" scfile=/scratch/kocevski/318395/ft2_4FGL_J1205.7-2635_daily_bin1139.fits sctable="SC_DATA" expcube=/scratch/kocevski/318395/ltcube_534556801_534816001_4FGL_J1205.7-2635_daily_bin1139.fits outfile=/scratch/kocevski/318395/expmap_534556801_534816001_4FGL_J1205.7-2635_daily_bin1139.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/318395/ltcube_534556801_534816001_4FGL_J1205.7-2635_daily_bin1139.fits
.....................!
real 191.50
user 186.00
sys 5.13

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/318395/ft1_filtered_4FGL_J1205.7-2635_daily_bin1139.fits scfile=/scratch/kocevski/318395/ft2_4FGL_J1205.7-2635_daily_bin1139.fits outfile=/scratch/kocevski/318395/cmap_534556801_534816001_4FGL_J1205.7-2635_daily_bin1139.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.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318395/ft1_filtered_4FGL_J1205.7-2635_daily_bin1139.fits evtable="EVENTS" scfile=/scratch/kocevski/318395/ft2_4FGL_J1205.7-2635_daily_bin1139.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318395/Model_4FGL_J1205.7-2635_daily_bin1139.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/318395/ft1_filtered_4FGL_J1205.7-2635_daily_bin1139.fits.....................!
real 63.61
user 62.00
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.329       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .92145E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.280       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.304       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6175       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16852E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.142       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5868       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4606       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85065       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=   6839.806     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2066 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.298        41.470       -.16476E-04   -.44468E-04
   2  Prefactor     .10478E-03    11.881        .73454E-06** at limit **
   3  Prefactor     .10000E-03    28.018       -.24063E-05** at limit **
   4  norm          .10000E-03    .73394       -.68081E-08** at limit **
   5  Prefactor     5.0460        12.343       -.64114E-06   -.83365E-04
   6  Prefactor     .10000E-03    2.5460        .12330E-06** at limit **
   7  Prefactor     .10000E-03    15.230       -.24103E-06** at limit **
   8  norm          13.280        16.397       -.82897E-07    .51879E-05
   9  Prefactor     .10000E-03    19.562       -.35594E-06** at limit **
  10  norm          3.8253        4.7262       -.61905E-06   -.40010E-03
  11  Prefactor     11.308        8.6941        .18585E-05    .20411E-03
  12  Prefactor     .10000E-03    27.149        .22367E-05** at limit **
  13  Prefactor     .10000E-03    8.3596       -.19736E-06** at limit **
  14  Prefactor     1.6091        214.56       -.23512E-04   -.47550E-04
  15  Prefactor     .10000E-03    14.383        .35079E-06** at limit **
  16  Prefactor     .10000E-03    120.52        .45010E-05** at limit **
  17  Prefactor     .10000E-03    50.113       -.48932E-05** at limit **
  18  Prefactor     10.143        14.603       -.44990E-06   -.44522E-04
  19  norm          4.5869        1.4366       -.10964E-06   -.10424E-03
  20  Prefactor     .10000E-03    114.28        .35733E-04** at limit **
  21  Normalizat    1.4604        .25003        .88040E-06   -.24627E-04
  22  Prefactor     .85074        .11507       -.14831E-07    .48514E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.2985
  Prefactor  = 0.000104778
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.04602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2804
  Prefactor  = 0.0001
  norm       = 3.82532
  Prefactor  = 11.3084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1426
  norm       = 4.58694
  Prefactor  = 0.0001
  Normalizat = 1.46043
  Prefactor  = 0.850741
 **********
 **   18 **HESSE 
 **********

 FCN=   6839.806     FROM HESSE     STATUS=OK           350 CALLS     2416 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.298        42.256        .28264E-03   -1.4288    
   2  Prefactor     .10478E-03    13.856        .83816E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.1064        .13708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0460        12.346        .17900E-03   -1.5259    
   6  Prefactor     .10000E-03    2.5562        .12883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.280        16.396        .10991E-03   -1.4979    
   9  Prefactor     .10000E-03    19.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8253        4.7229        .19047E-03   -1.5317    
  11  Prefactor     11.308        8.4448        .11915E-03   -1.5035    
  12  Prefactor     .10000E-03    27.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6091        205.16        .33285E-03   -1.5454    
  15  Prefactor     .10000E-03    14.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    121.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.143        14.603        .12582E-03   -1.5071    
  19  norm          4.5869        1.4360        .53195E-04   -1.5280    
  20  Prefactor     .10000E-03    113.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4604        .29719        .32439E-03   -.78896    
  22  Prefactor     .85074        .13733        .19448E-03   -.97884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03865e-09
Minuit parameter uncertainties:
  1  42.2814
  2  0.0162766
  3  7.86508e-06
  4  2.61335e-05
  5  12.3523
  6  3.68957e-07
  7  1.00786e-05
  8  16.4016
  9  3.36109e-05
  10  4.72336
  11  8.44572
  12  2.9396e-06
  13  2.19188e-06
  14  36.4651
  15  8.79214e-06
  16  0.00013381
  17  0.0001385
  18  14.6082
  19  1.43602
  20  7.43492e-05
  21  0.297544
  22  0.137383
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.131e+01  8.446e+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.507e-01  1.374e-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.460e+00  2.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 7.81e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 2.20e-05

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

Saving results to:
/scratch/kocevski/318395/likelihoodResults_534556801_534816001_4FGL_J1205.7-2635_daily_bin1139.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) = 6839.72941821
delta logL = 0.0766579934862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6839.72441828
delta logL = 0.081657920412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.873       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2218       1.0000          .0000       10.000    
     3 'Normalizat'    1.4855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84141       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=   6839.724     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      306 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.875        10.034        .10754E-03    .33829E-05
   2  Index         2.2217        .68558        .92347E-02    .11851E-03
   3  Normalizat    1.4854        .29306        .32211E-03    .23295E-04
   4  Prefactor     .84147        .13746        .19540E-03   -.32931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8748
  Index      = 2.22174
  Normalizat = 1.48542
  Prefactor  = 0.841466
 **********
 **   18 **HESSE 
 **********

 FCN=   6839.724     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.875        9.8413        .43016E-05   -1.4963    
   2  Index         2.2217        .67202        .18469E-02   -.58915    
   3  Normalizat    1.4854        .29303        .12884E-04   -.78189    
   4  Prefactor     .84147        .13745        .78161E-05   -.98217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20538e-11
Minuit parameter uncertainties:
  1  9.84243
  2  0.674985
  3  0.293369
  4  0.137511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318395': 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) = 6839.72441814
delta logL = 0.0816580636874

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.387e+01  9.842e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.222e+00  6.750e-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.415e-01  1.375e-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.485e+00  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 2.22 +/- 0.67
Photon Flux (Free Index): 8.80e-08 +/- 7.46e-08
Energy Flux (Free Index): 3.80e-05 +/- 3.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/318395/cmap_HighResolution_534556801_534816001_4FGL_J1205.7-2635_daily_bin1139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-02', comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.80e-05', photon_flux_error='7.81e-08', dlogl='8.17e-02', energy_flux='2.94e-05', photon_flux2='8.80e-08', job_status='DONE', time_completed='2021-09-04 23:54:51.209760', photon_index_error2='0.67', photon_index2='2.22', ts='3.11', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='2.43e-07', energy_flux_error2='3.62e-05', EG='1.46', time_epoch_completed='1630824891.21', return_code='0', job_id='318395', GAL2='0.84', EG2='1.49', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='7.46e-08', ts2='3.26', photon_index='2.53' WHERE bin_id='1139' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:54:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 318395: <4FGL_J1205.7-2635_daily_bin1139> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1139 181.432 -26.5946 534556801 534816001 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 :                                   653.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

