/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 9 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 = 7470
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1205.7-2635_daily_bin133
RA = 181.432, Dec = -26.5946
tmin = 273801601, tmax = 274060801
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='312418', job_status='RUN', time_executed='2021-09-04 23:21:33.093792', time_epoch_executed='1630822893.09' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312418/ft1_4FGL_J1205.7-2635_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312418/ft2_4FGL_J1205.7-2635_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312418/ft1_4FGL_J1205.7-2635_daily_bin133.fits outfile=/scratch/kocevski/312418/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin133.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=273801601.0 tmax=274060801.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.66
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312418/ft1_filtered_4FGL_J1205.7-2635_daily_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/312418/ft2_4FGL_J1205.7-2635_daily_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/312418/ltcube_273801601_274060801_4FGL_J1205.7-2635_daily_bin133.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/312418/ft2_4FGL_J1205.7-2635_daily_bin133.fits
.....................!
real 11.81
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312418/ft1_filtered_4FGL_J1205.7-2635_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/312418/ft2_4FGL_J1205.7-2635_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/312418/ltcube_273801601_274060801_4FGL_J1205.7-2635_daily_bin133.fits outfile=/scratch/kocevski/312418/expmap_273801601_274060801_4FGL_J1205.7-2635_daily_bin133.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/312418/ltcube_273801601_274060801_4FGL_J1205.7-2635_daily_bin133.fits
.....................!
real 192.02
user 187.36
sys 4.23

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/312418/ft1_filtered_4FGL_J1205.7-2635_daily_bin133.fits scfile=/scratch/kocevski/312418/ft2_4FGL_J1205.7-2635_daily_bin133.fits outfile=/scratch/kocevski/312418/cmap_273801601_274060801_4FGL_J1205.7-2635_daily_bin133.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.53
user 0.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/312418/ft1_filtered_4FGL_J1205.7-2635_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/312418/ft2_4FGL_J1205.7-2635_daily_bin133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312418/Model_4FGL_J1205.7-2635_daily_bin133.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/312418/ft1_filtered_4FGL_J1205.7-2635_daily_bin133.fits.....................!
real 69.67
user 68.31
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4855       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.2639       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.366       1.0000         .10000E-03   10000.    
    10 'norm      '    .67350       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3038       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9043       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5645       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.135       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7723       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2321       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3132       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83381       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=   8503.682     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2357 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.718        21.572        .14467E-06    .72284E-06
   2  Prefactor     .10000E-03    5.3429       -.29737E-07** at limit **
   3  Prefactor     2.3520        76.120       -.63659E-06   -.22285E-05
   4  norm          2.7622        1.4464       -.44916E-08    .41975E-05
   5  Prefactor     .10000E-03    5.0186       -.12721E-07** at limit **
   6  Prefactor     .10000E-03    1.9506       -.23086E-07** at limit **
   7  Prefactor     .10000E-03    7.1808        .60093E-07** at limit **
   8  norm          8.2639        9.7527        .80233E-08    .13195E-05
   9  Prefactor     13.370        11.345        .12866E-05    .56146E-04
  10  norm          .67225        2.9325       -.69551E-06   -.23028E-03
  11  Prefactor     3.3034        4.1012       -.33307E-07   -.44462E-04
  12  Prefactor     .10000E-03    18.059        .73618E-07** at limit **
  13  Prefactor     3.9044        7.3768       -.28552E-06   -.24545E-03
  14  Prefactor     .10000E-03    8.4981        .13621E-07** at limit **
  15  Prefactor     3.5660        10.250        .10170E-05   -.15799E-03
  16  Prefactor     30.127        31.003       -.30333E-05    .22933E-06
  17  Prefactor     12.951        15.875       -.43415E-06   -.52071E-06
  18  Prefactor     5.7719        11.083       -.37526E-07   -.57759E-05
  19  norm          1.2321        .69010        .17140E-08   -.23883E-05
  20  Prefactor     .10000E-03    35.286       -.28169E-08** at limit **
  21  Normalizat    1.3132        .20105        .52818E-07    .25442E-04
  22  Prefactor     .83379        .96090E-01    .58021E-07    .22716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7185
  Prefactor  = 0.0001
  Prefactor  = 2.35201
  norm       = 2.76225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.26386
  Prefactor  = 13.3695
  norm       = 0.672246
  Prefactor  = 3.30344
  Prefactor  = 0.0001
  Prefactor  = 3.90445
  Prefactor  = 0.0001
  Prefactor  = 3.56597
  Prefactor  = 30.1271
  Prefactor  = 12.9508
  Prefactor  = 5.77189
  norm       = 1.23213
  Prefactor  = 0.0001
  Normalizat = 1.31323
  Prefactor  = 0.833792
 **********
 **   18 **HESSE 
 **********

 FCN=   8503.682     FROM HESSE     STATUS=OK           346 CALLS     2703 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.718        21.573        .90195E-04   -1.4820    
   2  Prefactor     .10000E-03    5.3760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3520        76.225        .25929E-03   -1.5401    
   4  norm          2.7622        1.4445        .76944E-04   -1.5376    
   5  Prefactor     .10000E-03    5.0380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9708        .12573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.2639        9.7529        .13946E-03   -1.5133    
   9  Prefactor     13.370        11.336        .10956E-03   -1.4977    
  10  norm          .67225        2.9815        .29547E-03   -1.5544    
  11  Prefactor     3.3034        4.1025        .19897E-03   -1.5344    
  12  Prefactor     .10000E-03    18.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9044        10.227        .10209E-02   -1.5313    
  14  Prefactor     .10000E-03    8.5115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5660        13.674        .10703E-02   -1.5330    
  16  Prefactor     30.127        31.262        .72986E-04   -1.4610    
  17  Prefactor     12.951        15.880        .11130E-03   -1.4988    
  18  Prefactor     5.7719        11.096        .16717E-03   -1.5227    
  19  norm          1.2321        .68069        .55473E-04   -1.5486    
  20  Prefactor     .10000E-03    35.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3132        .24160        .30480E-03   -.83172    
  22  Prefactor     .83379        .11644        .18122E-03   -.98494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63706e-10
