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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1219
RA = 181.203, Dec = 4.12
tmin = 555292801, tmax = 555552001
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='311704', job_status='RUN', time_executed='2021-09-04 23:21:30.045672', time_epoch_executed='1630822890.05' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311704/ft1_4FGL_J1204.8+0407_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311704/ft2_4FGL_J1204.8+0407_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311704/ft1_4FGL_J1204.8+0407_daily_bin1219.fits outfile=/scratch/kocevski/311704/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1219.fits ra=181.203 dec=4.12 rad=12.0 tmin=555292801.0 tmax=555552001.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.61
user 3.38
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/311704/ft2_4FGL_J1204.8+0407_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/311704/ltcube_555292801_555552001_4FGL_J1204.8+0407_daily_bin1219.fits outfile=/scratch/kocevski/311704/expmap_555292801_555552001_4FGL_J1204.8+0407_daily_bin1219.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/311704/ltcube_555292801_555552001_4FGL_J1204.8+0407_daily_bin1219.fits
.....................!
real 191.92
user 186.97
sys 4.50

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/311704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1219.fits scfile=/scratch/kocevski/311704/ft2_4FGL_J1204.8+0407_daily_bin1219.fits outfile=/scratch/kocevski/311704/cmap_555292801_555552001_4FGL_J1204.8+0407_daily_bin1219.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1219.fits scfile=/scratch/kocevski/311704/ft2_4FGL_J1204.8+0407_daily_bin1219.fits outfile=/scratch/kocevski/311704/cmap_HighResolution_555292801_555552001_4FGL_J1204.8+0407_daily_bin1219.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/311704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/311704/ft2_4FGL_J1204.8+0407_daily_bin1219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311704/Model_4FGL_J1204.8+0407_daily_bin1219.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/311704/ft1_filtered_4FGL_J1204.8+0407_daily_bin1219.fits.....................!
real 30.73
user 29.42
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    168.39       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10845E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.712       1.0000         .10000E-03   10000.    
     9 'Prefactor '    89.939       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12542E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    222.80       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.494       1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.165       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6909       1.0000         .10000E-03   10000.    
    17 'norm      '    .13825E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    38.455       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.226       1.0000         .10000E-03   10000.    
    21 'norm      '    .12902E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    81.138       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.7089       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7167       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.432       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .39133       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0646       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=   2526.514     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3726 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5921       -.18871E-06** at limit **
   2  Prefactor     168.46        255.89       -.46960E-05   -.31447E-05
   3  Prefactor     .10000E-03    20.433        .17418E-06** at limit **
   4  Prefactor     .10000E-03    238.91        .24561E-05** at limit **
   5  Prefactor     .10000E-03    6.5735       -.29896E-06** at limit **
   6  Prefactor     .10000E-03    190.29       -.11827E-04** at limit **
   7  Prefactor     .10000E-03    8.4547       -.16574E-06** at limit **
   8  Prefactor     17.711        22.385       -.16074E-05   -.19948E-04
   9  Prefactor     89.964        91.239       -.13920E-05    .68641E-06
  10  Prefactor     .10000E-03    67.134        .97814E-06** at limit **
  11  Prefactor     .10000E-03    210.82       -.48762E-05** at limit **
  12  Prefactor     222.83        108.15       -.31005E-06   -.38997E-04
  13  Prefactor     40.505        62.857       -.54561E-07   -.24402E-04
  14  Prefactor     44.230        49.847        .21739E-05   -.10276E-04
  15  Prefactor     .10000E-03    13.583       -.32899E-06** at limit **
  16  norm          5.6919        4.8993        .15729E-06   -.76123E-04
  17  norm          .10000E-03    6.1710        .60436E-05** at limit **
  18  Prefactor     .10000E-03    19.044       -.78847E-06** at limit **
  19  norm          38.645        52.315        .31836E-05   -.67458E-04
  20  Prefactor     31.245        106.68       -.81462E-06   -.23695E-05
  21  norm          .10004E-03    .62465        .32507E-06** at limit **
  22  Prefactor     .10000E-03    16.887       -.26694E-07** at limit **
  23  Prefactor     81.139        48.967       -.13378E-05   -.54203E-04
  24  Prefactor     6.7105        16.953       -.21597E-07   -.36981E-04
  25  norm          1.7179        2.1045        .30272E-06   -.16075E-03
  26  Prefactor     15.433        25.053       -.30755E-06   -.41260E-04
  27  Prefactor     .10000E-03    19.802       -.45017E-06** at limit **
  28  Normalizat    .39158        .33903        .94354E-05    .78419E-05
  29  Prefactor     1.0645        .26591       -.10983E-05   -.81369E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 168.459
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7111
  Prefactor  = 89.9643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 222.835
  Prefactor  = 40.5048
  Prefactor  = 44.2299
  Prefactor  = 0.0001
  norm       = 5.69186
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 38.6452
  Prefactor  = 31.2446
  norm       = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 81.1393
  Prefactor  = 6.71048
  norm       = 1.71791
  Prefactor  = 15.4328
  Prefactor  = 0.0001
  Normalizat = 0.391578
  Prefactor  = 1.06452
 **********
 **   18 **HESSE 
 **********

 FCN=   2526.514     FROM HESSE     STATUS=OK           549 CALLS     4275 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6135        .93037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     168.46        255.93        .15544E-03   -1.3105    
   3  Prefactor     .10000E-03    20.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    238.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5899        .12590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    189.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4619        .14275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.711        22.322        .95168E-04   -1.4866    
   9  Prefactor     89.964        91.174        .21185E-03   -1.3808    
  10  Prefactor     .10000E-03    67.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    210.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     222.83        107.81        .13551E-03   -1.2711    
  13  Prefactor     40.505        62.719        .62991E-04   -1.4434    
  14  Prefactor     44.230        49.569        .60327E-04   -1.4377    
  15  Prefactor     .10000E-03    13.597        .18094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6919        4.8954        .98731E-04   -1.5231    
  17  norm          .10000E-03    6.1977        .18575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          38.645        52.384        .32317E-03   -1.4464    
  20  Prefactor     31.245        106.74        .71703E-04   -1.4589    
  21  norm          .10004E-03    3.8232        .71178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     81.139        48.719        .44589E-04   -1.3904    
  24  Prefactor     6.7105        16.916        .15492E-03   -1.5190    
  25  norm          1.7179        2.0729        .75144E-04   -1.5446    
  26  Prefactor     15.433        24.971        .10196E-03   -1.4922    
  27  Prefactor     .10000E-03    19.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .39158        .35268        .39189E-03   -1.1774    
  29  Prefactor     1.0645        .28482        .20881E-03   -.90609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14952e-08
