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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1118
RA = 181.432, Dec = -26.5946
tmin = 529113601, tmax = 529372801
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='318366', job_status='RUN', time_executed='2021-09-04 23:44:45.158862', time_epoch_executed='1630824285.16' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318366/ft1_4FGL_J1205.7-2635_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318366/ft2_4FGL_J1205.7-2635_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318366/ft1_4FGL_J1205.7-2635_daily_bin1118.fits outfile=/scratch/kocevski/318366/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1118.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=529113601.0 tmax=529372801.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.03
user 2.82
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318366/ft2_4FGL_J1205.7-2635_daily_bin1118.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/318366/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1118.fits evtable="EVENTS" outfile="/scratch/kocevski/318366/ft1_filtered_4FGL_J1205.7-2635_daily_bin1118.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.41
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318366/ft1_filtered_4FGL_J1205.7-2635_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/318366/ft2_4FGL_J1205.7-2635_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/318366/ltcube_529113601_529372801_4FGL_J1205.7-2635_daily_bin1118.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/318366/ft2_4FGL_J1205.7-2635_daily_bin1118.fits
.....................!
real 9.11
user 8.84
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318366/ft1_filtered_4FGL_J1205.7-2635_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/318366/ft2_4FGL_J1205.7-2635_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/318366/ltcube_529113601_529372801_4FGL_J1205.7-2635_daily_bin1118.fits outfile=/scratch/kocevski/318366/expmap_529113601_529372801_4FGL_J1205.7-2635_daily_bin1118.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/318366/ltcube_529113601_529372801_4FGL_J1205.7-2635_daily_bin1118.fits
.....................!
real 147.17
user 142.98
sys 3.84

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/318366/ft1_filtered_4FGL_J1205.7-2635_daily_bin1118.fits scfile=/scratch/kocevski/318366/ft2_4FGL_J1205.7-2635_daily_bin1118.fits outfile=/scratch/kocevski/318366/cmap_529113601_529372801_4FGL_J1205.7-2635_daily_bin1118.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.46
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318366/ft1_filtered_4FGL_J1205.7-2635_daily_bin1118.fits scfile=/scratch/kocevski/318366/ft2_4FGL_J1205.7-2635_daily_bin1118.fits outfile=/scratch/kocevski/318366/cmap_HighResolution_529113601_529372801_4FGL_J1205.7-2635_daily_bin1118.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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318366/ft1_filtered_4FGL_J1205.7-2635_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/318366/ft2_4FGL_J1205.7-2635_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318366/Model_4FGL_J1205.7-2635_daily_bin1118.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/318366/ft1_filtered_4FGL_J1205.7-2635_daily_bin1118.fits.....................!
real 41.00
user 39.76
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .84243       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.661       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4813       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6176       1.0000         .10000E-03   10000.    
    10 'norm      '    .11301E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.077       1.0000         .10000E-03   10000.    
    12 'Prefactor '    85.198       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1402       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95925       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=   5710.469     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2390 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9168        .46618E-06** at limit **
   2  Prefactor     .10000E-03    4.4946       -.55869E-08** at limit **
   3  Prefactor     .10000E-03    19.292       -.44284E-06** at limit **
   4  norm          .84249        1.3105       -.23206E-07   -.20403E-03
   5  Prefactor     13.661        13.533        .19800E-06   -.16170E-05
   6  Prefactor     3.4839        8.3282        .41755E-05   -.25579E-04
   7  Prefactor     .10000E-03    23.552       -.86154E-06** at limit **
   8  norm          .10000E-03    30.037        .10978E-05** at limit **
   9  Prefactor     6.5872        20.843        .15667E-05    .22263E-04
  10  norm          .10000E-03    4.0540        .29825E-06** at limit **
  11  Prefactor     17.073        10.389        .25335E-07   -.34853E-04
  12  Prefactor     85.239        78.676       -.50715E-05   -.10303E-04
  13  Prefactor     .10000E-03    7.3901       -.22876E-07** at limit **
  14  Prefactor     .10000E-03    94.136        .67710E-06** at limit **
  15  Prefactor     .10000E-03    12.439        .92689E-07** at limit **
  16  Prefactor     .10000E-03    42.220        .15238E-05** at limit **
  17  Prefactor     .10000E-03    9.6427       -.37651E-06** at limit **
  18  Prefactor     .10000E-03    16.572        .57657E-06** at limit **
  19  norm          .10000E-03    .78706        .22993E-08** at limit **
  20  Prefactor     .10000E-03    50.052       -.19290E-05** at limit **
  21  Normalizat    1.1400        .26917       -.13117E-05    .89531E-05
  22  Prefactor     .95935        .12346        .19892E-06   -.32894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.842493
  Prefactor  = 13.6609
  Prefactor  = 3.48392
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.58719
  norm       = 0.0001
  Prefactor  = 17.0734
  Prefactor  = 85.2394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14001
  Prefactor  = 0.959353
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.469     FROM HESSE     STATUS=OK           338 CALLS     2728 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5007        .15646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .84249        1.1223        .10425E-02   -1.5524    
   5  Prefactor     13.661        13.531        .54184E-03   -1.4969    
   6  Prefactor     3.4839        8.3426        .10836E-02   -1.5335    
   7  Prefactor     .10000E-03    23.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5872        20.764        .15599E-03   -1.5195    
  10  norm          .10000E-03    4.0883        .14803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.073        10.362        .48460E-03   -1.4881    
  12  Prefactor     85.239        78.744        .21761E-03   -1.3859    
  13  Prefactor     .10000E-03    7.4099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    94.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6785        .12943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1400        .31959        .35044E-03   -.88477    
  22  Prefactor     .95935        .14776        .17997E-03   -.94097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83628e-11
