/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 89 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 = 7391
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1469
RA = 181.203, Dec = 4.12
tmin = 620092801, tmax = 620352001
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='312062', job_status='RUN', time_executed='2021-09-04 23:22:32.265289', time_epoch_executed='1630822952.27' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312062

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312062/ft1_4FGL_J1204.8+0407_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312062/ft2_4FGL_J1204.8+0407_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312062/ft1_4FGL_J1204.8+0407_daily_bin1469.fits outfile=/scratch/kocevski/312062/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1469.fits ra=181.203 dec=4.12 rad=12.0 tmin=620092801.0 tmax=620352001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.43
user 3.19
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312062/ft1_filtered_4FGL_J1204.8+0407_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/312062/ft2_4FGL_J1204.8+0407_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/312062/ltcube_620092801_620352001_4FGL_J1204.8+0407_daily_bin1469.fits outfile=/scratch/kocevski/312062/expmap_620092801_620352001_4FGL_J1204.8+0407_daily_bin1469.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/312062/ltcube_620092801_620352001_4FGL_J1204.8+0407_daily_bin1469.fits
.....................!
real 191.91
user 186.10
sys 5.29

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/312062/ft1_filtered_4FGL_J1204.8+0407_daily_bin1469.fits scfile=/scratch/kocevski/312062/ft2_4FGL_J1204.8+0407_daily_bin1469.fits outfile=/scratch/kocevski/312062/cmap_620092801_620352001_4FGL_J1204.8+0407_daily_bin1469.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312062/ft1_filtered_4FGL_J1204.8+0407_daily_bin1469.fits scfile=/scratch/kocevski/312062/ft2_4FGL_J1204.8+0407_daily_bin1469.fits outfile=/scratch/kocevski/312062/cmap_HighResolution_620092801_620352001_4FGL_J1204.8+0407_daily_bin1469.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/312062/ft1_filtered_4FGL_J1204.8+0407_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/312062/ft2_4FGL_J1204.8+0407_daily_bin1469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312062/Model_4FGL_J1204.8+0407_daily_bin1469.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/312062/ft1_filtered_4FGL_J1204.8+0407_daily_bin1469.fits.....................!
real 50.74
user 49.37
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7794       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0284       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.280       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22761E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3113       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4779       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10553E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3075       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0057       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.260       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .26094E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5322       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0081       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3018       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91769       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=   5620.352     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3738 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7792        1.6221        .24305E-07    .11589E-04
   2  Prefactor     12.144        29.894       -.75427E-06   -.29345E-04
   3  Prefactor     .10000E-03    16.301        .25588E-05** at limit **
   4  Prefactor     .10000E-03    38.174        .86886E-06** at limit **
   5  Prefactor     .10000E-03    3.3572        .81742E-08** at limit **
   6  Prefactor     .10000E-03    14.279        .12753E-05** at limit **
   7  Prefactor     .10000E-03    3.0311        .91489E-08** at limit **
   8  Prefactor     4.0260        9.6057        .95369E-07   -.63976E-03
   9  Prefactor     .10000E-03    9.8624        .95114E-07** at limit **
  10  Prefactor     39.309        63.463        .94059E-05    .16354E-03
  11  Prefactor     .10000E-03    15.829       -.34291E-05** at limit **
  12  Prefactor     .10000E-03    10.514       -.37252E-05** at limit **
  13  Prefactor     .10001E-03    19.590       -.30581E-06** at limit **
  14  Prefactor     .10000E-03    10.565        .38607E-05** at limit **
  15  Prefactor     4.3015        10.664        .13163E-05   -.70056E-03
  16  norm          4.4770        3.6640       -.14147E-06   -.49721E-04
  17  norm          1.7827        3.2262        .69884E-07   -.21623E-03
  18  Prefactor     .10000E-03    11.997       -.51378E-06** at limit **
  19  norm          .10000E-03    35.477       -.96163E-06** at limit **
  20  Prefactor     .10000E-03    82.454        .20792E-07** at limit **
  21  norm          2.3075        .71301       -.20671E-07   -.10815E-02
  22  Prefactor     6.0036        9.7331        .72770E-06   -.45530E-03
  23  Prefactor     10.273        44.081       -.30821E-05   -.35031E-04
  24  Prefactor     .10042E-03    6.6219       -.31106E-06** at limit **
  25  norm          1.5323        1.3033       -.22630E-07   -.43063E-03
  26  Prefactor     .10000E-03    6.6020       -.24937E-07** at limit **
  27  Prefactor     .92404        46.664        .66533E-05   -.34644E-03
  28  Normalizat    1.3018        .21525       -.28092E-06   -.18355E-03
  29  Prefactor     .91760        .17740       -.39551E-06   -.18281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77923
  Prefactor  = 12.1436
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02598
  Prefactor  = 0.0001
  Prefactor  = 39.3085
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 4.3015
  norm       = 4.47704
  norm       = 1.78266
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30746
  Prefactor  = 6.0036
  Prefactor  = 10.2726
  Prefactor  = 0.000100424
  norm       = 1.53225
  Prefactor  = 0.0001
  Prefactor  = 0.924038
  Normalizat = 1.30185
  Prefactor  = 0.9176
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.352     FROM HESSE     STATUS=OK           569 CALLS     4307 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7792        1.6232        .88484E-04   -1.5441    
   2  Prefactor     12.144        29.922        .11501E-03   -1.5011    
   3  Prefactor     .10000E-03    16.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3599        .13414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0441        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0260        11.028        .10046E-02   -1.5307    
   9  Prefactor     .10000E-03    9.9072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.309        64.098        .63953E-04   -1.4453    
  11  Prefactor     .10000E-03    15.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    134.51        .62984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3015        13.926        .97007E-03   -1.5293    
  16  norm          4.4770        3.8612        .11056E-03   -1.5285    
  17  norm          1.7827        3.1922        .16913E-03   -1.5441    
  18  Prefactor     .10000E-03    12.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    35.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    82.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3075        .71163        .32404E-04   -1.5404    
  22  Prefactor     6.0036        9.9992        .81923E-03   -1.5218    
  23  Prefactor     10.273        44.094        .12509E-03   -1.5067    
  24  Prefactor     .10042E-03    11.668        .61033E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5323        1.3005        .75919E-04   -1.5460    
  26  Prefactor     .10000E-03    6.6769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .92404        52.956        .13338       -1.5516    
  28  Normalizat    1.3018        .25171        .26697E-03   -.83511    
  29  Prefactor     .91760        .20612        .25865E-03   -.95529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44199e-09
