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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1467
RA = 181.203, Dec = 4.12
tmin = 619574401, tmax = 619833601
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='312059', job_status='RUN', time_executed='2021-09-04 23:23:21.530086', time_epoch_executed='1630823001.53' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312059/ft1_4FGL_J1204.8+0407_daily_bin1467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312059/ft1_4FGL_J1204.8+0407_daily_bin1467.fits outfile=/scratch/kocevski/312059/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1467.fits ra=181.203 dec=4.12 rad=12.0 tmin=619574401.0 tmax=619833601.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.53
user 3.26
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.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/312059/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1467.fits evtable="EVENTS" outfile="/scratch/kocevski/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.fits" evtable="EVENTS" scfile=/scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits sctable="SC_DATA" outfile=/scratch/kocevski/312059/ltcube_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.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/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits
.....................!
real 11.72
user 11.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits sctable="SC_DATA" expcube=/scratch/kocevski/312059/ltcube_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.fits outfile=/scratch/kocevski/312059/expmap_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.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/312059/ltcube_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.fits
.....................!
real 190.27
user 185.20
sys 4.36

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1204.8+0407 @ 181.203 4.12

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.fits scfile=/scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits outfile=/scratch/kocevski/312059/cmap_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.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.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.fits scfile=/scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits outfile=/scratch/kocevski/312059/cmap_HighResolution_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.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.203 yref=4.12 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/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312059/Model_4FGL_J1204.8+0407_daily_bin1467.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/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.fits.....................!
real 63.88
user 62.52
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.fits', '/scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits', expMap='/scratch/kocevski/312059/expmap_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.fits', expCube='/scratch/kocevski/312059/ltcube_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/312059/Model_4FGL_J1204.8+0407_daily_bin1467.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.8+0407'

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/312059/ft1_filtered_4FGL_J1204.8+0407_daily_bin1467.fits
Spacecraft file(s): /scratch/kocevski/312059/ft2_4FGL_J1204.8+0407_daily_bin1467.fits
Exposure map: /scratch/kocevski/312059/expmap_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.fits
Exposure cube: /scratch/kocevski/312059/ltcube_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/312059/Model_4FGL_J1204.8+0407_daily_bin1467.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) = 7104.05055781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    116.23       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8315       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2715       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.409       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    142.50       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0096       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2507       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9764       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    35.310       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2259       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.153       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.853       1.0000         .10000E-03   10000.    
    25 'norm      '    1.3413       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.2009       1.0000         .10000E-03   10000.    
    27 'Prefactor '    110.37       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2744       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7103.893     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3794 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5365       -.41442E-06** at limit **
   2  Prefactor     .10000E-03    6.9456       -.20751E-05** at limit **
   3  Prefactor     .10000E-03    7.4478        .24991E-05** at limit **
   4  Prefactor     116.14        101.92       -.78422E-04    .13723E-04
   5  Prefactor     16.549        11.352        .20349E-05    .24139E-04
   6  Prefactor     .10000E-03    25.136        .13713E-07** at limit **
   7  Prefactor     5.8318        6.7584       -.73059E-06   -.77112E-04
   8  Prefactor     .10000E-03    7.3519        .52775E-05** at limit **
   9  Prefactor     3.2768        15.667       -.72674E-05   -.10534E-03
  10  Prefactor     26.391        69.045       -.28892E-04   -.99398E-05
  11  Prefactor     .10000E-03    10.855        .11296E-05** at limit **
  12  Prefactor     142.52        64.447        .13035E-04    .89938E-04
  13  Prefactor     36.793        22.305       -.83280E-06    .44696E-04
  14  Prefactor     1.9907        81.892       -.21761E-04   -.54431E-04
  15  Prefactor     4.2509        5.9350       -.27212E-06   -.48869E-04
  16  norm          .10000E-03    .61637       -.27644E-07** at limit **
  17  norm          5.9768        4.8330        .64135E-06   -.17907E-04
  18  Prefactor     .10000E-03    7.6717       -.66989E-05** at limit **
  19  norm          35.301        44.694       -.93823E-05    .17664E-04
  20  Prefactor     .10000E-03    93.574        .28675E-05** at limit **
  21  norm          3.2262        .84737       -.84236E-07    .30450E-03
  22  Prefactor     18.153        13.130       -.45611E-06    .19647E-04
  23  Prefactor     .10000E-03    14.785       -.11020E-05** at limit **
  24  Prefactor     10.854        9.3201       -.72723E-06   -.43211E-03
  25  norm          1.3405        1.5630       -.53102E-06   -.98407E-03
  26  Prefactor     4.1987        9.4434       -.16104E-05   -.14601E-03
  27  Prefactor     110.38        54.944        .67876E-05    .23489E-04
  28  Normalizat    1.2738        .22838        .43969E-05    .32091E-04
  29  Prefactor     .93085        .17484        .76583E-06    .27916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 116.136
  Prefactor  = 16.5495
  Prefactor  = 0.0001
  Prefactor  = 5.83177
  Prefactor  = 0.0001
  Prefactor  = 3.27684
  Prefactor  = 26.3914
  Prefactor  = 0.0001
  Prefactor  = 142.518
  Prefactor  = 36.7932
  Prefactor  = 1.99069
  Prefactor  = 4.25086
  norm       = 0.0001
  norm       = 5.97677
  Prefactor  = 0.0001
  norm       = 35.3014
  Prefactor  = 0.0001
  norm       = 3.22621
  Prefactor  = 18.1529
  Prefactor  = 0.0001
  Prefactor  = 10.8535
  norm       = 1.34047
  Prefactor  = 4.19873
  Prefactor  = 110.377
  Normalizat = 1.27377
  Prefactor  = 0.930854
 **********
 **   18 **HESSE 
 **********

 FCN=   7103.893     FROM HESSE     STATUS=OK           557 CALLS     4351 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1184        .20026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.4511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     116.14        101.82        .18660E-03   -1.3548    
   5  Prefactor     16.549        11.350        .98459E-04   -1.4894    
   6  Prefactor     .10000E-03    25.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8318        6.7484        .16631E-03   -1.5225    
   8  Prefactor     .10000E-03    7.3684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2768        15.714        .22389E-03   -1.5346    
  10  Prefactor     26.391        69.109        .77954E-04   -1.4680    
  11  Prefactor     .10000E-03    10.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     142.52        64.696        .33750E-04   -1.3315    
  13  Prefactor     36.793        22.298        .66073E-04   -1.4494    
  14  Prefactor     1.9907        81.378        .29204E-03   -1.5426    
  15  Prefactor     4.2509        5.9238        .19543E-03   -1.5296    
  16  norm          .10000E-03    .61788        .64591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9768        4.8030        .13935E-03   -1.5219    
  18  Prefactor     .10000E-03    7.6715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          35.301        44.752        .67441E-04   -1.4519    
  20  Prefactor     .10000E-03    93.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2262        .84895        .35087E-04   -1.5349    
  22  Prefactor     18.153        13.125        .94003E-04   -1.4856    
  23  Prefactor     .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.854        9.3133        .60806E-03   -1.5049    
  25  norm          1.3405        1.5385        .10811E-03   -1.5476    
  26  Prefactor     4.1987        9.4187        .19662E-03   -1.5298    
  27  Prefactor     110.38        54.895        .38287E-04   -1.3603    
  28  Normalizat    1.2738        .26971        .30079E-03   -.84353    
  29  Prefactor     .93085        .20615        .27840E-03   -.95071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1767e-09
