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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1043
RA = 181.432, Dec = -26.5946
tmin = 509673601, tmax = 509932801
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='318248', job_status='RUN', time_executed='2021-09-04 23:42:52.813959', time_epoch_executed='1630824172.81' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318248/ft1_4FGL_J1205.7-2635_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318248/ft2_4FGL_J1205.7-2635_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318248/ft1_4FGL_J1205.7-2635_daily_bin1043.fits outfile=/scratch/kocevski/318248/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1043.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=509673601.0 tmax=509932801.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.55
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318248/ft1_filtered_4FGL_J1205.7-2635_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/318248/ft2_4FGL_J1205.7-2635_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/318248/ltcube_509673601_509932801_4FGL_J1205.7-2635_daily_bin1043.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/318248/ft2_4FGL_J1205.7-2635_daily_bin1043.fits
.....................!
real 12.30
user 11.90
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318248/ft1_filtered_4FGL_J1205.7-2635_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/318248/ft2_4FGL_J1205.7-2635_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/318248/ltcube_509673601_509932801_4FGL_J1205.7-2635_daily_bin1043.fits outfile=/scratch/kocevski/318248/expmap_509673601_509932801_4FGL_J1205.7-2635_daily_bin1043.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/318248/ltcube_509673601_509932801_4FGL_J1205.7-2635_daily_bin1043.fits
.....................!
real 191.70
user 186.66
sys 4.36

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/318248/ft1_filtered_4FGL_J1205.7-2635_daily_bin1043.fits scfile=/scratch/kocevski/318248/ft2_4FGL_J1205.7-2635_daily_bin1043.fits outfile=/scratch/kocevski/318248/cmap_509673601_509932801_4FGL_J1205.7-2635_daily_bin1043.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318248/ft1_filtered_4FGL_J1205.7-2635_daily_bin1043.fits scfile=/scratch/kocevski/318248/ft2_4FGL_J1205.7-2635_daily_bin1043.fits outfile=/scratch/kocevski/318248/cmap_HighResolution_509673601_509932801_4FGL_J1205.7-2635_daily_bin1043.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=181.432 yref=-26.5946 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318248/ft1_filtered_4FGL_J1205.7-2635_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/318248/ft2_4FGL_J1205.7-2635_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318248/Model_4FGL_J1205.7-2635_daily_bin1043.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/318248/ft1_filtered_4FGL_J1205.7-2635_daily_bin1043.fits.....................!
real 80.37
user 78.95
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.167       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59585E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    8.8497       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27677E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.673       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3274       1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.784       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4792       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81058       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=   9672.275     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2381 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9408       -.98474E-06** at limit **
   2  Prefactor     .10000E-03    2.8809       -.93461E-07** at limit **
   3  Prefactor     .10000E-03    20.806        .10304E-04** at limit **
   4  norm          .10000E-03    .38247       -.22233E-06** at limit **
   5  Prefactor     .10007E-03    4.4765       -.28174E-05** at limit **
   6  Prefactor     .10000E-03    2.5828       -.20799E-06** at limit **
   7  Prefactor     17.165        17.551        .24894E-06   -.56002E-05
   8  norm          .10000E-03    5.6453       -.11179E-06** at limit **
   9  Prefactor     .10005E-03    10.825        .92351E-06** at limit **
  10  norm          8.8468        4.9482       -.94693E-06   -.84256E-03
  11  Prefactor     .10000E-03    2.0099        .16675E-06** at limit **
  12  Prefactor     .10000E-03    14.795        .50103E-05** at limit **
  13  Prefactor     13.673        10.716       -.66458E-06    .14436E-04
  14  Prefactor     26.628        25.114       -.76046E-05   -.28660E-04
  15  Prefactor     .10000E-03    7.1675        .53520E-06** at limit **
  16  Prefactor     .10000E-03    18.927       -.61704E-05** at limit **
  17  Prefactor     .10000E-03    4.2839        .12995E-06** at limit **
  18  Prefactor     .10000E-03    3.6563        .19440E-06** at limit **
  19  norm          1.3277        .74873        .49184E-06    .14988E-02
  20  Prefactor     65.659        95.920       -.14211E-03    .79595E-06
  21  Normalizat    1.4789        .18824        .42327E-05    .24342E-04
  22  Prefactor     .81068        .90714E-01    .15326E-05    .44229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 0.0001
  Prefactor  = 17.1645
  norm       = 0.0001
  Prefactor  = 0.000100051
  norm       = 8.84682
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 13.6734
  Prefactor  = 26.6278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32772
  Prefactor  = 65.659
  Normalizat = 1.47891
  Prefactor  = 0.810682
 **********
 **   18 **HESSE 
 **********

 FCN=   9672.275     FROM HESSE     STATUS=OK           344 CALLS     2725 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8887        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .62363        .11814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10007E-03    18.346        .40286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6231        .15418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.165        17.512        .96667E-04   -1.4879    
   8  norm          .10000E-03    5.6502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10005E-03    98.368        .52560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.8468        4.2679        .13371E-03   -1.5113    
  11  Prefactor     .10000E-03    6.0184        .25554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.673        10.716        .10832E-03   -1.4968    
  14  Prefactor     26.628        24.206        .77593E-04   -1.4675    
  15  Prefactor     .10000E-03    7.1769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3277        .73940        .61699E-04   -1.5478    
  20  Prefactor     65.659        95.944        .24741E-03   -1.4086    
  21  Normalizat    1.4789        .22191        .29322E-03   -.78373    
  22  Prefactor     .81068        .10765        .18710E-03   -.99336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6316e-09
