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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1413
RA = 181.203, Dec = 4.12
tmin = 605577601, tmax = 605836801
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='311982', job_status='RUN', time_executed='2021-09-04 23:21:13.360594', time_epoch_executed='1630822873.36' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311982

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311982/ft1_4FGL_J1204.8+0407_daily_bin1413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311982/ft2_4FGL_J1204.8+0407_daily_bin1413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311982/ft1_4FGL_J1204.8+0407_daily_bin1413.fits outfile=/scratch/kocevski/311982/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1413.fits ra=181.203 dec=4.12 rad=12.0 tmin=605577601.0 tmax=605836801.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.02
user 4.74
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311982/ft1_filtered_4FGL_J1204.8+0407_daily_bin1413.fits evtable="EVENTS" scfile=/scratch/kocevski/311982/ft2_4FGL_J1204.8+0407_daily_bin1413.fits sctable="SC_DATA" expcube=/scratch/kocevski/311982/ltcube_605577601_605836801_4FGL_J1204.8+0407_daily_bin1413.fits outfile=/scratch/kocevski/311982/expmap_605577601_605836801_4FGL_J1204.8+0407_daily_bin1413.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/311982/ltcube_605577601_605836801_4FGL_J1204.8+0407_daily_bin1413.fits
.....................!
real 190.98
user 185.09
sys 5.28

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/311982/ft1_filtered_4FGL_J1204.8+0407_daily_bin1413.fits scfile=/scratch/kocevski/311982/ft2_4FGL_J1204.8+0407_daily_bin1413.fits outfile=/scratch/kocevski/311982/cmap_605577601_605836801_4FGL_J1204.8+0407_daily_bin1413.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.156       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10654E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.875       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14862E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    237.97       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0169       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21094E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3290       1.0000         .10000E-03   10000.    
    16 'norm      '    .12570E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5783       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .36271E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.961       1.0000         .10000E-03   10000.    
    25 'norm      '    4.9204       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.157       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5675       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61300       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=   6057.654     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3734 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .84241        .80230E-07** at limit **
   2  Prefactor     11.158        15.569        .28563E-06   -.95206E-05
   3  Prefactor     .10000E-03    7.4112        .11568E-06** at limit **
   4  Prefactor     .10000E-03    54.198        .11528E-05** at limit **
   5  Prefactor     .10000E-03    6.7492       -.14159E-05** at limit **
   6  Prefactor     .10000E-03    11.213        .64604E-06** at limit **
   7  Prefactor     11.875        9.1410        .67044E-06   -.11637E-04
   8  Prefactor     .10001E-03    17.295       -.39908E-05** at limit **
   9  Prefactor     22.960        13.052       -.55275E-07   -.14662E-03
  10  Prefactor     237.87        127.75        .87726E-05    .18357E-03
  11  Prefactor     .10000E-03    9.7832       -.12974E-06** at limit **
  12  Prefactor     24.475        39.520       -.74445E-05   -.20144E-03
  13  Prefactor     4.0239        24.750       -.55385E-05   -.15536E-03
  14  Prefactor     .10001E-03    81.507        .11429E-05** at limit **
  15  Prefactor     1.3144        17.264        .21383E-04   -.47967E-03
  16  norm          .10000E-03    1.2580       -.16885E-05** at limit **
  17  norm          .10000E-03    1.1127        .24183E-06** at limit **
  18  Prefactor     .10000E-03    32.743        .14810E-05** at limit **
  19  norm          .10000E-03    13.247       -.11695E-05** at limit **
  20  Prefactor     .10000E-03    95.606        .17928E-06** at limit **
  21  norm          1.5787        .62358       -.17782E-06   -.16767E-02
  22  Prefactor     .10000E-03    6.6751        .36118E-06** at limit **
  23  Prefactor     .10000E-03    21.969       -.22491E-05** at limit **
  24  Prefactor     10.962        11.440       -.33935E-06   -.27959E-03
  25  norm          4.9208        2.0507        .92109E-07   -.14327E-03
  26  Prefactor     13.157        10.701       -.19348E-07   -.10050E-03
  27  Prefactor     .10000E-03    16.577        .10933E-05** at limit **
  28  Normalizat    1.5672        .22026       -.31750E-06   -.37347E-03
  29  Prefactor     .61317        .17001       -.21408E-05   -.40328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.1581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.8754
  Prefactor  = 0.000100013
  Prefactor  = 22.9601
  Prefactor  = 237.868
  Prefactor  = 0.0001
  Prefactor  = 24.4747
  Prefactor  = 4.02392
  Prefactor  = 0.000100007
  Prefactor  = 1.31444
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9622
  norm       = 4.92076
  Prefactor  = 13.1573
  Prefactor  = 0.0001
  Normalizat = 1.56725
  Prefactor  = 0.613166
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.654     FROM HESSE     STATUS=OK           549 CALLS     4283 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .85356        .69725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.158        15.564        .11994E-03   -1.5040    
   3  Prefactor     .10000E-03    7.4139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.875        9.1403        .11625E-03   -1.5019    
   8  Prefactor     .10001E-03    17.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.960        13.076        .83604E-04   -1.4749    
  10  Prefactor     237.87        128.93        .13122E-03   -1.2611    
  11  Prefactor     .10000E-03    9.7841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.475        39.638        .81083E-04   -1.4718    
  13  Prefactor     4.0239        24.404        .20121E-03   -1.5307    
  14  Prefactor     .10001E-03    82.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3144        18.374        .19053E-02   -1.5479    
  16  norm          .10000E-03    1.9748        .16891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1210        .80154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    95.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5787        .61960        .35906E-04   -1.5457    
  22  Prefactor     .10000E-03    79.330        .38874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.962        11.415        .60506E-03   -1.5046    
  25  norm          4.9208        2.0488        .68549E-04   -1.5264    
  26  Prefactor     13.157        10.693        .11043E-03   -1.4982    
  27  Prefactor     .10000E-03    16.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5672        .26341        .24889E-03   -.75906    
  29  Prefactor     .61317        .19963        .30037E-03   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49539e-09
