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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1294
RA = 181.203, Dec = 4.12
tmin = 574732801, tmax = 574992001
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='311812', job_status='RUN', time_executed='2021-09-04 23:20:54.167106', time_epoch_executed='1630822854.17' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311812

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311812/ft1_4FGL_J1204.8+0407_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311812/ft2_4FGL_J1204.8+0407_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311812/ft1_4FGL_J1204.8+0407_daily_bin1294.fits outfile=/scratch/kocevski/311812/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1294.fits ra=181.203 dec=4.12 rad=12.0 tmin=574732801.0 tmax=574992001.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.41
user 5.07
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311812/ft1_filtered_4FGL_J1204.8+0407_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/311812/ft2_4FGL_J1204.8+0407_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/311812/ltcube_574732801_574992001_4FGL_J1204.8+0407_daily_bin1294.fits outfile=/scratch/kocevski/311812/expmap_574732801_574992001_4FGL_J1204.8+0407_daily_bin1294.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/311812/ltcube_574732801_574992001_4FGL_J1204.8+0407_daily_bin1294.fits
.....................!
real 189.95
user 185.43
sys 4.15

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/311812/ft1_filtered_4FGL_J1204.8+0407_daily_bin1294.fits scfile=/scratch/kocevski/311812/ft2_4FGL_J1204.8+0407_daily_bin1294.fits outfile=/scratch/kocevski/311812/cmap_574732801_574992001_4FGL_J1204.8+0407_daily_bin1294.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311812/ft1_filtered_4FGL_J1204.8+0407_daily_bin1294.fits scfile=/scratch/kocevski/311812/ft2_4FGL_J1204.8+0407_daily_bin1294.fits outfile=/scratch/kocevski/311812/cmap_HighResolution_574732801_574992001_4FGL_J1204.8+0407_daily_bin1294.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.63
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0334       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.755       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93094E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8864       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0420       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10747E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7693       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2423       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5593       1.0000         .10000E-03   10000.    
    19 'norm      '    43.166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    75.759       1.0000         .10000E-03   10000.    
    21 'norm      '    .60547       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9987       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .31329E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8000       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.063       1.0000         .10000E-03   10000.    
    27 'Prefactor '    62.325       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6586       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71013       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=   5560.377     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3727 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0334        2.2205        .13207E-07    .60604E-05
   2  Prefactor     .10000E-03    15.330        .35665E-07** at limit **
   3  Prefactor     13.755        27.098        .27672E-06    .18784E-04
   4  Prefactor     .10006E-03    738.24       -.97057E-05** at limit **
   5  Prefactor     6.8846        8.0716       -.10975E-06   -.66172E-04
   6  Prefactor     .10000E-03    20.300        .34160E-09** at limit **
   7  Prefactor     9.0370        10.882        .18384E-06    .81745E-04
   8  Prefactor     .10000E-03    10.594        .14486E-06** at limit **
   9  Prefactor     17.702        19.945        .11076E-06   -.63508E-05
  10  Prefactor     .10000E-03    40.278       -.19681E-07** at limit **
  11  Prefactor     65.489        56.677        .77734E-07    .26607E-05
  12  Prefactor     11.720        59.513       -.25714E-05   -.54778E-04
  13  Prefactor     .10000E-03    13.802        .42729E-07** at limit **
  14  Prefactor     .10000E-03    16.490       -.13183E-06** at limit **
  15  Prefactor     .10000E-03    4.3034       -.28486E-08** at limit **
  16  norm          7.7693        3.5520        .94487E-08   -.20364E-04
  17  norm          4.2414        5.6460        .53988E-07   -.36445E-04
  18  Prefactor     4.5623        25.462        .73564E-05   -.64076E-04
  19  norm          43.177        52.446       -.14172E-06    .16028E-04
  20  Prefactor     75.762        123.56       -.62149E-06    .57478E-05
  21  norm          .60512        .65096        .55868E-07   -.18842E-04
  22  Prefactor     .10000E-03    2.4203       -.13767E-08** at limit **
  23  Prefactor     9.9990        15.907        .67388E-07   -.31705E-05
  24  Prefactor     .10000E-03    7.0385        .20606E-06** at limit **
  25  norm          3.8004        1.8587       -.98313E-08   -.30113E-04
  26  Prefactor     25.063        15.041       -.32998E-07   -.23319E-04
  27  Prefactor     62.323        51.649        .13836E-06    .27266E-04
  28  Normalizat    1.6584        .23808        .54617E-06   -.45081E-04
  29  Prefactor     .71021        .19293       -.13751E-05    .21349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03343
  Prefactor  = 0.0001
  Prefactor  = 13.7553
  Prefactor  = 0.000100064
  Prefactor  = 6.88465
  Prefactor  = 0.0001
  Prefactor  = 9.03701
  Prefactor  = 0.0001
  Prefactor  = 17.7024
  Prefactor  = 0.0001
  Prefactor  = 65.4887
  Prefactor  = 11.7196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.76932
  norm       = 4.24142
  Prefactor  = 4.56234
  norm       = 43.1771
  Prefactor  = 75.7625
  norm       = 0.605124
  Prefactor  = 0.0001
  Prefactor  = 9.99901
  Prefactor  = 0.000100002
  norm       = 3.80039
  Prefactor  = 25.0625
  Prefactor  = 62.3232
  Normalizat = 1.65842
  Prefactor  = 0.710209
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.377     FROM HESSE     STATUS=OK           561 CALLS     4288 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0334        2.2215        .92143E-04   -1.5360    
   2  Prefactor     .10000E-03    15.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.755        27.086        .10800E-03   -1.4966    
   4  Prefactor     .10006E-03    757.51        .18207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8846        8.0666        .15289E-03   -1.5183    
   6  Prefactor     .10000E-03    20.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0370        10.880        .13329E-03   -1.5107    
   8  Prefactor     .10000E-03    93.283        .46741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.702        19.933        .95191E-04   -1.4866    
  10  Prefactor     .10000E-03    40.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.489        56.669        .49588E-04   -1.4088    
  12  Prefactor     11.720        60.863        .11778E-03   -1.5023    
  13  Prefactor     .10000E-03    13.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3072        .15104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7693        3.5470        .91581E-04   -1.5150    
  17  norm          4.2414        5.5161        .15414E-03   -1.5296    
  18  Prefactor     4.5623        25.815        .94264E-03   -1.5281    
  19  norm          43.177        52.325        .61018E-04   -1.4393    
  20  Prefactor     75.762        123.51        .46132E-04   -1.3965    
  21  norm          .60512        .60757        .53490E-03   -1.5552    
  22  Prefactor     .10000E-03    2.4222        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.9990        15.902        .12672E-03   -1.5075    
  24  Prefactor     .10000E-03    72.357        .37435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8004        1.8546        .67743E-04   -1.5318    
  26  Prefactor     25.063        14.830        .80015E-04   -1.4706    
  27  Prefactor     62.323        51.550        .50828E-04   -1.4127    
  28  Normalizat    1.6584        .27905        .25591E-03   -.73419    
  29  Prefactor     .71021        .22203        .30825E-03   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29431e-09