Minuit parameter uncertainties:
  1  1.62326
  2  29.9584
  3  0.000188433
  4  9.53369e-05
  5  4.46635e-06
  6  8.87676e-05
  7  1.05677e-06
  8  11.0331
  9  1.04933e-05
  10  64.2105
  11  0.000247346
  12  0.000220091
  13  0.00240536
  14  0.000228602
  15  13.9365
  16  3.86141
  17  3.19246
  18  3.22378e-05
  19  0.000102923
  20  7.19496e-06
  21  0.711633
  22  10.0019
  23  42.6187
  24  0.00444952
  25  1.30057
  26  6.16756e-06
  27  14.0028
  28  0.25195
  29  0.206292
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.201e-04  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.176e-01  2.063e-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.302e+00  2.520e-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: 6.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312062/likelihoodResults_620092801_620352001_4FGL_J1204.8+0407_daily_bin1469.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) = 5620.35239796
delta logL = -0.000447560990324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5620.35195063
delta logL = -2.24438736041e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5590       1.0000          .0000       10.000    
     3 'Normalizat'    1.3018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91760       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=   5620.352     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.315        .18142E-01** at limit **
   2  Index         1.8205        8.6716        .50000       -.51227E-07
   3  Normalizat    1.3019        .12581E-01    .26697E-03    .13547E-02
   4  Prefactor     .91760        .10500E-01    .25866E-03    .13851E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82054
  Normalizat = 1.30185
  Prefactor  = 0.917603
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.352     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    484.29        .28648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8205        5.1555        .50000       -.68916    
   3  Normalizat    1.3019        .32014E-01    .53394E-04   -.83511    
   4  Prefactor     .91760        .26720E-01    .51731E-04   -.95529    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32297e-09
Minuit parameter uncertainties:
  1  0.000499524
  2  1170.92
  3  0.0320147
  4  0.0267204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312062': 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) = 5620.35194893
delta logL = 1.47123864735e-06

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  4.995e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  1.821e+00  1.171e+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.176e-01  2.672e-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.302e+00  3.201e-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/312062/cmap_HighResolution_620092801_620352001_4FGL_J1204.8+0407_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-04 23:36:04.830129', job_id='312062', GAL2='0.92', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630823764.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1469' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 312062: <4FGL_J1204.8+0407_daily_bin1469> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1469 181.203 4.12 620092801 620352001 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 :                                   803.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

