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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1308
RA = 181.203, Dec = 4.12
tmin = 578361601, tmax = 578620801
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='311832', job_status='RUN', time_executed='2021-09-04 23:21:13.665193', time_epoch_executed='1630822873.67' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311832/ft1_4FGL_J1204.8+0407_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311832/ft1_4FGL_J1204.8+0407_daily_bin1308.fits outfile=/scratch/kocevski/311832/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1308.fits ra=181.203 dec=4.12 rad=12.0 tmin=578361601.0 tmax=578620801.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.65
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.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/311832/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1308.fits evtable="EVENTS" outfile="/scratch/kocevski/311832/ft1_filtered_4FGL_J1204.8+0407_daily_bin1308.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/311832/ft1_filtered_4FGL_J1204.8+0407_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/311832/ltcube_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.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/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.fits
.....................!
real 13.81
user 13.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311832/ft1_filtered_4FGL_J1204.8+0407_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/311832/ltcube_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.fits outfile=/scratch/kocevski/311832/expmap_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.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/311832/ltcube_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.fits
.....................!
real 191.36
user 186.07
sys 4.74

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/311832/ft1_filtered_4FGL_J1204.8+0407_daily_bin1308.fits scfile=/scratch/kocevski/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.fits outfile=/scratch/kocevski/311832/cmap_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311832/ft1_filtered_4FGL_J1204.8+0407_daily_bin1308.fits scfile=/scratch/kocevski/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.fits outfile=/scratch/kocevski/311832/cmap_HighResolution_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.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.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/311832/ft1_filtered_4FGL_J1204.8+0407_daily_bin1308.fits', '/scratch/kocevski/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.fits', expMap='/scratch/kocevski/311832/expmap_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.fits', expCube='/scratch/kocevski/311832/ltcube_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/311832/Model_4FGL_J1204.8+0407_daily_bin1308.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/311832/ft1_filtered_4FGL_J1204.8+0407_daily_bin1308.fits
Spacecraft file(s): /scratch/kocevski/311832/ft2_4FGL_J1204.8+0407_daily_bin1308.fits
Exposure map: /scratch/kocevski/311832/expmap_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.fits
Exposure cube: /scratch/kocevski/311832/ltcube_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/311832/Model_4FGL_J1204.8+0407_daily_bin1308.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6172.24379851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33640E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    235.70       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.071       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4814       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4688       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1561       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .73835       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.278       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3932       1.0000         .10000E-03   10000.    
    25 'norm      '    2.7697       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    35.982       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2144       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84297       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=   6172.228     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     3740 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.0061        .12191E-06** at limit **
   2  Prefactor     .10000E-03    6.6159       -.88852E-08** at limit **
   3  Prefactor     4.4631        12.465        .58543E-05   -.49231E-04
   4  Prefactor     235.69        123.91       -.58364E-06   -.27738E-04
   5  Prefactor     .10000E-03    2.5530       -.14862E-07** at limit **
   6  Prefactor     11.038        38.837       -.44895E-05   -.10307E-03
   7  Prefactor     .10000E-03    1.6819       -.12663E-07** at limit **
   8  Prefactor     3.4674        28.576        .62131E-06   -.14222E-04
   9  Prefactor     2.4695        28.495        .11054E-05    .12310E-04
  10  Prefactor     .10000E-03    61.710        .18072E-05** at limit **
  11  Prefactor     .10000E-03    63.595       -.22988E-06** at limit **
  12  Prefactor     .10000E-03    19.100        .36927E-06** at limit **
  13  Prefactor     3.1715        34.996       -.32001E-06   -.23384E-04
  14  Prefactor     .10000E-03    30.245        .33004E-06** at limit **
  15  Prefactor     .10000E-03    7.9915        .18691E-07** at limit **
  16  norm          .10000E-03    1.3043        .10284E-07** at limit **
  17  norm          4.1554        3.1531        .34776E-07   -.42483E-05
  18  Prefactor     .10000E-03    16.032        .53537E-06** at limit **
  19  norm          .10000E-03    25.650       -.86477E-06** at limit **
  20  Prefactor     .10000E-03    70.636       -.23269E-05** at limit **
  21  norm          .73827        .50001        .58592E-08    .52230E-04
  22  Prefactor     10.277        9.3255       -.16571E-07    .39288E-06
  23  Prefactor     .10000E-03    14.606       -.47868E-06** at limit **
  24  Prefactor     3.3923        4.6225        .29699E-07   -.93605E-05
  25  norm          2.7694        1.7388        .53986E-07    .86659E-05
  26  Prefactor     .10000E-03    6.0198       -.86325E-07** at limit **
  27  Prefactor     35.960        43.243       -.21356E-05   -.11686E-03
  28  Normalizat    1.2145        .20868       -.26421E-06   -.45691E-04
  29  Prefactor     .84314        .16035        .16054E-07   -.59241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 4.46313
  Prefactor  = 235.686
  Prefactor  = 0.0001
  Prefactor  = 11.0375
  Prefactor  = 0.0001
  Prefactor  = 3.46741
  Prefactor  = 2.46953
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.17147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.15542
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.738266
  Prefactor  = 10.277
  Prefactor  = 0.0001
  Prefactor  = 3.39225
  norm       = 2.76937
  Prefactor  = 0.0001
  Prefactor  = 35.9597
  Normalizat = 1.21446
  Prefactor  = 0.843144
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.228     FROM HESSE     STATUS=OK           549 CALLS     4289 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    18.250        .15002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4631        12.641        .95292E-03   -1.5285    
   4  Prefactor     235.69        124.27        .13184E-03   -1.2625    
   5  Prefactor     .10000E-03    2.5541        .12259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.038        39.784        .12041E-03   -1.5043    
   7  Prefactor     .10000E-03    1.6827        .99501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4674        28.889        .21671E-03   -1.5336    
   9  Prefactor     2.4695        28.125        .26025E-03   -1.5394    
  10  Prefactor     .10000E-03    61.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    64.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1715        34.870        .22695E-03   -1.5352    
  14  Prefactor     .10000E-03    30.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3351        .17497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1554        3.1408        .11337E-03   -1.5300    
  18  Prefactor     .10000E-03    16.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    25.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    71.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .73827        .49643        .41819E-04   -1.5536    
  22  Prefactor     10.277        9.3249        .12498E-03   -1.5067    
  23  Prefactor     .10000E-03    14.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.3923        4.6134        .19180E-03   -1.5340    
  25  norm          2.7694        1.7290        .77415E-04   -1.5375    
  26  Prefactor     .10000E-03    6.1166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     35.960        43.758        .66810E-04   -1.4508    
  28  Normalizat    1.2145        .24774        .25901E-03   -.86157    
  29  Prefactor     .84314        .18986        .24913E-03   -.98157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01589e-09
