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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1505
RA = 181.432, Dec = -26.5946
tmin = 629424001, tmax = 629683201
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='319840', job_status='RUN', time_executed='2021-09-04 23:46:15.416819', time_epoch_executed='1630824375.42' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319840/ft1_4FGL_J1205.7-2635_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319840/ft2_4FGL_J1205.7-2635_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319840/ft1_4FGL_J1205.7-2635_daily_bin1505.fits outfile=/scratch/kocevski/319840/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1505.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=629424001.0 tmax=629683201.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.51
user 3.31
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/319840/ft2_4FGL_J1205.7-2635_daily_bin1505.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/319840/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1505.fits evtable="EVENTS" outfile="/scratch/kocevski/319840/ft1_filtered_4FGL_J1205.7-2635_daily_bin1505.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319840/ft1_filtered_4FGL_J1205.7-2635_daily_bin1505.fits" evtable="EVENTS" scfile=/scratch/kocevski/319840/ft2_4FGL_J1205.7-2635_daily_bin1505.fits sctable="SC_DATA" outfile=/scratch/kocevski/319840/ltcube_629424001_629683201_4FGL_J1205.7-2635_daily_bin1505.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/319840/ft2_4FGL_J1205.7-2635_daily_bin1505.fits
.....................!
real 11.94
user 11.63
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319840/ft1_filtered_4FGL_J1205.7-2635_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/319840/ft2_4FGL_J1205.7-2635_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/319840/ltcube_629424001_629683201_4FGL_J1205.7-2635_daily_bin1505.fits outfile=/scratch/kocevski/319840/expmap_629424001_629683201_4FGL_J1205.7-2635_daily_bin1505.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/319840/ltcube_629424001_629683201_4FGL_J1205.7-2635_daily_bin1505.fits
.....................!
real 189.62
user 185.13
sys 4.14

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/319840/ft1_filtered_4FGL_J1205.7-2635_daily_bin1505.fits scfile=/scratch/kocevski/319840/ft2_4FGL_J1205.7-2635_daily_bin1505.fits outfile=/scratch/kocevski/319840/cmap_629424001_629683201_4FGL_J1205.7-2635_daily_bin1505.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/319840/ft1_filtered_4FGL_J1205.7-2635_daily_bin1505.fits scfile=/scratch/kocevski/319840/ft2_4FGL_J1205.7-2635_daily_bin1505.fits outfile=/scratch/kocevski/319840/cmap_HighResolution_629424001_629683201_4FGL_J1205.7-2635_daily_bin1505.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/319840/ft1_filtered_4FGL_J1205.7-2635_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/319840/ft2_4FGL_J1205.7-2635_daily_bin1505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319840/Model_4FGL_J1205.7-2635_daily_bin1505.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/319840/ft1_filtered_4FGL_J1205.7-2635_daily_bin1505.fits.....................!
real 68.36
user 67.12
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6591       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.973       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8368       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .92524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3121       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7857       1.0000         .10000E-03   10000.    
     9 'Prefactor '    75.092       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11188E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.985       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11149E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.217       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6325       1.0000         .10000E-03   10000.    
    19 'norm      '    7.2811       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1299       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95496       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=   8044.932     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2413 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.330        37.642        .89517E-05    .39401E-03
   2  Prefactor     7.6712        10.937       -.10340E-05   -.72821E-04
   3  Prefactor     26.721        63.719       -.83278E-05   -.20574E-03
   4  norm          2.8388        1.9721        .30142E-06   -.58535E-04
   5  Prefactor     .96008        9.0102        .24222E-05   -.51944E-03
   6  Prefactor     2.3123        3.4411        .43844E-05   -.48829E-03
   7  Prefactor     .10000E-03    19.987       -.46049E-06** at limit **
   8  norm          3.7903        21.965        .36430E-05    .10319E-03
   9  Prefactor     75.078        23.342       -.60325E-06   -.13592E-03
  10  norm          2.0888        4.8337        .96264E-06   -.54188E-04
  11  Prefactor     .10000E-03    5.1317       -.44043E-06** at limit **
  12  Prefactor     .10000E-03    19.630        .29607E-06** at limit **
  13  Prefactor     .10000E-03    10.686        .15128E-07** at limit **
  14  Prefactor     59.980        36.990       -.74361E-06   -.14481E-03
  15  Prefactor     .10000E-03    7.1591        .16981E-07** at limit **
  16  Prefactor     .10000E-03    22.583       -.37509E-07** at limit **
  17  Prefactor     17.188        24.035        .19081E-06   -.46019E-04
  18  Prefactor     7.6453        14.025       -.49424E-07   -.86793E-04
  19  norm          7.2812        1.5947        .31065E-07   -.10950E-03
  20  Prefactor     .10000E-03    120.03       -.39761E-06** at limit **
  21  Normalizat    1.1297        .24240        .91818E-06   -.22968E-03
  22  Prefactor     .95507        .11377       -.13611E-05   -.15258E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3298
  Prefactor  = 7.6712
  Prefactor  = 26.721
  norm       = 2.83879
  Prefactor  = 0.96008
  Prefactor  = 2.31228
  Prefactor  = 0.0001
  norm       = 3.79026
  Prefactor  = 75.0783
  norm       = 2.08881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.9799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1879
  Prefactor  = 7.64534
  norm       = 7.28116
  Prefactor  = 0.0001
  Normalizat = 1.12968
  Prefactor  = 0.955072
 **********
 **   18 **HESSE 
 **********

 FCN=   8044.932     FROM HESSE     STATUS=OK           342 CALLS     2755 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.330        39.130        .93396E-04   -1.4851    
   2  Prefactor     7.6712        10.967        .14490E-03   -1.5154    
   3  Prefactor     26.721        64.866        .77135E-04   -1.4674    
   4  norm          2.8388        1.9687        .94454E-04   -1.5371    
   5  Prefactor     .96008        37.341        .50657E-02   -1.5512    
   6  Prefactor     2.3123        3.5432        .10144E-02   -1.5404    
   7  Prefactor     .10000E-03    20.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7903        22.152        .20747E-03   -1.5319    
   9  Prefactor     75.078        23.036        .46335E-04   -1.3973    
  10  norm          2.0888        4.7368        .25014E-03   -1.5419    
  11  Prefactor     .10000E-03    5.2174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.980        36.931        .51804E-04   -1.4157    
  15  Prefactor     .10000E-03    7.1631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.188        24.033        .96525E-04   -1.4879    
  18  Prefactor     7.6453        14.035        .14516E-03   -1.5155    
  19  norm          7.2812        1.5949        .50922E-04   -1.5168    
  20  Prefactor     .10000E-03    120.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1297        .28650        .37014E-03   -.88805    
  22  Prefactor     .95507        .13526        .19132E-03   -.94242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38941e-09
