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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1345
RA = 181.432, Dec = -26.5946
tmin = 587952001, tmax = 588211201
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='319589', job_status='RUN', time_executed='2021-09-04 23:46:50.183295', time_epoch_executed='1630824410.18' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319589/ft1_4FGL_J1205.7-2635_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319589/ft2_4FGL_J1205.7-2635_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319589/ft1_4FGL_J1205.7-2635_daily_bin1345.fits outfile=/scratch/kocevski/319589/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1345.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=587952001.0 tmax=588211201.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.52
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319589/ft1_filtered_4FGL_J1205.7-2635_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/319589/ft2_4FGL_J1205.7-2635_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/319589/ltcube_587952001_588211201_4FGL_J1205.7-2635_daily_bin1345.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/319589/ft2_4FGL_J1205.7-2635_daily_bin1345.fits
.....................!
real 13.04
user 12.54
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319589/ft1_filtered_4FGL_J1205.7-2635_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/319589/ft2_4FGL_J1205.7-2635_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/319589/ltcube_587952001_588211201_4FGL_J1205.7-2635_daily_bin1345.fits outfile=/scratch/kocevski/319589/expmap_587952001_588211201_4FGL_J1205.7-2635_daily_bin1345.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/319589/ltcube_587952001_588211201_4FGL_J1205.7-2635_daily_bin1345.fits
.....................!
real 192.76
user 186.20
sys 5.43

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/319589/ft1_filtered_4FGL_J1205.7-2635_daily_bin1345.fits scfile=/scratch/kocevski/319589/ft2_4FGL_J1205.7-2635_daily_bin1345.fits outfile=/scratch/kocevski/319589/cmap_587952001_588211201_4FGL_J1205.7-2635_daily_bin1345.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.56
user 0.40
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/319589/ft1_filtered_4FGL_J1205.7-2635_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/319589/ft2_4FGL_J1205.7-2635_daily_bin1345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319589/Model_4FGL_J1205.7-2635_daily_bin1345.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/319589/ft1_filtered_4FGL_J1205.7-2635_daily_bin1345.fits.....................!
real 64.97
user 62.86
sys 1.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.956       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    93.556       1.0000         .10000E-03   10000.    
     4 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9213       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.378       1.0000         .10000E-03   10000.    
     8 'norm      '    13.104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.332       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6648       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.263       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25425E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11907E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.4686       1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.750       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0231       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99087       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=   7457.262     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2384 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.958        28.545        .12007E-06   -.54657E-05
   2  Prefactor     .10000E-03    2.9814        .10068E-06** at limit **
   3  Prefactor     93.582        71.045       -.43877E-05   -.13083E-03
   4  norm          .10001E-03    .85897        .67049E-06** at limit **
   5  Prefactor     9.9271        10.309        .10659E-06   -.80720E-05
   6  Prefactor     .10000E-03    5.4835        .58736E-06** at limit **
   7  Prefactor     12.374        17.249        .22237E-07   -.74731E-05
   8  norm          13.108        14.879        .50142E-07   -.57018E-05
   9  Prefactor     25.337        18.640       -.57931E-06   -.42935E-04
  10  norm          4.9651        5.8813       -.21583E-07   -.71108E-04
  11  Prefactor     7.7747        5.0116        .11281E-06   -.80246E-04
  12  Prefactor     3.5275        189.07        .81925E-05   -.25814E-04
  13  Prefactor     .10000E-03    6.6805        .13549E-06** at limit **
  14  Prefactor     .10000E-03    25.535        .21775E-06** at limit **
  15  Prefactor     28.303        36.341       -.65971E-06   -.91328E-04
  16  Prefactor     .10000E-03    222.49        .13291E-04** at limit **
  17  Prefactor     18.173        25.593        .35720E-06   -.17004E-04
  18  Prefactor     .10000E-03    27.547       -.22373E-05** at limit **
  19  norm          4.4687        1.4317        .72473E-08    .28221E-04
  20  Prefactor     56.544        113.73       -.14621E-06   -.14907E-04
  21  Normalizat    1.0225        .23523       -.10587E-05   -.15559E-03
  22  Prefactor     .99112        .11204       -.73317E-07   -.25849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9576
  Prefactor  = 0.0001
  Prefactor  = 93.5825
  norm       = 0.00010001
  Prefactor  = 9.92714
  Prefactor  = 0.0001
  Prefactor  = 12.3742
  norm       = 13.1085
  Prefactor  = 25.3374
  norm       = 4.96506
  Prefactor  = 7.77473
  Prefactor  = 3.52754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3026
  Prefactor  = 0.000100002
  Prefactor  = 18.1727
  Prefactor  = 0.0001
  norm       = 4.4687
  Prefactor  = 56.544
  Normalizat = 1.02246
  Prefactor  = 0.991123
 **********
 **   18 **HESSE 
 **********

 FCN=   7457.262     FROM HESSE     STATUS=OK           348 CALLS     2732 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.958        28.552        .94518E-04   -1.4860    
   2  Prefactor     .10000E-03    2.9838        .14563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     93.582        70.829        .41550E-04   -1.3770    
   4  norm          .10001E-03    7.6297        .14179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.9271        10.310        .12722E-03   -1.5078    
   6  Prefactor     .10000E-03    5.7081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.374        17.242        .11386E-03   -1.5004    
   8  norm          13.108        14.881        .11065E-03   -1.4984    
   9  Prefactor     25.337        18.568        .79591E-04   -1.4701    
  10  norm          4.9651        5.8456        .18048E-03   -1.5262    
  11  Prefactor     7.7747        5.0060        .14382E-03   -1.5150    
  12  Prefactor     3.5275        187.58        .21100E-03   -1.5332    
  13  Prefactor     .10000E-03    6.6984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.303        35.917        .75359E-04   -1.4643    
  16  Prefactor     .10000E-03    219.19        .20001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.173        25.603        .93997E-04   -1.4855    
  18  Prefactor     .10000E-03    27.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.4687        1.4311        .55908E-04   -1.5285    
  20  Prefactor     56.544        113.69        .26626E-03   -1.4203    
  21  Normalizat    1.0225        .27684        .36615E-03   -.92282    
  22  Prefactor     .99112        .13302        .18128E-03   -.93026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37873e-09
