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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1403
RA = 181.203, Dec = 4.12
tmin = 602985601, tmax = 603244801
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='311968', job_status='RUN', time_executed='2021-09-04 23:20:55.886541', time_epoch_executed='1630822855.89' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311968/ft1_4FGL_J1204.8+0407_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311968/ft2_4FGL_J1204.8+0407_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311968/ft1_4FGL_J1204.8+0407_daily_bin1403.fits outfile=/scratch/kocevski/311968/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1403.fits ra=181.203 dec=4.12 rad=12.0 tmin=602985601.0 tmax=603244801.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.99
user 2.79
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311968/ft2_4FGL_J1204.8+0407_daily_bin1403.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/311968/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/311968/ft1_filtered_4FGL_J1204.8+0407_daily_bin1403.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311968/ft1_filtered_4FGL_J1204.8+0407_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/311968/ft2_4FGL_J1204.8+0407_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/311968/ltcube_602985601_603244801_4FGL_J1204.8+0407_daily_bin1403.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/311968/ft2_4FGL_J1204.8+0407_daily_bin1403.fits
.....................!
real 12.40
user 12.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311968/ft1_filtered_4FGL_J1204.8+0407_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/311968/ft2_4FGL_J1204.8+0407_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/311968/ltcube_602985601_603244801_4FGL_J1204.8+0407_daily_bin1403.fits outfile=/scratch/kocevski/311968/expmap_602985601_603244801_4FGL_J1204.8+0407_daily_bin1403.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/311968/ltcube_602985601_603244801_4FGL_J1204.8+0407_daily_bin1403.fits
.....................!
real 191.04
user 185.45
sys 5.12

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/311968/ft1_filtered_4FGL_J1204.8+0407_daily_bin1403.fits scfile=/scratch/kocevski/311968/ft2_4FGL_J1204.8+0407_daily_bin1403.fits outfile=/scratch/kocevski/311968/cmap_602985601_603244801_4FGL_J1204.8+0407_daily_bin1403.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3892       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    630.44       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.207       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    141.63       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    104.68       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6209       1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12328E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6419       1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.193       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.033       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.182       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0355       1.0000         .10000E-03   10000.    
    26 'Prefactor '    30.223       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8974       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2852       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69613       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=   2652.734     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3836 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3903        6.7824       -.62174E-06   -.15143E-03
   2  Prefactor     .10000E-03    52.894       -.66486E-05** at limit **
   3  Prefactor     .10000E-03    34.380        .62830E-05** at limit **
   4  Prefactor     630.48        412.98        .17838E-04    .16885E-04
   5  Prefactor     .10000E-03    9.8459        .37285E-07** at limit **
   6  Prefactor     .10000E-03    25.943        .74340E-05** at limit **
   7  Prefactor     .10000E-03    27.837       -.98535E-05** at limit **
   8  Prefactor     54.210        45.624       -.82328E-06    .31951E-04
   9  Prefactor     .10000E-03    63.373        .85016E-05** at limit **
  10  Prefactor     .10000E-03    58.220       -.87003E-05** at limit **
  11  Prefactor     .10000E-03    21.874       -.98350E-05** at limit **
  12  Prefactor     141.62        130.19       -.22328E-05    .63522E-04
  13  Prefactor     .10000E-03    27.559       -.76801E-05** at limit **
  14  Prefactor     104.66        84.784       -.12392E-04    .12242E-04
  15  Prefactor     .10000E-03    12.634        .16480E-06** at limit **
  16  norm          2.6206        2.5877        .26306E-07    .11078E-03
  17  norm          .10000E-03    2.7913        .10858E-06** at limit **
  18  Prefactor     .10000E-03    22.456        .12334E-04** at limit **
  19  norm          .10000E-03    34.334        .61342E-05** at limit **
  20  Prefactor     .10000E-03    439.51       -.14165E-05** at limit **
  21  norm          1.6422        1.0406        .25767E-09    .12474E-03
  22  Prefactor     43.193        32.398        .27690E-04    .19810E-03
  23  Prefactor     11.947        181.94       -.15565E-03   -.18994E-04
  24  Prefactor     21.187        22.020       -.26169E-05    .28838E-05
  25  norm          2.0358        2.2664       -.19716E-06   -.13525E-03
  26  Prefactor     30.221        21.351        .20367E-05    .24204E-04
  27  Prefactor     2.8981        108.66       -.52476E-05   -.18364E-04
  28  Normalizat    1.2847        .38809        .77795E-05   -.51049E-04
  29  Prefactor     .69643        .27352       -.35462E-05    .14935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 630.483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.2098
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 141.625
  Prefactor  = 0.0001
  Prefactor  = 104.662
  Prefactor  = 0.0001
  norm       = 2.62064
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.64219
  Prefactor  = 43.1925
  Prefactor  = 11.9473
  Prefactor  = 21.1873
  norm       = 2.03582
  Prefactor  = 30.2205
  Prefactor  = 2.89809
  Normalizat = 1.28471
  Prefactor  = 0.696435
 **********
 **   18 **HESSE 
 **********

 FCN=   2652.734     FROM HESSE     STATUS=OK           543 CALLS     4379 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3903        6.7705        .18189E-03   -1.5340    
   2  Prefactor     .10000E-03    52.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     630.48        414.00        .82290E-04   -1.0632    
   5  Prefactor     .10000E-03    9.8479        .15786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.210        45.778        .54479E-04   -1.4234    
   9  Prefactor     .10000E-03    64.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    58.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     141.62        130.64        .33852E-04   -1.3322    
  13  Prefactor     .10000E-03    27.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     104.66        84.703        .39302E-04   -1.3658    
  15  Prefactor     .10000E-03    12.674        .17875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6206        2.5931        .79835E-04   -1.5384    
  17  norm          .10000E-03    2.7973        .83918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    34.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    440.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6422        1.0325        .37614E-04   -1.5452    
  22  Prefactor     43.193        32.403        .60999E-04   -1.4393    
  23  Prefactor     11.947        183.81        .11548E-03   -1.5017    
  24  Prefactor     21.187        22.006        .87029E-04   -1.4787    
  25  norm          2.0358        2.2490        .76569E-04   -1.5423    
  26  Prefactor     30.221        21.348        .72880E-04   -1.4608    
  27  Prefactor     2.8981        108.49        .23873E-03   -1.5367    
  28  Normalizat    1.2847        .46366        .30653E-03   -.84024    
  29  Prefactor     .69643        .32177        .30457E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75768e-10
