/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 114 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1204.2-0709_daily_bin430
RA = 181.074, Dec = -7.1627
tmin = 350784001, tmax = 351043201
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='296519', job_status='RUN', time_executed='2021-09-04 22:32:51.927940', time_epoch_executed='1630819971.93' WHERE source_name='4FGL J1204.2-0709' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/296519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/296519/ft1_4FGL_J1204.2-0709_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/296519/ft1_4FGL_J1204.2-0709_daily_bin430.fits outfile=/scratch/kocevski/296519/ft1_filteredMKT_4FGL_J1204.2-0709_daily_bin430.fits ra=181.074 dec=-7.1627 rad=12.0 tmin=350784001.0 tmax=351043201.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.34
user 3.13
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.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/296519/ft1_filteredMKT_4FGL_J1204.2-0709_daily_bin430.fits evtable="EVENTS" outfile="/scratch/kocevski/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.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.60
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/296519/ltcube_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.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/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits
.....................!
real 11.74
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/296519/ltcube_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.fits outfile=/scratch/kocevski/296519/expmap_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.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/296519/ltcube_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.fits
.....................!
real 189.50
user 185.18
sys 3.93

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 200 point sources and 0 extended sources

Setting source of interest to:
4FGL J1204.2-0709 @ 181.074 -7.1627

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.fits scfile=/scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits outfile=/scratch/kocevski/296519/cmap_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.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.074 yref=-7.1627 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.fits scfile=/scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits outfile=/scratch/kocevski/296519/cmap_HighResolution_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.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.074 yref=-7.1627 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.63
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/296519/Model_4FGL_J1204.2-0709_daily_bin430.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/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.fits.....................!
real 51.34
user 49.76
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.fits', '/scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits', expMap='/scratch/kocevski/296519/expmap_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.fits', expCube='/scratch/kocevski/296519/ltcube_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/296519/Model_4FGL_J1204.2-0709_daily_bin430.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.2-0709'

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  9.328e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/296519/ft1_filtered_4FGL_J1204.2-0709_daily_bin430.fits
Spacecraft file(s): /scratch/kocevski/296519/ft2_4FGL_J1204.2-0709_daily_bin430.fits
Exposure map: /scratch/kocevski/296519/expmap_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.fits
Exposure cube: /scratch/kocevski/296519/ltcube_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/296519/Model_4FGL_J1204.2-0709_daily_bin430.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) = 5719.75924873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.304       1.0000         .10000E-03   10000.    
     3 'norm      '    .12854E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    50.435       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67626       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.519       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4580       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21205E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1976       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.735       1.0000         .10000E-03   10000.    
    17 'Prefactor '    102.37       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.626       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.3225       1.0000         .10000E-03   10000.    
    22 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6155       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.8666       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.1292       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.877       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8400       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0010       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5719.744     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4129 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7062        8.0131       -.11722E-05    .15314E-04
   2  Prefactor     66.275        105.08       -.36443E-05   -.81126E-06
   3  norm          .10000E-03    9.3380        .10406E-06** at limit **
   4  Prefactor     .25341        33.238       -.26460E-05    .26752E-05
   5  Prefactor     .10000E-03    6.9543        .16715E-06** at limit **
   6  norm          50.494        36.294        .49839E-06    .45487E-04
   7  Prefactor     .67794        2.4875        .53976E-07    .24466E-04
   8  Prefactor     .10000E-03    11.434       -.79565E-07** at limit **
   9  Prefactor     47.516        37.930        .13026E-07   -.16227E-04
  10  norm          3.8336        4.3525       -.70393E-07   -.15012E-04
  11  Prefactor     5.4618        3.6566        .16094E-08   -.14407E-03
  12  Prefactor     .10000E-03    53.400        .41987E-05** at limit **
  13  Prefactor     .10000E-03    9.8193        .20892E-06** at limit **
  14  Prefactor     .10000E-03    12.741        .30691E-06** at limit **
  15  Prefactor     6.2002        8.5718        .74977E-07   -.47127E-06
  16  Prefactor     18.753        18.118       -.14432E-06   -.13954E-04
  17  Prefactor     102.36        53.459       -.35286E-06   -.13776E-04
  18  Prefactor     35.613        43.501       -.85063E-06   -.20542E-05
  19  Prefactor     .10000E-03    21.009        .49490E-06** at limit **
  20  Prefactor     .10000E-03    9.9035        .26444E-06** at limit **
  21  norm          6.3220        2.9576        .18423E-07   -.36445E-04
  22  norm          .10000E-03    43.229       -.19483E-05** at limit **
  23  Prefactor     .10000E-03    2.9835        .11769E-06** at limit **
  24  norm          1.6156        .62735       -.10488E-07    .29989E-04
  25  Prefactor     7.8660        2.7951        .26186E-07   -.38225E-04
  26  Prefactor     7.1298        6.9366        .14648E-08   -.63331E-05
  27  Prefactor     11.878        10.879        .80356E-07   -.88879E-05
  28  Prefactor     1.8403        6.0697        .23189E-06   -.37426E-06
  29  Prefactor     .10000E-03    8.7039       -.19320E-06** at limit **
  30  Normalizat    1.0006        .24121        .42979E-06   -.11333E-03
  31  Prefactor     .83834        .15262       -.11109E-05   -.24926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70616
  Prefactor  = 66.2752
  norm       = 0.0001
  Prefactor  = 0.253411
  Prefactor  = 0.0001
  norm       = 50.4939
  Prefactor  = 0.677938
  Prefactor  = 0.0001
  Prefactor  = 47.5157
  norm       = 3.83363
  Prefactor  = 5.46184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20024
  Prefactor  = 18.7534
  Prefactor  = 102.359
  Prefactor  = 35.6134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.322
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.61565
  Prefactor  = 7.86598
  Prefactor  = 7.12985
  Prefactor  = 11.8778
  Prefactor  = 1.84027
  Prefactor  = 0.0001
  Normalizat = 1.00055
  Prefactor  = 0.838336
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.744     FROM HESSE     STATUS=OK           624 CALLS     4753 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7062        8.1485        .10480E-02   -1.5323    
   2  Prefactor     66.275        104.57        .49289E-04   -1.4078    
   3  norm          .10000E-03    9.5021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25341        37.156        .24328E-02   -1.5607    
   5  Prefactor     .10000E-03    6.9969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          50.494        37.747        .56470E-04   -1.4286    
   7  Prefactor     .67794        2.5143        .21567E-03   -1.5543    
   8  Prefactor     .10000E-03    11.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.516        37.944        .58168E-04   -1.4328    
  10  norm          3.8336        4.3466        .16239E-03   -1.5316    
  11  Prefactor     5.4618        3.6526        .11265E-03   -1.5241    
  12  Prefactor     .10000E-03    55.188        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2002        8.5805        .16125E-03   -1.5210    
  16  Prefactor     18.753        18.203        .92533E-04   -1.4842    
  17  Prefactor     102.36        53.470        .19870E-03   -1.3681    
  18  Prefactor     35.613        43.532        .67142E-04   -1.4514    
  19  Prefactor     .10000E-03    21.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.9836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.3220        2.9548        .85605E-04   -1.5205    
  22  norm          .10000E-03    43.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0056        .12754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6156        .62491        .35651E-04   -1.5454    
  25  Prefactor     7.8660        2.7971        .36282E-03   -1.5147    
  26  Prefactor     7.1298        6.9319        .15024E-03   -1.5174    
  27  Prefactor     11.878        10.890        .11624E-03   -1.5019    
  28  Prefactor     1.8403        6.0444        .30752E-03   -1.5437    
  29  Prefactor     .10000E-03    8.7037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0006        .28071        .30915E-03   -.93012    
  31  Prefactor     .83834        .17547        .22707E-03   -.98330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41599e-10