Minuit parameter uncertainties:
  1  2.52234e-06
  2  1.7067e-06
  3  6.2346e-07
  4  1.12232
  5  13.5345
  6  8.34536
  7  2.18093e-06
  8  3.68594e-05
  9  20.7871
  10  2.25827e-05
  11  10.3636
  12  78.841
  13  3.04534e-06
  14  0.000112981
  15  5.82496e-05
  16  0.000184278
  17  1.17022e-06
  18  2.8812e-05
  19  6.6934e-06
  20  1.25307e-05
  21  0.320134
  22  0.147819
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.707e+01  1.036e+01  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.594e-01  1.478e-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.140e+00  3.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.73
Ra Dec: 181.432 -26.595
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 9.58e-08
Energy Flux (Fixed Index): 4.44e-05 +/- 2.70e-05

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

Saving results to:
/scratch/kocevski/318366/likelihoodResults_529113601_529372801_4FGL_J1205.7-2635_daily_bin1118.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) = 5710.44801011
delta logL = 0.0210583409189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5710.43050954
delta logL = 0.0385589038769

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.576       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7164       1.0000          .0000       10.000    
     3 'Normalizat'    1.1136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96986       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=   5710.431     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      248 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.575        15.049        .10491E-03    .32076E-04
   2  Index         2.7164        .81020        .56687E-02    .15392E-04
   3  Normalizat    1.1135        .32877        .35395E-03   -.20010E-03
   4  Prefactor     .96990        .15420        .17911E-03   -.65532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5745
  Index      = 2.71637
  Normalizat = 1.11348
  Prefactor  = 0.969903
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.431     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.575        13.572        .41964E-05   -1.4944    
   2  Index         2.7164        .73007        .22675E-03   -.47431    
   3  Normalizat    1.1135        .32625        .14158E-04   -.89320    
   4  Prefactor     .96990        .15287        .35822E-04   -.93740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58351e-10
Minuit parameter uncertainties:
  1  13.5753
  2  0.733392
  3  0.326846
  4  0.152935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318366': 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) = 5710.43050946
delta logL = 0.0385589874813

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.457e+01  1.358e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.716e+00  7.334e-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.699e-01  1.529e-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.113e+00  3.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.86
Ra Dec: 181.432 -26.595
Photon Index (Free Index): 2.72 +/- 0.73
Photon Flux (Free Index): 1.73e-07 +/- 1.12e-07
Energy Flux (Free Index): 4.12e-05 +/- 2.66e-05

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/318366/cmap_HighResolution_529113601_529372801_4FGL_J1205.7-2635_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-02', comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='4.12e-05', photon_flux_error='9.58e-08', dlogl='3.86e-02', energy_flux='4.44e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-04 23:52:37.374002', photon_index_error2='0.73', photon_index2='2.72', ts='3.73', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='3.32e-07', energy_flux_error2='2.66e-05', EG='1.14', time_epoch_completed='1630824757.37', return_code='0', job_id='318366', GAL2='0.97', EG2='1.11', return_code2='0', energy_flux_error='2.70e-05', photon_flux_error2='1.12e-07', ts2='3.86', photon_index='2.53' WHERE bin_id='1118' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:52:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 318366: <4FGL_J1205.7-2635_daily_bin1118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1118 181.432 -26.5946 529113601 529372801 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 :                                   468.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            701 sec.

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

