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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1359
RA = 181.203, Dec = 4.12
tmin = 591580801, tmax = 591840001
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='313559', job_status='RUN', time_executed='2021-09-04 23:27:06.705911', time_epoch_executed='1630823226.71' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313559/ft1_4FGL_J1204.8+0407_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313559/ft2_4FGL_J1204.8+0407_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313559/ft1_4FGL_J1204.8+0407_daily_bin1359.fits outfile=/scratch/kocevski/313559/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1359.fits ra=181.203 dec=4.12 rad=12.0 tmin=591580801.0 tmax=591840001.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.82
user 3.57
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313559/ft1_filtered_4FGL_J1204.8+0407_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/313559/ft2_4FGL_J1204.8+0407_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/313559/ltcube_591580801_591840001_4FGL_J1204.8+0407_daily_bin1359.fits outfile=/scratch/kocevski/313559/expmap_591580801_591840001_4FGL_J1204.8+0407_daily_bin1359.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/313559/ltcube_591580801_591840001_4FGL_J1204.8+0407_daily_bin1359.fits
.....................!
real 192.83
user 185.12
sys 5.88

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/313559/ft1_filtered_4FGL_J1204.8+0407_daily_bin1359.fits scfile=/scratch/kocevski/313559/ft2_4FGL_J1204.8+0407_daily_bin1359.fits outfile=/scratch/kocevski/313559/cmap_591580801_591840001_4FGL_J1204.8+0407_daily_bin1359.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/313559/ft1_filtered_4FGL_J1204.8+0407_daily_bin1359.fits scfile=/scratch/kocevski/313559/ft2_4FGL_J1204.8+0407_daily_bin1359.fits outfile=/scratch/kocevski/313559/cmap_HighResolution_591580801_591840001_4FGL_J1204.8+0407_daily_bin1359.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.71
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62799E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.018       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2932       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.769       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12868E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4776       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10870E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .77282       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8493       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2493       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2811       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.166       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.355       1.0000         .10000E-03   10000.    
    25 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.051       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.5757       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .59428       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.6523       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=   4852.590     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3740 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9383        .16788E-06** at limit **
   2  Prefactor     .10000E-03    77.746        .24504E-04** at limit **
   3  Prefactor     23.015        42.183       -.97927E-06    .12823E-05
   4  Prefactor     .10000E-03    32.378        .21956E-04** at limit **
   5  Prefactor     7.2977        9.6613       -.62049E-05   -.28186E-03
   6  Prefactor     .10000E-03    27.190       -.14361E-04** at limit **
   7  Prefactor     11.768        11.779        .19649E-06    .13211E-04
   8  Prefactor     .10000E-03    103.22        .66857E-04** at limit **
   9  Prefactor     3.4873        40.669        .52172E-05    .10004E-03
  10  Prefactor     .10000E-03    170.29       -.58317E-04** at limit **
  11  Prefactor     .75201        51.642       -.10419E-04    .35616E-03
  12  Prefactor     .10000E-03    51.122       -.28452E-04** at limit **
  13  Prefactor     .10000E-03    28.253       -.69807E-05** at limit **
  14  Prefactor     3.9396        70.697        .53294E-04   -.62584E-05
  15  Prefactor     .10000E-03    7.4628       -.38762E-06** at limit **
  16  norm          2.2491        2.4738        .77464E-07    .12387E-03
  17  norm          8.8760        6.2296       -.14588E-05   -.49516E-03
  18  Prefactor     .10000E-03    45.218       -.11698E-04** at limit **
  19  norm          .10000E-03    39.373        .15338E-04** at limit **
  20  Prefactor     .10000E-03    64.499       -.17689E-04** at limit **
  21  norm          1.2812        .92794        .77888E-07   -.78897E-03
  22  Prefactor     14.168        12.259        .20166E-06   -.87664E-04
  23  Prefactor     .10000E-03    24.391        .56087E-05** at limit **
  24  Prefactor     42.355        28.346       -.93068E-07   -.21123E-05
  25  norm          .10000E-03    1.5593        .15548E-06** at limit **
  26  Prefactor     24.055        30.816        .16534E-05   -.72069E-05
  27  Prefactor     3.5733        270.42       -.59324E-05   -.10690E-04
  28  Normalizat    .59410        .28918        .24848E-06   -.34143E-03
  29  Prefactor     1.6523        .23946       -.12658E-05   -.33676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0146
  Prefactor  = 0.0001
  Prefactor  = 7.29767
  Prefactor  = 0.0001
  Prefactor  = 11.7681
  Prefactor  = 0.000100003
  Prefactor  = 3.4873
  Prefactor  = 0.0001
  Prefactor  = 0.752008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.93956
  Prefactor  = 0.0001
  norm       = 2.24906
  norm       = 8.87597
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.28122
  Prefactor  = 14.1676
  Prefactor  = 0.0001
  Prefactor  = 42.3547
  norm       = 0.0001
  Prefactor  = 24.0549
  Prefactor  = 3.57331
  Normalizat = 0.594095
  Prefactor  = 1.65235
 **********
 **   18 **HESSE 
 **********

 FCN=   4852.590     FROM HESSE     STATUS=OK           563 CALLS     4303 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.141        .18466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    79.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.015        42.164        .83490E-04   -1.4748    
   4  Prefactor     .10000E-03    32.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2977        9.6639        .14852E-03   -1.5168    
   6  Prefactor     .10000E-03    27.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.768        11.769        .11677E-03   -1.5022    
   8  Prefactor     .10000E-03    106.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4873        40.149        .21684E-03   -1.5334    
  10  Prefactor     .10000E-03    170.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .75201        54.009        .17052       -1.5535    
  12  Prefactor     .10000E-03    51.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9396        70.490        .20569E-03   -1.5311    
  15  Prefactor     .10000E-03    7.4700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2491        2.4744        .11160E-03   -1.5408    
  17  norm          8.8760        6.1643        .12615E-03   -1.5112    
  18  Prefactor     .10000E-03    45.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    39.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    64.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2812        .89964        .49823E-04   -1.5482    
  22  Prefactor     14.168        12.244        .10642E-03   -1.4955    
  23  Prefactor     .10000E-03    24.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     42.355        28.286        .61597E-04   -1.4405    
  25  norm          .10000E-03    2.4480        .16513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     24.055        30.685        .81678E-04   -1.4727    
  27  Prefactor     3.5733        265.39        .21372E-03   -1.5330    
  28  Normalizat    .59410        .32251        .41752E-03   -1.0824    
  29  Prefactor     1.6523        .27536        .22940E-03   -.73358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25338e-09
