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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1422
RA = 181.203, Dec = 4.12
tmin = 607910401, tmax = 608169601
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='311995', job_status='RUN', time_executed='2021-09-04 23:23:36.359951', time_epoch_executed='1630823016.36' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311995/ft1_4FGL_J1204.8+0407_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311995/ft2_4FGL_J1204.8+0407_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311995/ft1_4FGL_J1204.8+0407_daily_bin1422.fits outfile=/scratch/kocevski/311995/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1422.fits ra=181.203 dec=4.12 rad=12.0 tmin=607910401.0 tmax=608169601.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 2.69
user 2.46
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311995/ft1_filtered_4FGL_J1204.8+0407_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/311995/ft2_4FGL_J1204.8+0407_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/311995/ltcube_607910401_608169601_4FGL_J1204.8+0407_daily_bin1422.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/311995/ft2_4FGL_J1204.8+0407_daily_bin1422.fits
.....................!
real 8.96
user 8.62
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311995/ft1_filtered_4FGL_J1204.8+0407_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/311995/ft2_4FGL_J1204.8+0407_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/311995/ltcube_607910401_608169601_4FGL_J1204.8+0407_daily_bin1422.fits outfile=/scratch/kocevski/311995/expmap_607910401_608169601_4FGL_J1204.8+0407_daily_bin1422.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/311995/ltcube_607910401_608169601_4FGL_J1204.8+0407_daily_bin1422.fits
.....................!
real 140.87
user 137.62
sys 2.98

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/311995/ft1_filtered_4FGL_J1204.8+0407_daily_bin1422.fits scfile=/scratch/kocevski/311995/ft2_4FGL_J1204.8+0407_daily_bin1422.fits outfile=/scratch/kocevski/311995/cmap_607910401_608169601_4FGL_J1204.8+0407_daily_bin1422.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311995/ft1_filtered_4FGL_J1204.8+0407_daily_bin1422.fits scfile=/scratch/kocevski/311995/ft2_4FGL_J1204.8+0407_daily_bin1422.fits outfile=/scratch/kocevski/311995/cmap_HighResolution_607910401_608169601_4FGL_J1204.8+0407_daily_bin1422.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.45
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8120       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26110E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17478       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.020       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30669E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.209       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.031       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.344       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.557       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .53311E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.481       1.0000         .10000E-03   10000.    
    19 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    148.33       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6977       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.9730       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.6616       1.0000         .10000E-03   10000.    
    27 'Prefactor '    64.960       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95197       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1951       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=   5786.190     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3749 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8112        1.7077        .48537E-07    .35175E-04
   2  Prefactor     .10000E-03    52.842        .18968E-06** at limit **
   3  Prefactor     .10000E-03    6.2932        .56433E-07** at limit **
   4  Prefactor     .10000E-03    808.65        .22747E-05** at limit **
   5  Prefactor     .30697E-03    9.8763        .34170E-06** at limit **
   6  Prefactor     .10000E-03    27.302        .47056E-06** at limit **
   7  Prefactor     .10008E-03    6.1426       -.14706E-05** at limit **
   8  Prefactor     .10000E-03    12.300        .16084E-07** at limit **
   9  Prefactor     11.015        17.578        .43287E-06    .74483E-04
  10  Prefactor     .10000E-03    112.19        .12529E-05** at limit **
  11  Prefactor     15.188        46.899        .43805E-06    .17786E-04
  12  Prefactor     25.014        31.938       -.13129E-06    .88245E-04
  13  Prefactor     47.327        26.477       -.18784E-06    .19107E-03
  14  Prefactor     27.553        28.121        .54688E-06    .72856E-04
  15  Prefactor     .10000E-03    9.9622        .29419E-06** at limit **
  16  norm          .10076E-03    1.6992       -.92490E-06** at limit **
  17  norm          .10000E-03    2.0823       -.37978E-06** at limit **
  18  Prefactor     27.487        27.535        .16086E-06   -.24300E-04
  19  norm          .10000E-03    14.616       -.44327E-08** at limit **
  20  Prefactor     148.16        149.54       -.76620E-06   -.79694E-04
  21  norm          1.6973        .73310        .11169E-07    .11540E-02
  22  Prefactor     .10000E-03    5.5343       -.10104E-07** at limit **
  23  Prefactor     .10000E-03    11.492        .34974E-07** at limit **
  24  Prefactor     .10000E-03    5.0267       -.20002E-06** at limit **
  25  norm          4.9718        2.2167        .83524E-07    .16336E-03
  26  Prefactor     5.6578        11.916        .62725E-05    .35204E-03
  27  Prefactor     64.936        61.457       -.16767E-05   -.48873E-04
  28  Normalizat    .95261        .21912       -.20010E-05    .11737E-03
  29  Prefactor     1.1951        .18087        .20608E-06    .13454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.81122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000306966
  Prefactor  = 0.0001
  Prefactor  = 0.00010008
  Prefactor  = 0.0001
  Prefactor  = 11.0153
  Prefactor  = 0.000100003
  Prefactor  = 15.1879
  Prefactor  = 25.0136
  Prefactor  = 47.3266
  Prefactor  = 27.5531
  Prefactor  = 0.0001
  norm       = 0.000100764
  norm       = 0.000100001
  Prefactor  = 27.487
  norm       = 0.0001
  Prefactor  = 148.157
  norm       = 1.69726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.97178
  Prefactor  = 5.65777
  Prefactor  = 64.9364
  Normalizat = 0.952608
  Prefactor  = 1.19509
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.190     FROM HESSE     STATUS=OK           555 CALLS     4304 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8112        1.7081        .93654E-04   -1.5439    
   2  Prefactor     .10000E-03    53.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.2939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    820.80        .19974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .30697E-03    18.256        .67301E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    25.312        .34414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.015        17.553        .12069E-03   -1.5044    
  10  Prefactor     .10000E-03    112.60        .21380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.188        46.855        .10270E-03   -1.4928    
  12  Prefactor     25.014        31.842        .80067E-04   -1.4707    
  13  Prefactor     47.327        26.317        .58275E-04   -1.4331    
  14  Prefactor     27.553        27.915        .76315E-04   -1.4658    
  15  Prefactor     .10000E-03    10.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10076E-03    28.881        .17389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6353        .20533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.487        27.533        .76421E-04   -1.4659    
  19  norm          .10000E-03    14.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     148.16        149.56        .16545E-03   -1.3268    
  21  norm          1.6973        .71756        .38777E-04   -1.5447    
  22  Prefactor     .10000E-03    5.5662        .17476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.0437        .16659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.9718        2.2125        .70977E-04   -1.5262    
  26  Prefactor     5.6578        12.033        .84411E-03   -1.5232    
  27  Prefactor     64.936        61.385        .49793E-04   -1.4095    
  28  Normalizat    .95261        .25625        .30765E-03   -.94635    
  29  Prefactor     1.1951        .21154        .23918E-03   -.86483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88158e-08
