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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin465
RA = 181.203, Dec = 4.12
tmin = 359856001, tmax = 360115201
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='305963', job_status='RUN', time_executed='2021-09-04 23:01:14.284176', time_epoch_executed='1630821674.28' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305963

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305963/ft1_4FGL_J1204.8+0407_daily_bin465.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305963/ft2_4FGL_J1204.8+0407_daily_bin465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305963/ft1_4FGL_J1204.8+0407_daily_bin465.fits outfile=/scratch/kocevski/305963/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin465.fits ra=181.203 dec=4.12 rad=12.0 tmin=359856001.0 tmax=360115201.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.23
user 3.02
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305963/ft1_filtered_4FGL_J1204.8+0407_daily_bin465.fits evtable="EVENTS" scfile=/scratch/kocevski/305963/ft2_4FGL_J1204.8+0407_daily_bin465.fits sctable="SC_DATA" expcube=/scratch/kocevski/305963/ltcube_359856001_360115201_4FGL_J1204.8+0407_daily_bin465.fits outfile=/scratch/kocevski/305963/expmap_359856001_360115201_4FGL_J1204.8+0407_daily_bin465.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/305963/ltcube_359856001_360115201_4FGL_J1204.8+0407_daily_bin465.fits
.....................!
real 190.86
user 185.76
sys 4.71

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/305963/ft1_filtered_4FGL_J1204.8+0407_daily_bin465.fits scfile=/scratch/kocevski/305963/ft2_4FGL_J1204.8+0407_daily_bin465.fits outfile=/scratch/kocevski/305963/cmap_359856001_360115201_4FGL_J1204.8+0407_daily_bin465.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305963/ft1_filtered_4FGL_J1204.8+0407_daily_bin465.fits scfile=/scratch/kocevski/305963/ft2_4FGL_J1204.8+0407_daily_bin465.fits outfile=/scratch/kocevski/305963/cmap_HighResolution_359856001_360115201_4FGL_J1204.8+0407_daily_bin465.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2323       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2278       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.983       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0324       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.087       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5991       1.0000         .10000E-03   10000.    
    16 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1727       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    24.221       1.0000         .10000E-03   10000.    
    20 'Prefactor '    134.42       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1399       1.0000         .10000E-03   10000.    
    25 'norm      '    .64848       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6107       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6707       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73009       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=   5843.098     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3690 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2325        3.4525        .15989E-06   -.34008E-05
   2  Prefactor     .10000E-03    18.645       -.13579E-06** at limit **
   3  Prefactor     17.211        20.031        .20484E-07    .74337E-05
   4  Prefactor     .10000E-03    66.683        .43052E-06** at limit **
   5  Prefactor     3.0339        4.8828       -.24361E-08    .91621E-04
   6  Prefactor     .10000E-03    23.210        .39272E-06** at limit **
   7  Prefactor     18.223        12.458        .19403E-06    .80575E-04
   8  Prefactor     4.2288        18.278        .21791E-06    .45359E-05
   9  Prefactor     21.027        18.735       -.64373E-07   -.43715E-06
  10  Prefactor     .10000E-03    32.410        .14504E-06** at limit **
  11  Prefactor     .10000E-03    14.834        .19100E-06** at limit **
  12  Prefactor     43.971        42.072        .11954E-05   -.23319E-04
  13  Prefactor     4.0301        28.538        .31446E-06    .14474E-04
  14  Prefactor     14.082        18.805        .88817E-06    .12555E-03
  15  Prefactor     8.5943        12.145        .16912E-06    .13732E-03
  16  norm          .10000E-03    1.8085       -.53130E-07** at limit **
  17  norm          1.1764        6.8010       -.36934E-05   -.60280E-03
  18  Prefactor     .10000E-03    16.489       -.72032E-06** at limit **
  19  norm          24.217        25.334        .80088E-06    .97129E-04
  20  Prefactor     134.30        219.96        .97378E-05   -.58197E-04
  21  norm          2.3629        .89179        .24430E-06    .38196E-02
  22  Prefactor     .10000E-03    5.9873        .53924E-08** at limit **
  23  Prefactor     .10000E-03    9.3034       -.47847E-08** at limit **
  24  Prefactor     8.1395        7.6686       -.68980E-06    .47578E-04
  25  norm          .64775        1.9564        .25789E-06    .17075E-03
  26  Prefactor     1.6126        23.801        .14808E-04   -.17468E-03
  27  Prefactor     .10001E-03    42.254       -.57923E-06** at limit **
  28  Normalizat    1.6707        .23900        .10840E-05    .39761E-03
  29  Prefactor     .73001        .18607       -.16759E-05    .29102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23248
  Prefactor  = 0.0001
  Prefactor  = 17.2109
  Prefactor  = 0.000100004
  Prefactor  = 3.03392
  Prefactor  = 0.000100002
  Prefactor  = 18.2233
  Prefactor  = 4.22882
  Prefactor  = 21.0269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.9705
  Prefactor  = 4.03007
  Prefactor  = 14.0816
  Prefactor  = 8.5943
  norm       = 0.0001
  norm       = 1.17637
  Prefactor  = 0.0001
  norm       = 24.2173
  Prefactor  = 134.302
  norm       = 2.36293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.13955
  norm       = 0.64775
  Prefactor  = 1.61257
  Prefactor  = 0.000100005
  Normalizat = 1.67074
  Prefactor  = 0.730005
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.098     FROM HESSE     STATUS=OK           553 CALLS     4243 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2325        3.4393        .16458E-03   -1.5409    
   2  Prefactor     .10000E-03    18.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.211        20.027        .96542E-04   -1.4878    
   4  Prefactor     .10000E-03    66.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0339        4.8673        .20860E-03   -1.5360    
   6  Prefactor     .10000E-03    23.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.223        12.453        .46911E-03   -1.4854    
   8  Prefactor     4.2288        18.338        .19598E-03   -1.5297    
   9  Prefactor     21.027        18.768        .87348E-04   -1.4791    
  10  Prefactor     .10000E-03    32.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.971        42.109        .60451E-04   -1.4381    
  13  Prefactor     4.0301        28.368        .20081E-03   -1.5306    
  14  Prefactor     14.082        18.777        .10672E-03   -1.4957    
  15  Prefactor     8.5943        11.717        .13670E-03   -1.5122    
  16  norm          .10000E-03    3.3321        .19218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1764        6.9631        .30979E-03   -1.5491    
  18  Prefactor     .10000E-03    16.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          24.217        25.336        .81392E-04   -1.4723    
  20  Prefactor     134.30        220.14        .17367E-03   -1.3385    
  21  norm          2.3629        .88334        .36406E-04   -1.5401    
  22  Prefactor     .10000E-03    6.0365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.3091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1395        7.6810        .70262E-03   -1.5137    
  25  norm          .64775        1.9288        .16756E-03   -1.5547    
  26  Prefactor     1.6126        23.769        .16687E-02   -1.5454    
  27  Prefactor     .10001E-03    42.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.6707        .28394        .25770E-03   -.73087    
  29  Prefactor     .73001        .21656        .30393E-03   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20759e-09