Minuit parameter uncertainties:
  1  39.185
  2  10.9694
  3  65.0376
  4  1.96879
  5  11.9825
  6  3.54347
  7  7.78565e-05
  8  18.3362
  9  23.0387
  10  4.73766
  11  6.12056e-06
  12  5.68101e-05
  13  6.82294e-06
  14  36.9447
  15  6.32086e-06
  16  9.82774e-06
  17  24.0461
  18  14.0414
  19  1.59488
  20  0.000104291
  21  0.286897
  22  0.135307
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  6.121e-06  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.551e-01  1.353e-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.130e+00  2.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/319840/likelihoodResults_629424001_629683201_4FGL_J1205.7-2635_daily_bin1505.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) = 8044.93311455
delta logL = -0.000913916449463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8044.93220044
delta logL = 2.0059178496e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5735       1.0000          .0000       10.000    
     3 'Normalizat'    1.1297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95506       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8044.879     FROM MIGRAD    STATUS=FAILED       192 CALLS      348 TOTAL
                     EDM=   .41E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31977        21.200        .36285E-02   -.69639E-01
   2  Index         3.9096        2.1169        .41969       -.37218E-05
   3  Normalizat    1.1071        .33138E-01    .37014E-03   -.42202E-04
   4  Prefactor     .96063        .15986E-01    .19132E-03   -.11885E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8044.879     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      425 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31977        21.200        .10515E-03   -.69639E-01
   2  Index         3.9096        2.1169        .21551E-02   -.37218E-05
   3  Normalizat    1.1071        .33138E-01    .75923E-04   -.42202E-04
   4  Prefactor     .96063        .15986E-01    .25527E-04   -.11885E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8044.879     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      459 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31977        1.6498        .72569E-03   -.27136E-02
   2  Index         3.9096        2.1719        .72761E-02   -.14022E-04
   3  Normalizat    1.1071        .28147        .14806E-04   -.24572E-04
   4  Prefactor     .96063        .13318        .38265E-04   -.95609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.319772
  Index      = 3.90963
  Normalizat = 1.10713
  Prefactor  = 0.960633
 **********
 **   18 **HESSE 
 **********

 FCN=   8044.879     FROM HESSE     STATUS=OK            27 CALLS      486 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31977        1.7723        .14514E-03   -1.5821    
   2  Index         3.9096        2.2386        .29104E-03   -.21984    
   3  Normalizat    1.1071        .28146        .29611E-05   -.89523    
   4  Prefactor     .96063        .13313        .76529E-05   -.94053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.315e-11
Minuit parameter uncertainties:
  1  1.50547
  2  2.32565
  3  0.281841
  4  0.133171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319840': 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) = 8044.87949841
delta logL = 0.0527022269334

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.606e-01  1.332e-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.107e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/319840/cmap_HighResolution_629424001_629683201_4FGL_J1205.7-2635_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.54e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-04 23:58:51.787527', job_id='319840', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.13', time_epoch_completed='1630825131.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.27e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1505' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:58:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 319840: <4FGL_J1205.7-2635_daily_bin1505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1505 181.432 -26.5946 629424001 629683201 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 :                                   752.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

