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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1073
RA = 181.203, Dec = 4.12
tmin = 517449601, tmax = 517708801
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='310333', job_status='RUN', time_executed='2021-09-04 23:16:28.641213', time_epoch_executed='1630822588.64' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1073'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310333

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310333/ft1_4FGL_J1204.8+0407_daily_bin1073.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310333/ft2_4FGL_J1204.8+0407_daily_bin1073.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310333/ft1_4FGL_J1204.8+0407_daily_bin1073.fits outfile=/scratch/kocevski/310333/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1073.fits ra=181.203 dec=4.12 rad=12.0 tmin=517449601.0 tmax=517708801.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 5.66
user 5.29
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310333/ft1_filtered_4FGL_J1204.8+0407_daily_bin1073.fits" evtable="EVENTS" scfile=/scratch/kocevski/310333/ft2_4FGL_J1204.8+0407_daily_bin1073.fits sctable="SC_DATA" outfile=/scratch/kocevski/310333/ltcube_517449601_517708801_4FGL_J1204.8+0407_daily_bin1073.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/310333/ft2_4FGL_J1204.8+0407_daily_bin1073.fits
.....................!
real 12.08
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310333/ft1_filtered_4FGL_J1204.8+0407_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/310333/ft2_4FGL_J1204.8+0407_daily_bin1073.fits sctable="SC_DATA" expcube=/scratch/kocevski/310333/ltcube_517449601_517708801_4FGL_J1204.8+0407_daily_bin1073.fits outfile=/scratch/kocevski/310333/expmap_517449601_517708801_4FGL_J1204.8+0407_daily_bin1073.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/310333/ltcube_517449601_517708801_4FGL_J1204.8+0407_daily_bin1073.fits
.....................!
real 191.98
user 185.89
sys 5.64

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/310333/ft1_filtered_4FGL_J1204.8+0407_daily_bin1073.fits scfile=/scratch/kocevski/310333/ft2_4FGL_J1204.8+0407_daily_bin1073.fits outfile=/scratch/kocevski/310333/cmap_517449601_517708801_4FGL_J1204.8+0407_daily_bin1073.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310333/ft1_filtered_4FGL_J1204.8+0407_daily_bin1073.fits scfile=/scratch/kocevski/310333/ft2_4FGL_J1204.8+0407_daily_bin1073.fits outfile=/scratch/kocevski/310333/cmap_HighResolution_517449601_517708801_4FGL_J1204.8+0407_daily_bin1073.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.55
user 0.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/310333/ft1_filtered_4FGL_J1204.8+0407_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/310333/ft2_4FGL_J1204.8+0407_daily_bin1073.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/310333/Model_4FGL_J1204.8+0407_daily_bin1073.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/310333/ft1_filtered_4FGL_J1204.8+0407_daily_bin1073.fits.....................!
real 59.80
user 58.14
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    189.02       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.804       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.816       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9841       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0344       1.0000         .10000E-03   10000.    
    17 'norm      '    .11281       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    110.55       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1466       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .99856       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.134       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7844       1.0000         .10000E-03   10000.    
    25 'norm      '    .40765       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.9503       1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.915       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0279       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0020       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=   6615.195     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     3815 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6905        3.0449        .55863E-07   -.82043E-05
   2  Prefactor     .10000E-03    10.464       -.10971E-07** at limit **
   3  Prefactor     .10000E-03    7.7968        .18122E-07** at limit **
   4  Prefactor     188.99        111.82       -.68519E-06   -.13865E-04
   5  Prefactor     .10000E-03    6.0868        .61689E-06** at limit **
   6  Prefactor     13.809        35.698       -.28831E-05   -.23264E-04
   7  Prefactor     1.5427        4.6798        .50219E-07    .21128E-05
   8  Prefactor     .10000E-03    6.5506        .17589E-06** at limit **
   9  Prefactor     28.416        13.581       -.31569E-06   -.62093E-04
  10  Prefactor     .10000E-03    75.389       -.63131E-06** at limit **
  11  Prefactor     .10000E-03    88.163       -.27707E-05** at limit **
  12  Prefactor     37.190        34.042        .83783E-06   -.21902E-04
  13  Prefactor     40.817        22.342        .14165E-06   -.21468E-04
  14  Prefactor     10.766        34.539       -.10691E-05   -.53653E-04
  15  Prefactor     6.9844        8.2102        .42963E-07   -.24004E-04
  16  norm          7.0343        2.7999        .17014E-07   -.71908E-04
  17  norm          .76176E-02    8.0715        .19692E-05   -.82893E-03
  18  Prefactor     .10000E-03    50.509        .63222E-06** at limit **
  19  norm          111.07        49.620        .67255E-06   -.12466E-03
  20  Prefactor     .10000E-03    74.000       -.22211E-05** at limit **
  21  norm          1.1488        .56943       -.42491E-07   -.14654E-02
  22  Prefactor     .99535        11.213        .21099E-05    .56440E-03
  23  Prefactor     38.144        33.289       -.25107E-06   -.93224E-05
  24  Prefactor     4.7826        5.8621        .99256E-07   -.17609E-04
  25  norm          .40743        1.0327        .64765E-06    .22186E-03
  26  Prefactor     8.9497        6.6963        .45967E-07   -.25240E-04
  27  Prefactor     23.904        29.968       -.29649E-06   -.48788E-04
  28  Normalizat    1.0286        .21173       -.75449E-06   -.19277E-03
  29  Prefactor     1.0017        .16782       -.40949E-07   -.18640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 188.988
  Prefactor  = 0.0001
  Prefactor  = 13.8086
  Prefactor  = 1.54274
  Prefactor  = 0.0001
  Prefactor  = 28.4159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1904
  Prefactor  = 40.8172
  Prefactor  = 10.7663
  Prefactor  = 6.98443
  norm       = 7.0343
  norm       = 0.00761762
  Prefactor  = 0.0001
  norm       = 111.066
  Prefactor  = 0.0001
  norm       = 1.14878
  Prefactor  = 0.995349
  Prefactor  = 38.1441
  Prefactor  = 4.78256
  norm       = 0.407428
  Prefactor  = 8.94972
  Prefactor  = 23.9037
  Normalizat = 1.0286
  Prefactor  = 1.00169
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.195     FROM HESSE     STATUS=OK           565 CALLS     4380 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6905        3.0468        .98837E-04   -1.5231    
   2  Prefactor     .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     188.99        111.80        .14687E-03   -1.2950    
   5  Prefactor     .10000E-03    6.1150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.809        35.462        .10781E-03   -1.4965    
   7  Prefactor     1.5427        4.6288        .29647E-03   -1.5460    
   8  Prefactor     .10000E-03    6.5582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.416        13.563        .75154E-04   -1.4641    
  10  Prefactor     .10000E-03    75.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    89.215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.190        34.115        .65748E-04   -1.4488    
  13  Prefactor     40.817        22.340        .62743E-04   -1.4429    
  14  Prefactor     10.766        37.376        .12389E-03   -1.5052    
  15  Prefactor     6.9844        8.2059        .75901E-03   -1.5179    
  16  norm          7.0343        2.8002        .80746E-04   -1.5177    
  17  norm          .76176E-02    11.145        .30889E-01   -1.5691    
  18  Prefactor     .10000E-03    50.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          111.07        55.774        .19128E-03   -1.3596    
  20  Prefactor     .10000E-03    73.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1488        .57535        .39393E-04   -1.5494    
  22  Prefactor     .99535        11.322        .25903E-02   -1.5508    
  23  Prefactor     38.144        33.373        .64904E-04   -1.4472    
  24  Prefactor     4.7826        5.8555        .18394E-03   -1.5271    
  25  norm          .40743        1.0285        .12656E-03   -1.5580    
  26  Prefactor     8.9497        6.6951        .13397E-03   -1.5110    
  27  Prefactor     23.904        29.937        .81911E-04   -1.4730    
  28  Normalizat    1.0286        .24885        .30237E-03   -.92078    
  29  Prefactor     1.0017        .19611        .25189E-03   -.92673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80699e-09
