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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1544
RA = 181.203, Dec = 4.12
tmin = 639532801, tmax = 639792001
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='312169', job_status='RUN', time_executed='2021-09-04 23:22:16.861837', time_epoch_executed='1630822936.86' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312169

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312169/ft1_4FGL_J1204.8+0407_daily_bin1544.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312169/ft2_4FGL_J1204.8+0407_daily_bin1544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312169/ft1_4FGL_J1204.8+0407_daily_bin1544.fits outfile=/scratch/kocevski/312169/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1544.fits ra=181.203 dec=4.12 rad=12.0 tmin=639532801.0 tmax=639792001.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.59
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312169/ft1_filtered_4FGL_J1204.8+0407_daily_bin1544.fits" evtable="EVENTS" scfile=/scratch/kocevski/312169/ft2_4FGL_J1204.8+0407_daily_bin1544.fits sctable="SC_DATA" outfile=/scratch/kocevski/312169/ltcube_639532801_639792001_4FGL_J1204.8+0407_daily_bin1544.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/312169/ft2_4FGL_J1204.8+0407_daily_bin1544.fits
.....................!
real 15.62
user 15.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312169/ft1_filtered_4FGL_J1204.8+0407_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/312169/ft2_4FGL_J1204.8+0407_daily_bin1544.fits sctable="SC_DATA" expcube=/scratch/kocevski/312169/ltcube_639532801_639792001_4FGL_J1204.8+0407_daily_bin1544.fits outfile=/scratch/kocevski/312169/expmap_639532801_639792001_4FGL_J1204.8+0407_daily_bin1544.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/312169/ltcube_639532801_639792001_4FGL_J1204.8+0407_daily_bin1544.fits
.....................!
real 190.91
user 185.14
sys 5.14

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/312169/ft1_filtered_4FGL_J1204.8+0407_daily_bin1544.fits scfile=/scratch/kocevski/312169/ft2_4FGL_J1204.8+0407_daily_bin1544.fits outfile=/scratch/kocevski/312169/cmap_639532801_639792001_4FGL_J1204.8+0407_daily_bin1544.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312169/ft1_filtered_4FGL_J1204.8+0407_daily_bin1544.fits scfile=/scratch/kocevski/312169/ft2_4FGL_J1204.8+0407_daily_bin1544.fits outfile=/scratch/kocevski/312169/cmap_HighResolution_639532801_639792001_4FGL_J1204.8+0407_daily_bin1544.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3512       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.436       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6888       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1172       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.267       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.063       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13022       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2946       1.0000         .10000E-03   10000.    
    16 'norm      '    .12539E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7591       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.910       1.0000         .10000E-03   10000.    
    19 'norm      '    74.561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3961       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.268       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.9163       1.0000         .10000E-03   10000.    
    25 'norm      '    2.4695       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.069       1.0000         .10000E-03   10000.    
    27 'Prefactor '    31.206       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2123       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59509       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=   5042.632     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3761 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3517        2.5455       -.20018E-07   -.66306E-04
   2  Prefactor     .10000E-03    14.363        .10739E-07** at limit **
   3  Prefactor     24.425        32.506        .66406E-05    .96246E-05
   4  Prefactor     .10000E-03    29.866        .23417E-07** at limit **
   5  Prefactor     .10000E-03    3.3092        .42602E-07** at limit **
   6  Prefactor     .10000E-03    71.556       -.33273E-06** at limit **
   7  Prefactor     3.6866        11.073       -.38305E-05   -.20848E-03
   8  Prefactor     8.1252        15.736       -.67998E-06   -.26176E-04
   9  Prefactor     15.869        19.219        .44712E-07   -.17109E-04
  10  Prefactor     12.624        52.270       -.12826E-04   -.14190E-05
  11  Prefactor     13.285        45.233        .35605E-05   -.36242E-05
  12  Prefactor     17.266        36.947        .66078E-05    .18613E-04
  13  Prefactor     56.071        29.910        .20797E-05    .19786E-04
  14  Prefactor     .23703E-01    19.614       -.66469E-06    .28012E-04
  15  Prefactor     5.2819        10.558       -.73273E-06   -.10857E-03
  16  norm          .10000E-03    1.5105        .25144E-07** at limit **
  17  norm          6.7639        4.4006       -.84239E-06   -.43572E-04
  18  Prefactor     53.912        32.862       -.12781E-05    .82426E-05
  19  norm          74.540        57.491        .79655E-05    .67662E-05
  20  Prefactor     .10000E-03    203.13        .86761E-06** at limit **
  21  norm          1.3965        .61834       -.64043E-07    .51871E-04
  22  Prefactor     .10000E-03    3.1912       -.82935E-08** at limit **
  23  Prefactor     15.270        19.494        .21744E-05    .80120E-06
  24  Prefactor     3.9138        10.486       -.24031E-05   -.15541E-03
  25  norm          2.4697        1.6135        .12750E-07   -.11257E-03
  26  Prefactor     17.072        13.706        .28155E-05    .77480E-05
  27  Prefactor     31.209        38.448       -.28255E-05    .15619E-05
  28  Normalizat    1.2115        .21817        .50880E-06    .46219E-05
  29  Prefactor     .59575        .17118       -.13601E-05    .48046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.35167
  Prefactor  = 0.0001
  Prefactor  = 24.4249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68659
  Prefactor  = 8.12524
  Prefactor  = 15.8688
  Prefactor  = 12.6243
  Prefactor  = 13.2851
  Prefactor  = 17.266
  Prefactor  = 56.0709
  Prefactor  = 0.0237032
  Prefactor  = 5.28188
  norm       = 0.0001
  norm       = 6.7639
  Prefactor  = 53.9122
  norm       = 74.5405
  Prefactor  = 0.0001
  norm       = 1.3965
  Prefactor  = 0.0001
  Prefactor  = 15.2704
  Prefactor  = 3.91381
  norm       = 2.46969
  Prefactor  = 17.0722
  Prefactor  = 31.2094
  Normalizat = 1.21153
  Prefactor  = 0.595751
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.632     FROM HESSE     STATUS=OK           571 CALLS     4332 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3517        2.5482        .83324E-04   -1.5291    
   2  Prefactor     .10000E-03    14.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.425        32.502        .81034E-04   -1.4719    
   4  Prefactor     .10000E-03    29.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3132        .12615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    71.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6866        11.160        .21028E-03   -1.5324    
   8  Prefactor     8.1252        15.806        .14072E-03   -1.5138    
   9  Prefactor     15.869        19.279        .10054E-03   -1.4911    
  10  Prefactor     12.624        52.003        .11278E-03   -1.4997    
  11  Prefactor     13.285        45.124        .10987E-03   -1.4979    
  12  Prefactor     17.266        37.070        .96385E-04   -1.4877    
  13  Prefactor     56.071        29.907        .53575E-04   -1.4209    
  14  Prefactor     .23703E-01    23.525        .10159       -1.5677    
  15  Prefactor     5.2819        10.416        .17467E-03   -1.5248    
  16  norm          .10000E-03    1.5205        .16829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7639        4.4176        .10164E-03   -1.5188    
  18  Prefactor     53.912        32.854        .54628E-04   -1.4238    
  19  norm          74.540        57.523        .46498E-04   -1.3979    
  20  Prefactor     .10000E-03    203.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3965        .61626        .33911E-04   -1.5472    
  22  Prefactor     .10000E-03    3.1934        .12388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.270        19.486        .10250E-03   -1.4926    
  24  Prefactor     3.9138        10.505        .20386E-03   -1.5312    
  25  norm          2.4697        1.6111        .69475E-04   -1.5394    
  26  Prefactor     17.072        13.682        .96942E-04   -1.4881    
  27  Prefactor     31.209        38.425        .71726E-04   -1.4590    
  28  Normalizat    1.2115        .26101        .24709E-03   -.86247    
  29  Prefactor     .59575        .20130        .28075E-03   -1.0777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37008e-10
