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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1437
RA = 181.203, Dec = 4.12
tmin = 611798401, tmax = 612057601
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='312016', job_status='RUN', time_executed='2021-09-04 23:21:05.446913', time_epoch_executed='1630822865.45' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312016/ft1_4FGL_J1204.8+0407_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312016/ft2_4FGL_J1204.8+0407_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312016/ft1_4FGL_J1204.8+0407_daily_bin1437.fits outfile=/scratch/kocevski/312016/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1437.fits ra=181.203 dec=4.12 rad=12.0 tmin=611798401.0 tmax=612057601.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.49
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312016/ft1_filtered_4FGL_J1204.8+0407_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/312016/ft2_4FGL_J1204.8+0407_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/312016/ltcube_611798401_612057601_4FGL_J1204.8+0407_daily_bin1437.fits outfile=/scratch/kocevski/312016/expmap_611798401_612057601_4FGL_J1204.8+0407_daily_bin1437.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/312016/ltcube_611798401_612057601_4FGL_J1204.8+0407_daily_bin1437.fits
.....................!
real 190.87
user 185.75
sys 4.76

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/312016/ft1_filtered_4FGL_J1204.8+0407_daily_bin1437.fits scfile=/scratch/kocevski/312016/ft2_4FGL_J1204.8+0407_daily_bin1437.fits outfile=/scratch/kocevski/312016/cmap_611798401_612057601_4FGL_J1204.8+0407_daily_bin1437.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312016/ft1_filtered_4FGL_J1204.8+0407_daily_bin1437.fits scfile=/scratch/kocevski/312016/ft2_4FGL_J1204.8+0407_daily_bin1437.fits outfile=/scratch/kocevski/312016/cmap_HighResolution_611798401_612057601_4FGL_J1204.8+0407_daily_bin1437.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.76
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3365       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3436       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8638       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9166       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0616       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.993       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.901       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.4773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6670       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .60932       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.252       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4646       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1219       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86698       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=   5222.366     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3709 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3361        2.0399       -.76556E-07    .11242E-04
   2  Prefactor     .10000E-03    16.889       -.24891E-05** at limit **
   3  Prefactor     .10000E-03    8.9160        .45524E-07** at limit **
   4  Prefactor     .80568        131.57       -.49628E-07    .17932E-05
   5  Prefactor     8.8742        14.371       -.22660E-05   -.31660E-04
   6  Prefactor     .10000E-03    29.165       -.29084E-05** at limit **
   7  Prefactor     3.8639        6.0349       -.28339E-06   -.17084E-03
   8  Prefactor     4.9179        11.979        .62207E-05   -.21673E-04
   9  Prefactor     4.0589        20.833       -.12852E-05   -.53079E-04
  10  Prefactor     20.937        105.85       -.35068E-04   -.62117E-05
  11  Prefactor     .10000E-03    15.268        .32021E-05** at limit **
  12  Prefactor     .10000E-03    13.974       -.74727E-06** at limit **
  13  Prefactor     39.683        27.205       -.12426E-05    .15817E-04
  14  Prefactor     .10000E-03    16.807       -.33508E-05** at limit **
  15  Prefactor     18.898        14.707        .44285E-06    .17260E-04
  16  norm          .10000E-03    1.5785       -.39759E-07** at limit **
  17  norm          8.4763        4.6841       -.68427E-07   -.12255E-03
  18  Prefactor     9.6664        20.892       -.16685E-05   -.17745E-04
  19  norm          .10000E-03    18.434        .41958E-05** at limit **
  20  Prefactor     .10000E-03    62.230        .15748E-04** at limit **
  21  norm          .60926        .49973       -.49856E-07   -.29224E-03
  22  Prefactor     24.250        13.357       -.20889E-06   -.32080E-03
  23  Prefactor     .10000E-03    46.310        .25904E-04** at limit **
  24  Prefactor     .10000E-03    4.1322       -.15270E-06** at limit **
  25  norm          2.4644        1.5477       -.20661E-07    .18921E-03
  26  Prefactor     .10000E-03    4.3686       -.10745E-06** at limit **
  27  Prefactor     .10000E-03    51.492       -.39845E-04** at limit **
  28  Normalizat    1.1222        .21861        .18758E-05   -.25089E-04
  29  Prefactor     .86681        .17031       -.75572E-07    .12247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.805683
  Prefactor  = 8.87423
  Prefactor  = 0.0001
  Prefactor  = 3.86389
  Prefactor  = 4.91794
  Prefactor  = 4.0589
  Prefactor  = 20.9375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.6827
  Prefactor  = 0.0001
  Prefactor  = 18.8981
  norm       = 0.0001
  norm       = 8.47627
  Prefactor  = 9.66639
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.609262
  Prefactor  = 24.2502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12222
  Prefactor  = 0.866814
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.366     FROM HESSE     STATUS=OK           561 CALLS     4270 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3361        2.0479        .92939E-04   -1.5402    
   2  Prefactor     .10000E-03    16.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80568        113.81        .20840       -1.5528    
   5  Prefactor     8.8742        14.324        .13482E-03   -1.5112    
   6  Prefactor     .10000E-03    29.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8639        6.0256        .20529E-03   -1.5315    
   8  Prefactor     4.9179        11.903        .18139E-03   -1.5264    
   9  Prefactor     4.0589        20.802        .20007E-03   -1.5305    
  10  Prefactor     20.937        104.73        .87418E-04   -1.4792    
  11  Prefactor     .10000E-03    15.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.683        27.195        .63627E-04   -1.4447    
  14  Prefactor     .10000E-03    16.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.898        14.657        .92125E-04   -1.4838    
  16  norm          .10000E-03    1.5892        .88385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.4763        4.6661        .10295E-03   -1.5126    
  18  Prefactor     9.6664        20.890        .12889E-03   -1.5086    
  19  norm          .10000E-03    18.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    62.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .60926        .48070        .41618E-04   -1.5552    
  22  Prefactor     24.250        13.382        .81340E-04   -1.4723    
  23  Prefactor     .10000E-03    46.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1575        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4644        1.5464        .68098E-04   -1.5394    
  26  Prefactor     .10000E-03    4.3835        .14751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    51.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1222        .25694        .26190E-03   -.89041    
  29  Prefactor     .86681        .19829        .24768E-03   -.97311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02852e-10
