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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1309
RA = 181.203, Dec = 4.12
tmin = 578620801, tmax = 578880001
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='311833', job_status='RUN', time_executed='2021-09-04 23:20:40.053088', time_epoch_executed='1630822840.05' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311833/ft1_4FGL_J1204.8+0407_daily_bin1309.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311833/ft2_4FGL_J1204.8+0407_daily_bin1309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311833/ft1_4FGL_J1204.8+0407_daily_bin1309.fits outfile=/scratch/kocevski/311833/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1309.fits ra=181.203 dec=4.12 rad=12.0 tmin=578620801.0 tmax=578880001.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.55
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311833/ft1_filtered_4FGL_J1204.8+0407_daily_bin1309.fits" evtable="EVENTS" scfile=/scratch/kocevski/311833/ft2_4FGL_J1204.8+0407_daily_bin1309.fits sctable="SC_DATA" outfile=/scratch/kocevski/311833/ltcube_578620801_578880001_4FGL_J1204.8+0407_daily_bin1309.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/311833/ft2_4FGL_J1204.8+0407_daily_bin1309.fits
.....................!
real 11.70
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311833/ft1_filtered_4FGL_J1204.8+0407_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/311833/ft2_4FGL_J1204.8+0407_daily_bin1309.fits sctable="SC_DATA" expcube=/scratch/kocevski/311833/ltcube_578620801_578880001_4FGL_J1204.8+0407_daily_bin1309.fits outfile=/scratch/kocevski/311833/expmap_578620801_578880001_4FGL_J1204.8+0407_daily_bin1309.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/311833/ltcube_578620801_578880001_4FGL_J1204.8+0407_daily_bin1309.fits
.....................!
real 190.72
user 185.34
sys 5.01

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/311833/ft1_filtered_4FGL_J1204.8+0407_daily_bin1309.fits scfile=/scratch/kocevski/311833/ft2_4FGL_J1204.8+0407_daily_bin1309.fits outfile=/scratch/kocevski/311833/cmap_578620801_578880001_4FGL_J1204.8+0407_daily_bin1309.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/311833/ft1_filtered_4FGL_J1204.8+0407_daily_bin1309.fits scfile=/scratch/kocevski/311833/ft2_4FGL_J1204.8+0407_daily_bin1309.fits outfile=/scratch/kocevski/311833/cmap_HighResolution_578620801_578880001_4FGL_J1204.8+0407_daily_bin1309.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3042       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14781E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31110E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5187       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.208       1.0000         .10000E-03   10000.    
    19 'norm      '    .21788E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    199.39       1.0000         .10000E-03   10000.    
    21 'norm      '    .94620       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.567       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5907       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1655       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    39.517       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3948       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65691       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=   5683.713     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3729 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0306        2.7827        .18940E-07   -.85250E-04
   2  Prefactor     .10000E-03    8.1686        .17056E-07** at limit **
   3  Prefactor     .10000E-03    9.1417       -.25784E-06** at limit **
   4  Prefactor     .10000E-03    64.638       -.22120E-05** at limit **
   5  Prefactor     .10000E-03    5.4684        .22445E-06** at limit **
   6  Prefactor     .10000E-03    19.743       -.19143E-05** at limit **
   7  Prefactor     .10000E-03    7.1006       -.46977E-06** at limit **
   8  Prefactor     .10000E-03    4.8681        .46603E-07** at limit **
   9  Prefactor     .10000E-03    17.736       -.18141E-06** at limit **
  10  Prefactor     .10000E-03    20.265       -.12960E-05** at limit **
  11  Prefactor     9.2917        40.593       -.38833E-05   -.61830E-04
  12  Prefactor     .10000E-03    69.041       -.42942E-05** at limit **
  13  Prefactor     9.3084        17.699       -.10210E-06   -.24072E-04
  14  Prefactor     .10000E-03    85.350       -.19769E-05** at limit **
  15  Prefactor     .10001E-03    44.928       -.21115E-04** at limit **
  16  norm          3.5221        2.5373        .18563E-06    .22155E-03
  17  norm          .10000E-03    3.0048        .58254E-06** at limit **
  18  Prefactor     35.187        31.797       -.53659E-06   -.86283E-04
  19  norm          .10000E-03    116.16        .10646E-04** at limit **
  20  Prefactor     199.32        174.98       -.18823E-05   -.67421E-04
  21  norm          .94541        .53894       -.29409E-06   -.48018E-02
  22  Prefactor     27.568        15.898        .64898E-07   -.13717E-03
  23  Prefactor     .10000E-03    56.278        .15286E-05** at limit **
  24  Prefactor     1.5917        6.0717       -.38311E-05    .43504E-04
  25  norm          1.1654        1.3808       -.23839E-06   -.58676E-03
  26  Prefactor     .10000E-03    7.5438        .80454E-06** at limit **
  27  Prefactor     39.522        37.989        .38404E-07   -.53254E-04
  28  Normalizat    1.3945        .21007       -.15590E-05   -.23965E-03
  29  Prefactor     .65700        .16756        .54487E-06   -.67117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.03058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.2917
  Prefactor  = 0.0001
  Prefactor  = 9.30838
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  norm       = 3.52213
  norm       = 0.000100001
  Prefactor  = 35.1867
  norm       = 0.000100002
  Prefactor  = 199.321
  norm       = 0.945412
  Prefactor  = 27.568
  Prefactor  = 0.0001
  Prefactor  = 1.59169
  norm       = 1.16538
  Prefactor  = 0.0001
  Prefactor  = 39.522
  Normalizat = 1.39446
  Prefactor  = 0.657001
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.713     FROM HESSE     STATUS=OK           543 CALLS     4272 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0306        2.7835        .81969E-04   -1.5217    
   2  Prefactor     .10000E-03    8.1737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4926        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8716        .16246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2917        40.737        .13175E-03   -1.5098    
  12  Prefactor     .10000E-03    69.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3084        17.651        .13139E-03   -1.5098    
  14  Prefactor     .10000E-03    86.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    45.002        .35255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5221        2.3607        .91282E-04   -1.5333    
  17  norm          .10000E-03    5.4190        .23934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.187        31.830        .33769E-03   -1.4521    
  19  norm          .10000E-03    118.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     199.32        175.04        .14307E-03   -1.2875    
  21  norm          .94541        .52935        .39156E-04   -1.5514    
  22  Prefactor     27.568        15.890        .76302E-04   -1.4657    
  23  Prefactor     .10000E-03    56.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5917        5.9949        .33644E-03   -1.5456    
  25  norm          1.1654        1.3528        .91822E-04   -1.5492    
  26  Prefactor     .10000E-03    7.7548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     39.522        37.943        .63762E-04   -1.4450    
  28  Normalizat    1.3945        .24034        .24469E-03   -.80789    
  29  Prefactor     .65700        .19279        .27522E-03   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65151e-09
