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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1463
RA = 181.203, Dec = 4.12
tmin = 618537601, tmax = 618796801
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='312053', job_status='RUN', time_executed='2021-09-04 23:21:11.293989', time_epoch_executed='1630822871.29' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312053/ft1_4FGL_J1204.8+0407_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312053/ft1_4FGL_J1204.8+0407_daily_bin1463.fits outfile=/scratch/kocevski/312053/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1463.fits ra=181.203 dec=4.12 rad=12.0 tmin=618537601.0 tmax=618796801.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.92
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.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/312053/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1463.fits evtable="EVENTS" outfile="/scratch/kocevski/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/312053/ltcube_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.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/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits
.....................!
real 14.16
user 13.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/312053/ltcube_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.fits outfile=/scratch/kocevski/312053/expmap_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.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/312053/ltcube_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.fits
.....................!
real 190.43
user 185.10
sys 4.81

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/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.fits scfile=/scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits outfile=/scratch/kocevski/312053/cmap_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.fits scfile=/scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits outfile=/scratch/kocevski/312053/cmap_HighResolution_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.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/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312053/Model_4FGL_J1204.8+0407_daily_bin1463.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/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.fits.....................!
real 66.74
user 65.45
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.fits', '/scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits', expMap='/scratch/kocevski/312053/expmap_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.fits', expCube='/scratch/kocevski/312053/ltcube_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/312053/Model_4FGL_J1204.8+0407_daily_bin1463.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/312053/ft1_filtered_4FGL_J1204.8+0407_daily_bin1463.fits
Spacecraft file(s): /scratch/kocevski/312053/ft2_4FGL_J1204.8+0407_daily_bin1463.fits
Exposure map: /scratch/kocevski/312053/expmap_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.fits
Exposure cube: /scratch/kocevski/312053/ltcube_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/312053/Model_4FGL_J1204.8+0407_daily_bin1463.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) = 7709.83461147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.574       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.213       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    94.547       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17099E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42423E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .59787       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5196       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3809       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.541       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.124       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5794       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7667       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.5228       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .75112       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1320       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=   7709.820     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3754 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .85892        .20044E-06** at limit **
   2  Prefactor     27.199        23.647       -.40415E-07   -.58894E-05
   3  Prefactor     23.569        22.849        .48634E-07    .22461E-04
   4  Prefactor     5.5057        239.37       -.39746E-05   -.10444E-04
   5  Prefactor     .10000E-03    3.4773       -.18466E-06** at limit **
   6  Prefactor     19.211        22.516       -.22155E-06   -.41469E-05
   7  Prefactor     .10000E-03    3.6814        .16115E-08** at limit **
   8  Prefactor     10.201        13.026        .57504E-07    .15438E-04
   9  Prefactor     1.7872        18.710        .24159E-05    .90345E-05
  10  Prefactor     .10000E-03    24.530        .33787E-08** at limit **
  11  Prefactor     .10000E-03    13.983        .37254E-08** at limit **
  12  Prefactor     69.348        41.669       -.21793E-06    .13355E-03
  13  Prefactor     94.536        29.790       -.18767E-06    .45098E-03
  14  Prefactor     .10101E-03    10.671       -.19329E-05** at limit **
  15  Prefactor     .10011E-03    7.2984       -.26274E-05** at limit **
  16  norm          .59735        1.7920        .18339E-05    .13569E-02
  17  norm          5.5185        3.0586        .72600E-07    .67642E-03
  18  Prefactor     .10000E-03    15.469        .13044E-06** at limit **
  19  norm          .10000E-03    24.091        .82876E-07** at limit **
  20  Prefactor     .10000E-03    60.246        .36000E-06** at limit **
  21  norm          2.3808        .60022        .36013E-08    .25278E-02
  22  Prefactor     15.540        11.045       -.88063E-07    .31342E-04
  23  Prefactor     .10000E-03    39.830       -.87723E-08** at limit **
  24  Prefactor     16.124        7.9184        .25171E-07    .11077E-03
  25  norm          4.5794        1.8781        .46426E-07    .18945E-03
  26  Prefactor     2.7667        4.2589        .19440E-06    .81799E-05
  27  Prefactor     2.5163        54.795        .15887E-05   -.98495E-06
  28  Normalizat    .75106        .19201        .29076E-06    .23711E-03
  29  Prefactor     1.1320        .15333       -.11055E-05    .39507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.1994
  Prefactor  = 23.5694
  Prefactor  = 5.50569
  Prefactor  = 0.0001
  Prefactor  = 19.211
  Prefactor  = 0.0001
  Prefactor  = 10.2013
  Prefactor  = 1.78719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.3482
  Prefactor  = 94.5363
  Prefactor  = 0.000101011
  Prefactor  = 0.000100108
  norm       = 0.597347
  norm       = 5.51854
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3808
  Prefactor  = 15.5403
  Prefactor  = 0.0001
  Prefactor  = 16.1236
  norm       = 4.57938
  Prefactor  = 2.76668
  Prefactor  = 2.51625
  Normalizat = 0.751059
  Prefactor  = 1.13199
 **********
 **   18 **HESSE 
 **********

 FCN=   7709.820     FROM HESSE     STATUS=OK           559 CALLS     4313 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7836        .15541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.199        23.653        .76814E-04   -1.4664    
   3  Prefactor     23.569        22.844        .82500E-04   -1.4737    
   4  Prefactor     5.5057        244.30        .16956E-03   -1.5239    
   5  Prefactor     .10000E-03    3.4860        .15979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.211        22.466        .91376E-04   -1.4831    
   7  Prefactor     .10000E-03    3.7007        .16446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.201        13.033        .12546E-03   -1.5069    
   9  Prefactor     1.7872        18.160        .31340E-03   -1.5441    
  10  Prefactor     .10000E-03    24.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     69.348        41.612        .48202E-04   -1.4041    
  13  Prefactor     94.536        29.070        .41334E-04   -1.3760    
  14  Prefactor     .10101E-03    87.079        .52154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10011E-03    42.475        .37357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .59735        1.8374        .19984E-03   -1.5553    
  17  norm          5.5185        3.0376        .10608E-03   -1.5238    
  18  Prefactor     .10000E-03    15.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    24.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3808        .59702        .31176E-04   -1.5399    
  22  Prefactor     15.540        11.031        .10160E-03   -1.4919    
  23  Prefactor     .10000E-03    40.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.124        7.9162        .99744E-04   -1.4905    
  25  norm          4.5794        1.8720        .72076E-04   -1.5280    
  26  Prefactor     2.7667        4.2397        .21855E-03   -1.5375    
  27  Prefactor     2.5163        54.722        .25719E-03   -1.5391    
  28  Normalizat    .75106        .21827        .32963E-03   -1.0191    
  29  Prefactor     1.1320        .17549        .23343E-03   -.88451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43415e-08
