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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin198
RA = 181.432, Dec = -26.5946
tmin = 290649601, tmax = 290908801
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='313651', job_status='RUN', time_executed='2021-09-04 23:25:52.451837', time_epoch_executed='1630823152.45' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313651

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313651/ft1_4FGL_J1205.7-2635_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313651/ft2_4FGL_J1205.7-2635_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313651/ft1_4FGL_J1205.7-2635_daily_bin198.fits outfile=/scratch/kocevski/313651/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin198.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=290649601.0 tmax=290908801.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.35
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/313651/ft2_4FGL_J1205.7-2635_daily_bin198.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/313651/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin198.fits evtable="EVENTS" outfile="/scratch/kocevski/313651/ft1_filtered_4FGL_J1205.7-2635_daily_bin198.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/313651/ft1_filtered_4FGL_J1205.7-2635_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/313651/ft2_4FGL_J1205.7-2635_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/313651/ltcube_290649601_290908801_4FGL_J1205.7-2635_daily_bin198.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/313651/ft2_4FGL_J1205.7-2635_daily_bin198.fits
.....................!
real 11.87
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313651/ft1_filtered_4FGL_J1205.7-2635_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/313651/ft2_4FGL_J1205.7-2635_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/313651/ltcube_290649601_290908801_4FGL_J1205.7-2635_daily_bin198.fits outfile=/scratch/kocevski/313651/expmap_290649601_290908801_4FGL_J1205.7-2635_daily_bin198.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/313651/ltcube_290649601_290908801_4FGL_J1205.7-2635_daily_bin198.fits
.....................!
real 190.55
user 184.96
sys 5.20

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/313651/ft1_filtered_4FGL_J1205.7-2635_daily_bin198.fits scfile=/scratch/kocevski/313651/ft2_4FGL_J1205.7-2635_daily_bin198.fits outfile=/scratch/kocevski/313651/cmap_290649601_290908801_4FGL_J1205.7-2635_daily_bin198.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/313651/ft1_filtered_4FGL_J1205.7-2635_daily_bin198.fits scfile=/scratch/kocevski/313651/ft2_4FGL_J1205.7-2635_daily_bin198.fits outfile=/scratch/kocevski/313651/cmap_HighResolution_290649601_290908801_4FGL_J1205.7-2635_daily_bin198.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/313651/ft1_filtered_4FGL_J1205.7-2635_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/313651/ft2_4FGL_J1205.7-2635_daily_bin198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/313651/Model_4FGL_J1205.7-2635_daily_bin198.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/313651/ft1_filtered_4FGL_J1205.7-2635_daily_bin198.fits.....................!
real 53.65
user 52.22
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11477E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8998       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3339       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7565       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.781       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.712       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6748       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3182       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97353       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=   5865.870     FROM MIGRAD    STATUS=CONVERGED    845 CALLS     2730 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.745        .18142E-02** at limit **
   2  Prefactor     .10000E-03    7.2463        .18142E-02** at limit **
   3  Prefactor     9.9066        103.19        .12736E-03    .78555E-05
   4  norm          2.3338        1.6873        .81373E-04    .10702E-03
   5  Prefactor     .10000E-03    6.6877        .18142E-02** at limit **
   6  Prefactor     .10000E-03    2.7464        .12357E-02** at limit **
   7  Prefactor     .10000E-03    13.995        .18142E-02** at limit **
   8  norm          14.114        19.911        .10664E-03   -.92749E-05
   9  Prefactor     .10000E-03    28.213        .36285E-03** at limit **
  10  norm          .10000E-03    2.3814        .11495E-02** at limit **
  11  Prefactor     .10000E-03    6.8935        .18142E-02** at limit **
  12  Prefactor     .10000E-03    120.73        .18142E-02** at limit **
  13  Prefactor     3.7547        13.443        .20831E-03    .30453E-04
  14  Prefactor     .10000E-03    55.337        .18142E-02** at limit **
  15  Prefactor     10.827        35.322        .12202E-03    .20721E-03
  16  Prefactor     .12121        76.036        .15738        .64762E-04
  17  Prefactor     40.019        32.706        .63331E-04   -.10193E-03
  18  Prefactor     19.713        16.653        .45107E-03    .10256E-03
  19  norm          2.6749        1.6605        .74030E-04    .29378E-03
  20  Prefactor     .10001E-03    86.378        .18142E-02** at limit **
  21  Normalizat    1.3184        .33631        .35080E-03    .43946E-04
  22  Prefactor     .97350        .16018        .18878E-03    .17041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.90663
  norm       = 2.33375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1143
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.75467
  Prefactor  = 0.000100002
  Prefactor  = 10.8266
  Prefactor  = 0.121213
  Prefactor  = 40.0193
  Prefactor  = 19.7132
  norm       = 2.67489
  Prefactor  = 0.000100007
  Normalizat = 1.31839
  Prefactor  = 0.973496
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.870     FROM HESSE     STATUS=OK           330 CALLS     3060 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9066        103.13        .50943E-05   -1.5078    
   4  norm          2.3338        1.6873        .32549E-05   -1.5402    
   5  Prefactor     .10000E-03    6.6881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7467        .24714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.995        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.114        19.910        .42656E-05   -1.4956    
   9  Prefactor     .10000E-03    28.214        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3817        .22989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    120.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7547        13.442        .83324E-05   -1.5320    
  14  Prefactor     .10000E-03    55.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.827        35.278        .48808E-05   -1.5050    
  16  Prefactor     .12121        75.284        .15824       -1.5638    
  17  Prefactor     40.019        32.706        .12666E-04   -1.4442    
  18  Prefactor     19.713        16.652        .18043E-04   -1.4820    
  19  norm          2.6749        1.6605        .29612E-05   -1.5381    
  20  Prefactor     .10001E-03    86.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3184        .33662        .14032E-04   -.83019    
  22  Prefactor     .97350        .16034        .37757E-04   -.93618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7783e-10
