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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1296
RA = 181.203, Dec = 4.12
tmin = 575251201, tmax = 575510401
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='311815', job_status='RUN', time_executed='2021-09-04 23:23:24.695140', time_epoch_executed='1630823004.7' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311815/ft1_4FGL_J1204.8+0407_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311815/ft2_4FGL_J1204.8+0407_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311815/ft1_4FGL_J1204.8+0407_daily_bin1296.fits outfile=/scratch/kocevski/311815/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1296.fits ra=181.203 dec=4.12 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.38
user 5.04
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311815/ft1_filtered_4FGL_J1204.8+0407_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/311815/ft2_4FGL_J1204.8+0407_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/311815/ltcube_575251201_575510401_4FGL_J1204.8+0407_daily_bin1296.fits outfile=/scratch/kocevski/311815/expmap_575251201_575510401_4FGL_J1204.8+0407_daily_bin1296.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/311815/ltcube_575251201_575510401_4FGL_J1204.8+0407_daily_bin1296.fits
.....................!
real 191.46
user 185.44
sys 5.34

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/311815/ft1_filtered_4FGL_J1204.8+0407_daily_bin1296.fits scfile=/scratch/kocevski/311815/ft2_4FGL_J1204.8+0407_daily_bin1296.fits outfile=/scratch/kocevski/311815/cmap_575251201_575510401_4FGL_J1204.8+0407_daily_bin1296.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311815/ft1_filtered_4FGL_J1204.8+0407_daily_bin1296.fits scfile=/scratch/kocevski/311815/ft2_4FGL_J1204.8+0407_daily_bin1296.fits outfile=/scratch/kocevski/311815/cmap_HighResolution_575251201_575510401_4FGL_J1204.8+0407_daily_bin1296.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9105       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.422       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.114       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.063       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1480       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.486       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46902E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.135       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3129       1.0000         .10000E-03   10000.    
    25 'norm      '    1.3595       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.8982       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85706       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2457       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=   4891.606     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3853 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9113        3.0769       -.44982E-07   -.23042E-04
   2  Prefactor     12.417        23.204        .27893E-05   -.74034E-04
   3  Prefactor     .10000E-03    7.2401        .19640E-07** at limit **
   4  Prefactor     .10000E-03    75.974        .79812E-05** at limit **
   5  Prefactor     .10000E-03    4.1884       -.45246E-07** at limit **
   6  Prefactor     44.073        63.382       -.31068E-05    .12089E-04
   7  Prefactor     .10000E-03    7.3773       -.26007E-07** at limit **
   8  Prefactor     14.071        14.170       -.10531E-06   -.21516E-04
   9  Prefactor     8.1666        19.512       -.65310E-06   -.56949E-04
  10  Prefactor     .10000E-03    39.131        .58032E-06** at limit **
  11  Prefactor     55.447        56.838        .52761E-05   -.88827E-04
  12  Prefactor     .10080E-03    39.883       -.72216E-06** at limit **
  13  Prefactor     1.7113        27.335       -.32077E-05   -.14394E-03
  14  Prefactor     .10000E-03    9.7941        .44048E-07** at limit **
  15  Prefactor     12.119        12.134       -.39890E-05   -.49182E-03
  16  norm          .10001E-03    2.1852        .14741E-05** at limit **
  17  norm          .10000E-03    2.1944        .99780E-07** at limit **
  18  Prefactor     .10000E-03    54.111        .89968E-05** at limit **
  19  norm          .10000E-03    11.365        .46685E-07** at limit **
  20  Prefactor     .10001E-03    62.369       -.16430E-04** at limit **
  21  norm          .10000E-03    .31636        .30411E-07** at limit **
  22  Prefactor     .10000E-03    5.3044       -.67649E-07** at limit **
  23  Prefactor     .10000E-03    16.651        .29634E-05** at limit **
  24  Prefactor     2.3173        14.501        .26485E-05   -.31799E-03
  25  norm          1.3596        1.2636       -.11910E-07   -.95022E-04
  26  Prefactor     6.9005        11.720        .15740E-05   -.21305E-03
  27  Prefactor     .10000E-03    16.410       -.27789E-05** at limit **
  28  Normalizat    .85681        .21057        .91443E-06   -.21145E-03
  29  Prefactor     1.2458        .18292       -.36758E-06   -.21154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9113
  Prefactor  = 12.4167
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 44.0727
  Prefactor  = 0.0001
  Prefactor  = 14.0709
  Prefactor  = 8.1666
  Prefactor  = 0.0001
  Prefactor  = 55.4468
  Prefactor  = 0.0001008
  Prefactor  = 1.71133
  Prefactor  = 0.0001
  Prefactor  = 12.1186
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.31726
  norm       = 1.35965
  Prefactor  = 6.90049
  Prefactor  = 0.0001
  Normalizat = 0.856806
  Prefactor  = 1.24577
 **********
 **   18 **HESSE 
 **********

 FCN=   4891.606     FROM HESSE     STATUS=OK           559 CALLS     4412 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9113        3.0759        .78752E-04   -1.5182    
   2  Prefactor     12.417        23.130        .11365E-03   -1.5003    
   3  Prefactor     .10000E-03    7.2415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    75.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1985        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.073        63.213        .60361E-04   -1.4379    
   7  Prefactor     .10000E-03    7.5418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.071        14.168        .10681E-03   -1.4958    
   9  Prefactor     8.1666        19.458        .14045E-03   -1.5136    
  10  Prefactor     .10000E-03    39.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     55.447        56.418        .53851E-04   -1.4217    
  12  Prefactor     .10080E-03    44.043        .11839       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7113        27.902        .32186E-03   -1.5446    
  14  Prefactor     .10000E-03    9.7969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.119        11.828        .11499E-03   -1.5012    
  16  norm          .10001E-03    3.4797        .19110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.8879        .19517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    60.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .83831        .74217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.3275        .15731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3173        13.994        .26976E-03   -1.5404    
  25  norm          1.3596        1.2690        .72715E-04   -1.5475    
  26  Prefactor     6.9005        11.635        .15275E-03   -1.5183    
  27  Prefactor     .10000E-03    16.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .85681        .24231        .28833E-03   -.97995    
  29  Prefactor     1.2458        .21368        .21903E-03   -.84934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90761e-09
