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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1068
RA = 181.203, Dec = 4.12
tmin = 516153601, tmax = 516412801
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='310325', job_status='RUN', time_executed='2021-09-04 23:16:51.638916', time_epoch_executed='1630822611.64' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310325

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310325/ft1_4FGL_J1204.8+0407_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310325/ft2_4FGL_J1204.8+0407_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310325/ft1_4FGL_J1204.8+0407_daily_bin1068.fits outfile=/scratch/kocevski/310325/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1068.fits ra=181.203 dec=4.12 rad=12.0 tmin=516153601.0 tmax=516412801.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 4.52
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310325/ft1_filtered_4FGL_J1204.8+0407_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/310325/ft2_4FGL_J1204.8+0407_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/310325/ltcube_516153601_516412801_4FGL_J1204.8+0407_daily_bin1068.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/310325/ft2_4FGL_J1204.8+0407_daily_bin1068.fits
.....................!
real 12.29
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310325/ft1_filtered_4FGL_J1204.8+0407_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/310325/ft2_4FGL_J1204.8+0407_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/310325/ltcube_516153601_516412801_4FGL_J1204.8+0407_daily_bin1068.fits outfile=/scratch/kocevski/310325/expmap_516153601_516412801_4FGL_J1204.8+0407_daily_bin1068.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/310325/ltcube_516153601_516412801_4FGL_J1204.8+0407_daily_bin1068.fits
.....................!
real 190.28
user 185.80
sys 4.08

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/310325/ft1_filtered_4FGL_J1204.8+0407_daily_bin1068.fits scfile=/scratch/kocevski/310325/ft2_4FGL_J1204.8+0407_daily_bin1068.fits outfile=/scratch/kocevski/310325/cmap_516153601_516412801_4FGL_J1204.8+0407_daily_bin1068.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310325/ft1_filtered_4FGL_J1204.8+0407_daily_bin1068.fits scfile=/scratch/kocevski/310325/ft2_4FGL_J1204.8+0407_daily_bin1068.fits outfile=/scratch/kocevski/310325/cmap_HighResolution_516153601_516412801_4FGL_J1204.8+0407_daily_bin1068.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/310325/ft1_filtered_4FGL_J1204.8+0407_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/310325/ft2_4FGL_J1204.8+0407_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/310325/Model_4FGL_J1204.8+0407_daily_bin1068.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/310325/ft1_filtered_4FGL_J1204.8+0407_daily_bin1068.fits.....................!
real 58.42
user 57.09
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42155       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.509       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.781       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17419E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.988       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8544       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1885       1.0000         .10000E-03   10000.    
    17 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    49.949       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.449       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6500       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6670       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4888       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8803       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16035E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5506       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69962       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=   6010.633     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3698 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42227        2.4660        .18247E-05   -.87905E-04
   2  Prefactor     .10000E-03    14.989        .58629E-07** at limit **
   3  Prefactor     30.578        23.446       -.50838E-07   -.15236E-04
   4  Prefactor     18.480        111.49        .18899E-06   -.92757E-05
   5  Prefactor     11.770        11.255        .15644E-06   -.13044E-04
   6  Prefactor     .10000E-03    96.444        .34413E-06** at limit **
   7  Prefactor     .10000E-03    4.5261        .68983E-07** at limit **
   8  Prefactor     .10000E-03    6.9865        .52564E-07** at limit **
   9  Prefactor     .10000E-03    32.249        .49783E-06** at limit **
  10  Prefactor     .10000E-03    222.14        .45225E-06** at limit **
  11  Prefactor     .10000E-03    22.015        .62250E-07** at limit **
  12  Prefactor     32.196        43.695        .90670E-07   -.16488E-05
  13  Prefactor     18.989        18.641       -.12962E-06   -.76290E-05
  14  Prefactor     .10000E-03    32.358       -.28209E-06** at limit **
  15  Prefactor     5.8551        8.8514        .22795E-05   -.29999E-04
  16  norm          3.1886        2.5302       -.18399E-06   -.28177E-05
  17  norm          .10000E-03    2.1876       -.25570E-06** at limit **
  18  Prefactor     .10000E-03    10.971       -.19443E-06** at limit **
  19  norm          49.951        37.992        .71542E-07    .64711E-05
  20  Prefactor     39.318        103.52       -.83524E-06   -.42786E-04
  21  norm          5.6501        .95662       -.10845E-07    .28505E-03
  22  Prefactor     7.6678        7.3204        .97758E-08   -.43365E-05
  23  Prefactor     .10000E-03    15.455        .51122E-07** at limit **
  24  Prefactor     2.4877        8.0274        .70240E-06    .51657E-04
  25  norm          2.8805        1.9484        .74663E-07    .28129E-04
  26  Prefactor     .10004E-03    7.3121       -.77172E-06** at limit **
  27  Prefactor     .10000E-03    37.392        .26326E-06** at limit **
  28  Normalizat    1.5503        .22302       -.59612E-06   -.37481E-04
  29  Prefactor     .69982        .17611       -.43698E-06   -.37735E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.422275
  Prefactor  = 0.0001
  Prefactor  = 30.5778
  Prefactor  = 18.4804
  Prefactor  = 11.7704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.1957
  Prefactor  = 18.9889
  Prefactor  = 0.0001
  Prefactor  = 5.85513
  norm       = 3.18858
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 49.9513
  Prefactor  = 39.3184
  norm       = 5.6501
  Prefactor  = 7.66781
  Prefactor  = 0.0001
  Prefactor  = 2.48769
  norm       = 2.88055
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Normalizat = 1.55031
  Prefactor  = 0.699817
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.633     FROM HESSE     STATUS=OK           551 CALLS     4249 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42227        2.5012        .23004E-03   -1.5578    
   2  Prefactor     .10000E-03    15.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.578        23.453        .72459E-04   -1.4601    
   4  Prefactor     18.480        112.23        .93096E-04   -1.4848    
   5  Prefactor     11.770        11.274        .11671E-03   -1.5022    
   6  Prefactor     .10000E-03    97.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5420        .16102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    223.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.196        43.785        .70625E-04   -1.4573    
  13  Prefactor     18.989        18.636        .91914E-04   -1.4836    
  14  Prefactor     .10000E-03    32.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8551        8.8687        .82989E-03   -1.5224    
  16  norm          3.1886        2.5282        .10321E-03   -1.5351    
  17  norm          .10000E-03    2.2229        .11167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          49.951        38.008        .56742E-04   -1.4293    
  20  Prefactor     39.318        103.59        .31909E-03   -1.4453    
  21  norm          5.6501        .95899        .28931E-04   -1.5233    
  22  Prefactor     7.6678        7.3268        .14483E-03   -1.5154    
  23  Prefactor     .10000E-03    15.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.4877        7.9573        .25910E-03   -1.5393    
  25  norm          2.8805        1.9427        .84512E-04   -1.5369    
  26  Prefactor     .10004E-03    41.910        .39365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    37.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5503        .26393        .26089E-03   -.76374    
  29  Prefactor     .69982        .20675        .30318E-03   -1.0353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04958e-09