Minuit parameter uncertainties:
  1  0.000990961
  2  3.05868e-06
  3  12.6485
  4  124.405
  5  1.78245e-07
  6  39.8803
  7  5.76568e-07
  8  20.0298
  9  16.6774
  10  0.000405602
  11  0.000342691
  12  4.19867e-05
  13  21.0475
  14  3.13148e-05
  15  4.19162e-06
  16  3.71874e-07
  17  3.1409
  18  5.23988e-05
  19  0.000120035
  20  0.000545341
  21  0.496435
  22  9.32623
  23  5.25537e-05
  24  4.61389
  25  1.72899
  26  7.53083e-06
  27  43.7968
  28  0.247982
  29  0.190011
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  4.199e-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:  8.431e-01  1.900e-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.214e+00  2.480e-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: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311832/likelihoodResults_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.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) = 6172.22781557
delta logL = -0.000248873713645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6172.22756939
delta logL = -2.69956854027e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9473       1.0000          .0000       10.000    
     3 'Normalizat'    1.2145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84315       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=   6172.228     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      283 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11785E-03    13.435        .18142E-01** at limit **
   2  Index         2.7394        8.1823        .50000        .35667E-04
   3  Normalizat    1.2145        .48219E-02    .25901E-03    .92174E-05
   4  Prefactor     .84314        .39626E-02    .24913E-03   -.55856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000117852
  Index      = 2.7394
  Normalizat = 1.21446
  Prefactor  = 0.843143
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.228     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11785E-03    86.379        .28625E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7394        8.2494        .50000       -.46914    
   3  Normalizat    1.2145        .12267E-01    .10361E-04   -.86157    
   4  Prefactor     .84314        .10081E-01    .99650E-05   -.98157    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.88736e-08
Minuit parameter uncertainties:
  1  0.07865
  2  324.668
  3  0.012267
  4  0.010081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311832': 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) = 6172.22756829
delta logL = -1.59500905283e-06

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.179e-04  7.865e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.739e+00  3.247e+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:  8.431e-01  1.008e-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:  1.214e+00  1.227e-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/311832/cmap_HighResolution_578361601_578620801_4FGL_J1204.8+0407_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-09-04 23:35:28.197072', job_id='311832', GAL2='0.84', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630823728.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-1.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1308' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:35:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 311832: <4FGL_J1204.8+0407_daily_bin1308> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1308> 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) <bullet0216>, 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:35:28 2021
Results reported at Sat Sep  4 23:35:28 2021

Your job looked like:

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

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

