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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1572
RA = 181.203, Dec = 4.12
tmin = 646790401, tmax = 647049601
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='312208', job_status='RUN', time_executed='2021-09-04 23:24:02.378649', time_epoch_executed='1630823042.38' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312208/ft1_4FGL_J1204.8+0407_daily_bin1572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312208/ft2_4FGL_J1204.8+0407_daily_bin1572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312208/ft1_4FGL_J1204.8+0407_daily_bin1572.fits outfile=/scratch/kocevski/312208/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1572.fits ra=181.203 dec=4.12 rad=12.0 tmin=646790401.0 tmax=647049601.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 2.68
user 2.49
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312208/ft2_4FGL_J1204.8+0407_daily_bin1572.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/312208/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1572.fits evtable="EVENTS" outfile="/scratch/kocevski/312208/ft1_filtered_4FGL_J1204.8+0407_daily_bin1572.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.40
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312208/ft1_filtered_4FGL_J1204.8+0407_daily_bin1572.fits" evtable="EVENTS" scfile=/scratch/kocevski/312208/ft2_4FGL_J1204.8+0407_daily_bin1572.fits sctable="SC_DATA" outfile=/scratch/kocevski/312208/ltcube_646790401_647049601_4FGL_J1204.8+0407_daily_bin1572.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/312208/ft2_4FGL_J1204.8+0407_daily_bin1572.fits
.....................!
real 8.91
user 8.61
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312208/ft1_filtered_4FGL_J1204.8+0407_daily_bin1572.fits evtable="EVENTS" scfile=/scratch/kocevski/312208/ft2_4FGL_J1204.8+0407_daily_bin1572.fits sctable="SC_DATA" expcube=/scratch/kocevski/312208/ltcube_646790401_647049601_4FGL_J1204.8+0407_daily_bin1572.fits outfile=/scratch/kocevski/312208/expmap_646790401_647049601_4FGL_J1204.8+0407_daily_bin1572.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/312208/ltcube_646790401_647049601_4FGL_J1204.8+0407_daily_bin1572.fits
.....................!
real 142.78
user 138.53
sys 3.98

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/312208/ft1_filtered_4FGL_J1204.8+0407_daily_bin1572.fits scfile=/scratch/kocevski/312208/ft2_4FGL_J1204.8+0407_daily_bin1572.fits outfile=/scratch/kocevski/312208/cmap_646790401_647049601_4FGL_J1204.8+0407_daily_bin1572.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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312208/ft1_filtered_4FGL_J1204.8+0407_daily_bin1572.fits scfile=/scratch/kocevski/312208/ft2_4FGL_J1204.8+0407_daily_bin1572.fits outfile=/scratch/kocevski/312208/cmap_HighResolution_646790401_647049601_4FGL_J1204.8+0407_daily_bin1572.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.977       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.793       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9072       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .54401       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8592       1.0000         .10000E-03   10000.    
    19 'norm      '    58.106       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0240       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.422       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9694       1.0000         .10000E-03   10000.    
    25 'norm      '    4.4291       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6517       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.6421       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94476       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1903       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=   7053.548     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3701 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9508        2.0143        .43379E-07   -.21790E-04
   2  Prefactor     .10000E-03    20.515        .61141E-06** at limit **
   3  Prefactor     24.001        19.535        .25121E-08   -.11438E-04
   4  Prefactor     12.989        92.350       -.42267E-05   -.91682E-05
   5  Prefactor     .10000E-03    2.9631        .25403E-07** at limit **
   6  Prefactor     25.792        29.820        .26338E-06   -.10459E-05
   7  Prefactor     .10000E-03    3.7401       -.27855E-06** at limit **
   8  Prefactor     .10000E-03    7.6598       -.34828E-07** at limit **
   9  Prefactor     .10000E-03    14.595        .65242E-07** at limit **
  10  Prefactor     .10000E-03    22.477       -.10956E-06** at limit **
  11  Prefactor     .10000E-03    12.902       -.38062E-06** at limit **
  12  Prefactor     2.9455        134.72        .13818E-04    .53047E-05
  13  Prefactor     47.786        25.970       -.15704E-06   -.39689E-04
  14  Prefactor     .10000E-03    10.746        .23064E-06** at limit **
  15  Prefactor     2.9098        10.633        .41034E-05   -.64703E-04
  16  norm          .10000E-03    1.1348        .35373E-06** at limit **
  17  norm          .51692        2.5512       -.59007E-07   -.24354E-03
  18  Prefactor     2.8551        45.561        .11953E-05    .90306E-06
  19  norm          58.103        41.807        .47365E-06    .29644E-04
  20  Prefactor     .10000E-03    48.096       -.53882E-06** at limit **
  21  norm          3.0231        .81004       -.38268E-07    .12795E-03
  22  Prefactor     .10000E-03    6.4621       -.39747E-06** at limit **
  23  Prefactor     30.401        37.876        .28245E-05    .84452E-05
  24  Prefactor     1.9693        6.5799        .32827E-06   -.47304E-05
  25  norm          4.4283        2.1730        .45063E-07    .42456E-04
  26  Prefactor     3.6523        8.3589        .10139E-06   -.10268E-04
  27  Prefactor     9.6263        36.495        .38670E-05    .32976E-05
  28  Normalizat    .94454        .21197       -.82602E-07   -.41527E-04
  29  Prefactor     1.1904        .16976       -.10767E-05   -.40056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95083
  Prefactor  = 0.0001
  Prefactor  = 24.0008
  Prefactor  = 12.9889
  Prefactor  = 0.0001
  Prefactor  = 25.7915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.94553
  Prefactor  = 47.7864
  Prefactor  = 0.0001
  Prefactor  = 2.90979
  norm       = 0.0001
  norm       = 0.516919
  Prefactor  = 2.85515
  norm       = 58.1027
  Prefactor  = 0.0001
  norm       = 3.02307
  Prefactor  = 0.0001
  Prefactor  = 30.4005
  Prefactor  = 1.96935
  norm       = 4.42828
  Prefactor  = 3.65234
  Prefactor  = 9.62627
  Normalizat = 0.944536
  Prefactor  = 1.19045
 **********
 **   18 **HESSE 
 **********

 FCN=   7053.548     FROM HESSE     STATUS=OK           557 CALLS     4258 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9508        2.0156        .94733E-04   -1.5364    
   2  Prefactor     .10000E-03    20.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.001        19.537        .81765E-04   -1.4728    
   4  Prefactor     12.989        92.987        .11120E-03   -1.4987    
   5  Prefactor     .10000E-03    2.9660        .14118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.792        29.822        .78877E-04   -1.4692    
   7  Prefactor     .10000E-03    3.7614        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.7138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9455        136.48        .23539E-03   -1.5365    
  13  Prefactor     47.786        25.952        .58002E-04   -1.4324    
  14  Prefactor     .10000E-03    10.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9098        10.687        .11915E-02   -1.5367    
  16  norm          .10000E-03    1.1611        .87566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .51692        10.049        .21403E-02   -1.5564    
  18  Prefactor     2.8551        45.632        .24042E-03   -1.5370    
  19  norm          58.103        42.984        .52630E-04   -1.4182    
  20  Prefactor     .10000E-03    48.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0231        .80310        .33784E-04   -1.5360    
  22  Prefactor     .10000E-03    6.4839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.401        37.903        .72642E-04   -1.4605    
  24  Prefactor     1.9693        6.5358        .29548E-03   -1.5427    
  25  norm          4.4283        2.1652        .80685E-04   -1.5287    
  26  Prefactor     3.6523        8.3333        .21139E-03   -1.5326    
  27  Prefactor     9.6263        36.434        .12905E-03   -1.5087    
  28  Normalizat    .94454        .25300        .31754E-03   -.94912    
  29  Prefactor     1.1904        .20271        .24079E-03   -.86626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48305e-10
