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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1192
RA = 181.203, Dec = 4.12
tmin = 548294401, tmax = 548553601
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='310614', job_status='RUN', time_executed='2021-09-04 23:18:45.275357', time_epoch_executed='1630822725.28' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310614

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310614/ft1_4FGL_J1204.8+0407_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310614/ft1_4FGL_J1204.8+0407_daily_bin1192.fits outfile=/scratch/kocevski/310614/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1192.fits ra=181.203 dec=4.12 rad=12.0 tmin=548294401.0 tmax=548553601.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.86
user 3.63
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.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/310614/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/310614/ltcube_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.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/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits
.....................!
real 11.66
user 11.34
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/310614/ltcube_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.fits outfile=/scratch/kocevski/310614/expmap_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.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/310614/ltcube_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.fits
.....................!
real 189.34
user 184.94
sys 3.84

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/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.fits scfile=/scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits outfile=/scratch/kocevski/310614/cmap_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.fits scfile=/scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits outfile=/scratch/kocevski/310614/cmap_HighResolution_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.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/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/310614/Model_4FGL_J1204.8+0407_daily_bin1192.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/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.fits....................!
real 17.44
user 15.88
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.fits', '/scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits', expMap='/scratch/kocevski/310614/expmap_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.fits', expCube='/scratch/kocevski/310614/ltcube_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/310614/Model_4FGL_J1204.8+0407_daily_bin1192.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/310614/ft1_filtered_4FGL_J1204.8+0407_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/310614/ft2_4FGL_J1204.8+0407_daily_bin1192.fits
Exposure map: /scratch/kocevski/310614/expmap_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.fits
Exposure cube: /scratch/kocevski/310614/ltcube_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/310614/Model_4FGL_J1204.8+0407_daily_bin1192.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 505.789183089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 504.205409285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66906E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81598E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11759       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4765       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .70827E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89770E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24014E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36884E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .35345E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0694       1.0000         .10000E-03   10000.    
    17 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58027E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .15192E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0531       1.0000         .10000E-03   10000.    
    21 'norm      '    .85480       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9173       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8750       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23896E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18018E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54902       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0181       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   504.1940     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      584 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8700        .90712E-02** at limit **
   2  Prefactor     .10000E-03    76.492        .93522E-02** at limit **
   3  Prefactor     .10000E-03    33.839        .92214E-02** at limit **
   4  Prefactor     .12697E-03    861.33        .54491E-02** at limit **
   5  Prefactor     .10139E-03    452.24        .95948E-02** at limit **
   6  Prefactor     .10000E-03    281.71        .11613E-01** at limit **
   7  Prefactor     .10000E-03    15.429        .90712E-02** at limit **
   8  Prefactor     3.0765        1.0139         .0000         .0000    
   9  Prefactor     34.055        1.0033        .17194E-04    .15867E-01
  10  Prefactor     3.5259        .64623       -.18554E-02    .96101E-02
  11  Prefactor     .10000E-03    .27491        .52553E-04** at limit **
  12  Prefactor     .10000E-03    .22384       -.20134E-05** at limit **
  13  Prefactor     .10000E-03    .20896       -.36839E-04** at limit **
  14  Prefactor     .10020E-03    .21187       -.47038E-04** at limit **
  15  Prefactor     .10001E-03    .21152        .11169E-03** at limit **
  16  norm          2.0738        1.0337       -.71225E-04   -.13067E-04
  17  norm          .10000E-03    .20571        .38659E-05** at limit **
  18  Prefactor     .10001E-03    .21665        .75256E-05** at limit **
  19  norm          .10035E-03    .20697       -.13961E-03** at limit **
  20  Prefactor     .10024E-03    .84234E-01   -.37538E-03** at limit **
  21  norm          .85639        1.1698       -.15937E-05    .23364E-04
  22  Prefactor     .10092E-03    .14076        .22959E-03** at limit **
  23  Prefactor     .74811E-01    .11322       -.45513E-02   -.37870E-02
  24  Prefactor     .10000E-03    .20571        .11017E-04** at limit **
  25  norm          .10000E-03    .20571        .78565E-07** at limit **
  26  Prefactor     .10000E-03    .20571        .77070E-05** at limit **
  27  Prefactor     .10000E-03    .20761        .47879E-04** at limit **
  28  Normalizat    .54749        .88268        .12798E-03   -.45654E-05
  29  Prefactor     1.0190        1.2427       -.36309E-04   -.15983E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000126966
  Prefactor  = 0.000101392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07652
  Prefactor  = 34.0552
  Prefactor  = 3.52586
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001002
  Prefactor  = 0.000100011
  norm       = 2.07379
  norm       = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.000100355
  Prefactor  = 0.000100242
  norm       = 0.856385
  Prefactor  = 0.000100918
  Prefactor  = 0.0748114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.547488
  Prefactor  = 1.01897
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   504.1940     FROM HESSE     STATUS=FAILED        23 CALLS      607 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    76.492        .93522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    33.839        .92214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12697E-03    861.33        .54491E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10139E-03    452.24        .95948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    281.71        .11613E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     553.35        550.19         .0000       -1.5357    
   9  Prefactor     34.055        1.0033        .17194E-04   -1.4540    
  10  Prefactor     3.5259        .64623       -.18554E-02   -1.5332    
  11  Prefactor     .10000E-03    .27491        .52553E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .22384       -.20134E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20896       -.36839E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10020E-03    .21187       -.47038E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    .21152        .11169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0738        1.0337       -.71225E-04   -1.5420    
  17  norm          .10000E-03    .20571        .38659E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    .21665        .75256E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10035E-03    .20697       -.13961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10024E-03    .84234E-01   -.37538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .85639        1.1698       -.15937E-05   -1.5523    
  22  Prefactor     .10092E-03    .14076        .22959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .74811E-01    .11322       -.45513E-02   -1.5763    
  24  Prefactor     .10000E-03    .20571        .11017E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20571        .78565E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .20571        .77070E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .20761        .47879E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .54749        .88268        .12798E-03   -1.1026    
  29  Prefactor     1.0190        1.2427       -.36309E-04   -.92100    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.73051e-09