Minuit parameter uncertainties:
  1  1.76419e-05
  2  1.31659e-05
  3  5.39514e-05
  4  1.84521e-05
  5  0.00226382
  6  2.63049e-05
  7  17.5172
  8  1.0577e-05
  9  0.00449515
  10  4.26803
  11  0.000333397
  12  3.85824e-06
  13  10.7171
  14  24.2152
  15  3.29132e-06
  16  7.57868e-06
  17  1.06284e-06
  18  3.99082e-05
  19  0.739409
  20  96.1712
  21  0.222056
  22  0.107674
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  3.334e-04  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.107e-01  1.077e-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.479e+00  2.221e-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: 8.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318248/likelihoodResults_509673601_509932801_4FGL_J1205.7-2635_daily_bin1043.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) = 9672.27610609
delta logL = -0.000791149510405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9672.27531507
delta logL = -1.27107341541e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5326       1.0000          .0000       10.000    
     3 'Normalizat'    1.4789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81072       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=   9672.275     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      230 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .88771E-01    .50551E-01** at limit **
   2  Index         2.5358        8.7181        .50000       -.49511E-05
   3  Normalizat    1.4789        .91386E-03    .66286E-01    .27476E-04
   4  Prefactor     .81068        .44987E-03    .43857E-01    .27878E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53583
  Normalizat = 1.47891
  Prefactor  = 0.81068
 **********
 **   18 **HESSE 
 **********

 FCN=   9672.275     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      265 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    192.46        .30229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5358        7.8024        .50000       -.51534    
   3  Normalizat    1.4789        .28408E-01    .29322E-03   -.78373    
   4  Prefactor     .81068        .13975E-01    .18710E-03   -.99336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47376e-06
Minuit parameter uncertainties:
  1  1.23479e-05
  2  1381.17
  3  0.0284081
  4  0.0139754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318248': 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) = 9672.27531493
delta logL = 8.17271939013e-09

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.235e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.536e+00  1.381e+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:  8.107e-01  1.398e-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.479e+00  2.841e-02  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/318248/cmap_HighResolution_509673601_509932801_4FGL_J1205.7-2635_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.73e-08', time_completed='2021-09-04 23:57:01.791303', job_id='318248', GAL2='0.81', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630825021.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.17e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1043' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:57:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 318248: <4FGL_J1205.7-2635_daily_bin1043> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin1043> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 23:40:47 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:40:48 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:40:48 2021
Terminated at Sat Sep  4 23:57:02 2021
Results reported at Sat Sep  4 23:57:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1043 181.432 -26.5946 509673601 509932801 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 :                                   846.00 sec.
    Max Memory :                                 1110 MB
    Average Memory :                             305.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