Minuit parameter uncertainties:
  1  2.01569
  2  2.37735e-05
  3  19.5423
  4  69.6604
  5  1.77089e-06
  6  29.8391
  7  1.97327e-05
  8  5.79693e-06
  9  1.77617e-05
  10  1.91145e-06
  11  9.97783e-07
  12  40.1968
  13  25.9577
  14  1.20829e-05
  15  10.694
  16  3.79529e-07
  17  4.55868
  18  22.849
  19  43.0069
  20  5.00244e-06
  21  0.803099
  22  3.80767e-05
  23  37.9326
  24  6.53814
  25  2.16523
  26  8.33598
  27  36.5185
  28  0.253324
  29  0.202847
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.946e+00  4.020e+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.190e+00  2.028e-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:  9.445e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312208/likelihoodResults_646790401_647049601_4FGL_J1204.8+0407_daily_bin1572.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) = 7053.54788692
delta logL = 4.07576444559e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7053.54786902
delta logL = 5.86535188631e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9455       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6123       1.0000          .0000       10.000    
     3 'Normalizat'    .94431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1906       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7053.548     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      258 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8246        186.81        .11832E-02   -.56208E-05
   2  Index         2.6451        6.1342        .23700E-01    .97376E-06
   3  Normalizat    .94424        .23796        .31758E-03   -.50796E-04
   4  Prefactor     1.1906        .19850        .24078E-03   -.50475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82462
  Index      = 2.64514
  Normalizat = 0.944241
  Prefactor  = 1.19064
 **********
 **   18 **HESSE 
 **********

 FCN=   7053.548     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8246        141.06        .47329E-04   -1.5372    
   2  Index         2.6451        6.2738        .94802E-03   -.49039    
   3  Normalizat    .94424        .23845        .12703E-04   -.94923    
   4  Prefactor     1.1906        .19854        .96311E-05   -.86620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85523e-12
Minuit parameter uncertainties:
  1  40.0213
  2  5.63818
  3  0.238719
  4  0.19866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312208': 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) = 7053.54785035
delta logL = 7.73248802943e-05

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.825e+00  4.002e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.645e+00  5.638e+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:  1.191e+00  1.987e-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:  9.442e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/312208/cmap_HighResolution_646790401_647049601_4FGL_J1204.8+0407_daily_bin1572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-04 23:35:21.632577', job_id='312208', GAL2='1.19', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630823721.63', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='7.73e-05', ts2='0.01', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1572' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:35:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 312208: <4FGL_J1204.8+0407_daily_bin1572> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1572 181.203 4.12 646790401 647049601 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 :                                   676.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