Minuit parameter uncertainties:
  1  1.24496e-06
  2  0.000278622
  3  5.89863e-06
  4  0.309358
  5  0.0505746
  6  0.000656139
  7  3.19064e-06
  8  1.01386
  9  1.00331
  10  0.64623
  11  9.76114e-06
  12  2.14352e-05
  13  9.28792e-06
  14  0.00041166
  15  9.49927e-05
  16  1.03374
  17  2.17538e-07
  18  0.000104042
  19  0.000541743
  20  0.000285697
  21  1.16984
  22  0.000718906
  23  0.113217
  24  1.00602e-07
  25  1.74024e-07
  26  4.90495e-07
  27  6.32282e-06
  28  0.906953
  29  1.28061
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 504.193974757

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.144e-05  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.019e+00  1.281e+00  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.475e-01  9.070e-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.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310614/likelihoodResults_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.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) = 504.193987639
delta logL = -1.28819322072e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 504.193978832
delta logL = -4.0749771415e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10359E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5666       1.0000          .0000       10.000    
     3 'Normalizat'    .54733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0191       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=   504.1940     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      243 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10572E-03    259.57        .20739E-01** at limit **
   2  Index         2.3942        6.0521        .50000        .98176E-06
   3  Normalizat    .54749        .25948E-01    .39605E-03    .15465E-05
   4  Prefactor     1.0190        .18039E-01    .20462E-03    .14376E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105724
  Index      = 2.39424
  Normalizat = 0.547487
  Prefactor  = 1.01897
 **********
 **   18 **HESSE 
 **********

 FCN=   504.1940     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10572E-03    1918.5        .24853E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3942        5.8879        .50000       -.54820    
   3  Normalizat    .54749        .73766E-01    .15842E-04   -1.1026    
   4  Prefactor     1.0190        .51286E-01    .81850E-05   -.92100    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.72663e-09
Minuit parameter uncertainties:
  1  0.216941
  2  3300.14
  3  0.0737794
  4  0.0512887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310614': 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) = 504.193974731
delta logL = 2.53786538451e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.057e-04  2.169e-01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.394e+00  3.300e+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:  1.019e+00  5.129e-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:  5.475e-01  7.378e-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/310614/cmap_HighResolution_548294401_548553601_4FGL_J1204.8+0407_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-02', job_status='DONE', photon_flux_upper_limit='7.73e-07', time_completed='2021-09-04 23:24:22.462318', job_id='310614', GAL2='1.02', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1630823062.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.02', dlogl='2.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1192' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:24:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 310614: <4FGL_J1204.8+0407_daily_bin1192> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1192> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:16:23 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:16:24 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:16:24 2021
Terminated at Sat Sep  4 23:24:23 2021
Results reported at Sat Sep  4 23:24:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1192 181.203 4.12 548294401 548553601 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 :                                   331.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   478 sec.
    Turnaround time :                            480 sec.

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

