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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1400
RA = 181.203, Dec = 4.12
tmin = 602208001, tmax = 602467201
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='311964', job_status='RUN', time_executed='2021-09-04 23:21:32.889964', time_epoch_executed='1630822892.89' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311964

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311964/ft1_4FGL_J1204.8+0407_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311964/ft2_4FGL_J1204.8+0407_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311964/ft1_4FGL_J1204.8+0407_daily_bin1400.fits outfile=/scratch/kocevski/311964/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1400.fits ra=181.203 dec=4.12 rad=12.0 tmin=602208001.0 tmax=602467201.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.25
user 4.94
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311964/ft1_filtered_4FGL_J1204.8+0407_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/311964/ft2_4FGL_J1204.8+0407_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/311964/ltcube_602208001_602467201_4FGL_J1204.8+0407_daily_bin1400.fits outfile=/scratch/kocevski/311964/expmap_602208001_602467201_4FGL_J1204.8+0407_daily_bin1400.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/311964/ltcube_602208001_602467201_4FGL_J1204.8+0407_daily_bin1400.fits
.....................!
real 190.21
user 185.73
sys 3.96

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/311964/ft1_filtered_4FGL_J1204.8+0407_daily_bin1400.fits scfile=/scratch/kocevski/311964/ft2_4FGL_J1204.8+0407_daily_bin1400.fits outfile=/scratch/kocevski/311964/cmap_602208001_602467201_4FGL_J1204.8+0407_daily_bin1400.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311964/ft1_filtered_4FGL_J1204.8+0407_daily_bin1400.fits scfile=/scratch/kocevski/311964/ft2_4FGL_J1204.8+0407_daily_bin1400.fits outfile=/scratch/kocevski/311964/cmap_HighResolution_602208001_602467201_4FGL_J1204.8+0407_daily_bin1400.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.345       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6769       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13657E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.798       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0396       1.0000         .10000E-03   10000.    
    17 'norm      '    .12319       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.6149       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8087       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.561       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6535       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.760       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76806       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2770       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=   5736.430     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     3909 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5516       -.26099E-06** at limit **
   2  Prefactor     21.622        28.949        .11701E-05    .12950E-03
   3  Prefactor     .10000E-03    17.565       -.28815E-06** at limit **
   4  Prefactor     .10000E-03    56.729       -.11854E-06** at limit **
   5  Prefactor     19.357        16.393       -.91010E-06   -.33273E-03
   6  Prefactor     .10000E-03    29.549        .10556E-06** at limit **
   7  Prefactor     3.6976        8.6834        .12136E-05    .61242E-04
   8  Prefactor     .10000E-03    13.040       -.29339E-05** at limit **
   9  Prefactor     24.047        17.587       -.21193E-06    .34707E-04
  10  Prefactor     38.615        97.622       -.12843E-06   -.41371E-04
  11  Prefactor     .10000E-03    23.758       -.85356E-07** at limit **
  12  Prefactor     .10097E-03    61.011        .46209E-05** at limit **
  13  Prefactor     .10000E-03    9.2261       -.19488E-06** at limit **
  14  Prefactor     .10000E-03    11.794       -.16487E-06** at limit **
  15  Prefactor     .10000E-03    33.760       -.14242E-05** at limit **
  16  norm          5.0381        3.2410       -.40335E-09    .13449E-03
  17  norm          .14207        21.719       -.11952E-04    .20000E-03
  18  Prefactor     .10000E-03    33.705       -.96582E-06** at limit **
  19  norm          8.5249        61.513        .97983E-05   -.22670E-05
  20  Prefactor     .10000E-03    87.698        .53815E-06** at limit **
  21  norm          1.8083        .70090        .35154E-06    .16304E-02
  22  Prefactor     .10000E-03    5.1161       -.17016E-06** at limit **
  23  Prefactor     45.549        32.652       -.39221E-06   -.19903E-04
  24  Prefactor     .10000E-03    7.1530       -.34930E-06** at limit **
  25  norm          1.6530        1.2016       -.17841E-07    .13747E-03
  26  Prefactor     .10000E-03    5.6171       -.18087E-06** at limit **
  27  Prefactor     12.737        30.089       -.22536E-06    .27672E-04
  28  Normalizat    .76853        .22333        .36654E-05    .19945E-03
  29  Prefactor     1.2769        .18390       -.59119E-06   -.30334E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.6225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3566
  Prefactor  = 0.0001
  Prefactor  = 3.69758
  Prefactor  = 0.000100001
  Prefactor  = 24.0467
  Prefactor  = 38.6146
  Prefactor  = 0.0001
  Prefactor  = 0.000100967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.0381
  norm       = 0.142074
  Prefactor  = 0.0001
  norm       = 8.52487
  Prefactor  = 0.0001
  norm       = 1.80826
  Prefactor  = 0.0001
  Prefactor  = 45.5486
  Prefactor  = 0.0001
  norm       = 1.653
  Prefactor  = 0.0001
  Prefactor  = 12.7373
  Normalizat = 0.76853
  Prefactor  = 1.27688
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.430     FROM HESSE     STATUS=OK           559 CALLS     4468 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6122        .18437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.622        29.025        .86042E-04   -1.4778    
   3  Prefactor     .10000E-03    17.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.357        16.489        .91063E-04   -1.4828    
   6  Prefactor     .10000E-03    29.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6976        8.6827        .21064E-03   -1.5323    
   8  Prefactor     .10000E-03    85.837        .45827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.047        17.606        .81675E-04   -1.4727    
  10  Prefactor     38.615        98.623        .64348E-04   -1.4464    
  11  Prefactor     .10000E-03    23.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10097E-03    54.568        .13173       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.2379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0381        3.2257        .10427E-03   -1.5259    
  17  norm          .14207        25.366        .17816E-02   -1.5633    
  18  Prefactor     .10000E-03    33.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.5249        65.955        .13657E-03   -1.5124    
  20  Prefactor     .10000E-03    87.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8083        .70026        .34433E-04   -1.5439    
  22  Prefactor     .10000E-03    5.1260        .16721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.549        32.710        .59399E-04   -1.4357    
  24  Prefactor     .10000E-03    7.1996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6530        1.1952        .68194E-04   -1.5451    
  26  Prefactor     .10000E-03    5.6475        .17535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.737        30.097        .11214E-03   -1.4994    
  28  Normalizat    .76853        .25786        .31790E-03   -1.0125    
  29  Prefactor     1.2769        .20813        .22344E-03   -.83997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96518e-09