Minuit parameter uncertainties:
  1  2.05529
  2  2.51724e-06
  3  23.46
  4  91.3403
  5  11.2761
  6  2.64622e-05
  7  7.40232e-07
  8  3.18265e-06
  9  2.28937e-05
  10  0.000300225
  11  3.84118e-06
  12  43.8287
  13  18.6416
  14  9.05783e-06
  15  8.87069
  16  2.52824
  17  3.60967e-06
  18  3.97236e-06
  19  38.0268
  20  104.072
  21  0.958992
  22  7.32764
  23  8.27167e-06
  24  7.96064
  25  1.94277
  26  0.00266529
  27  6.65741e-05
  28  0.264171
  29  0.20698
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.220e+01  4.383e+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:  6.998e-01  2.070e-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.550e+00  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/310325/likelihoodResults_516153601_516412801_4FGL_J1204.8+0407_daily_bin1068.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) = 6010.61448106
delta logL = 0.0183411750286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6010.6078838
delta logL = 0.0249384323652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.036       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8275       1.0000          .0000       10.000    
     3 'Normalizat'    1.5396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70622       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.

 FCN=   6010.608     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.036        956.48        .19262E-02   -.10944E-03
   2  Index         2.8268        6.4101        .22533        .60461E-04
   3  Normalizat    1.5403        .64880E-01    .59150E-01    .11092E-05
   4  Prefactor     .70558        .51452E-01    .68265E-01    .22273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0358
  Index      = 2.82683
  Normalizat = 1.54034
  Prefactor  = 0.705584
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.608     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.036        51.036        .77047E-04   -1.4668    
   2  Index         2.8268        1.2712        .90490E-02   -.44963    
   3  Normalizat    1.5403        .25626        .26156E-03   -.76651    
   4  Prefactor     .70558        .20584        .30207E-03   -1.0331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11498e-09
Minuit parameter uncertainties:
  1  51.1183
  2  1.2887
  3  0.256476
  4  0.206066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310325': 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) = 6010.60787878
delta logL = 0.0249434580874

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.704e+01  5.112e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.827e+00  1.289e+00  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:  7.056e-01  2.061e-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.540e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
Ra Dec: 181.203 4.120

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/310325/cmap_HighResolution_516153601_516412801_4FGL_J1204.8+0407_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-04 23:31:17.443231', job_id='310325', GAL2='0.71', fit_tolerance='1e-08', EG2='1.54', EG='1.55', time_epoch_completed='1630823477.44', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.49e-02', ts2='0.74', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1068' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 310325: <4FGL_J1204.8+0407_daily_bin1068> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1068 181.203 4.12 516153601 516412801 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 :                                   850.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

