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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1417
RA = 181.203, Dec = 4.12
tmin = 606614401, tmax = 606873601
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='311988', job_status='RUN', time_executed='2021-09-04 23:21:23.976855', time_epoch_executed='1630822883.98' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311988/ft1_4FGL_J1204.8+0407_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311988/ft2_4FGL_J1204.8+0407_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311988/ft1_4FGL_J1204.8+0407_daily_bin1417.fits outfile=/scratch/kocevski/311988/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1417.fits ra=181.203 dec=4.12 rad=12.0 tmin=606614401.0 tmax=606873601.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.06
user 4.82
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311988/ft1_filtered_4FGL_J1204.8+0407_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/311988/ft2_4FGL_J1204.8+0407_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/311988/ltcube_606614401_606873601_4FGL_J1204.8+0407_daily_bin1417.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/311988/ft2_4FGL_J1204.8+0407_daily_bin1417.fits
.....................!
real 11.86
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311988/ft1_filtered_4FGL_J1204.8+0407_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/311988/ft2_4FGL_J1204.8+0407_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/311988/ltcube_606614401_606873601_4FGL_J1204.8+0407_daily_bin1417.fits outfile=/scratch/kocevski/311988/expmap_606614401_606873601_4FGL_J1204.8+0407_daily_bin1417.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/311988/ltcube_606614401_606873601_4FGL_J1204.8+0407_daily_bin1417.fits
.....................!
real 189.96
user 185.34
sys 4.15

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/311988/ft1_filtered_4FGL_J1204.8+0407_daily_bin1417.fits scfile=/scratch/kocevski/311988/ft2_4FGL_J1204.8+0407_daily_bin1417.fits outfile=/scratch/kocevski/311988/cmap_606614401_606873601_4FGL_J1204.8+0407_daily_bin1417.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311988/ft1_filtered_4FGL_J1204.8+0407_daily_bin1417.fits scfile=/scratch/kocevski/311988/ft2_4FGL_J1204.8+0407_daily_bin1417.fits outfile=/scratch/kocevski/311988/cmap_HighResolution_606614401_606873601_4FGL_J1204.8+0407_daily_bin1417.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.62
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0099       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2016       1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53278E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5641       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12470       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.518       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7195       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .89288       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5438       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5359       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.7894       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8144       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67321       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=   4945.183     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3714 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0101        3.1628        .36699E-06   -.51327E-05
   2  Prefactor     40.494        38.412        .71884E-07   -.25998E-04
   3  Prefactor     54.436        31.992       -.29424E-06    .81607E-04
   4  Prefactor     64.497        101.81        .71690E-07   -.37830E-04
   5  Prefactor     .10000E-03    14.284        .31693E-07** at limit **
   6  Prefactor     24.542        71.735        .41508E-06    .82334E-05
   7  Prefactor     6.8453        10.703        .34143E-05   -.44525E-04
   8  Prefactor     8.1904        18.317       -.14062E-05    .13935E-04
   9  Prefactor     57.998        26.609        .40201E-07    .13804E-03
  10  Prefactor     .10000E-03    546.34        .93422E-05** at limit **
  11  Prefactor     .10000E-03    26.928        .21541E-06** at limit **
  12  Prefactor     5.5771        62.117       -.34402E-05   -.30436E-04
  13  Prefactor     .10054E-03    32.003        .63373E-06** at limit **
  14  Prefactor     .10000E-03    12.071       -.21334E-06** at limit **
  15  Prefactor     19.515        18.100       -.47024E-06   -.20724E-04
  16  norm          4.7189        3.9586       -.27680E-07   -.99343E-04
  17  norm          .10000E-03    .96959       -.34738E-07** at limit **
  18  Prefactor     .10000E-03    23.125        .21098E-06** at limit **
  19  norm          .10000E-03    11.928        .77218E-07** at limit **
  20  Prefactor     .10000E-03    42.950       -.52867E-07** at limit **
  21  norm          .89285        .47661        .19663E-07   -.95686E-04
  22  Prefactor     7.5438        8.1331       -.58405E-07   -.24981E-04
  23  Prefactor     1.5364        90.935        .30590E-05   -.26726E-05
  24  Prefactor     .10000E-03    7.5428        .42754E-07** at limit **
  25  norm          3.7894        1.6615        .35043E-07   -.30561E-04
  26  Prefactor     1.8141        6.8307        .15108E-05    .26699E-04
  27  Prefactor     .10000E-03    19.130       -.19272E-06** at limit **
  28  Normalizat    1.2670        .22469       -.12046E-05   -.73048E-04
  29  Prefactor     .67315        .17439       -.20468E-06   -.95680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.01013
  Prefactor  = 40.4943
  Prefactor  = 54.4357
  Prefactor  = 64.4975
  Prefactor  = 0.0001
  Prefactor  = 24.5416
  Prefactor  = 6.84534
  Prefactor  = 8.19039
  Prefactor  = 57.998
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.57711
  Prefactor  = 0.00010054
  Prefactor  = 0.0001
  Prefactor  = 19.515
  norm       = 4.71886
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.892847
  Prefactor  = 7.54378
  Prefactor  = 1.53644
  Prefactor  = 0.0001
  norm       = 3.78938
  Prefactor  = 1.81411
  Prefactor  = 0.0001
  Normalizat = 1.26699
  Prefactor  = 0.673153
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.183     FROM HESSE     STATUS=OK           563 CALLS     4277 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0101        3.1454        .14721E-03   -1.5424    
   2  Prefactor     40.494        38.409        .62996E-04   -1.4434    
   3  Prefactor     54.436        31.930        .27181E-03   -1.4231    
   4  Prefactor     64.497        101.91        .49960E-04   -1.4100    
   5  Prefactor     .10000E-03    14.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.542        71.727        .80858E-04   -1.4717    
   7  Prefactor     6.8453        10.640        .76677E-03   -1.5185    
   8  Prefactor     8.1904        18.429        .13999E-03   -1.5136    
   9  Prefactor     57.998        26.536        .52676E-04   -1.4183    
  10  Prefactor     .10000E-03    553.89        .19114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5771        62.393        .17032E-03   -1.5236    
  13  Prefactor     .10054E-03    38.532        .10393       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.515        18.076        .90660E-04   -1.4824    
  16  norm          4.7189        3.9539        .10583E-03   -1.5273    
  17  norm          .10000E-03    .97586        .67571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .89285        .47652        .33628E-04   -1.5519    
  22  Prefactor     7.5438        8.0718        .14601E-03   -1.5159    
  23  Prefactor     1.5364        91.145        .34420E-03   -1.5460    
  24  Prefactor     .10000E-03    7.6409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.7894        1.6618        .57593E-04   -1.5319    
  26  Prefactor     1.8141        6.8107        .31011E-03   -1.5439    
  27  Prefactor     .10000E-03    19.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2670        .26625        .24816E-03   -.84557    
  29  Prefactor     .67315        .20453        .27445E-03   -1.0459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92459e-10