Minuit parameter uncertainties:
  1  8.30269e-05
  2  23.6607
  3  22.8523
  4  73.672
  5  6.64929e-06
  6  22.4762
  7  6.26201e-06
  8  13.0368
  9  11.3981
  10  7.04804e-06
  11  4.92711e-06
  12  41.6296
  13  29.0749
  14  0.0187916
  15  0.00428212
  16  1.83758
  17  3.03768
  18  3.25028e-06
  19  2.06298e-05
  20  0.000215765
  21  0.597021
  22  11.0327
  23  3.97974e-05
  24  7.91669
  25  1.87207
  26  4.24016
  27  23.4927
  28  0.218524
  29  0.175579
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  6.935e+01  4.163e+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:  1.132e+00  1.756e-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:  7.511e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 7.88e-08 +/- 4.72e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.27e-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) = 7709.75296676
delta logL = 0.0671430280563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7709.7457825
delta logL = 0.0743272858708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.518       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9056       1.0000          .0000       10.000    
     3 'Normalizat'    .73502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1440       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=   7709.746     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      305 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.523        84.150        .57569E-04    .20032E-03
   2  Index         2.9056        1.2160        .59084E-02    .15455E-03
   3  Normalizat    .73460        .21174        .33298E-03    .15904E-03
   4  Prefactor     1.1444        .17863        .23237E-03    .16422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.523
  Index      = 2.90564
  Normalizat = 0.734601
  Prefactor  = 1.14436
 **********
 **   18 **HESSE 
 **********

 FCN=   7709.746     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.523        63.943        .11514E-04   -1.4314    
   2  Index         2.9056        .92675        .23634E-03   -.43220    
   3  Normalizat    .73460        .21047        .13319E-04   -1.0254    
   4  Prefactor     1.1444        .17711        .46475E-04   -.88061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85235e-10
Minuit parameter uncertainties:
  1  64.034
  2  0.933306
  3  0.210704
  4  0.177201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312053': 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) = 7709.74578019
delta logL = 0.0743295958227

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.852e+01  6.403e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.906e+00  9.333e-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:  1.144e+00  1.772e-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:  7.346e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.43
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.91 +/- 0.93
Photon Flux (Free Index): 8.83e-08 +/- 5.48e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.24e-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/312053/cmap_HighResolution_618537601_618796801_4FGL_J1204.8+0407_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.88e-08', energy_flux2='1.85e-05', photon_flux_error='4.72e-08', dlogl='7.43e-02', energy_flux='2.11e-05', photon_flux2='8.83e-08', job_status='DONE', time_completed='2021-09-04 23:35:44.768277', photon_index_error2='0.93', photon_index2='2.91', ts='4.25', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.75', time_epoch_completed='1630823744.77', return_code='0', job_id='312053', GAL2='1.14', EG2='0.73', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.48e-08', ts2='4.43', photon_index='2.58' WHERE bin_id='1463' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:35:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 312053: <4FGL_J1204.8+0407_daily_bin1463> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1463> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:45 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:46 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:46 2021
Terminated at Sat Sep  4 23:35:45 2021
Results reported at Sat Sep  4 23:35:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1463 181.203 4.12 618537601 618796801 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 :                                   868.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            900 sec.

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