Minuit parameter uncertainties:
  1  21.582
  2  1.05934e-06
  3  26.816
  4  1.44454
  5  4.34353e-07
  6  9.42805e-07
  7  9.35792e-07
  8  9.75477
  9  11.338
  10  2.8315
  11  4.10283
  12  7.75754e-07
  13  10.2318
  14  1.8861e-06
  15  13.6863
  16  31.2789
  17  15.8848
  18  11.0996
  19  0.680699
  20  1.47264e-08
  21  0.241803
  22  0.116475
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  3.303e+00  4.103e+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.338e-01  1.165e-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.313e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 181.432 -26.595
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312418/likelihoodResults_273801601_274060801_4FGL_J1205.7-2635_daily_bin133.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) = 8503.6816033
delta logL = 9.52252084971e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8503.68153496
delta logL = 0.00016356786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2429       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5486       1.0000          .0000       10.000    
     3 'Normalizat'    1.3127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83390       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=   8503.682     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      228 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2418        114.56        .56230E-02    .80600E-03
   2  Index         2.5486        6.2391        .23368        .79783E-04
   3  Normalizat    1.3127        .57866E-01    .68902E-01    .18876E-04
   4  Prefactor     .83400        .28124E-01    .44157E-01    .17949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24178
  Index      = 2.54856
  Normalizat = 1.31274
  Prefactor  = 0.834003
 **********
 **   18 **HESSE 
 **********

 FCN=   8503.682     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2418        5.9627        .19707E-03   -1.5348    
   2  Index         2.5486        1.1916        .11263E-01   -.51242    
   3  Normalizat    1.3127        .23753        .30485E-03   -.83187    
   4  Prefactor     .83400        .11569        .18120E-03   -.98487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85437e-09
Minuit parameter uncertainties:
  1  5.96384
  2  1.20692
  3  0.23773
  4  0.115728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312418': 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) = 8503.68153281
delta logL = 0.000165712124726

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  3.242e+00  5.964e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.549e+00  1.207e+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:  8.340e-01  1.157e-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.313e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
Ra Dec: 181.432 -26.595

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/312418/cmap_HighResolution_273801601_274060801_4FGL_J1205.7-2635_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-04 23:34:20.258645', job_id='312418', GAL2='0.83', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630823660.26', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.66e-04', ts2='0.79', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='133' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:34:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 312418: <4FGL_J1205.7-2635_daily_bin133> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin133> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:21:13 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:21:15 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:21:15 2021
Terminated at Sat Sep  4 23:34:21 2021
Results reported at Sat Sep  4 23:34:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin133 181.432 -26.5946 273801601 274060801 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 :                                   766.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            788 sec.

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

