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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1009
RA = 181.203, Dec = 4.12
tmin = 500860801, tmax = 501120001
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='310232', job_status='RUN', time_executed='2021-09-04 23:16:53.083341', time_epoch_executed='1630822613.08' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310232

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310232/ft1_4FGL_J1204.8+0407_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310232/ft2_4FGL_J1204.8+0407_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310232/ft1_4FGL_J1204.8+0407_daily_bin1009.fits outfile=/scratch/kocevski/310232/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1009.fits ra=181.203 dec=4.12 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.58
user 4.31
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310232/ft2_4FGL_J1204.8+0407_daily_bin1009.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/310232/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1009.fits evtable="EVENTS" outfile="/scratch/kocevski/310232/ft1_filtered_4FGL_J1204.8+0407_daily_bin1009.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.51
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310232/ft1_filtered_4FGL_J1204.8+0407_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/310232/ft2_4FGL_J1204.8+0407_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/310232/ltcube_500860801_501120001_4FGL_J1204.8+0407_daily_bin1009.fits outfile=/scratch/kocevski/310232/expmap_500860801_501120001_4FGL_J1204.8+0407_daily_bin1009.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/310232/ltcube_500860801_501120001_4FGL_J1204.8+0407_daily_bin1009.fits
.....................!
real 190.53
user 185.04
sys 5.04

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/310232/ft1_filtered_4FGL_J1204.8+0407_daily_bin1009.fits scfile=/scratch/kocevski/310232/ft2_4FGL_J1204.8+0407_daily_bin1009.fits outfile=/scratch/kocevski/310232/cmap_500860801_501120001_4FGL_J1204.8+0407_daily_bin1009.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310232/ft1_filtered_4FGL_J1204.8+0407_daily_bin1009.fits scfile=/scratch/kocevski/310232/ft2_4FGL_J1204.8+0407_daily_bin1009.fits outfile=/scratch/kocevski/310232/cmap_HighResolution_500860801_501120001_4FGL_J1204.8+0407_daily_bin1009.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.59
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    91.039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    75.584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5868       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8111       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7271       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.262       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0131       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10695E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2398       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3251       1.0000         .10000E-03   10000.    
    25 'norm      '    5.0803       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0780       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0723       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=   5977.158     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3695 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3402        1.2691       -.77340E-08    .41791E-05
   2  Prefactor     91.041        42.405        .99790E-07    .90605E-06
   3  Prefactor     .10000E-03    8.1417        .67095E-07** at limit **
   4  Prefactor     75.599        85.179        .16237E-06    .20145E-04
   5  Prefactor     .10000E-03    5.1728        .15922E-06** at limit **
   6  Prefactor     .10000E-03    118.38        .15548E-06** at limit **
   7  Prefactor     .10000E-03    4.7985        .18783E-06** at limit **
   8  Prefactor     .10000E-03    14.525        .37222E-06** at limit **
   9  Prefactor     17.091        17.797        .10896E-06   -.10000E-04
  10  Prefactor     .10000E-03    53.412       -.13650E-06** at limit **
  11  Prefactor     .10000E-03    22.044        .16486E-06** at limit **
  12  Prefactor     .10000E-03    21.230        .27985E-06** at limit **
  13  Prefactor     .10000E-03    11.396        .69687E-07** at limit **
  14  Prefactor     .10000E-03    16.285       -.12732E-06** at limit **
  15  Prefactor     7.5803        18.760       -.32598E-06   -.87410E-05
  16  norm          1.8114        2.6858        .11167E-06   -.24994E-04
  17  norm          3.7293        5.0440        .18551E-06   -.88940E-05
  18  Prefactor     15.251        30.623       -.68972E-07   -.90311E-05
  19  norm          .10000E-03    19.282       -.13429E-06** at limit **
  20  Prefactor     .10000E-03    88.537        .61232E-06** at limit **
  21  norm          2.0133        .86107       -.13954E-06   -.19935E-03
  22  Prefactor     .10000E-03    5.7277       -.13572E-05** at limit **
  23  Prefactor     8.1517        48.887       -.14928E-05   -.64268E-04
  24  Prefactor     7.3217        11.038        .36031E-05    .38349E-04
  25  norm          5.0801        2.3293        .42633E-06    .64681E-04
  26  Prefactor     .10000E-03    4.7302       -.65079E-07** at limit **
  27  Prefactor     .10000E-03    31.019       -.68302E-08** at limit **
  28  Normalizat    1.0777        .22727        .17831E-05   -.89221E-04
  29  Prefactor     1.0726        .18042       -.22312E-05    .81408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34022
  Prefactor  = 91.0406
  Prefactor  = 0.0001
  Prefactor  = 75.5987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.58028
  norm       = 1.81142
  norm       = 3.72926
  Prefactor  = 15.2508
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.01327
  Prefactor  = 0.0001
  Prefactor  = 8.1517
  Prefactor  = 7.32171
  norm       = 5.08014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07768
  Prefactor  = 1.07257
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.158     FROM HESSE     STATUS=OK           547 CALLS     4242 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3402        1.2935        .82421E-04   -1.5476    
   2  Prefactor     91.041        42.432        .42115E-04   -1.3797    
   3  Prefactor     .10000E-03    8.1473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     75.599        85.317        .46185E-04   -1.3967    
   5  Prefactor     .10000E-03    5.1902        .17172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    119.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8259        .16538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.091        17.802        .96865E-04   -1.4881    
  10  Prefactor     .10000E-03    53.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5803        18.731        .14560E-03   -1.5157    
  16  norm          1.8114        2.6669        .12731E-03   -1.5439    
  17  norm          3.7293        5.0243        .17185E-03   -1.5322    
  18  Prefactor     15.251        30.619        .10252E-03   -1.4927    
  19  norm          .10000E-03    19.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    88.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0133        .85429        .39119E-04   -1.5424    
  22  Prefactor     .10000E-03    5.7316        .18055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.1517        49.375        .13966E-03   -1.5137    
  24  Prefactor     7.3217        11.085        .74097E-03   -1.5167    
  25  norm          5.0801        2.3311        .37496E-03   -1.5257    
  26  Prefactor     .10000E-03    4.7399        .16422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    31.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0777        .26130        .29954E-03   -.90472    
  29  Prefactor     1.0726        .20467        .24931E-03   -.90348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36655e-10