Minuit parameter uncertainties:
  1  2.78354
  2  7.57376e-06
  3  4.62887e-06
  4  0.000272093
  5  1.99958e-05
  6  2.35099e-05
  7  2.67203e-05
  8  7.1607e-06
  9  0.000309026
  10  0.0001053
  11  38.9556
  12  0.000167736
  13  17.6609
  14  0.000571728
  15  0.00121366
  16  2.3608
  17  0.000119379
  18  31.845
  19  0.00103649
  20  175.497
  21  0.529357
  22  15.8927
  23  0.000265933
  24  5.99718
  25  1.3528
  26  4.69155e-05
  27  37.9659
  28  0.240531
  29  0.192989
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.677e-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:  6.570e-01  1.930e-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.394e+00  2.405e-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: 9.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311833/likelihoodResults_578620801_578880001_4FGL_J1204.8+0407_daily_bin1309.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) = 5683.71287063
delta logL = -6.81773517499e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.70444764
delta logL = 0.00835481255217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0159       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7107       1.0000          .0000       10.000    
     3 'Normalizat'    1.3861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66094       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=   5683.704     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      311 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0150        6306.4        .51766E-02    .24791E-03
   2  Index         3.7108        7.0538        .10374E-01    .44107E-04
   3  Normalizat    1.3861        .23835        .24534E-03   -.82093E-03
   4  Prefactor     .66093        .12805        .27448E-03   -.44092E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01496
  Index      = 3.71082
  Normalizat = 1.38612
  Prefactor  = 0.660926
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.704     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0150        24.998        .20706E-03   -1.5506    
   2  Index         3.7108        3.7381        .41497E-03   -.26078    
   3  Normalizat    1.3861        .24345        .49067E-04   -.81031    
   4  Prefactor     .66093        .19166        .54896E-04   -1.0508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40792e-09
Minuit parameter uncertainties:
  1  10.0784
  2  4.27443
  3  0.243654
  4  0.191855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311833': 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) = 5683.70444762
delta logL = 0.00835482785806

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.015e+00  1.008e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.711e+00  4.274e+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.609e-01  1.919e-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.386e+00  2.437e-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/311833/cmap_HighResolution_578620801_578880001_4FGL_J1204.8+0407_daily_bin1309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.29e-08', time_completed='2021-09-04 23:33:59.496108', job_id='311833', GAL2='0.66', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630823639.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='8.35e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1309' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:33:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 311833: <4FGL_J1204.8+0407_daily_bin1309> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1309 181.203 4.12 578620801 578880001 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 :                                   796.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

