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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1603
RA = 181.203, Dec = 4.12
tmin = 654825601, tmax = 655084801
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='913777', job_status='RUN', time_executed='2021-10-05 00:06:10.772832', time_epoch_executed='1633417570.77' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913777/ft1_4FGL_J1204.8+0407_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913777/ft2_4FGL_J1204.8+0407_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913777/ft1_4FGL_J1204.8+0407_daily_bin1603.fits outfile=/scratch/kocevski/913777/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1603.fits ra=181.203 dec=4.12 rad=12.0 tmin=654825601.0 tmax=655084801.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.02
user 2.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913777/ft1_filtered_4FGL_J1204.8+0407_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/913777/ft2_4FGL_J1204.8+0407_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/913777/ltcube_654825601_655084801_4FGL_J1204.8+0407_daily_bin1603.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/913777/ft2_4FGL_J1204.8+0407_daily_bin1603.fits
.....................!
real 12.16
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913777/ft1_filtered_4FGL_J1204.8+0407_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/913777/ft2_4FGL_J1204.8+0407_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/913777/ltcube_654825601_655084801_4FGL_J1204.8+0407_daily_bin1603.fits outfile=/scratch/kocevski/913777/expmap_654825601_655084801_4FGL_J1204.8+0407_daily_bin1603.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/913777/ltcube_654825601_655084801_4FGL_J1204.8+0407_daily_bin1603.fits
.....................!
real 192.98
user 187.44
sys 5.18

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/913777/ft1_filtered_4FGL_J1204.8+0407_daily_bin1603.fits scfile=/scratch/kocevski/913777/ft2_4FGL_J1204.8+0407_daily_bin1603.fits outfile=/scratch/kocevski/913777/cmap_654825601_655084801_4FGL_J1204.8+0407_daily_bin1603.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/913777/ft1_filtered_4FGL_J1204.8+0407_daily_bin1603.fits scfile=/scratch/kocevski/913777/ft2_4FGL_J1204.8+0407_daily_bin1603.fits outfile=/scratch/kocevski/913777/cmap_HighResolution_654825601_655084801_4FGL_J1204.8+0407_daily_bin1603.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2433       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17786E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.741       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.996       1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.350       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3688       1.0000         .10000E-03   10000.    
    17 'norm      '    12.320       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    135.38       1.0000         .10000E-03   10000.    
    21 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.804       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.219       1.0000         .10000E-03   10000.    
    25 'norm      '    2.9407       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1686       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97917       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=   3717.561     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3668 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2435        3.4553       -.60608E-06   -.60032E-03
   2  Prefactor     .10000E-03    21.644       -.11804E-04** at limit **
   3  Prefactor     10.415        40.540       -.74094E-05   -.37852E-05
   4  Prefactor     .10000E-03    149.32       -.58117E-04** at limit **
   5  Prefactor     .10000E-03    15.568        .54941E-05** at limit **
   6  Prefactor     .10000E-03    123.20        .12347E-04** at limit **
   7  Prefactor     .10000E-03    7.1819        .81100E-07** at limit **
   8  Prefactor     .10000E-03    66.628       -.30263E-05** at limit **
   9  Prefactor     58.739        79.620       -.88266E-06   -.10780E-04
  10  Prefactor     .10000E-03    51.932       -.26675E-04** at limit **
  11  Prefactor     .10000E-03    75.827        .12093E-04** at limit **
  12  Prefactor     10.988        52.776       -.94568E-05   -.15702E-06
  13  Prefactor     48.340        70.117       -.86096E-05   -.52041E-04
  14  Prefactor     .10000E-03    14.847       -.18871E-05** at limit **
  15  Prefactor     .10000E-03    22.497        .11567E-04** at limit **
  16  norm          7.3680        6.9291        .13654E-05   -.13663E-03
  17  norm          12.312        8.7146       -.27728E-05   -.70199E-03
  18  Prefactor     .10000E-03    16.154       -.28170E-05** at limit **
  19  norm          .10000E-03    94.860        .39656E-04** at limit **
  20  Prefactor     135.48        225.29        .81822E-04   -.12652E-04
  21  norm          .10000E-03    .67185        .42310E-06** at limit **
  22  Prefactor     28.805        18.565       -.44538E-06    .82383E-04
  23  Prefactor     .10000E-03    46.588       -.11169E-04** at limit **
  24  Prefactor     51.206        46.160       -.78454E-05   -.11069E-03
  25  norm          2.9399        2.9400       -.30396E-06   -.40256E-03
  26  Prefactor     .10000E-03    42.857        .11447E-04** at limit **
  27  Prefactor     .10000E-03    43.154        .95279E-05** at limit **
  28  Normalizat    1.1684        .28155        .24795E-05   -.67494E-04
  29  Prefactor     .97925        .23634       -.59826E-06    .60613E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2435
  Prefactor  = 0.0001
  Prefactor  = 10.4153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.7391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9884
  Prefactor  = 48.3401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.36798
  norm       = 12.3124
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 135.479
  norm       = 0.0001
  Prefactor  = 28.8054
  Prefactor  = 0.0001
  Prefactor  = 51.2061
  norm       = 2.9399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16843
  Prefactor  = 0.979247
 **********
 **   18 **HESSE 
 **********

 FCN=   3717.561     FROM HESSE     STATUS=OK           545 CALLS     4213 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2435        3.4415        .17797E-03   -1.5485    
   2  Prefactor     .10000E-03    21.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.415        40.572        .12410E-03   -1.5062    
   4  Prefactor     .10000E-03    149.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    123.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1907        .15956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    69.261        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     58.739        79.610        .52346E-04   -1.4174    
  10  Prefactor     .10000E-03    51.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    75.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.988        52.882        .12082E-03   -1.5045    
  13  Prefactor     48.340        70.090        .57669E-04   -1.4316    
  14  Prefactor     .10000E-03    14.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3680        6.9171        .14585E-03   -1.5165    
  17  norm          12.312        8.5469        .11413E-03   -1.5006    
  18  Prefactor     .10000E-03    16.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    94.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     135.48        224.96        .17307E-03   -1.3375    
  21  norm          .10000E-03    .94587        .93300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.805        18.559        .74650E-04   -1.4634    
  23  Prefactor     .10000E-03    46.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     51.206        46.173        .56038E-04   -1.4276    
  25  norm          2.9399        2.9253        .99160E-04   -1.5365    
  26  Prefactor     .10000E-03    42.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    43.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1684        .33654        .28876E-03   -.87584    
  29  Prefactor     .97925        .28219        .25975E-03   -.93425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20304e-09