Minuit parameter uncertainties:
  1  6.31353e-06
  2  29.0437
  3  4.19756e-05
  4  0.000170025
  5  16.4924
  6  2.50604e-06
  7  8.68561
  8  0.000445787
  9  17.6095
  10  99.0432
  11  2.63873e-05
  12  0.0145428
  13  2.22636e-05
  14  8.12862e-06
  15  0.000577611
  16  3.2258
  17  3.79709
  18  6.09463e-05
  19  47.4963
  20  0.000235186
  21  0.700259
  22  5.11005e-06
  23  32.7231
  24  5.48728e-05
  25  1.19519
  26  2.08143e-05
  27  30.1333
  28  0.258265
  29  0.208266
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.010e-04  1.454e-02  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:  1.277e+00  2.083e-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:  7.685e-01  2.583e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311964/likelihoodResults_602208001_602467201_4FGL_J1204.8+0407_daily_bin1400.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) = 5736.42999523
delta logL = -3.68522614735e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5736.42999522
delta logL = -3.6813207771e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5782       1.0000          .0000       10.000    
     3 'Normalizat'    .76852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2769       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.

 FCN=   5733.606     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      370 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57553E-02    .48427E-01    .67109E-03    .36409E-01
   2  Index         8.2605        2.6019        .11699        .22357E-03
   3  Normalizat    .56684        .69298E-01    .82646E-01    .29493E-03
   4  Prefactor     1.3969        .61250E-01    .48656E-01    .48156E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00575532
  Index      = 8.26045
  Normalizat = 0.566844
  Prefactor  = 1.39693
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.606     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      401 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57553E-02    .80226E-01    .29172E-05   -1.5693    
   2  Index         8.2605        7.3962        .50124E-02    .71034    
   3  Normalizat    .56684        .21425        .36599E-03   -1.0941    
   4  Prefactor     1.3969        .18602        .21507E-03   -.80469    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00521e-09
Minuit parameter uncertainties:
  1  0.0426006
  2  3.87308
  3  0.214561
  4  0.186111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311964': 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) = 5733.60552402
delta logL = 2.82446752073

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  5.755e-03  4.260e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  8.260e+00  3.873e+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:  1.397e+00  1.861e-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:  5.668e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.35
Ra Dec: 181.203 4.120
Photon Index (Free Index): 8.26 +/- 3.87
Photon Flux (Free Index): 1.34e-07 +/- 7.02e-08
Energy Flux (Free Index): 1.55e-05 +/- 8.53e-06

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/311964/cmap_HighResolution_602208001_602467201_4FGL_J1204.8+0407_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='2.82e+00', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-04 23:36:13.365131', photon_index_error2='3.87', photon_index2='8.26', ts='-0.00', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='8.53e-06', EG='0.77', time_epoch_completed='1630823773.37', return_code='0', job_id='311964', GAL2='1.40', EG2='0.57', return_code2='102', photon_flux_error2='7.02e-08', ts2='6.35', photon_index='2.58' WHERE bin_id='1400' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 311964: <4FGL_J1204.8+0407_daily_bin1400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1400 181.203 4.12 602208001 602467201 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 :                                   857.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