Minuit parameter uncertainties:
  1  4.35431e-06
  2  15.5696
  3  1.15588e-05
  4  0.000224498
  5  0.000188521
  6  3.40644e-05
  7  9.14138
  8  0.000966929
  9  13.0776
  10  129.089
  11  3.60113e-06
  12  39.6805
  13  19.831
  14  0.00154193
  15  9.83207
  16  0.000194867
  17  1.33633e-05
  18  0.000112078
  19  4.8892e-05
  20  6.35989e-05
  21  0.6196
  22  0.000119499
  23  0.000156483
  24  11.4175
  25  2.04887
  26  10.6943
  27  7.1405e-05
  28  0.263642
  29  0.199862
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.447e+01  3.968e+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:  6.132e-01  1.999e-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.567e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/311982/likelihoodResults_605577601_605836801_4FGL_J1204.8+0407_daily_bin1413.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) = 6057.64438
delta logL = 0.0101107123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6057.63990895
delta logL = 0.0145817612838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.943       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3990       1.0000          .0000       10.000    
     3 'Normalizat'    1.5717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60972       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=   6057.640     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.889        51.069        .74470E-04    .49829E-04
   2  Index         2.3998        1.0249        .11662E-01   -.57498E-05
   3  Normalizat    1.5711        .25057        .24863E-03   -.23477E-03
   4  Prefactor     .61026        .19813        .30102E-03    .21270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.889
  Index      = 2.3998
  Normalizat = 1.57108
  Prefactor  = 0.61026
 **********
 **   18 **HESSE 
 **********

 FCN=   6057.640     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.889        49.355        .14894E-04   -1.4632    
   2  Index         2.3998        .99087        .46646E-03   -.54690    
   3  Normalizat    1.5711        .25075        .49727E-04   -.75800    
   4  Prefactor     .61026        .19819        .12041E-04   -1.0716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10361e-09
Minuit parameter uncertainties:
  1  49.4247
  2  0.999982
  3  0.250947
  4  0.198418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311982': 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) = 6057.63990475
delta logL = 0.0145859561153

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.889e+01  4.942e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.400e+00  1.000e+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:  6.103e-01  1.984e-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.571e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
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/311982/cmap_HighResolution_605577601_605836801_4FGL_J1204.8+0407_daily_bin1413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-04 23:35:40.552177', job_id='311982', GAL2='0.61', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1630823740.55', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.46e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1413' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:35:40 PDT 2021


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

Job <4FGL_J1204.8+0407_daily_bin1413> 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) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:42 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:42 2021
Terminated at Sat Sep  4 23:35:41 2021
Results reported at Sat Sep  4 23:35:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1413 181.203 4.12 605577601 605836801 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 :                                   860.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

