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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1030
RA = 181.432, Dec = -26.5946
tmin = 506304001, tmax = 506563201
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='318228', job_status='RUN', time_executed='2021-09-04 23:43:10.226923', time_epoch_executed='1630824190.23' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318228

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318228/ft1_4FGL_J1205.7-2635_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318228/ft2_4FGL_J1205.7-2635_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318228/ft1_4FGL_J1205.7-2635_daily_bin1030.fits outfile=/scratch/kocevski/318228/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1030.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=506304001.0 tmax=506563201.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.48
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318228/ft1_filtered_4FGL_J1205.7-2635_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/318228/ft2_4FGL_J1205.7-2635_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/318228/ltcube_506304001_506563201_4FGL_J1205.7-2635_daily_bin1030.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/318228/ft2_4FGL_J1205.7-2635_daily_bin1030.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318228/ft1_filtered_4FGL_J1205.7-2635_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/318228/ft2_4FGL_J1205.7-2635_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/318228/ltcube_506304001_506563201_4FGL_J1205.7-2635_daily_bin1030.fits outfile=/scratch/kocevski/318228/expmap_506304001_506563201_4FGL_J1205.7-2635_daily_bin1030.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/318228/ltcube_506304001_506563201_4FGL_J1205.7-2635_daily_bin1030.fits
.....................!
real 190.49
user 185.17
sys 4.94

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/318228/ft1_filtered_4FGL_J1205.7-2635_daily_bin1030.fits scfile=/scratch/kocevski/318228/ft2_4FGL_J1205.7-2635_daily_bin1030.fits outfile=/scratch/kocevski/318228/cmap_506304001_506563201_4FGL_J1205.7-2635_daily_bin1030.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318228/ft1_filtered_4FGL_J1205.7-2635_daily_bin1030.fits scfile=/scratch/kocevski/318228/ft2_4FGL_J1205.7-2635_daily_bin1030.fits outfile=/scratch/kocevski/318228/cmap_HighResolution_506304001_506563201_4FGL_J1205.7-2635_daily_bin1030.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318228/ft1_filtered_4FGL_J1205.7-2635_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/318228/ft2_4FGL_J1205.7-2635_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318228/Model_4FGL_J1205.7-2635_daily_bin1030.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/318228/ft1_filtered_4FGL_J1205.7-2635_daily_bin1030.fits.....................!
real 59.39
user 58.00
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11061E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.165       1.0000         .10000E-03   10000.    
     4 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15730E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13945E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10830E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.4722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.114       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11955E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.029       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0379       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8958       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5044       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92131       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=   6439.525     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     2757 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.686        .15816    ** at limit **
   2  Prefactor     .10000E-03    10.683        .18142E-02** at limit **
   3  Prefactor     33.203        51.213        .69581E-04   -.58820E-05
   4  norm          .10000E-03    .94487        .14891E-03** at limit **
   5  Prefactor     .10000E-03    17.494        .18142E-02** at limit **
   6  Prefactor     .10000E-03    4.4204        .16329E-02** at limit **
   7  Prefactor     .10000E-03    78.209        .18142E-02** at limit **
   8  norm          .10000E-03    76.150        .18142E-02** at limit **
   9  Prefactor     .10000E-03    58.946        .36285E-03** at limit **
  10  norm          9.4657        6.8830        .65106E-03    .21962E-03
  11  Prefactor     4.4433        6.0968        .19110E-03   -.46284E-04
  12  Prefactor     .10000E-03    29.022        .18142E-02** at limit **
  13  Prefactor     16.114        15.709        .99776E-04   -.13103E-04
  14  Prefactor     .10000E-03    22.084        .18142E-02** at limit **
  15  Prefactor     19.037        18.559        .91816E-04    .41455E-04
  16  Prefactor     .10000E-03    28.790        .18142E-02** at limit **
  17  Prefactor     47.907        39.121        .57902E-04   -.39661E-04
  18  Prefactor     6.0316        12.277        .16340E-03   -.19342E-04
  19  norm          2.8958        1.5106        .68137E-04   -.14983E-03
  20  Prefactor     .10000E-03    45.363        .18142E-02** at limit **
  21  Normalizat    1.5045        .33149        .34375E-03   -.42168E-04
  22  Prefactor     .92136        .15444        .19909E-03    .93363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.2027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.46575
  Prefactor  = 4.44333
  Prefactor  = 0.0001
  Prefactor  = 16.1144
  Prefactor  = 0.0001
  Prefactor  = 19.0371
  Prefactor  = 0.0001
  Prefactor  = 47.9071
  Prefactor  = 6.03158
  norm       = 2.89576
  Prefactor  = 0.0001
  Normalizat = 1.50451
  Prefactor  = 0.921361
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.525     FROM HESSE     STATUS=OK           330 CALLS     3087 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.011        .15715       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.203        51.211        .27832E-05   -1.4555    
   4  norm          .10000E-03    .94488        .29782E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4229        .32659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    78.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    76.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.947        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.4657        6.8820        .26042E-04   -1.5093    
  11  Prefactor     4.4433        6.0963        .76439E-05   -1.5286    
  12  Prefactor     .10000E-03    29.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.114        15.708        .39910E-05   -1.4905    
  14  Prefactor     .10000E-03    22.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.037        18.559        .18363E-04   -1.4835    
  16  Prefactor     .10000E-03    28.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.907        39.110        .23161E-05   -1.4323    
  18  Prefactor     6.0316        12.277        .65360E-05   -1.5217    
  19  norm          2.8958        1.5106        .27255E-05   -1.5368    
  20  Prefactor     .10000E-03    45.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5045        .33183        .13750E-04   -.77652    
  22  Prefactor     .92136        .15461        .79636E-05   -.95399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27087e-10