Minuit parameter uncertainties:
  1  2.04794
  2  7.02016e-06
  3  7.72221e-07
  4  19.1875
  5  14.3291
  6  4.40303e-06
  7  6.02654
  8  11.9089
  9  18.3873
  10  93.9181
  11  1.06499e-06
  12  3.77317e-06
  13  27.2036
  14  4.89043e-06
  15  14.6594
  16  3.55782e-06
  17  4.66627
  18  20.9057
  19  4.11756e-07
  20  9.66461e-07
  21  0.480701
  22  13.3841
  23  9.38862e-05
  24  3.00412e-06
  25  1.54646
  26  1.50956e-06
  27  0.0001019
  28  0.257226
  29  0.19845
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.773e-06  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:  8.668e-01  1.984e-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.122e+00  2.572e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312016/likelihoodResults_611798401_612057601_4FGL_J1204.8+0407_daily_bin1437.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) = 5222.36658418
delta logL = -0.000340459590007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5222.36624384
delta logL = -1.16357114166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5678       1.0000          .0000       10.000    
     3 'Normalizat'    1.1223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86672       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=   5222.366     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      243 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    569.78        .18142E-01** at limit **
   2  Index         2.0739        8.3821        .93215E-01    .92082E-07
   3  Normalizat    1.1222        .32829E-01    .26190E-03    .24439E-04
   4  Prefactor     .86681        .27810E-01    .24768E-03    .28505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.07389
  Normalizat = 1.12223
  Prefactor  = 0.866812
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.366     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.192        .28083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0739        5.7842        .37286E-02   -.62515    
   3  Normalizat    1.1222        .23031        .10476E-04   -.89041    
   4  Prefactor     .86681        .19512        .99070E-05   -.97311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70797e-10
Minuit parameter uncertainties:
  1  0.000240441
  2  515.159
  3  0.230513
  4  0.19528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312016': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5222.3662433
delta logL = 4.19549905928e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.404e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.074e+00  5.152e+02  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:  8.668e-01  1.953e-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.122e+00  2.305e-01  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/312016/cmap_HighResolution_611798401_612057601_4FGL_J1204.8+0407_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-04 23:33:50.075287', job_id='312016', GAL2='0.87', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630823630.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1437' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:33:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 312016: <4FGL_J1204.8+0407_daily_bin1437> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1437 181.203 4.12 611798401 612057601 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 :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             369.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            787 sec.

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

