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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1480
RA = 181.432, Dec = -26.5946
tmin = 622944001, tmax = 623203201
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='319801', job_status='RUN', time_executed='2021-09-04 23:48:04.027919', time_epoch_executed='1630824484.03' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319801/ft1_4FGL_J1205.7-2635_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319801/ft2_4FGL_J1205.7-2635_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319801/ft1_4FGL_J1205.7-2635_daily_bin1480.fits outfile=/scratch/kocevski/319801/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1480.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=622944001.0 tmax=623203201.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.08
user 2.80
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319801/ft1_filtered_4FGL_J1205.7-2635_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/319801/ft2_4FGL_J1205.7-2635_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/319801/ltcube_622944001_623203201_4FGL_J1205.7-2635_daily_bin1480.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/319801/ft2_4FGL_J1205.7-2635_daily_bin1480.fits
.....................!
real 12.72
user 12.29
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319801/ft1_filtered_4FGL_J1205.7-2635_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/319801/ft2_4FGL_J1205.7-2635_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/319801/ltcube_622944001_623203201_4FGL_J1205.7-2635_daily_bin1480.fits outfile=/scratch/kocevski/319801/expmap_622944001_623203201_4FGL_J1205.7-2635_daily_bin1480.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/319801/ltcube_622944001_623203201_4FGL_J1205.7-2635_daily_bin1480.fits
.....................!
real 191.02
user 185.54
sys 4.92

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/319801/ft1_filtered_4FGL_J1205.7-2635_daily_bin1480.fits scfile=/scratch/kocevski/319801/ft2_4FGL_J1205.7-2635_daily_bin1480.fits outfile=/scratch/kocevski/319801/cmap_622944001_623203201_4FGL_J1205.7-2635_daily_bin1480.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/319801/ft1_filtered_4FGL_J1205.7-2635_daily_bin1480.fits scfile=/scratch/kocevski/319801/ft2_4FGL_J1205.7-2635_daily_bin1480.fits outfile=/scratch/kocevski/319801/cmap_HighResolution_622944001_623203201_4FGL_J1205.7-2635_daily_bin1480.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/319801/ft1_filtered_4FGL_J1205.7-2635_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/319801/ft2_4FGL_J1205.7-2635_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319801/Model_4FGL_J1205.7-2635_daily_bin1480.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/319801/ft1_filtered_4FGL_J1205.7-2635_daily_bin1480.fits......................................!
real 17.24
user 15.82
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    217.56       1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2969       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15342E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    75.283       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27312E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11518E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11465E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11295E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8856.5       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'norm      '    10000.       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28733E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75529       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=   444.2800     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     3225 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.150        .24876E-04** at limit **
   2  Prefactor     .10000E-03    18.676        .29085E-07** at limit **
   3  Prefactor     217.48        194.64       -.42777E-04   -.46566E-05
   4  norm          .10000E-03    2.3420        .29007E-06** at limit **
   5  Prefactor     1.3119        262.83       -.19978E-04   -.42502E-04
   6  Prefactor     .10000E-03    11.794       -.59629E-07** at limit **
   7  Prefactor     .10000E-03    63.558       -.23867E-04** at limit **
   8  norm          .10000E-03    41.615        .26674E-06** at limit **
   9  Prefactor     .10000E-03    400.34        .27844E-03** at limit **
  10  norm          75.280        62.377       -.18295E-05   -.38941E-03
  11  Prefactor     .10000E-03    22.369       -.29309E-07** at limit **
  12  Prefactor     .10000E-03    863.19        .21365E-05** at limit **
  13  Prefactor     .10000E-03    88.227        .17130E-05** at limit **
  14  Prefactor     .10000E-03    203.75       -.55214E-04** at limit **
  15  Prefactor     .10000E-03    680.49        .32794E-04** at limit **
  16  Prefactor     .10000E-03    1113.4       -.55687E-03** at limit **
  17  Prefactor     8856.9        8802.0        .12301E-03    .17916E-06
  18  Prefactor     10000.        9494.8        .18158E-02** at limit **
  19  norm         10000.0        781.22        .19649E-03** at limit **
  20  Prefactor     .10000E-03    8947.1       -.10199E-02** at limit **
  21  Normalizat    .10000E-01    .26639        .57562E-06** at limit **
  22  Prefactor     .75525        .22646        .68484E-05   -.69353E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 217.483
  norm       = 0.0001
  Prefactor  = 1.31187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 75.28
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8856.88
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.755255
 **********
 **   18 **HESSE 
 **********

 FCN=   444.2800     FROM HESSE     STATUS=OK           324 CALLS     3549 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.166        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.712        .89018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     217.48        194.99        .13710E-03   -1.2748    
   4  norm          .10000E-03    2.3527        .31494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3119        265.57        .38831E-03   -1.5479    
   6  Prefactor     .10000E-03    11.802        .70739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    63.557        .16437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    41.615        .13295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    400.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          75.280        62.364        .46277E-04   -1.3970    
  11  Prefactor     .10000E-03    22.369        .97445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    863.19        .21429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    88.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    203.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    680.49        .21264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1113.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8856.9        8798.2        .62846E-04    .88100    
  18  Prefactor     10000.        9494.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        781.51        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8947.2        .19875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .26665        .33741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .75525        .22512        .15096E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06082e-09