Minuit parameter uncertainties:
  1  3.076
  2  23.147
  3  3.63817e-07
  4  0.000687208
  5  6.17753e-08
  6  63.3095
  7  1.12099e-05
  8  14.1713
  9  19.4728
  10  3.70495e-05
  11  56.4723
  12  0.0118826
  13  13.8275
  14  6.60227e-07
  15  11.8302
  16  0.00027078
  17  2.46588e-05
  18  0.000749587
  19  2.27439e-07
  20  0.00123534
  21  4.09085e-06
  22  1.77861e-06
  23  0.000124666
  24  11.3929
  25  1.26907
  26  11.6388
  27  0.000101607
  28  0.242614
  29  0.213829
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.008e-04  1.188e-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:  1.246e+00  2.138e-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.568e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/311815/likelihoodResults_575251201_575510401_4FGL_J1204.8+0407_daily_bin1296.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4891.60599856
delta logL = -7.08802963345e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4891.60599856
delta logL = -7.08663264959e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5782       1.0000          .0000       10.000    
     3 'Normalizat'    .85680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4891.073     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      336 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .19118E-02    .14967E-06** at limit **
   2  Index         9.9173        .94348       -.51257E-04    .88180E-05
   3  Normalizat    .77745        .24616        .83013E-05    .18000E-04
   4  Prefactor     1.2936        .21874       -.33329E-05   -.19842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.91729
  Normalizat = 0.77745
  Prefactor  = 1.2936
 **********
 **   18 **HESSE 
 **********

 FCN=   4891.073     FROM HESSE     STATUS=OK            47 CALLS      383 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30984E-03    .34166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9173        8.0674        .50000        1.3887    
   3  Normalizat    .77745        .21165        .68140E-01   -1.0091    
   4  Prefactor     1.2936        .18529        .48769E-01   -.83498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79007e-08
Minuit parameter uncertainties:
  1  3.40307e-09
  2  1.48049
  3  0.211874
  4  0.185385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311815': 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) = 4891.0725752
delta logL = 0.533416269321

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.403e-09  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  9.917e+00  1.480e+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.294e+00  1.854e-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:  7.774e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 181.203 4.120
Photon Index (Free Index): 9.92 +/- 1.48
Photon Flux (Free Index): 5.37e-08 +/- 1.47e-07
Energy Flux (Free Index): 6.01e-06 +/- 1.64e-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/311815/cmap_HighResolution_575251201_575510401_4FGL_J1204.8+0407_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', comment='SUCCESS', energy_flux2='6.01e-06', dlogl='5.33e-01', photon_flux2='5.37e-08', job_status='DONE', time_completed='2021-09-04 23:36:31.798779', photon_index_error2='1.48', photon_index2='9.92', ts='-0.00', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.64e-05', EG='0.86', time_epoch_completed='1630823791.8', return_code='0', job_id='311815', GAL2='1.29', EG2='0.78', return_code2='0', photon_flux_error2='1.47e-07', ts2='1.16', photon_index='2.58' WHERE bin_id='1296' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:31 PDT 2021


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

Job <4FGL_J1204.8+0407_daily_bin1296> 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) <bullet0255>, 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:36:32 2021
Results reported at Sat Sep  4 23:36:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1296 181.203 4.12 575251201 575510401 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 :                                   765.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