Minuit parameter uncertainties:
  1  8.15091
  2  104.858
  3  1.64089e-05
  4  6.13966
  5  1.19571e-05
  6  37.7653
  7  2.51469
  8  9.4455e-06
  9  37.963
  10  4.347
  11  3.65271
  12  6.70737e-06
  13  4.10528e-06
  14  6.14466e-06
  15  8.58218
  16  18.2083
  17  53.4949
  18  43.5705
  19  1.69055e-05
  20  9.78028e-06
  21  2.95488
  22  4.5439e-07
  23  3.09215e-06
  24  0.624915
  25  2.79716
  26  6.93271
  27  10.8914
  28  6.04639
  29  3.50519e-07
  30  0.281126
  31  0.175583
Done.

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

Extracting fit parameters...

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  1.024e+02  5.349e+01  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  8.383e-01  1.756e-01  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  1.001e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.07
Ra Dec: 181.074 -7.163
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 6.73e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 6.19e-05 +/- 3.23e-05

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) = 5719.69807462
delta logL = 0.0457212045076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5719.69403936
delta logL = 0.0497564609614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.077       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0196       1.0000          .0000       10.000    
     3 'Normalizat'    .99105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+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=   5719.694     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      282 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     89.070        65.663        .21286E-03    .31701E-03
   2  Index         2.0195        .42897        .41984E-02    .19954E-03
   3  Normalizat    .99103        .24959        .31036E-03   -.23795E-03
   4  Prefactor     .84061        .16886        .22673E-03   -.39234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 89.0704
  Index      = 2.01947
  Normalizat = 0.991026
  Prefactor  = 0.840611
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.694     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     89.070        62.526        .42572E-04   -1.3818    
   2  Index         2.0195        .40826        .16793E-03   -.63864    
   3  Normalizat    .99103        .24950        .12415E-04   -.93332    
   4  Prefactor     .84061        .16893        .45347E-04   -.98248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30063e-10
