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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1366
RA = 181.203, Dec = 4.12
tmin = 593395201, tmax = 593654401
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='311914', job_status='RUN', time_executed='2021-09-04 23:23:55.692659', time_epoch_executed='1630823035.69' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311914

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311914/ft1_4FGL_J1204.8+0407_daily_bin1366.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311914/ft2_4FGL_J1204.8+0407_daily_bin1366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311914/ft1_4FGL_J1204.8+0407_daily_bin1366.fits outfile=/scratch/kocevski/311914/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1366.fits ra=181.203 dec=4.12 rad=12.0 tmin=593395201.0 tmax=593654401.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 4.11
user 3.87
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311914/ft2_4FGL_J1204.8+0407_daily_bin1366.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/311914/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1366.fits evtable="EVENTS" outfile="/scratch/kocevski/311914/ft1_filtered_4FGL_J1204.8+0407_daily_bin1366.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.55
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311914/ft1_filtered_4FGL_J1204.8+0407_daily_bin1366.fits" evtable="EVENTS" scfile=/scratch/kocevski/311914/ft2_4FGL_J1204.8+0407_daily_bin1366.fits sctable="SC_DATA" outfile=/scratch/kocevski/311914/ltcube_593395201_593654401_4FGL_J1204.8+0407_daily_bin1366.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/311914/ft2_4FGL_J1204.8+0407_daily_bin1366.fits
.....................!
real 12.32
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311914/ft1_filtered_4FGL_J1204.8+0407_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/311914/ft2_4FGL_J1204.8+0407_daily_bin1366.fits sctable="SC_DATA" expcube=/scratch/kocevski/311914/ltcube_593395201_593654401_4FGL_J1204.8+0407_daily_bin1366.fits outfile=/scratch/kocevski/311914/expmap_593395201_593654401_4FGL_J1204.8+0407_daily_bin1366.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/311914/ltcube_593395201_593654401_4FGL_J1204.8+0407_daily_bin1366.fits
.....................!
real 192.51
user 186.46
sys 5.04

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/311914/ft1_filtered_4FGL_J1204.8+0407_daily_bin1366.fits scfile=/scratch/kocevski/311914/ft2_4FGL_J1204.8+0407_daily_bin1366.fits outfile=/scratch/kocevski/311914/cmap_593395201_593654401_4FGL_J1204.8+0407_daily_bin1366.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311914/ft1_filtered_4FGL_J1204.8+0407_daily_bin1366.fits scfile=/scratch/kocevski/311914/ft2_4FGL_J1204.8+0407_daily_bin1366.fits outfile=/scratch/kocevski/311914/cmap_HighResolution_593395201_593654401_4FGL_J1204.8+0407_daily_bin1366.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32759       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6249       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14736E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1862       1.0000         .10000E-03   10000.    
    17 'norm      '    .76718       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    83.115       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4799       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.140       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4239       1.0000         .10000E-03   10000.    
    25 'norm      '    4.3075       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9056       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0888       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92322       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=   5172.890     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3713 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32691        2.3351       -.68891E-06   -.23901E-03
   2  Prefactor     28.467        33.036        .85022E-07    .37833E-04
   3  Prefactor     .10000E-03    23.825        .26477E-06** at limit **
   4  Prefactor     30.902        59.252        .10376E-06    .13673E-04
   5  Prefactor     .10000E-03    3.3699        .12667E-05** at limit **
   6  Prefactor     34.184        38.533        .58923E-07    .24414E-05
   7  Prefactor     14.718        10.834       -.82640E-07    .41360E-04
   8  Prefactor     .10000E-03    7.9113        .31136E-05** at limit **
   9  Prefactor     .10000E-03    4.8724        .73026E-07** at limit **
  10  Prefactor     2.3887        686.53        .32208E-04    .16147E-04
  11  Prefactor     .10000E-03    14.420       -.14788E-06** at limit **
  12  Prefactor     .10000E-03    14.643        .22696E-06** at limit **
  13  Prefactor     .10003E-03    183.83        .35403E-04** at limit **
  14  Prefactor     2.3105        103.51       -.18083E-04   -.70888E-04
  15  Prefactor     .10000E-03    6.9748        .41051E-06** at limit **
  16  norm          5.1854        3.4342       -.15116E-06    .85146E-04
  17  norm          .75764        3.7519        .39042E-05    .31423E-03
  18  Prefactor     .10000E-03    24.916        .21383E-06** at limit **
  19  norm          .10000E-03    15.531        .28495E-07** at limit **
  20  Prefactor     83.168        123.63       -.28474E-06   -.30502E-04
  21  norm          1.4805        .65849       -.21301E-06   -.65918E-03
  22  Prefactor     .10000E-03    6.3124        .63489E-07** at limit **
  23  Prefactor     19.173        32.251        .54847E-06   -.10872E-04
  24  Prefactor     2.4245        19.674        .59155E-06   -.17228E-04
  25  norm          4.3082        2.0244       -.93287E-07   -.19942E-03
  26  Prefactor     1.9063        6.7399       -.53184E-06   -.61289E-04
  27  Prefactor     .10000E-03    21.902        .16452E-06** at limit **
  28  Normalizat    1.0888        .23250       -.41852E-05    .47262E-03
  29  Prefactor     .92317        .18892        .28763E-05   -.14006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.326907
  Prefactor  = 28.4672
  Prefactor  = 0.0001
  Prefactor  = 30.9025
  Prefactor  = 0.0001
  Prefactor  = 34.1842
  Prefactor  = 14.7179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.38866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 2.31054
  Prefactor  = 0.0001
  norm       = 5.18537
  norm       = 0.757643
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 83.1684
  norm       = 1.4805
  Prefactor  = 0.0001
  Prefactor  = 19.1735
  Prefactor  = 2.42453
  norm       = 4.3082
  Prefactor  = 1.90634
  Prefactor  = 0.0001
  Normalizat = 1.08883
  Prefactor  = 0.923168
 **********
 **   18 **HESSE 
 **********

 FCN=   5172.890     FROM HESSE     STATUS=OK           561 CALLS     4274 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32691        2.4403        .21085E-03   -1.5594    
   2  Prefactor     28.467        33.049        .75082E-04   -1.4640    
   3  Prefactor     .10000E-03    23.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.902        59.279        .72054E-04   -1.4596    
   5  Prefactor     .10000E-03    3.3849        .12900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.184        38.537        .34273E-03   -1.4538    
   7  Prefactor     14.718        10.810        .10442E-03   -1.4940    
   8  Prefactor     .10000E-03    7.9630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8776        .15506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3887        716.98        .25172E-02   -1.5399    
  11  Prefactor     .10000E-03    14.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    179.86        .62319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3105        103.34        .27600E-03   -1.5404    
  15  Prefactor     .10000E-03    6.9931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1854        3.3871        .10208E-03   -1.5253    
  17  norm          .75764        3.7923        .23719E-03   -1.5534    
  18  Prefactor     .10000E-03    25.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     83.168        123.45        .22030E-03   -1.3881    
  21  norm          1.4805        .65221        .35473E-04   -1.5465    
  22  Prefactor     .10000E-03    6.3247        .17618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.173        32.202        .91548E-04   -1.4832    
  24  Prefactor     2.4245        19.378        .26288E-03   -1.5397    
  25  norm          4.3082        2.0197        .66389E-04   -1.5293    
  26  Prefactor     1.9063        6.6712        .30122E-03   -1.5432    
  27  Prefactor     .10000E-03    21.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0888        .25347        .26449E-03   -.90111    
  29  Prefactor     .92317        .20913        .24363E-03   -.95336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04219e-09