Minuit parameter uncertainties:
  1  2.54827
  2  3.47372e-06
  3  32.5258
  4  9.41798e-10
  5  8.75126e-06
  6  0.000184455
  7  11.1658
  8  15.8138
  9  19.287
  10  51.3213
  11  45.2403
  12  37.1194
  13  29.9154
  14  1.49092
  15  10.4194
  16  3.59789e-06
  17  4.4178
  18  32.8655
  19  57.5662
  20  0.000135749
  21  0.616267
  22  1.573e-06
  23  19.4938
  24  10.5096
  25  1.61113
  26  13.6846
  27  38.4558
  28  0.261287
  29  0.201541
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.727e+01  3.712e+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:  5.958e-01  2.015e-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.212e+00  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/312169/likelihoodResults_639532801_639792001_4FGL_J1204.8+0407_daily_bin1544.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) = 5041.54496637
delta logL = 1.08708716779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5041.54169866
delta logL = 1.0903548803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.282       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2375       1.0000          .0000       10.000    
     3 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58295       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=   5041.542     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      213 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.282        18.676        .24814E-02    .16753E-02
   2  Index         1.2374        .41104        .21432       -.87369E-04
   3  Normalizat    1.2313        .20266        .55445E-01   -.21149E-03
   4  Prefactor     .58293        .16759        .64008E-01   -.26940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2821
  Index      = 1.23742
  Normalizat = 1.23125
  Prefactor  = 0.58293
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.542     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.282        27.327        .99258E-04   -1.4901    
   2  Index         1.2374        .66631        .85397E-02   -.85187    
   3  Normalizat    1.2313        .23642        .24517E-03   -.85642    
   4  Prefactor     .58293        .19526        .28322E-03   -1.0831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20551e-08
Minuit parameter uncertainties:
  1  27.3475
  2  0.670938
  3  0.23663
  4  0.19549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312169': 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) = 5041.54169865
delta logL = 1.09035488856

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.628e+01  2.735e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  1.237e+00  6.709e-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:  5.829e-01  1.955e-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.231e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 181.203 4.120
Photon Index (Free Index): 1.24 +/- 0.67
Photon Flux (Free Index): 6.67e-09 +/- 9.56e-09
Energy Flux (Free Index): 4.97e-05 +/- 8.14e-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/312169/cmap_HighResolution_639532801_639792001_4FGL_J1204.8+0407_daily_bin1544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', comment='SUCCESS', energy_flux2='4.97e-05', dlogl='1.09e+00', photon_flux2='6.67e-09', job_status='DONE', time_completed='2021-09-04 23:35:13.258734', photon_index_error2='0.67', photon_index2='1.24', ts='0.28', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='8.14e-05', EG='1.21', time_epoch_completed='1630823713.26', return_code='0', job_id='312169', GAL2='0.58', EG2='1.23', return_code2='0', photon_flux_error2='9.56e-09', ts2='2.46', photon_index='2.58' WHERE bin_id='1544' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:35:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 312169: <4FGL_J1204.8+0407_daily_bin1544> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1544 181.203 4.12 639532801 639792001 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 :                                   765.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

