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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1070
RA = 181.203, Dec = 4.12
tmin = 516672001, tmax = 516931201
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='310328', job_status='RUN', time_executed='2021-09-04 23:17:42.513153', time_epoch_executed='1630822662.51' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310328/ft1_4FGL_J1204.8+0407_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310328/ft2_4FGL_J1204.8+0407_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310328/ft1_4FGL_J1204.8+0407_daily_bin1070.fits outfile=/scratch/kocevski/310328/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1070.fits ra=181.203 dec=4.12 rad=12.0 tmin=516672001.0 tmax=516931201.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.53
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310328/ft1_filtered_4FGL_J1204.8+0407_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/310328/ft2_4FGL_J1204.8+0407_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/310328/ltcube_516672001_516931201_4FGL_J1204.8+0407_daily_bin1070.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/310328/ft2_4FGL_J1204.8+0407_daily_bin1070.fits
.....................!
real 11.52
user 11.13
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310328/ft1_filtered_4FGL_J1204.8+0407_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/310328/ft2_4FGL_J1204.8+0407_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/310328/ltcube_516672001_516931201_4FGL_J1204.8+0407_daily_bin1070.fits outfile=/scratch/kocevski/310328/expmap_516672001_516931201_4FGL_J1204.8+0407_daily_bin1070.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/310328/ltcube_516672001_516931201_4FGL_J1204.8+0407_daily_bin1070.fits
.....................!
real 190.58
user 185.22
sys 4.97

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/310328/ft1_filtered_4FGL_J1204.8+0407_daily_bin1070.fits scfile=/scratch/kocevski/310328/ft2_4FGL_J1204.8+0407_daily_bin1070.fits outfile=/scratch/kocevski/310328/cmap_516672001_516931201_4FGL_J1204.8+0407_daily_bin1070.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310328/ft1_filtered_4FGL_J1204.8+0407_daily_bin1070.fits scfile=/scratch/kocevski/310328/ft2_4FGL_J1204.8+0407_daily_bin1070.fits outfile=/scratch/kocevski/310328/cmap_HighResolution_516672001_516931201_4FGL_J1204.8+0407_daily_bin1070.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14329E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.372       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    94.639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17658       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17282E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    103.73       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.869       1.0000         .10000E-03   10000.    
    21 'norm      '    .92605       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.807       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.523       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.8632       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.262       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.333       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5435       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70737       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=   5914.866     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3680 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1.6322        .25768E-06** at limit **
   2  Prefactor     6.9637        18.349       -.11375E-05   -.44028E-04
   3  Prefactor     26.930        23.680       -.43061E-06   -.29087E-04
   4  Prefactor     .10000E-03    36.340        .23123E-05** at limit **
   5  Prefactor     .10000E-03    19.919        .72227E-05** at limit **
   6  Prefactor     62.667        45.202       -.48882E-06   -.26501E-04
   7  Prefactor     .10000E-03    3.1030        .37204E-06** at limit **
   8  Prefactor     11.265        19.919        .13700E-05   -.45134E-05
   9  Prefactor     27.371        17.824        .26183E-06    .10420E-04
  10  Prefactor     .10000E-03    44.085        .37109E-05** at limit **
  11  Prefactor     .10000E-03    12.411       -.82064E-07** at limit **
  12  Prefactor     .10000E-03    30.022       -.35913E-06** at limit **
  13  Prefactor     94.663        35.676        .11392E-05    .32011E-04
  14  Prefactor     .10000E-03    32.182       -.35868E-06** at limit **
  15  Prefactor     .10000E-03    4.8650        .10921E-05** at limit **
  16  norm          .10000E-03    .73071        .42587E-06** at limit **
  17  norm          .16147        42.818       -.84380E-05    .21220E-04
  18  Prefactor     .10000E-03    67.113       -.83874E-05** at limit **
  19  norm          103.89        67.891        .31244E-05    .68652E-04
  20  Prefactor     19.917        77.476       -.57718E-05   -.14558E-04
  21  norm          .92486        .68146       -.12751E-06    .67327E-03
  22  Prefactor     20.807        14.237        .32429E-06    .31446E-04
  23  Prefactor     26.553        34.911       -.26307E-06   -.45971E-05
  24  Prefactor     .10000E-03    6.3087        .24805E-05** at limit **
  25  norm          2.8648        1.8143        .97312E-06    .76760E-03
  26  Prefactor     10.264        10.515        .90513E-06    .15655E-04
  27  Prefactor     14.385        31.849        .16686E-05   -.43127E-05
  28  Normalizat    1.5440        .24247        .41875E-05   -.43208E-03
  29  Prefactor     .70688        .19112       -.77983E-05   -.47836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 6.9637
  Prefactor  = 26.9295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.6665
  Prefactor  = 0.0001
  Prefactor  = 11.265
  Prefactor  = 27.3707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.6629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.161467
  Prefactor  = 0.0001
  norm       = 103.886
  Prefactor  = 19.917
  norm       = 0.924861
  Prefactor  = 20.8074
  Prefactor  = 26.5532
  Prefactor  = 0.0001
  norm       = 2.86481
  Prefactor  = 10.2637
  Prefactor  = 14.3848
  Normalizat = 1.54399
  Prefactor  = 0.706876
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.866     FROM HESSE     STATUS=OK           555 CALLS     4235 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    11.721        .17928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9637        18.351        .15197E-03   -1.5180    
   3  Prefactor     26.930        23.679        .77181E-04   -1.4670    
   4  Prefactor     .10000E-03    36.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     62.667        45.206        .25349E-03   -1.4123    
   7  Prefactor     .10000E-03    3.1093        .13233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.265        20.031        .11950E-03   -1.5037    
   9  Prefactor     27.371        17.839        .76573E-04   -1.4661    
  10  Prefactor     .10000E-03    44.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     94.663        35.751        .41314E-04   -1.3759    
  14  Prefactor     .10000E-03    32.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8759        .16574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .73298        .64235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .16147        51.113        .20068E-02   -1.5628    
  18  Prefactor     .10000E-03    68.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          103.89        71.887        .19740E-03   -1.3666    
  20  Prefactor     19.917        77.364        .89856E-04   -1.4815    
  21  norm          .92486        .67058        .47964E-04   -1.5516    
  22  Prefactor     20.807        14.234        .87809E-04   -1.4795    
  23  Prefactor     26.553        34.899        .77786E-04   -1.4677    
  24  Prefactor     .10000E-03    6.3660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.8648        1.8241        .78793E-04   -1.5369    
  26  Prefactor     10.264        10.506        .12508E-03   -1.5067    
  27  Prefactor     14.385        31.834        .10580E-03   -1.4949    
  28  Normalizat    1.5440        .27517        .26173E-03   -.76550    
  29  Prefactor     .70688        .21260        .30006E-03   -1.0326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57927e-09