Minuit parameter uncertainties:
  1  3.04688
  2  4.15808e-06
  3  1.63729e-06
  4  111.921
  5  1.55383e-05
  6  35.5164
  7  4.62988
  8  5.52525e-06
  9  13.5643
  10  2.4222e-05
  11  3.40048e-05
  12  34.1326
  13  22.3444
  14  37.4573
  15  8.20721
  16  2.80025
  17  0.579028
  18  7.3947e-05
  19  55.8008
  20  6.62298e-05
  21  0.57535
  22  6.71538
  23  33.3889
  24  5.85617
  25  1.02851
  26  6.69569
  27  29.9558
  28  0.24913
  29  0.196245
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.719e+01  3.413e+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.002e+00  1.962e-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.029e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.04e-05

TS (Fixed Index): 2.10
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310333/likelihoodResults_517449601_517708801_4FGL_J1204.8+0407_daily_bin1073.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) = 6614.99350298
delta logL = 0.20120768366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6614.98024814
delta logL = 0.214462527405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.952       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0878       1.0000          .0000       10.000    
     3 'Normalizat'    1.0480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99034       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=   6614.980     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      296 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.954        42.207        .59147E-04   -.56602E-03
   2  Index         2.0878        .69547        .10269E-01   -.26415E-03
   3  Normalizat    1.0476        .23364        .29996E-03    .11711E-03
   4  Prefactor     .99062        .19217        .25307E-03    .11658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.9538
  Index      = 2.08784
  Normalizat = 1.04758
  Prefactor  = 0.990617
 **********
 **   18 **HESSE 
 **********

 FCN=   6614.980     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.954        42.296        .11829E-04   -1.4351    
   2  Index         2.0878        .69689        .41076E-03   -.62172    
   3  Normalizat    1.0476        .23384        .11998E-04   -.91453    
   4  Prefactor     .99062        .19232        .10123E-04   -.93043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66679e-09
Minuit parameter uncertainties:
  1  42.3239
  2  0.700355
  3  0.234066
  4  0.192457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310333': 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) = 6614.98024669
delta logL = 0.214463979902

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.595e+01  4.232e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.088e+00  7.004e-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.906e-01  1.925e-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.048e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.09 +/- 0.70
Photon Flux (Free Index): 2.82e-08 +/- 3.50e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.83e-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/310333/cmap_HighResolution_517449601_517708801_4FGL_J1204.8+0407_daily_bin1073.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.59e-05', photon_flux_error='3.87e-08', dlogl='2.14e-01', energy_flux='1.13e-05', photon_flux2='2.82e-08', job_status='DONE', time_completed='2021-09-04 23:31:52.051455', photon_index_error2='0.70', photon_index2='2.09', ts='2.10', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.83e-05', EG='1.03', time_epoch_completed='1630823512.05', return_code='0', job_id='310333', GAL2='0.99', EG2='1.05', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.50e-08', ts2='2.52', photon_index='2.58' WHERE bin_id='1073' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 310333: <4FGL_J1204.8+0407_daily_bin1073> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1073> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:15:55 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:15: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:15:57 2021
Terminated at Sat Sep  4 23:31:52 2021
Results reported at Sat Sep  4 23:31:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1073 181.203 4.12 517449601 517708801 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 :                                   916.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