Minuit parameter uncertainties:
  1  4.20004e-05
  2  5.62327e-06
  3  64.0683
  4  1.68731
  5  1.87507e-06
  6  5.85762e-06
  7  4.13213e-05
  8  19.9194
  9  0.000143841
  10  4.11443e-06
  11  2.7791e-05
  12  0.00108896
  13  13.4532
  14  0.000714149
  15  35.3457
  16  6.04681
  17  32.7206
  18  16.6562
  19  1.66049
  20  0.00159482
  21  0.337185
  22  0.16042
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.779e-05  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.735e-01  1.604e-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.318e+00  3.372e-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.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/313651/likelihoodResults_290649601_290908801_4FGL_J1205.7-2635_daily_bin198.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): 102
logL (Free Index) = 5865.87107825
delta logL = -0.000691483016453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5865.87038679
delta logL = -2.47428033617e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5674       1.0000          .0000       10.000    
     3 'Normalizat'    1.3181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97364       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=   5865.870     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1241.3        .18142E-02** at limit **
   2  Index         2.6101        5.4497        .50000       -.54973E-04
   3  Normalizat    1.3184        .12162        .35079E-03    .74410E-04
   4  Prefactor     .97349        .57564E-01    .18878E-03   -.43560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100025
  Index      = 2.61005
  Normalizat = 1.31841
  Prefactor  = 0.973491
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.870     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    9.7562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6101        6.3034        .50000       -.49836    
   3  Normalizat    1.3184        .33167        .14032E-04   -.83019    
   4  Prefactor     .97349        .15749        .37756E-04   -.93618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1668e-09
Minuit parameter uncertainties:
  1  0.000984114
  2  4.87008
  3  0.332207
  4  0.157566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313651': 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) = 5865.8703858
delta logL = 9.65754225035e-07

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  9.841e-04  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.610e+00  4.870e+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.735e-01  1.576e-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.318e+00  3.322e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/313651/cmap_HighResolution_290649601_290908801_4FGL_J1205.7-2635_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-04 23:36:34.743318', job_id='313651', GAL2='0.97', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630823794.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='9.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='198' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 313651: <4FGL_J1205.7-2635_daily_bin198> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin198> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:25:34 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:25:36 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:25:36 2021
Terminated at Sat Sep  4 23:36:35 2021
Results reported at Sat Sep  4 23:36:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin198 181.432 -26.5946 290649601 290908801 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            661 sec.

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