Minuit parameter uncertainties:
  1  1.98851e-05
  2  257.644
  3  1.11856e-05
  4  0.00106064
  5  4.18049e-05
  6  0.000155889
  7  2.57457e-05
  8  22.333
  9  91.3166
  10  6.62658e-05
  11  0.000185626
  12  107.905
  13  62.8211
  14  49.6156
  15  5.38867e-05
  16  4.89575
  17  9.14938e-05
  18  7.548e-05
  19  52.4465
  20  107.405
  21  0.000822017
  22  0.000141805
  23  48.7427
  24  16.9284
  25  2.07298
  26  24.9883
  27  4.97697e-05
  28  0.354704
  29  0.285226
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.228e+02  1.079e+02  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.065e+00  2.852e-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:  3.916e-01  3.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.83
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 2.53e-07 +/- 1.22e-07
Energy Flux (Fixed Index): 6.78e-05 +/- 3.28e-05

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) = 2526.25016196
delta logL = 0.263945149641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2526.24585815
delta logL = 0.26824896713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    142.15       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0340       1.0000          .0000       10.000    
     3 'Normalizat'    .32339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1151       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=   2526.246     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      291 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     142.07        148.26        .16895E-03   -.41349E-04
   2  Index         3.0345        .75232        .31327E-02   -.36494E-04
   3  Normalizat    .32286        .34217        .43010E-03    .90479E-04
   4  Prefactor     1.1155        .28935        .20470E-03   -.16656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 142.07
  Index      = 3.03454
  Normalizat = 0.322864
  Prefactor  = 1.11547
 **********
 **   18 **HESSE 
 **********

 FCN=   2526.246     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     142.07        134.66        .67581E-05   -1.3318    
   2  Index         3.0345        .68315        .12531E-03   -.40399    
   3  Normalizat    .32286        .34117        .17204E-04   -1.2150    
   4  Prefactor     1.1155        .28808        .40941E-04   -.88974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23801e-10
Minuit parameter uncertainties:
  1  134.957
  2  0.685688
  3  0.343397
  4  0.288482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311704': 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) = 2526.24585679
delta logL = 0.268250321802

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.421e+02  1.350e+02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.035e+00  6.857e-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:  1.115e+00  2.885e-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:  3.229e-01  3.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.67
Ra Dec: 181.203 4.120
Photon Index (Free Index): 3.03 +/- 0.69
Photon Flux (Free Index): 3.14e-07 +/- 1.57e-07
Energy Flux (Free Index): 6.16e-05 +/- 2.88e-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/311704/cmap_HighResolution_555292801_555552001_4FGL_J1204.8+0407_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.53e-07', energy_flux2='6.16e-05', photon_flux_error='1.22e-07', dlogl='2.68e-01', energy_flux='6.78e-05', photon_flux2='3.14e-07', job_status='DONE', time_completed='2021-09-04 23:29:33.697890', photon_index_error2='0.69', photon_index2='3.03', ts='7.83', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.88e-05', EG='0.39', time_epoch_completed='1630823373.7', return_code='0', job_id='311704', GAL2='1.12', EG2='0.32', return_code2='0', energy_flux_error='3.28e-05', photon_flux_error2='1.57e-07', ts2='8.67', photon_index='2.58' WHERE bin_id='1219' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:29:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 311704: <4FGL_J1204.8+0407_daily_bin1219> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1219 181.203 4.12 555292801 555552001 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 :                                   480.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            554 sec.

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