Minuit parameter uncertainties:
  1  7.62287e-05
  2  6.23318e-06
  3  7.23751e-06
  4  101.972
  5  11.3511
  6  2.83884e-05
  7  6.74929
  8  6.20783e-05
  9  14.3576
  10  69.32
  11  8.55629e-06
  12  64.7281
  13  22.303
  14  25.4923
  15  5.92465
  16  8.20624e-07
  17  4.80334
  18  6.73362e-07
  19  44.7942
  20  1.60651e-05
  21  0.848958
  22  13.1274
  23  6.70819e-06
  24  9.3145
  25  1.53857
  26  9.42197
  27  54.9204
  28  0.270006
  29  0.206321
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.425e+02  6.473e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.309e-01  2.063e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.274e+00  2.700e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.10
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 7.35e-08
Energy Flux (Fixed Index): 4.33e-05 +/- 1.97e-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) = 7103.47013609
delta logL = 0.422999301823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7103.45247307
delta logL = 0.440662326924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    103.41       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9756       1.0000          .0000       10.000    
     3 'Normalizat'    1.2220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+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=   7103.452     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      297 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     103.35        70.467        .39541E-04   -.21851E-05
   2  Index         2.9750        .47740        .43172E-02    .56835E-03
   3  Normalizat    1.2223        .26222        .30570E-03   -.14180E-03
   4  Prefactor     .96014        .20643        .27467E-03    .11726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 103.355
  Index      = 2.97496
  Normalizat = 1.22229
  Prefactor  = 0.960139
 **********
 **   18 **HESSE 
 **********

 FCN=   7103.452     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     103.35        66.409        .79082E-05   -1.3671    
   2  Index         2.9750        .44956        .86344E-03   -.41699    
   3  Normalizat    1.2223        .26242        .12228E-04   -.85917    
   4  Prefactor     .96014        .20651        .10987E-04   -.94070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53147e-10
Minuit parameter uncertainties:
  1  66.4567
  2  0.450288
  3  0.262701
  4  0.20668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312059': 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) = 7103.45246622
delta logL = 0.440669176746

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.034e+02  6.646e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.975e+00  4.503e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.601e-01  2.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.222e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.22
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.97 +/- 0.45
Photon Flux (Free Index): 2.09e-07 +/- 9.16e-08
Energy Flux (Free Index): 4.22e-05 +/- 1.71e-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/312059/cmap_HighResolution_619574401_619833601_4FGL_J1204.8+0407_daily_bin1467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='4.22e-05', photon_flux_error='7.35e-08', dlogl='4.41e-01', energy_flux='4.33e-05', photon_flux2='2.09e-07', job_status='DONE', time_completed='2021-09-04 23:37:19.634071', photon_index_error2='0.45', photon_index2='2.97', ts='8.10', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='1.27', time_epoch_completed='1630823839.63', return_code='0', job_id='312059', GAL2='0.96', EG2='1.22', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='9.16e-08', ts2='9.22', photon_index='2.58' WHERE bin_id='1467' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:37:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 312059: <4FGL_J1204.8+0407_daily_bin1467> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1467> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:46 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:20:48 2021
Terminated at Sat Sep  4 23:37:20 2021
Results reported at Sat Sep  4 23:37:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1467 181.203 4.12 619574401 619833601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.8+0407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   827.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