Minuit parameter uncertainties:
  1  28.5734
  2  1.05337e-06
  3  70.893
  4  0.000543263
  5  10.3123
  6  1.38413e-06
  7  17.2488
  8  14.8849
  9  18.5718
  10  5.84631
  11  5.00623
  12  51.617
  13  1.20514e-06
  14  2.32934e-06
  15  35.9445
  16  0.00125229
  17  25.6186
  18  0.000161023
  19  1.43107
  20  114.128
  21  0.277226
  22  0.133066
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  7.775e+00  5.006e+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.911e-01  1.331e-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.022e+00  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 7.19e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.30e-05

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) = 7456.82510983
delta logL = 0.437316239798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7456.79480382
delta logL = 0.467622253565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9186       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0392       1.0000          .0000       10.000    
     3 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98253       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=   7456.795     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      265 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9185        6.4520        .12723E-03    .46695E-03
   2  Index         2.0391        .46616        .79922E-02    .11669E-03
   3  Normalizat    1.0481        .26847        .36226E-03    .25712E-03
   4  Prefactor     .98253        .13171        .18196E-03    .40452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.91849
  Index      = 2.03915
  Normalizat = 1.04809
  Prefactor  = 0.982534
 **********
 **   18 **HESSE 
 **********

 FCN=   7456.795     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9185        6.4568        .50894E-05   -1.5078    
   2  Index         2.0391        .46651        .31969E-03   -.63375    
   3  Normalizat    1.0481        .26866        .14490E-04   -.91436    
   4  Prefactor     .98253        .13181        .36392E-04   -.93314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5496e-10
Minuit parameter uncertainties:
  1  6.45721
  2  0.467557
  3  0.269011
  4  0.131853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319589': 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) = 7456.79480381
delta logL = 0.467622263839

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  9.918e+00  6.457e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.039e+00  4.676e-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:  9.825e-01  1.319e-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.048e+00  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 2.04 +/- 0.47
Photon Flux (Free Index): 5.17e-08 +/- 4.22e-08
Energy Flux (Free Index): 3.25e-05 +/- 2.88e-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/319589/cmap_HighResolution_587952001_588211201_4FGL_J1205.7-2635_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.19e-08', energy_flux2='3.25e-05', photon_flux_error='4.63e-08', dlogl='4.68e-01', energy_flux='2.02e-05', photon_flux2='5.17e-08', job_status='DONE', time_completed='2021-09-04 23:57:45.831757', photon_index_error2='0.47', photon_index2='2.04', ts='4.43', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.88e-05', EG='1.02', time_epoch_completed='1630825065.83', return_code='0', job_id='319589', GAL2='0.98', EG2='1.05', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.22e-08', ts2='5.37', photon_index='2.53' WHERE bin_id='1345' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:57:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 319589: <4FGL_J1205.7-2635_daily_bin1345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1345 181.432 -26.5946 587952001 588211201 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

