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


Performing analysis on: 4FGL_J1204.2-0709_daily_bin1370
RA = 181.074, Dec = -7.1627
tmin = 594432001, tmax = 594691201
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='302388', job_status='RUN', time_executed='2021-09-04 22:50:54.255520', time_epoch_executed='1630821054.26' WHERE source_name='4FGL J1204.2-0709' and cadence='daily' and bin_id='1370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302388

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302388/ft1_4FGL_J1204.2-0709_daily_bin1370.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302388/ft1_4FGL_J1204.2-0709_daily_bin1370.fits outfile=/scratch/kocevski/302388/ft1_filteredMKT_4FGL_J1204.2-0709_daily_bin1370.fits ra=181.074 dec=-7.1627 rad=12.0 tmin=594432001.0 tmax=594691201.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.36
user 4.13
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.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/302388/ft1_filteredMKT_4FGL_J1204.2-0709_daily_bin1370.fits evtable="EVENTS" outfile="/scratch/kocevski/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.fits" evtable="EVENTS" scfile=/scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits sctable="SC_DATA" outfile=/scratch/kocevski/302388/ltcube_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.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/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits
.....................!
real 12.53
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits sctable="SC_DATA" expcube=/scratch/kocevski/302388/ltcube_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.fits outfile=/scratch/kocevski/302388/expmap_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.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/302388/ltcube_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.fits
.....................!
real 190.29
user 184.88
sys 5.01

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 200 point sources and 0 extended sources

Setting source of interest to:
4FGL J1204.2-0709 @ 181.074 -7.1627

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.fits scfile=/scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits outfile=/scratch/kocevski/302388/cmap_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.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.074 yref=-7.1627 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.fits scfile=/scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits outfile=/scratch/kocevski/302388/cmap_HighResolution_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.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.074 yref=-7.1627 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/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.fits evtable="EVENTS" scfile=/scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302388/Model_4FGL_J1204.2-0709_daily_bin1370.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/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.fits.....................!
real 57.39
user 55.95
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.fits', '/scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits', expMap='/scratch/kocevski/302388/expmap_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.fits', expCube='/scratch/kocevski/302388/ltcube_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302388/Model_4FGL_J1204.2-0709_daily_bin1370.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.2-0709'

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  9.328e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/302388/ft1_filtered_4FGL_J1204.2-0709_daily_bin1370.fits
Spacecraft file(s): /scratch/kocevski/302388/ft2_4FGL_J1204.2-0709_daily_bin1370.fits
Exposure map: /scratch/kocevski/302388/expmap_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.fits
Exposure cube: /scratch/kocevski/302388/ltcube_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302388/Model_4FGL_J1204.2-0709_daily_bin1370.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) = 6550.47608146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.120       1.0000         .10000E-03   10000.    
     6 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.693       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.922       1.0000         .10000E-03   10000.    
    10 'norm      '    7.5188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5401       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2427       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0551       1.0000         .10000E-03   10000.    
    22 'norm      '    51.936       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23979E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1380       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6822       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.6477       1.0000         .10000E-03   10000.    
    27 'Prefactor '    26.876       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .80618       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1516       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6550.471     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4114 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7411        .12480E-06** at limit **
   2  Prefactor     .10000E-03    130.70       -.32258E-04** at limit **
   3  norm          .10000E-03    3.8437        .19787E-07** at limit **
   4  Prefactor     .10000E-03    4.1371        .24391E-06** at limit **
   5  Prefactor     29.117        14.154        .46650E-06    .86477E-05
   6  norm          .10000E-03    9.1051        .51765E-06** at limit **
   7  Prefactor     .10000E-03    .82317       -.12229E-06** at limit **
   8  Prefactor     22.669        26.951       -.41386E-05   -.20993E-04
   9  Prefactor     26.921        33.938       -.71877E-06   -.13309E-05
  10  norm          7.5176        7.7156       -.31449E-06   -.22617E-03
  11  Prefactor     6.0504        4.4288       -.45721E-06   -.42900E-03
  12  Prefactor     3.5401        10.312       -.52226E-06   -.14246E-03
  13  Prefactor     .10000E-03    6.5503        .66152E-06** at limit **
  14  Prefactor     .10000E-03    123.44        .27070E-04** at limit **
  15  Prefactor     .10000E-03    2.2043        .15805E-06** at limit **
  16  Prefactor     14.342        16.956        .61894E-05   -.11918E-03
  17  Prefactor     .10000E-03    22.412       -.23159E-05** at limit **
  18  Prefactor     .10000E-03    11.841       -.13334E-05** at limit **
  19  Prefactor     8.2420        11.288       -.52171E-06   -.13047E-04
  20  Prefactor     .10000E-03    6.2885       -.14005E-05** at limit **
  21  norm          1.0557        1.6963       -.19512E-06   -.60121E-03
  22  norm          51.945        53.993        .87411E-05   -.11807E-04
  23  Prefactor     .10001E-03    5.1614        .34778E-06** at limit **
  24  norm          1.1378        .63376       -.18666E-06   -.57715E-04
  25  Prefactor     4.6845        2.1829        .18390E-06   -.20808E-04
  26  Prefactor     9.6467        10.170       -.11917E-06   -.53338E-04
  27  Prefactor     26.887        16.346       -.43229E-05   -.58863E-04
  28  Prefactor     .10000E-03    5.8703        .35961E-06** at limit **
  29  Prefactor     .10000E-03    16.924        .26357E-05** at limit **
  30  Normalizat    .80636        .24136       -.54596E-06   -.55623E-04
  31  Prefactor     1.1514        .15754        .37003E-06   -.10033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.1173
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6688
  Prefactor  = 26.9213
  norm       = 7.51758
  Prefactor  = 6.05037
  Prefactor  = 3.54014
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 14.3418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.24195
  Prefactor  = 0.0001
  norm       = 1.05566
  norm       = 51.945
  Prefactor  = 0.000100015
  norm       = 1.1378
  Prefactor  = 4.68452
  Prefactor  = 9.6467
  Prefactor  = 26.8869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.806364
  Prefactor  = 1.15143
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.471     FROM HESSE     STATUS=OK           622 CALLS     4736 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7594        .13083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    131.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.8578        .15495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2520        .32052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.117        14.158        .74245E-04   -1.4628    
   6  norm          .10000E-03    9.1134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .84744        .14336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.669        27.035        .84084E-04   -1.4755    
   9  Prefactor     26.921        33.934        .77209E-04   -1.4670    
  10  norm          7.5176        7.6950        .14626E-03   -1.5160    
  11  Prefactor     6.0504        4.4151        .12827E-03   -1.5216    
  12  Prefactor     3.5401        10.291        .21483E-03   -1.5332    
  13  Prefactor     .10000E-03    6.5534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    122.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2086        .11734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.342        16.953        .10571E-03   -1.4950    
  17  Prefactor     .10000E-03    22.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2420        11.273        .13964E-03   -1.5134    
  20  Prefactor     .10000E-03    6.3408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0557        1.3957        .12885E-02   -1.5502    
  22  norm          51.945        54.389        .55652E-04   -1.4265    
  23  Prefactor     .10001E-03    26.186        .34546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.1378        .62635        .44074E-04   -1.5495    
  25  Prefactor     4.6845        2.1469        .77803E-04   -1.5275    
  26  Prefactor     9.6467        10.154        .12902E-03   -1.5087    
  27  Prefactor     26.887        16.338        .77275E-04   -1.4670    
  28  Prefactor     .10000E-03    5.9049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    16.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .80636        .27405        .35975E-03   -.99833    
  31  Prefactor     1.1514        .17937        .21292E-03   -.87839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92006e-10