Minuit parameter uncertainties:
  1  62.5724
  2  0.408969
  3  0.249793
  4  0.169039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/296519': 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) = 5719.69403912
delta logL = 0.0497567013945

Extracting fit parameters...

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  8.907e+01  6.257e+01  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.019e+00  4.090e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  8.406e-01  1.690e-01  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  9.910e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.16
Ra Dec: 181.074 -7.163
Photon Index (Free Index): 2.02 +/- 0.41
Photon Flux (Free Index): 7.90e-08 +/- 5.38e-08
Energy Flux (Free Index): 5.21e-05 +/- 3.67e-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/296519/cmap_HighResolution_350784001_351043201_4FGL_J1204.2-0709_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.73e-08', energy_flux2='5.21e-05', photon_flux_error='3.52e-08', dlogl='4.98e-02', energy_flux='6.19e-05', photon_flux2='7.90e-08', job_status='DONE', time_completed='2021-09-04 22:45:40.847772', photon_index_error2='0.41', photon_index2='2.02', ts='14.07', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.67e-05', EG='1.00', time_epoch_completed='1630820740.85', return_code='0', job_id='296519', GAL2='0.84', EG2='0.99', return_code2='0', energy_flux_error='3.23e-05', photon_flux_error2='5.38e-08', ts2='14.16', photon_index='1.89' WHERE bin_id='430' AND source_name='4FGL J1204.2-0709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:45:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 296519: <4FGL_J1204.2-0709_daily_bin430> in cluster <slac> Done

Job <4FGL_J1204.2-0709_daily_bin430> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 22:30:47 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:30: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 22:30:48 2021
Terminated at Sat Sep  4 22:45:41 2021
Results reported at Sat Sep  4 22:45:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.2-0709_daily_bin430 181.074 -7.1627 350784001 351043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.2-0709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   767.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             283.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