Minuit parameter uncertainties:
  1  2.22154
  2  2.55896e-07
  3  27.1105
  4  0.0141189
  5  8.06783
  6  1.54929e-06
  7  10.8828
  8  0.000121286
  9  19.9407
  10  1.16478e-07
  11  56.7153
  12  53.5007
  13  4.51996e-06
  14  4.20926e-06
  15  2.0628e-07
  16  3.54706
  17  5.5168
  18  21.7191
  19  52.3807
  20  123.928
  21  0.607572
  22  9.36784e-07
  23  15.9089
  24  0.000768142
  25  1.85463
  26  14.8323
  27  51.5869
  28  0.279317
  29  0.222306
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.172e+01  5.350e+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:  7.102e-01  2.223e-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.658e+00  2.793e-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.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311812/likelihoodResults_574732801_574992001_4FGL_J1204.8+0407_daily_bin1294.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) = 5560.108584
delta logL = 0.26816805857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5560.10278529
delta logL = 0.273966766281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9411       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7310       1.0000          .0000       10.000    
     3 'Normalizat'    1.5980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74097       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=   5560.103     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      292 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9429        176.97        .13404E-03    .28116E-03
   2  Index         3.7300        6.7906        .82820E-02    .13483E-03
   3  Normalizat    1.5985        .27814        .25962E-03    .25021E-03
   4  Prefactor     .74053        .22416        .30243E-03    .10236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.94294
  Index      = 3.73
  Normalizat = 1.59848
  Prefactor  = 0.740528
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.103     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9429        26.681        .53617E-05   -1.5110    
   2  Index         3.7300        1.6886        .33128E-03   -.25681    
   3  Normalizat    1.5985        .27874        .51925E-04   -.75047    
   4  Prefactor     .74053        .22313        .12097E-04   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49398e-10
Minuit parameter uncertainties:
  1  26.7165
  2  1.72496
  3  0.279012
  4  0.223397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311812': 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) = 5560.1027831
delta logL = 0.273968954344

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  8.943e+00  2.672e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.730e+00  1.725e+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:  7.405e-01  2.234e-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.598e+00  2.790e-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/311812/cmap_HighResolution_574732801_574992001_4FGL_J1204.8+0407_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-04 23:34:44.053095', job_id='311812', GAL2='0.74', fit_tolerance='1e-08', EG2='1.60', EG='1.66', time_epoch_completed='1630823684.05', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.74e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1294' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 311812: <4FGL_J1204.8+0407_daily_bin1294> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1294> 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) <bullet0249>, 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:34:44 2021
Results reported at Sat Sep  4 23:34:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1294 181.203 4.12 574732801 574992001 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 :                                   822.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

