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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin628
RA = 181.203, Dec = 4.12
tmin = 402105601, tmax = 402364801
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='307182', job_status='RUN', time_executed='2021-09-04 23:05:34.748184', time_epoch_executed='1630821934.75' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307182

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307182/ft1_4FGL_J1204.8+0407_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307182/ft2_4FGL_J1204.8+0407_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307182/ft1_4FGL_J1204.8+0407_daily_bin628.fits outfile=/scratch/kocevski/307182/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin628.fits ra=181.203 dec=4.12 rad=12.0 tmin=402105601.0 tmax=402364801.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.63
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307182/ft1_filtered_4FGL_J1204.8+0407_daily_bin628.fits" evtable="EVENTS" scfile=/scratch/kocevski/307182/ft2_4FGL_J1204.8+0407_daily_bin628.fits sctable="SC_DATA" outfile=/scratch/kocevski/307182/ltcube_402105601_402364801_4FGL_J1204.8+0407_daily_bin628.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/307182/ft2_4FGL_J1204.8+0407_daily_bin628.fits
.....................!
real 12.25
user 11.91
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307182/ft1_filtered_4FGL_J1204.8+0407_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/307182/ft2_4FGL_J1204.8+0407_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/307182/ltcube_402105601_402364801_4FGL_J1204.8+0407_daily_bin628.fits outfile=/scratch/kocevski/307182/expmap_402105601_402364801_4FGL_J1204.8+0407_daily_bin628.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/307182/ltcube_402105601_402364801_4FGL_J1204.8+0407_daily_bin628.fits
.....................!
real 190.56
user 185.42
sys 4.67

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/307182/ft1_filtered_4FGL_J1204.8+0407_daily_bin628.fits scfile=/scratch/kocevski/307182/ft2_4FGL_J1204.8+0407_daily_bin628.fits outfile=/scratch/kocevski/307182/cmap_402105601_402364801_4FGL_J1204.8+0407_daily_bin628.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307182/ft1_filtered_4FGL_J1204.8+0407_daily_bin628.fits scfile=/scratch/kocevski/307182/ft2_4FGL_J1204.8+0407_daily_bin628.fits outfile=/scratch/kocevski/307182/cmap_HighResolution_402105601_402364801_4FGL_J1204.8+0407_daily_bin628.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5531       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6342       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.518       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.561       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.620       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1996       1.0000         .10000E-03   10000.    
    16 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6801       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .60018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9904       1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.029       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.670       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8857       1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.725       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0805       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1551       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=   6404.933     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3645 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5530        1.9521        .36154E-07    .16880E-05
   2  Prefactor     7.6595        29.996        .51095E-06    .15421E-04
   3  Prefactor     19.551        34.267        .32844E-06    .33109E-04
   4  Prefactor     .10000E-03    35.651        .40678E-07** at limit **
   5  Prefactor     .10000E-03    3.0065       -.58585E-07** at limit **
   6  Prefactor     .10000E-03    54.547       -.77957E-07** at limit **
   7  Prefactor     11.558        9.3330        .14108E-06    .15253E-04
   8  Prefactor     .10000E-03    24.828       -.91338E-06** at limit **
   9  Prefactor     .10000E-03    13.418       -.11694E-07** at limit **
  10  Prefactor     .10000E-03    22.485       -.14349E-06** at limit **
  11  Prefactor     .10000E-03    39.988        .99166E-07** at limit **
  12  Prefactor     .10000E-03    18.179        .69194E-07** at limit **
  13  Prefactor     53.627        42.444       -.36731E-07    .59253E-04
  14  Prefactor     .10000E-03    17.104        .16795E-06** at limit **
  15  Prefactor     4.2070        21.769        .20731E-05    .10334E-03
  16  norm          .10000E-03    2.4288       -.38622E-06** at limit **
  17  norm          3.6717        4.3934       -.12800E-05    .36983E-04
  18  Prefactor     .10000E-03    8.7652       -.12960E-07** at limit **
  19  norm          .10001E-03    272.10       -.32991E-05** at limit **
  20  Prefactor     .10000E-03    58.021       -.10548E-06** at limit **
  21  norm          2.9899        .88472       -.53363E-07    .32993E-03
  22  Prefactor     32.029        16.855        .98644E-07    .65905E-05
  23  Prefactor     .10000E-03    19.324       -.18522E-07** at limit **
  24  Prefactor     19.670        14.523        .25858E-07    .27776E-04
  25  norm          2.8858        1.9823        .68292E-07    .78887E-04
  26  Prefactor     33.731        17.506        .24804E-07    .16269E-04
  27  Prefactor     .10000E-03    22.473       -.13531E-06** at limit **
  28  Normalizat    1.0809        .22405        .22179E-06    .28691E-04
  29  Prefactor     1.1547        .18429       -.44301E-06    .75196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.55296
  Prefactor  = 7.65949
  Prefactor  = 19.5508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.6275
  Prefactor  = 0.0001
  Prefactor  = 4.20699
  norm       = 0.0001
  norm       = 3.67165
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 2.98988
  Prefactor  = 32.0291
  Prefactor  = 0.0001
  Prefactor  = 19.6704
  norm       = 2.88579
  Prefactor  = 33.731
  Prefactor  = 0.0001
  Normalizat = 1.08091
  Prefactor  = 1.15475
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.933     FROM HESSE     STATUS=OK           551 CALLS     4196 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5530        1.9533        .94731E-04   -1.5388    
   2  Prefactor     7.6595        29.991        .14514E-03   -1.5154    
   3  Prefactor     19.551        34.297        .90659E-04   -1.4823    
   4  Prefactor     .10000E-03    35.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0100        .13551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.558        9.3299        .11782E-03   -1.5028    
   8  Prefactor     .10000E-03    25.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     53.627        42.106        .54775E-04   -1.4242    
  14  Prefactor     .10000E-03    17.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2070        18.592        .19665E-03   -1.5298    
  16  norm          .10000E-03    4.1639        .21564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6717        4.3177        .16275E-03   -1.5325    
  18  Prefactor     .10000E-03    8.7663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    271.53        .42128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    58.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9899        .88098        .35759E-04   -1.5362    
  22  Prefactor     32.029        16.863        .70801E-04   -1.4575    
  23  Prefactor     .10000E-03    19.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.670        14.514        .90307E-04   -1.4821    
  25  norm          2.8858        1.9754        .88195E-04   -1.5368    
  26  Prefactor     33.731        17.496        .69002E-04   -1.4546    
  27  Prefactor     .10000E-03    22.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0809        .26220        .31663E-03   -.90367    
  29  Prefactor     1.1547        .21531        .26045E-03   -.87735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30448e-10