Minuit parameter uncertainties:
  1  0.000144197
  2  1.16567e-05
  3  51.2792
  4  2.17565e-06
  5  4.04643e-05
  6  5.6308e-06
  7  0.000157453
  8  5.92678e-05
  9  0.000223075
  10  6.88259
  11  6.09716
  12  5.45021e-06
  13  15.712
  14  4.99797e-05
  15  18.5642
  16  2.2869e-05
  17  39.1309
  18  12.2821
  19  1.5106
  20  0.000110052
  21  0.332314
  22  0.154682
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.214e-01  1.547e-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.505e+00  3.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 181.432 -26.595
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318228/likelihoodResults_506304001_506563201_4FGL_J1205.7-2635_daily_bin1030.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) = 6439.40685633
delta logL = 0.118087281008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6439.39912476
delta logL = 0.125818848272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6859       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1266       1.0000          .0000       10.000    
     3 'Normalizat'    1.5193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91551       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6439.399     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      309 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6906        7.1043        .84228E-03   -.55610E-05
   2  Index         2.1273        .72915        .11125E-01   -.63553E-05
   3  Normalizat    1.5192        .32476        .34239E-03   -.11389E-04
   4  Prefactor     .91560        .15301        .19962E-03   -.79563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69058
  Index      = 2.12725
  Normalizat = 1.51915
  Prefactor  = 0.915601
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.399     FROM HESSE     STATUS=OK            27 CALLS      336 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6906        7.0938        .33691E-04   -1.5231    
   2  Index         2.1273        .72825        .44499E-03   -.61205    
   3  Normalizat    1.5192        .32502        .13696E-04   -.77241    
   4  Prefactor     .91560        .15314        .79846E-05   -.95598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22027e-11
Minuit parameter uncertainties:
  1  7.09484
  2  0.732148
  3  0.325471
  4  0.153211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318228': 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) = 6439.39912389
delta logL = 0.125819717311

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  5.691e+00  7.095e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.127e+00  7.321e-01  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.156e-01  1.532e-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.519e+00  3.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/318228/cmap_HighResolution_506304001_506563201_4FGL_J1205.7-2635_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', job_status='DONE', photon_flux_upper_limit='1.75e-07', time_completed='2021-09-04 23:54:33.526341', job_id='318228', GAL2='0.92', fit_tolerance='1e-08', EG2='1.52', EG='1.50', time_epoch_completed='1630824873.53', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.26e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1030' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 318228: <4FGL_J1205.7-2635_daily_bin1030> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1030 181.432 -26.5946 506304001 506563201 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 :                                   680.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            830 sec.

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