Minuit parameter uncertainties:
  1  6.77204
  2  5.81105e-05
  3  2.94042e-05
  4  416.026
  5  1.72687e-05
  6  1.075e-05
  7  1.02576e-06
  8  45.8079
  9  0.000470344
  10  5.84835e-06
  11  7.68407e-06
  12  130.909
  13  2.12558e-05
  14  84.8015
  15  3.8581e-06
  16  2.59321
  17  3.59741e-05
  18  2.0504e-05
  19  5.08266e-05
  20  0.00117469
  21  1.03254
  22  32.4158
  23  94.0707
  24  22.0145
  25  2.24914
  26  21.3534
  27  35.5325
  28  0.465167
  29  0.322629
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.416e+02  1.309e+02  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:  6.964e-01  3.226e-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.285e+00  4.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.61e-07 +/- 1.49e-07
Energy Flux (Fixed Index): 4.31e-05 +/- 3.98e-05

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

Saving results to:
/scratch/kocevski/311968/likelihoodResults_602985601_603244801_4FGL_J1204.8+0407_daily_bin1403.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) = 2652.59406642
delta logL = 0.13976631805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2652.58912606
delta logL = 0.144706672208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.10       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9767       1.0000          .0000       10.000    
     3 'Normalizat'    1.2434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72037       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=   2652.589     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      294 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.22        135.04        .19992E-03    .61188E-04
   2  Index         2.9776        .86018        .47817E-02    .47816E-04
   3  Normalizat    1.2431        .43380        .31065E-03    .19312E-03
   4  Prefactor     .72003        .32021        .30011E-03   -.99174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.223
  Index      = 2.97756
  Normalizat = 1.24315
  Prefactor  = 0.720034
 **********
 **   18 **HESSE 
 **********

 FCN=   2652.589     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.22        124.99        .79968E-05   -1.3692    
   2  Index         2.9776        .79566        .19127E-03   -.41642    
   3  Normalizat    1.2431        .43426        .62130E-04   -.85280    
   4  Prefactor     .72003        .32029        .12004E-04   -1.0275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28778e-09
Minuit parameter uncertainties:
  1  125.313
  2  0.799729
  3  0.435535
  4  0.321117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311968': 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) = 2652.58911753
delta logL = 0.144715204866

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.012e+02  1.253e+02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.978e+00  7.997e-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.200e-01  3.211e-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.243e+00  4.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.98 +/- 0.80
Photon Flux (Free Index): 2.05e-07 +/- 1.72e-07
Energy Flux (Free Index): 4.14e-05 +/- 3.36e-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/311968/cmap_HighResolution_602985601_603244801_4FGL_J1204.8+0407_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-02', comment='SUCCESS', photon_flux='1.61e-07', energy_flux2='4.14e-05', photon_flux_error='1.49e-07', dlogl='1.45e-01', energy_flux='4.31e-05', photon_flux2='2.05e-07', job_status='DONE', time_completed='2021-09-04 23:30:06.471983', photon_index_error2='0.80', photon_index2='2.98', ts='1.81', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='4.42e-07', energy_flux_error2='3.36e-05', EG='1.28', time_epoch_completed='1630823406.47', return_code='0', job_id='311968', GAL2='0.72', EG2='1.24', return_code2='0', energy_flux_error='3.98e-05', photon_flux_error2='1.72e-07', ts2='2.17', photon_index='2.58' WHERE bin_id='1403' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:30:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 311968: <4FGL_J1204.8+0407_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1403 181.203 4.12 602985601 603244801 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 :                                   543.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            567 sec.

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