Minuit parameter uncertainties:
  1  5.97047e-05
  2  0.000334304
  3  42.2186
  4  5.30435e-06
  5  9.66593
  6  3.22421e-06
  7  11.7711
  8  0.00112334
  9  23.6851
  10  0.000291381
  11  12.7572
  12  0.000122914
  13  2.98052e-07
  14  33.374
  15  1.35466e-07
  16  2.47449
  17  6.16476
  18  8.1106e-05
  19  1.76269e-06
  20  2.73695e-05
  21  0.899652
  22  12.2457
  23  2.96987e-06
  24  28.295
  25  2.07443e-05
  26  30.7051
  27  61.8757
  28  0.323533
  29  0.275609
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.229e-04  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.652e+00  2.756e-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:  5.941e-01  3.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
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/313559/likelihoodResults_591580801_591840001_4FGL_J1204.8+0407_daily_bin1359.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): 102
logL (Free Index) = 4852.59027631
delta logL = -9.28518456931e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4852.59018414
delta logL = -6.85783561494e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9166       1.0000          .0000       10.000    
     3 'Normalizat'    .59410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6523       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=   4852.590     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      286 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10874E-03    31.044        .18142E-01** at limit **
   2  Index         2.7721        5.7878        .50000        .10272E-04
   3  Normalizat    .59410        .57859E-02    .41752E-03   -.11327E-04
   4  Prefactor     1.6523        .50521E-02    .22940E-03   -.56497E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010874
  Index      = 2.77205
  Normalizat = 0.594102
  Prefactor  = 1.65234
 **********
 **   18 **HESSE 
 **********

 FCN=   4852.590     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10874E-03    167.36        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7721        7.3837        .50000       -.46183    
   3  Normalizat    .59410        .13454E-01    .16701E-04   -1.0823    
   4  Prefactor     1.6523        .11748E-01    .91759E-05   -.73358    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35574e-09
Minuit parameter uncertainties:
  1  0.0767047
  2  417.419
  3  0.0134541
  4  0.0117476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313559': 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): 102
logL (Free Index) = 4852.5901839
delta logL = -4.37059497926e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.087e-04  7.670e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.772e+00  4.174e+02  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.652e+00  1.175e-02  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:  5.941e-01  1.345e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/313559/cmap_HighResolution_591580801_591840001_4FGL_J1204.8+0407_daily_bin1359.png

Cleaning up...

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

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:39:14.777898', job_id='313559', GAL2='1.65', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630823954.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.65', dlogl='-4.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1359' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:39:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 313559: <4FGL_J1204.8+0407_daily_bin1359> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1359> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:25:26 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:25:29 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:25:29 2021
Terminated at Sat Sep  4 23:39:15 2021
Results reported at Sat Sep  4 23:39:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1359 181.203 4.12 591580801 591840001 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 :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            829 sec.

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

