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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin966
RA = 181.432, Dec = -26.5946
tmin = 489715201, tmax = 489974401
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='318128', job_status='RUN', time_executed='2021-09-04 23:40:50.322160', time_epoch_executed='1630824050.32' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='966'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318128

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318128/ft1_4FGL_J1205.7-2635_daily_bin966.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318128/ft2_4FGL_J1205.7-2635_daily_bin966.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318128/ft1_4FGL_J1205.7-2635_daily_bin966.fits outfile=/scratch/kocevski/318128/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin966.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=489715201.0 tmax=489974401.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 4.06
user 3.84
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318128/ft2_4FGL_J1205.7-2635_daily_bin966.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/318128/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin966.fits evtable="EVENTS" outfile="/scratch/kocevski/318128/ft1_filtered_4FGL_J1205.7-2635_daily_bin966.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/318128/ft1_filtered_4FGL_J1205.7-2635_daily_bin966.fits" evtable="EVENTS" scfile=/scratch/kocevski/318128/ft2_4FGL_J1205.7-2635_daily_bin966.fits sctable="SC_DATA" outfile=/scratch/kocevski/318128/ltcube_489715201_489974401_4FGL_J1205.7-2635_daily_bin966.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/318128/ft2_4FGL_J1205.7-2635_daily_bin966.fits
.....................!
real 11.77
user 11.42
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318128/ft1_filtered_4FGL_J1205.7-2635_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/318128/ft2_4FGL_J1205.7-2635_daily_bin966.fits sctable="SC_DATA" expcube=/scratch/kocevski/318128/ltcube_489715201_489974401_4FGL_J1205.7-2635_daily_bin966.fits outfile=/scratch/kocevski/318128/expmap_489715201_489974401_4FGL_J1205.7-2635_daily_bin966.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/318128/ltcube_489715201_489974401_4FGL_J1205.7-2635_daily_bin966.fits
.....................!
real 189.81
user 184.95
sys 4.40

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/318128/ft1_filtered_4FGL_J1205.7-2635_daily_bin966.fits scfile=/scratch/kocevski/318128/ft2_4FGL_J1205.7-2635_daily_bin966.fits outfile=/scratch/kocevski/318128/cmap_489715201_489974401_4FGL_J1205.7-2635_daily_bin966.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318128/ft1_filtered_4FGL_J1205.7-2635_daily_bin966.fits scfile=/scratch/kocevski/318128/ft2_4FGL_J1205.7-2635_daily_bin966.fits outfile=/scratch/kocevski/318128/cmap_HighResolution_489715201_489974401_4FGL_J1205.7-2635_daily_bin966.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318128/ft1_filtered_4FGL_J1205.7-2635_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/318128/ft2_4FGL_J1205.7-2635_daily_bin966.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318128/Model_4FGL_J1205.7-2635_daily_bin966.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/318128/ft1_filtered_4FGL_J1205.7-2635_daily_bin966.fits.....................!
real 69.08
user 67.73
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7548       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3053       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .15926E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.046       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0772       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7201       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2960       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1683       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3288       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0997       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .63477E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3279       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82828       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=   8189.696     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2374 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7066        69.635       -.11489E-04   -.15438E-04
   2  Prefactor     1.3167        29.324        .12493E-04   -.18091E-04
   3  Prefactor     .10000E-03    18.943        .89598E-08** at limit **
   4  norm          .10000E-03    .61907        .66949E-07** at limit **
   5  Prefactor     .10000E-03    4.3330        .35834E-07** at limit **
   6  Prefactor     4.7031        4.4859        .74580E-07   -.10684E-03
   7  Prefactor     .10000E-03    19.014       -.34922E-07** at limit **
   8  norm          11.048        11.721        .64817E-07   -.48086E-05
   9  Prefactor     2.0714        18.675        .19479E-05   -.49512E-05
  10  norm          6.5683        4.8670       -.17250E-06   -.10567E-03
  11  Prefactor     3.7204        3.6554       -.43877E-08   -.24254E-04
  12  Prefactor     .10000E-03    25.972        .91673E-08** at limit **
  13  Prefactor     .10000E-03    4.2922        .29945E-07** at limit **
  14  Prefactor     6.2990        24.336        .74718E-06   -.25731E-04
  15  Prefactor     .10000E-03    6.5298        .13615E-09** at limit **
  16  Prefactor     .10000E-03    12.418       -.11052E-08** at limit **
  17  Prefactor     6.1694        17.636        .57366E-06   -.17007E-04
  18  Prefactor     8.3281        11.342       -.56586E-07    .14953E-04
  19  norm          2.0995        .96717       -.29581E-07    .15020E-03
  20  Prefactor     .10003E-03    798.43       -.10233E-04** at limit **
  21  Normalizat    1.3277        .20616       -.14168E-05   -.94327E-04
  22  Prefactor     .82829        .96143E-01   -.30988E-06   -.19208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70661
  Prefactor  = 1.31665
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.70305
  Prefactor  = 0.0001
  norm       = 11.0481
  Prefactor  = 2.07137
  norm       = 6.56825
  Prefactor  = 3.72042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.29901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.16938
  Prefactor  = 8.32811
  norm       = 2.09951
  Prefactor  = 0.000100026
  Normalizat = 1.32775
  Prefactor  = 0.828286
 **********
 **   18 **HESSE 
 **********

 FCN=   8189.696     FROM HESSE     STATUS=OK           346 CALLS     2720 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7066        69.763        .18452E-03   -1.5274    
   2  Prefactor     1.3167        29.586        .38636E-03   -1.5478    
   3  Prefactor     .10000E-03    18.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.3642        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7031        4.4853        .17925E-03   -1.5274    
   7  Prefactor     .10000E-03    19.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.048        11.722        .12054E-03   -1.5043    
   9  Prefactor     2.0714        17.612        .28656E-03   -1.5420    
  10  norm          6.5683        4.7232        .12664E-03   -1.5195    
  11  Prefactor     3.7204        3.6338        .15803E-03   -1.5322    
  12  Prefactor     .10000E-03    26.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2990        24.188        .15997E-03   -1.5206    
  15  Prefactor     .10000E-03    6.5458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1694        17.613        .16164E-03   -1.5211    
  18  Prefactor     8.3281        11.336        .13891E-03   -1.5131    
  19  norm          2.0995        .96286        .57755E-04   -1.5418    
  20  Prefactor     .10003E-03    793.63        .18854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3277        .24266        .30442E-03   -.82742    
  22  Prefactor     .82829        .11438        .18128E-03   -.98694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91483e-11