Minuit parameter uncertainties:
  1  3.44209
  2  8.11984e-06
  3  40.6799
  4  0.000149067
  5  3.134e-05
  6  3.81267e-05
  7  4.15656e-05
  8  9.7639e-05
  9  79.7548
  10  1.8508e-05
  11  1.86934e-05
  12  48.2806
  13  70.2099
  14  3.31202e-06
  15  0.000146199
  16  6.91787
  17  8.54775
  18  4.26814e-05
  19  0.000152716
  20  226.401
  21  3.75373e-05
  22  18.5625
  23  1.27741e-05
  24  46.2052
  25  2.92542
  26  0.000159998
  27  2.37269e-05
  28  0.337161
  29  0.282612
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.099e+01  4.828e+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.792e-01  2.826e-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.168e+00  3.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913777/likelihoodResults_654825601_655084801_4FGL_J1204.8+0407_daily_bin1603.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) = 3717.45743572
delta logL = 0.103578944028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3717.44612587
delta logL = 0.114888788561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9188       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8603       1.0000          .0000       10.000    
     3 'Normalizat'    1.1217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0031       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=   3717.446     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      253 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8860        555.55        .35622E-02    .15975E-03
   2  Index         3.8674        6.8994        .20713        .64254E-04
   3  Normalizat    1.1194        .75565E-01    .66490E-01   -.69510E-04
   4  Prefactor     1.0050        .57979E-01    .44639E-01   -.49238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88604
  Index      = 3.86739
  Normalizat = 1.11944
  Prefactor  = 1.00497
 **********
 **   18 **HESSE 
 **********

 FCN=   3717.446     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8860        211.50        .14249E-03   -1.5146    
   2  Index         3.8674        6.8692        .10023E-01   -.22851    
   3  Normalizat    1.1194        .39019        .29415E-03   -.89130    
   4  Prefactor     1.0050        .30561        .25675E-03   -.92564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63434e-10
Minuit parameter uncertainties:
  1  82.0026
  2  7.64584
  3  0.391203
  4  0.306136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913777': 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) = 3717.4461033
delta logL = 0.114911365129

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  7.886e+00  8.200e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.867e+00  7.646e+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.005e+00  3.061e-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.119e+00  3.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 181.203 4.120

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/913777/cmap_HighResolution_654825601_655084801_4FGL_J1204.8+0407_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2021-10-05 00:16:18.313633', job_id='913777', GAL2='1.00', fit_tolerance='1e-08', EG2='1.12', EG='1.17', time_epoch_completed='1633418178.31', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.15e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1603' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:16:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 913777: <4FGL_J1204.8+0407_daily_bin1603> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:02:21 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:02:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:02:22 2021
Terminated at Tue Oct  5 00:16:19 2021
Results reported at Tue Oct  5 00:16:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1603 181.203 4.12 654825601 655084801 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.00 sec.
    Max Memory :                                 1086 MB
    Average Memory :                             247.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