Minuit parameter uncertainties:
  1  6.43664e-05
  2  1.68505e-05
  3  195.576
  4  4.5756e-05
  5  37.499
  6  1.41141e-05
  7  9.49619e-06
  8  6.04142e-06
  9  0.000566451
  10  62.4178
  11  5.63547e-06
  12  8.19489e-05
  13  0.000190866
  14  2.24447e-05
  15  6.82682e-05
  16  5.91706e-05
  17  10111
  18  2.54434e-05
  19  0.000201765
  20  0.000126977
  21  7.26673e-07
  22  0.225388
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  5.635e-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:  7.553e-01  2.254e-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.000e-02  7.267e-07  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.22e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.54e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/319801/likelihoodResults_622944001_623203201_4FGL_J1205.7-2635_daily_bin1480.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) = 444.280166917
delta logL = -0.000208961222484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 444.279960435
delta logL = -2.47879830795e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1830       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75526       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=   444.2800     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      283 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    343.80        .71652E-02** at limit **
   2  Index         1.8431        8.1956        .50000        .14447E-06
   3  Normalizat    .10000E-01    .62582E-02    .33742E-02** at limit **
   4  Prefactor     .75525        .29545E-01    .15096E-03   -.63751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010004
  Index      = 1.84312
  Normalizat = 0.01
  Prefactor  = 0.755255
 **********
 **   18 **HESSE 
 **********

 FCN=   444.2800     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    1821.4        .11383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8431        5.3575        .50000       -.68333    
   3  Normalizat    .10000E-01    .39120E-01    .67483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .75525        .73900E-01    .30193E-04   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4865e-08
Minuit parameter uncertainties:
  1  0.0176256
  2  2736.13
  3  5.27525e-07
  4  0.0739094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319801': 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): 102
logL (Free Index) = 444.27995736
delta logL = 5.96164454691e-07

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.763e-02  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.843e+00  2.736e+03  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:  7.553e-01  7.391e-02  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.000e-02  5.275e-07  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/319801/cmap_HighResolution_622944001_623203201_4FGL_J1205.7-2635_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-02', job_status='DONE', photon_flux_upper_limit='1.22e-06', time_completed='2021-09-04 23:53:58.628241', job_id='319801', GAL2='0.76', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630824838.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1480' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:53:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 319801: <4FGL_J1205.7-2635_daily_bin1480> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin1480> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 23:45:35 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:45:37 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:37 2021
Terminated at Sat Sep  4 23:53:59 2021
Results reported at Sat Sep  4 23:53:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1480 181.432 -26.5946 622944001 623203201 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 :                                   347.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            504 sec.

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