Minuit parameter uncertainties:
  1  1.95338
  2  30.0497
  3  34.332
  4  6.37776e-05
  5  7.94605e-07
  6  2.97432e-06
  7  9.33105
  8  1.90875e-05
  9  9.68937e-06
  10  3.23905e-05
  11  9.51433e-05
  12  3.32818e-05
  13  42.1289
  14  7.31286e-05
  15  17.6972
  16  2.0654e-05
  17  4.31806
  18  3.34379e-06
  19  0.00319156
  20  4.89467e-05
  21  0.880989
  22  16.8657
  23  3.5556e-06
  24  14.5171
  25  1.9754
  26  17.4991
  27  2.822e-05
  28  0.262515
  29  0.215478
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.328e-05  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.155e+00  2.155e-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.081e+00  2.625e-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: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307182/likelihoodResults_402105601_402364801_4FGL_J1204.8+0407_daily_bin628.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) = 6404.93362427
delta logL = -0.000261533786215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6404.93336271
delta logL = 2.3592292564e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4792       1.0000          .0000       10.000    
     3 'Normalizat'    1.0809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1547       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=   6404.933     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    48.228        .90712E-02** at limit **
   2  Index         2.4770        5.8243        .50000        .10393E-05
   3  Normalizat    1.0809        .21266        .71557E-01   -.13554E-03
   4  Prefactor     1.1547        .18097        .58896E-01   -.12272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.47695
  Normalizat = 1.08091
  Prefactor  = 1.15475
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.933     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    19.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4770        6.2379        .50000       -.52893    
   3  Normalizat    1.0809        .24917        .31664E-03   -.90367    
   4  Prefactor     1.1547        .21224        .26045E-03   -.87735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08569e-10
Minuit parameter uncertainties:
  1  0.00094359
  2  4.40313
  3  0.249446
  4  0.212397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307182': 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) = 6404.9333627
delta logL = 3.11656549457e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  9.436e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.477e+00  4.403e+00  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.155e+00  2.124e-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.081e+00  2.494e-01  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/307182/cmap_HighResolution_402105601_402364801_4FGL_J1204.8+0407_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-04 23:19:58.402523', job_id='307182', GAL2='1.15', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630822798.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='628' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:19:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 307182: <4FGL_J1204.8+0407_daily_bin628> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin628> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 23:05:17 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:05:18 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:05:18 2021
Terminated at Sat Sep  4 23:19:59 2021
Results reported at Sat Sep  4 23:19:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin628 181.203 4.12 402105601 402364801 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 :                                   862.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

