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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1299
RA = 181.203, Dec = 4.12
tmin = 576028801, tmax = 576288001
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='311819', job_status='RUN', time_executed='2021-09-04 23:21:57.534716', time_epoch_executed='1630822917.53' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311819

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311819/ft1_4FGL_J1204.8+0407_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311819/ft2_4FGL_J1204.8+0407_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311819/ft1_4FGL_J1204.8+0407_daily_bin1299.fits outfile=/scratch/kocevski/311819/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1299.fits ra=181.203 dec=4.12 rad=12.0 tmin=576028801.0 tmax=576288001.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.58
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311819/ft1_filtered_4FGL_J1204.8+0407_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/311819/ft2_4FGL_J1204.8+0407_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/311819/ltcube_576028801_576288001_4FGL_J1204.8+0407_daily_bin1299.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/311819/ft2_4FGL_J1204.8+0407_daily_bin1299.fits
.....................!
real 11.86
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311819/ft1_filtered_4FGL_J1204.8+0407_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/311819/ft2_4FGL_J1204.8+0407_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/311819/ltcube_576028801_576288001_4FGL_J1204.8+0407_daily_bin1299.fits outfile=/scratch/kocevski/311819/expmap_576028801_576288001_4FGL_J1204.8+0407_daily_bin1299.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/311819/ltcube_576028801_576288001_4FGL_J1204.8+0407_daily_bin1299.fits
.....................!
real 190.77
user 185.99
sys 4.46

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/311819/ft1_filtered_4FGL_J1204.8+0407_daily_bin1299.fits scfile=/scratch/kocevski/311819/ft2_4FGL_J1204.8+0407_daily_bin1299.fits outfile=/scratch/kocevski/311819/cmap_576028801_576288001_4FGL_J1204.8+0407_daily_bin1299.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311819/ft1_filtered_4FGL_J1204.8+0407_daily_bin1299.fits scfile=/scratch/kocevski/311819/ft2_4FGL_J1204.8+0407_daily_bin1299.fits outfile=/scratch/kocevski/311819/cmap_HighResolution_576028801_576288001_4FGL_J1204.8+0407_daily_bin1299.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8014       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5003       1.0000         .10000E-03   10000.    
     9 'Prefactor '    67.025       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5128       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.883       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7441       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9476       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.482       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .23981       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.738       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2802       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .70119       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91704       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96046       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=   5046.273     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3743 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7999        2.7356        .19842E-06   -.15721E-04
   2  Prefactor     .10000E-03    10.329        .72380E-07** at limit **
   3  Prefactor     .10000E-03    16.834       -.16198E-06** at limit **
   4  Prefactor     .10000E-03    39.385        .73626E-06** at limit **
   5  Prefactor     .10000E-03    2.4835       -.27083E-06** at limit **
   6  Prefactor     .10000E-03    16.407        .35625E-06** at limit **
   7  Prefactor     .10000E-03    5.2243       -.31837E-06** at limit **
   8  Prefactor     7.4961        21.654       -.20868E-05    .14732E-04
   9  Prefactor     67.013        21.773        .52561E-06    .66519E-04
  10  Prefactor     5.1649        399.86       -.10513E-05   -.11298E-04
  11  Prefactor     .10000E-03    17.643       -.12432E-07** at limit **
  12  Prefactor     40.994        48.277       -.16404E-05   -.35532E-04
  13  Prefactor     .10000E-03    13.145        .21121E-07** at limit **
  14  Prefactor     15.874        27.633        .11478E-05    .17775E-04
  15  Prefactor     .10000E-03    4.2085       -.68439E-09** at limit **
  16  norm          4.7435        2.7561       -.73829E-08   -.46266E-04
  17  norm          2.9452        5.2576        .59542E-06   -.42159E-04
  18  Prefactor     .10000E-03    22.104        .23808E-06** at limit **
  19  norm          17.486        60.771       -.33671E-05   -.25996E-04
  20  Prefactor     .10000E-03    65.423       -.38656E-06** at limit **
  21  norm          .24018        .50070        .50976E-07   -.44135E-03
  22  Prefactor     16.729        12.992       -.46127E-07    .18535E-05
  23  Prefactor     .10000E-03    34.695       -.78283E-06** at limit **
  24  Prefactor     4.2821        6.3604        .24305E-05   -.52428E-04
  25  norm          .10000E-03    .62911        .24607E-07** at limit **
  26  Prefactor     .10000E-03    3.3423       -.25141E-07** at limit **
  27  Prefactor     .12831E-01    48.495        .14292E-05   -.11455E-03
  28  Normalizat    .91732        .22282        .70110E-07   -.79556E-04
  29  Prefactor     .96060        .17762       -.34475E-06   -.66920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.7999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.49605
  Prefactor  = 67.0134
  Prefactor  = 5.16489
  Prefactor  = 0.0001
  Prefactor  = 40.9942
  Prefactor  = 0.0001
  Prefactor  = 15.8741
  Prefactor  = 0.0001
  norm       = 4.74349
  norm       = 2.94517
  Prefactor  = 0.0001
  norm       = 17.486
  Prefactor  = 0.0001
  norm       = 0.240177
  Prefactor  = 16.7289
  Prefactor  = 0.0001
  Prefactor  = 4.28213
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0128312
  Normalizat = 0.917322
  Prefactor  = 0.960605
 **********
 **   18 **HESSE 
 **********

 FCN=   5046.273     FROM HESSE     STATUS=OK           557 CALLS     4300 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7999        2.7368        .42541E-03   -1.5270    
   2  Prefactor     .10000E-03    10.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4827        .10928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2388        .15842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4961        21.307        .14644E-03   -1.5160    
   9  Prefactor     67.013        21.818        .49025E-04   -1.4069    
  10  Prefactor     5.1649        403.18        .17112E-03   -1.5253    
  11  Prefactor     .10000E-03    17.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.994        48.770        .62582E-04   -1.4427    
  13  Prefactor     .10000E-03    13.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.874        27.540        .10050E-03   -1.4911    
  15  Prefactor     .10000E-03    4.2137        .14226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7435        2.7537        .86660E-04   -1.5272    
  17  norm          2.9452        5.1599        .14449E-03   -1.5365    
  18  Prefactor     .10000E-03    22.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.486        60.437        .95791E-04   -1.4871    
  20  Prefactor     .10000E-03    65.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .24018        .46452        .61743E-04   -1.5610    
  22  Prefactor     16.729        12.994        .97895E-04   -1.4890    
  23  Prefactor     .10000E-03    34.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2821        6.3673        .97369E-03   -1.5294    
  25  norm          .10000E-03    .64839        .10986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.3455        .12683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .12831E-01    59.492        .12577       -1.5731    
  28  Normalizat    .91732        .25984        .27690E-03   -.95854    
  29  Prefactor     .96060        .20773        .22941E-03   -.94054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41749e-10