Minuit parameter uncertainties:
  1  1.78616
  2  33.07
  3  3.73535e-05
  4  59.3925
  5  3.29908e-05
  6  38.5648
  7  10.8114
  8  0.000124245
  9  5.78198e-06
  10  83.7987
  11  1.07727e-05
  12  2.48943e-05
  13  0.00449163
  14  30.9607
  15  1.40399e-05
  16  3.3872
  17  3.39024
  18  4.39395e-05
  19  6.35466e-05
  20  123.836
  21  0.652213
  22  2.60327e-05
  23  32.2316
  24  13.7146
  25  2.01978
  26  6.67378
  27  1.27177e-06
  28  0.25375
  29  0.209313
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.489e-05  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.232e-01  2.093e-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.089e+00  2.537e-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: 7.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311914/likelihoodResults_593395201_593654401_4FGL_J1204.8+0407_daily_bin1366.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) = 5172.88999094
delta logL = -0.000324907434333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5172.88966886
delta logL = -2.83028839476e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1481       1.0000          .0000       10.000    
     3 'Normalizat'    1.0888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92318       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=   5172.890     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      289 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    50.889        .18142E-01** at limit **
   2  Index         2.1077        5.1781        .50000        .20443E-06
   3  Normalizat    1.0888        .89628E-02    .26448E-03    .52633E-02
   4  Prefactor     .92319        .77119E-02    .24363E-03    .57668E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.10773
  Normalizat = 1.08883
  Prefactor  = 0.923188
 **********
 **   18 **HESSE 
 **********

 FCN=   5172.890     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    344.48        .29242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1077        8.5900        .50000       -.61683    
   3  Normalizat    1.0888        .23850E-01    .52895E-04   -.90111    
   4  Prefactor     .92319        .20521E-01    .48726E-04   -.95335    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73182e-09
Minuit parameter uncertainties:
  1  0.00270112
  2  1090.81
  3  0.0238503
  4  0.0205216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311914': 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): 102
logL (Free Index) = 5172.88966552
delta logL = 5.08813172928e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.701e-03  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.108e+00  1.091e+03  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:  9.232e-01  2.052e-02  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.089e+00  2.385e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/311914/cmap_HighResolution_593395201_593654401_4FGL_J1204.8+0407_daily_bin1366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-04 23:37:00.131047', job_id='311914', GAL2='0.92', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630823820.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1366' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:37:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 311914: <4FGL_J1204.8+0407_daily_bin1366> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1366 181.203 4.12 593395201 593654401 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 :                                   777.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