Minuit parameter uncertainties:
  1  1.29351
  2  42.4465
  3  1.97837e-06
  4  85.4558
  5  1.85401e-06
  6  2.38539e-05
  7  2.17383e-06
  8  5.76331e-05
  9  17.8071
  10  0.000190961
  11  6.74089e-05
  12  3.49417e-05
  13  4.91048e-06
  14  6.20587e-05
  15  18.7457
  16  2.66711
  17  5.02484
  18  30.6504
  19  5.10225e-05
  20  0.000603275
  21  0.854291
  22  6.10855e-06
  23  40.1736
  24  11.0881
  25  2.33113
  26  1.24956e-05
  27  4.01924e-05
  28  0.261612
  29  0.204819
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.494e-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.073e+00  2.048e-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.078e+00  2.616e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310232/likelihoodResults_500860801_501120001_4FGL_J1204.8+0407_daily_bin1009.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) = 5977.15848379
delta logL = -0.000224102095672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5977.15825973
delta logL = -4.40713847638e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5183       1.0000          .0000       10.000    
     3 'Normalizat'    1.0777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0726       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=   5977.004     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      303 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58517E-02    .89901        .18142E-02    .10332E-01
   2  Index         7.7178        5.2984        .19924       -.67254E-04
   3  Normalizat    1.0211        .69732        .29953E-03   -.38448E-04
   4  Prefactor     1.1035        .30055        .24931E-03    .12529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00585172
  Index      = 7.71783
  Normalizat = 1.02114
  Prefactor  = 1.10355
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.004     FROM HESSE     STATUS=OK            29 CALLS      332 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58517E-02    .22206E-01    .99822E-05   -1.5693    
   2  Index         7.7178        1.8860        .12084E-01   -3.7163    
   3  Normalizat    1.0211        .26158        .11981E-04   -.92325    
   4  Prefactor     1.1035        .20944        .49863E-04   -.89353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30971e-10
Minuit parameter uncertainties:
  1  0.022206
  2  1.95607
  3  0.26191
  4  0.209592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310232': 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) = 5977.0038213
delta logL = 0.154438387927

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  5.852e-03  2.221e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  7.718e+00  1.956e+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.104e+00  2.096e-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.021e+00  2.619e-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/310232/cmap_HighResolution_500860801_501120001_4FGL_J1204.8+0407_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', job_status='DONE', photon_flux_upper_limit='9.15e-08', time_completed='2021-09-04 23:31:03.327788', job_id='310232', GAL2='1.10', fit_tolerance='1e-08', EG2='1.02', EG='1.08', time_epoch_completed='1630823463.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.54e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1009' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 310232: <4FGL_J1204.8+0407_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1009> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:15:46 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:15:47 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:15:47 2021
Terminated at Sat Sep  4 23:31:03 2021
Results reported at Sat Sep  4 23:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1009 181.203 4.12 500860801 501120001 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 :                                   840.29 sec.
    Max Memory :                                 1155 MB
    Average Memory :                             317.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