Minuit parameter uncertainties:
  1  36.2911
  2  12.4892
  3  8.95698e-06
  4  4.4703e-05
  5  4.4263e-06
  6  4.48564
  7  1.14938e-06
  8  11.7249
  9  12.0843
  10  4.72346
  11  3.63404
  12  5.08733e-06
  13  3.90369e-06
  14  24.2256
  15  3.11682e-06
  16  5.27349e-06
  17  17.6279
  18  11.3385
  19  0.962867
  20  0.00912283
  21  0.242871
  22  0.114417
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  3.720e+00  3.634e+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:  8.283e-01  1.144e-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.328e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 9.68e-06 +/- 9.46e-06

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

Saving results to:
/scratch/kocevski/318128/likelihoodResults_489715201_489974401_4FGL_J1205.7-2635_daily_bin966.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) = 8187.81429683
delta logL = 1.88169955343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8187.6930749
delta logL = 2.00292148494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9679       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1910       1.0000          .0000       10.000    
     3 'Normalizat'    1.3582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82061       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=   8187.693     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9612        1.8540        .73903E-02   -.31967E-03
   2  Index         1.1901        .32324        .21296       -.87575E-04
   3  Normalizat    1.3581        .19684        .68157E-01    .58666E-05
   4  Prefactor     .82072        .95576E-01    .43985E-01   -.29561E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96121
  Index      = 1.19013
  Normalizat = 1.35811
  Prefactor  = 0.820716
 **********
 **   18 **HESSE 
 **********

 FCN=   8187.693     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9612        2.6846        .11181E-03   -1.5428    
   2  Index         1.1901        .51926        .84469E-02   -.86635    
   3  Normalizat    1.3581        .23378        .30153E-03   -.81848    
   4  Prefactor     .82072        .11362        .18199E-03   -.98969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73611e-09
Minuit parameter uncertainties:
  1  2.68472
  2  0.521517
  3  0.233965
  4  0.113648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318128': 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) = 8187.6930715
delta logL = 2.0029248832

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.961e+00  2.685e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.190e+00  5.215e-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:  8.207e-01  1.136e-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.358e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.00
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 1.19 +/- 0.52
Photon Flux (Free Index): 7.75e-09 +/- 8.55e-09
Energy Flux (Free Index): 6.67e-05 +/- 8.65e-05

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/318128/cmap_HighResolution_489715201_489974401_4FGL_J1205.7-2635_daily_bin966.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='6.67e-05', photon_flux_error='3.36e-08', dlogl='2.00e+00', energy_flux='9.68e-06', photon_flux2='7.75e-09', job_status='DONE', time_completed='2021-09-04 23:53:26.553259', photon_index_error2='0.52', photon_index2='1.19', ts='3.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='8.65e-05', EG='1.33', time_epoch_completed='1630824806.55', return_code='0', job_id='318128', GAL2='0.82', EG2='1.36', return_code2='0', energy_flux_error='9.46e-06', photon_flux_error2='8.55e-09', ts2='7.00', photon_index='2.53' WHERE bin_id='966' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:53:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 318128: <4FGL_J1205.7-2635_daily_bin966> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin966> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 23:40:36 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:40:38 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:38 2021
Terminated at Sat Sep  4 23:53:27 2021
Results reported at Sat Sep  4 23:53:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin966 181.432 -26.5946 489715201 489974401 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 :                                   753.00 sec.
    Max Memory :                                 1228 MB
    Average Memory :                             349.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            771 sec.

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