Minuit parameter uncertainties:
  1  0.00089507
  2  18.3657
  3  23.6877
  4  0.000147441
  5  0.000126371
  6  45.2306
  7  4.86631e-06
  8  20.043
  9  17.8428
  10  0.00023338
  11  2.44885e-06
  12  7.51482e-05
  13  35.7594
  14  1.86862e-05
  15  1.19061e-05
  16  2.29067e-06
  17  5.74881
  18  0.000242844
  19  71.947
  20  77.758
  21  0.670589
  22  14.2361
  23  34.9261
  24  3.67127e-05
  25  1.82412
  26  10.5082
  27  31.8712
  28  0.275441
  29  0.212848
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  7.515e-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:  7.069e-01  2.128e-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.544e+00  2.754e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310328/likelihoodResults_516672001_516931201_4FGL_J1204.8+0407_daily_bin1070.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) = 5914.86567311
delta logL = -0.000157898765792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5914.86551641
delta logL = -1.20051754493e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13454E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0564       1.0000          .0000       10.000    
     3 'Normalizat'    1.5440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70688       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=   5914.866     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      286 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10279E-03    16.871        .18142E-01** at limit **
   2  Index         2.9671        5.6748        .50000        .72331E-05
   3  Normalizat    1.5440        .46486E-02    .26172E-03    .87310E-05
   4  Prefactor     .70687        .37882E-02    .30007E-03   -.14700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102789
  Index      = 2.96715
  Normalizat = 1.54399
  Prefactor  = 0.706871
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.866     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10279E-03    595.38        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9671        8.5010        .50000       -.41870    
   3  Normalizat    1.5440        .28111E-01    .10469E-04   -.76550    
   4  Prefactor     .70687        .22907E-01    .12003E-04   -1.0326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.52085e-09
Minuit parameter uncertainties:
  1  0.0823327
  2  1024.7
  3  0.028111
  4  0.0229073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310328': 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) = 5914.86551558
delta logL = -3.66503627447e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.028e-04  8.233e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.967e+00  1.025e+03  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:  7.069e-01  2.291e-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.544e+00  2.811e-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/310328/cmap_HighResolution_516672001_516931201_4FGL_J1204.8+0407_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='8.93e-08', time_completed='2021-09-04 23:31:37.429094', job_id='310328', GAL2='0.71', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1630823497.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-3.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1070' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 310328: <4FGL_J1204.8+0407_daily_bin1070> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1070 181.203 4.12 516672001 516931201 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 :                                   813.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            944 sec.

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