Minuit parameter uncertainties:
  1  7.85547e-06
  2  0.000343565
  3  6.48382e-06
  4  4.69681e-05
  5  14.1597
  6  1.70687e-05
  7  1.55691e-06
  8  27.0494
  9  33.9579
  10  7.69603
  11  4.41538
  12  10.2963
  13  1.43625e-06
  14  0.0013907
  15  5.90007e-07
  16  16.9591
  17  9.16949e-05
  18  2.00685e-06
  19  11.2758
  20  2.31853e-06
  21  1.39574
  22  54.4413
  23  0.00123373
  24  0.626349
  25  2.14697
  26  10.1563
  27  16.3406
  28  2.43572e-06
  29  5.36257e-06
  30  0.274522
  31  0.179463
Done.

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

Extracting fit parameters...

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  9.169e-05  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  1.151e+00  1.795e-01  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  8.064e-01  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.074 -7.163
Photon Flux Upper Limit: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302388/likelihoodResults_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.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) = 6550.47154245
delta logL = -0.000212145214391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6550.47133022
delta logL = 8.07158357929e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9730       1.0000          .0000       10.000    
     3 'Normalizat'    .80635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1514       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6550.471     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6194.4        .90712E-02** at limit **
   2  Index         1.9868        8.9401        .50000       -.50158E-05
   3  Normalizat    .80636        .68023E-01    .81255E-01    .28622E-04
   4  Prefactor     1.1514        .47521E-01    .35895E-01    .75010E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98682
  Normalizat = 0.806364
  Prefactor  = 1.15143
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.471     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1917.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9868        7.9303        .50000       -.64680    
   3  Normalizat    .80636        .57682E-01    .35975E-03   -.99833    
   4  Prefactor     1.1514        .40391E-01    .21292E-03   -.87839    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1716e-09
Minuit parameter uncertainties:
  1  2.21133e-05
  2  37.4423
  3  0.0576866
  4  0.0403921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302388': 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) = 6550.4713302
delta logL = 1.02375452116e-07

Extracting fit parameters...

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.211e-05  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.987e+00  3.744e+01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  1.151e+00  4.039e-02  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  8.064e-01  5.769e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.074 -7.163

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/302388/cmap_HighResolution_594432001_594691201_4FGL_J1204.2-0709_daily_bin1370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-09-04 23:07:09.847014', job_id='302388', GAL2='1.15', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630822029.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1370' AND source_name='4FGL J1204.2-0709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:07:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 302388: <4FGL_J1204.2-0709_daily_bin1370> in cluster <slac> Done

Job <4FGL_J1204.2-0709_daily_bin1370> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 22:50:40 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:50: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 22:50:42 2021
Terminated at Sat Sep  4 23:07:10 2021
Results reported at Sat Sep  4 23:07:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.2-0709_daily_bin1370 181.074 -7.1627 594432001 594691201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.2-0709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   961.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             323.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