Minuit parameter uncertainties:
  1  2.73685
  2  8.80776e-08
  3  4.00822e-06
  4  7.30016e-05
  5  2.46264e-06
  6  5.26725e-06
  7  6.87707e-06
  8  21.3287
  9  21.8205
  10  91.9147
  11  1.29087e-05
  12  48.818
  13  2.72935e-06
  14  27.5622
  15  2.20257e-06
  16  2.75379
  17  5.16065
  18  6.09983e-06
  19  60.6498
  20  4.18327e-05
  21  0.464523
  22  12.996
  23  3.62541e-05
  24  6.36834
  25  1.11112e-06
  26  5.05513e-06
  27  1.74231
  28  0.260199
  29  0.207904
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.099e+01  4.882e+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:  9.606e-01  2.079e-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:  9.173e-01  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 5.54e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/311819/likelihoodResults_576028801_576288001_4FGL_J1204.8+0407_daily_bin1299.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) = 5045.10908629
delta logL = 1.16410098073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5045.1019982
delta logL = 1.17118907265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.929       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9388       1.0000          .0000       10.000    
     3 'Normalizat'    .81835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0162       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.

 FCN=   5045.102     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.910        158.77        .27850E-02    .62137E-03
   2  Index         3.9396        3.3467        .11373        .28535E-03
   3  Normalizat    .81837        .79000E-01    .65861E-01   -.16430E-04
   4  Prefactor     1.0161        .66205E-01    .42543E-01   -.24939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9102
  Index      = 3.93961
  Normalizat = 0.81837
  Prefactor  = 1.01613
 **********
 **   18 **HESSE 
 **********

 FCN=   5045.102     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.910        36.778        .11140E-03   -1.4989    
   2  Index         3.9396        1.6594        .44382E-02   -.21370    
   3  Normalizat    .81837        .25297        .29137E-03   -.99391    
   4  Prefactor     1.0161        .20843        .22365E-03   -.92194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1982e-10
Minuit parameter uncertainties:
  1  36.843
  2  1.6931
  3  0.253331
  4  0.208598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311819': 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) = 5045.10199774
delta logL = 1.1711895335

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.291e+01  3.684e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.940e+00  1.693e+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.016e+00  2.086e-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:  8.184e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 181.203 4.120
Photon Index (Free Index): 3.94 +/- 1.69
Photon Flux (Free Index): 1.22e-07 +/- 7.87e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.27e-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/311819/cmap_HighResolution_576028801_576288001_4FGL_J1204.8+0407_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='1.85e-05', photon_flux_error='5.54e-08', dlogl='1.17e+00', energy_flux='1.25e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-04 23:34:40.580523', photon_index_error2='1.69', photon_index2='3.94', ts='1.02', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='1.27e-05', EG='0.92', time_epoch_completed='1630823680.58', return_code='0', job_id='311819', GAL2='1.02', EG2='0.82', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='7.87e-08', ts2='3.67', photon_index='2.58' WHERE bin_id='1299' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:34:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 311819: <4FGL_J1204.8+0407_daily_bin1299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1299 181.203 4.12 576028801 576288001 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 :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