Minuit parameter uncertainties:
  1  3.43964
  2  0.000174101
  3  20.0351
  4  0.000973642
  5  4.86793
  6  0.000397555
  7  12.4548
  8  17.6213
  9  18.7737
  10  0.000160878
  11  0.000155731
  12  42.1378
  13  21.3987
  14  18.7852
  15  11.7206
  16  1.73055e-05
  17  5.72482
  18  0.000117572
  19  25.3471
  20  221.501
  21  0.883342
  22  1.11286e-06
  23  4.81716e-06
  24  7.68195
  25  1.929
  26  12.3876
  27  0.000939856
  28  0.284213
  29  0.216809
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.397e+01  4.214e+01  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.300e-01  2.168e-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.671e+00  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.28e-05

TS (Fixed Index): 2.30
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/305963/likelihoodResults_359856001_360115201_4FGL_J1204.8+0407_daily_bin465.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) = 5843.0982017
delta logL = 2.62850335275e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5843.09820155
delta logL = 4.12853296439e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.971       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5778       1.0000          .0000       10.000    
     3 'Normalizat'    1.6707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73001       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=   5843.098     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      234 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.009        51.927        .60459E-04   -.37608E-07
   2  Index         2.5769        .94678        .84108E-02    .88873E-05
   3  Normalizat    1.6708        .26446        .25770E-03    .58852E-04
   4  Prefactor     .72997        .21455        .30393E-03   -.44736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.0091
  Index      = 2.5769
  Normalizat = 1.6708
  Prefactor  = 0.729968
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.098     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.009        49.735        .12092E-04   -1.4380    
   2  Index         2.5769        .90646        .33643E-03   -.50593    
   3  Normalizat    1.6708        .26440        .51539E-04   -.73086    
   4  Prefactor     .72997        .21454        .12157E-04   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74818e-11
Minuit parameter uncertainties:
  1  49.7822
  2  0.913082
  3  0.264627
  4  0.214785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305963': 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) = 5843.09820103
delta logL = 9.38121047511e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.401e+01  4.978e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.577e+00  9.131e-01  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.300e-01  2.148e-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.671e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.58 +/- 0.91
Photon Flux (Free Index): 4.99e-08 +/- 5.58e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.30e-05

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/305963/cmap_HighResolution_359856001_360115201_4FGL_J1204.8+0407_daily_bin465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='1.34e-05', photon_flux_error='4.78e-08', dlogl='9.38e-07', energy_flux='1.34e-05', photon_flux2='4.99e-08', job_status='DONE', time_completed='2021-09-04 23:15:13.158453', photon_index_error2='0.91', photon_index2='2.58', ts='2.30', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.30e-05', EG='1.67', time_epoch_completed='1630822513.16', return_code='0', job_id='305963', GAL2='0.73', EG2='1.67', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='5.58e-08', ts2='2.31', photon_index='2.58' WHERE bin_id='465' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:15:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 305963: <4FGL_J1204.8+0407_daily_bin465> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin465> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:00:53 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:00:55 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:00:55 2021
Terminated at Sat Sep  4 23:15:13 2021
Results reported at Sat Sep  4 23:15:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin465 181.203 4.12 359856001 360115201 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 :                                   835.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