Minuit parameter uncertainties:
  1  1.70815
  2  2.45118e-05
  3  4.58436e-06
  4  0.00112549
  5  0.122973
  6  0.000122992
  7  0.00284318
  8  3.14751e-06
  9  17.561
  10  0.0011874
  11  46.9691
  12  31.8632
  13  26.3235
  14  27.9286
  15  5.14377e-05
  16  0.00939971
  17  8.82036e-05
  18  27.5456
  19  1.94997e-05
  20  149.948
  21  0.71756
  22  4.46983e-06
  23  2.0297e-05
  24  1.68234e-05
  25  2.21256
  26  12.0381
  27  61.4453
  28  0.256581
  29  0.21169
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.501e+01  3.186e+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:  1.195e+00  2.117e-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.526e-01  2.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 7.61e-06 +/- 9.69e-06

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

Saving results to:
/scratch/kocevski/311995/likelihoodResults_607910401_608169601_4FGL_J1204.8+0407_daily_bin1422.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) = 5786.17383035
delta logL = 0.0166040344693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5786.16785279
delta logL = 0.0225815967806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.901       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3415       1.0000          .0000       10.000    
     3 'Normalizat'    .95980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1905       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=   5786.168     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.890        39.695        .74524E-04    .56444E-04
   2  Index         2.3422        1.0720        .12830E-01   -.37403E-05
   3  Normalizat    .95928        .24459        .30667E-03   -.14569E-04
   4  Prefactor     1.1910        .20973        .23953E-03    .11484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.89
  Index      = 2.34218
  Normalizat = 0.959278
  Prefactor  = 1.19098
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.168     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.890        38.895        .14905E-04   -1.4632    
   2  Index         2.3422        1.0503        .51319E-03   -.56045    
   3  Normalizat    .95928        .24465        .12267E-04   -.94407    
   4  Prefactor     1.1910        .20981        .47905E-04   -.86609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41541e-11
Minuit parameter uncertainties:
  1  38.9294
  2  1.06142
  3  0.244937
  4  0.209961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311995': 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) = 5786.16785029
delta logL = 0.022584101569

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.889e+01  3.893e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.342e+00  1.061e+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.191e+00  2.100e-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.593e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.34 +/- 1.06
Photon Flux (Free Index): 2.40e-08 +/- 3.75e-08
Energy Flux (Free Index): 8.52e-06 +/- 1.22e-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/311995/cmap_HighResolution_607910401_608169601_4FGL_J1204.8+0407_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.83e-03', comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='8.52e-06', photon_flux_error='3.62e-08', dlogl='2.26e-02', energy_flux='7.61e-06', photon_flux2='2.40e-08', job_status='DONE', time_completed='2021-09-04 23:33:52.940777', photon_index_error2='1.06', photon_index2='2.34', ts='1.12', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.22e-05', EG='0.95', time_epoch_completed='1630823632.94', return_code='0', job_id='311995', GAL2='1.19', EG2='0.96', return_code2='0', energy_flux_error='9.69e-06', photon_flux_error2='3.75e-08', ts2='1.17', photon_index='2.58' WHERE bin_id='1422' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:33:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 311995: <4FGL_J1204.8+0407_daily_bin1422> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1422 181.203 4.12 607910401 608169601 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 :                                   610.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            792 sec.

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