Minuit parameter uncertainties:
  1  3.14562
  2  38.4324
  3  31.9404
  4  102.19
  5  7.23662e-05
  6  71.9802
  7  10.6425
  8  18.4422
  9  26.5415
  10  0.00174823
  11  6.56088e-05
  12  37.357
  13  0.00912864
  14  2.96712e-05
  15  18.0814
  16  3.95416
  17  1.4991e-06
  18  0.000134315
  19  3.26631e-05
  20  2.2495e-05
  21  0.476522
  22  8.07296
  23  23.7048
  24  3.45073e-06
  25  1.66181
  26  6.81362
  27  5.72342e-05
  28  0.266539
  29  0.204762
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  5.577e+00  3.736e+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.732e-01  2.048e-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.267e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/311988/likelihoodResults_606614401_606873601_4FGL_J1204.8+0407_daily_bin1417.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) = 4945.04587612
delta logL = 0.136868902751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4945.03941063
delta logL = 0.14333438988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6970       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5328       1.0000          .0000       10.000    
     3 'Normalizat'    1.2406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68585       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=   4945.039     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      270 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7072        21.775        .16829E-03   -.10268E-04
   2  Index         3.5336        1.9951        .42246E-02    .16690E-04
   3  Normalizat    1.2406        .24712        .25036E-03    .22932E-04
   4  Prefactor     .68583        .20230        .27210E-03   -.75917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.70717
  Index      = 3.53362
  Normalizat = 1.24056
  Prefactor  = 0.685828
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.039     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7072        19.026        .67315E-05   -1.5230    
   2  Index         3.5336        1.7548        .16899E-03   -.29765    
   3  Normalizat    1.2406        .24736        .10014E-04   -.85358    
   4  Prefactor     .68583        .20248        .10884E-04   -1.0409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50364e-11
Minuit parameter uncertainties:
  1  19.0458
  2  1.79683
  3  0.247596
  4  0.202698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311988': 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) = 4945.03940927
delta logL = 0.143335745987

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  5.707e+00  1.905e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.534e+00  1.797e+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:  6.858e-01  2.027e-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.241e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/311988/cmap_HighResolution_606614401_606873601_4FGL_J1204.8+0407_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-04 23:34:03.504592', job_id='311988', GAL2='0.69', fit_tolerance='1e-08', EG2='1.24', EG='1.27', time_epoch_completed='1630823643.5', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.43e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1417' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 311988: <4FGL_J1204.8+0407_daily_bin1417> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1417 181.203 4.12 606614401 606873601 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 :                                   755.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

