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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1061
RA = 181.203, Dec = 4.12
tmin = 514339201, tmax = 514598401
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='310314', job_status='RUN', time_executed='2021-09-04 23:16:34.417866', time_epoch_executed='1630822594.42' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310314

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310314/ft1_4FGL_J1204.8+0407_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310314/ft2_4FGL_J1204.8+0407_daily_bin1061.fits


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

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

Done.
real 4.19
user 3.87
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310314/ft1_filtered_4FGL_J1204.8+0407_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/310314/ft2_4FGL_J1204.8+0407_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/310314/ltcube_514339201_514598401_4FGL_J1204.8+0407_daily_bin1061.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/310314/ft2_4FGL_J1204.8+0407_daily_bin1061.fits
.....................!
real 11.94
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310314/ft1_filtered_4FGL_J1204.8+0407_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/310314/ft2_4FGL_J1204.8+0407_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/310314/ltcube_514339201_514598401_4FGL_J1204.8+0407_daily_bin1061.fits outfile=/scratch/kocevski/310314/expmap_514339201_514598401_4FGL_J1204.8+0407_daily_bin1061.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/310314/ltcube_514339201_514598401_4FGL_J1204.8+0407_daily_bin1061.fits
.....................!
real 190.35
user 185.04
sys 4.71

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/310314/ft1_filtered_4FGL_J1204.8+0407_daily_bin1061.fits scfile=/scratch/kocevski/310314/ft2_4FGL_J1204.8+0407_daily_bin1061.fits outfile=/scratch/kocevski/310314/cmap_514339201_514598401_4FGL_J1204.8+0407_daily_bin1061.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310314/ft1_filtered_4FGL_J1204.8+0407_daily_bin1061.fits scfile=/scratch/kocevski/310314/ft2_4FGL_J1204.8+0407_daily_bin1061.fits outfile=/scratch/kocevski/310314/cmap_HighResolution_514339201_514598401_4FGL_J1204.8+0407_daily_bin1061.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64305       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8567       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.942       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66401E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0441       1.0000         .10000E-03   10000.    
    16 'norm      '    8.0456       1.0000         .10000E-03   10000.    
    17 'norm      '    .15843E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    94.838       1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.300       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3163       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4071       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2660       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.935       1.0000         .10000E-03   10000.    
    25 'norm      '    .26446       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.542       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5360       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71217       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=   6718.717     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3777 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64251        1.8335       -.62655E-06   -.15010E-02
   2  Prefactor     .10000E-03    55.689       -.20441E-05** at limit **
   3  Prefactor     .10000E-03    13.332       -.10935E-05** at limit **
   4  Prefactor     .10000E-03    111.25        .37410E-05** at limit **
   5  Prefactor     3.8567        4.5441        .13149E-06    .21727E-04
   6  Prefactor     .10000E-03    17.731       -.85877E-05** at limit **
   7  Prefactor     .10000E-03    5.1077        .90574E-07** at limit **
   8  Prefactor     .10000E-03    20.092        .10065E-04** at limit **
   9  Prefactor     18.950        15.928       -.13407E-06   -.60112E-04
  10  Prefactor     .10000E-03    30.387        .55930E-05** at limit **
  11  Prefactor     .10000E-03    13.943        .53379E-05** at limit **
  12  Prefactor     .10000E-03    13.222       -.40313E-05** at limit **
  13  Prefactor     .10035E-03    24.300        .11190E-05** at limit **
  14  Prefactor     .10000E-03    22.766       -.16041E-04** at limit **
  15  Prefactor     7.0581        12.718       -.68898E-06   -.14252E-03
  16  norm          8.0469        3.5052       -.11997E-06   -.25366E-03
  17  norm          .10000E-03    1.8738        .30565E-06** at limit **
  18  Prefactor     .10000E-03    20.559        .85353E-05** at limit **
  19  norm          94.874        50.047       -.17184E-05   -.61522E-04
  20  Prefactor     67.321        152.82        .19566E-04   -.88593E-05
  21  norm          1.3167        .63388        .11367E-07   -.11574E-02
  22  Prefactor     3.4068        9.1533       -.49084E-06   -.18677E-03
  23  Prefactor     7.2524        65.461        .85216E-06   -.12541E-04
  24  Prefactor     11.934        8.9743       -.12006E-07   -.49373E-04
  25  norm          .26426        .69246       -.33300E-06   -.27877E-02
  26  Prefactor     15.538        11.721       -.11713E-06   -.36829E-04
  27  Prefactor     .10000E-03    12.657        .12637E-05** at limit **
  28  Normalizat    1.5363        .20729       -.10705E-05   -.14385E-03
  29  Prefactor     .71204        .16201       -.20036E-06   -.16962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.642512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100351
  Prefactor  = 0.0001
  Prefactor  = 7.05807
  norm       = 8.04688
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 94.8736
  Prefactor  = 67.3208
  norm       = 1.31666
  Prefactor  = 3.40683
  Prefactor  = 7.25243
  Prefactor  = 11.9336
  norm       = 0.264263
  Prefactor  = 15.5383
  Prefactor  = 0.0001
  Normalizat = 1.53635
  Prefactor  = 0.712044
 **********
 **   18 **HESSE 
 **********

 FCN=   6718.717     FROM HESSE     STATUS=OK           561 CALLS     4338 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64251        1.8352        .18092E-03   -1.5548    
   2  Prefactor     .10000E-03    56.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    111.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8567        4.5432        .18495E-03   -1.5315    
   6  Prefactor     .10000E-03    17.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1535        .18087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.950        15.950        .92026E-04   -1.4837    
  10  Prefactor     .10000E-03    30.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10035E-03    28.837        .10426       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0581        12.699        .15115E-03   -1.5177    
  16  norm          8.0469        3.5059        .89106E-04   -1.5141    
  17  norm          .10000E-03    7.2465        .19832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          94.874        47.825        .20635E-03   -1.3757    
  20  Prefactor     67.321        151.57        .48925E-04   -1.4065    
  21  norm          1.3167        .61804        .40561E-04   -1.5478    
  22  Prefactor     3.4068        9.0528        .21917E-03   -1.5339    
  23  Prefactor     7.2524        64.566        .14880E-03   -1.5169    
  24  Prefactor     11.934        8.9675        .11596E-03   -1.5017    
  25  norm          .26426        .58480        .10846E-02   -1.5605    
  26  Prefactor     15.538        11.715        .10159E-03   -1.4919    
  27  Prefactor     .10000E-03    12.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5363        .24631        .25372E-03   -.76762    
  29  Prefactor     .71204        .19184        .28621E-03   -1.0306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16154e-09
Minuit parameter uncertainties:
  1  1.83538
  2  0.000168269
  3  1.26462e-05
  4  6.94501e-05
  5  4.54363
  6  9.39116e-06
  7  9.85964e-06
  8  2.13659e-05
  9  15.9534
  10  4.6957e-06
  11  4.85861e-06
  12  1.05607e-05
  13  0.00636801
  14  1.23032e-05
  15  12.7035
  16  3.50598
  17  6.93355e-05
  18  7.58174e-05
  19  47.8441
  20  152.456
  21  0.618041
  22  9.05648
  23  43.3409
  24  8.96851
  25  0.584814
  26  11.7164
  27  6.27683e-06
  28  0.246499
  29  0.192023
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.056e-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:  7.120e-01  1.920e-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.536e+00  2.465e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310314/likelihoodResults_514339201_514598401_4FGL_J1204.8+0407_daily_bin1061.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) = 6718.71752414
delta logL = -0.00035996745919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6718.71716415
delta logL = 1.71376086655e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5662       1.0000          .0000       10.000    
     3 'Normalizat'    1.5364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71203       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=   6718.717     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10134E-03    239.86        .18142E-02** at limit **
   2  Index         2.4957        8.5280        .50000        .62391E-05
   3  Normalizat    1.5363        .21768E-01    .25372E-03   -.35148E-03
   4  Prefactor     .71204        .17550E-01    .28621E-03   -.33290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101336
  Index      = 2.49571
  Normalizat = 1.53635
  Prefactor  = 0.712043
 **********
 **   18 **HESSE 
 **********

 FCN=   6718.717     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10134E-03    947.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4957        7.0049        .50000       -.52459    
   3  Normalizat    1.5363        .46939E-01    .50744E-04   -.76762    
   4  Prefactor     .71204        .37842E-01    .11449E-04   -1.0306    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91929e-08
Minuit parameter uncertainties:
  1  0.0723296
  2  1791.04
  3  0.0469402
  4  0.0378433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310314': 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) = 6718.71716408
delta logL = 8.63401510287e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.013e-04  7.233e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.496e+00  1.791e+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:  7.120e-01  3.784e-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.536e+00  4.694e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/310314/cmap_HighResolution_514339201_514598401_4FGL_J1204.8+0407_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-04 23:31:54.224277', job_id='310314', GAL2='0.71', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1630823514.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='8.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1061' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 310314: <4FGL_J1204.8+0407_daily_bin1061> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1061 181.203 4.12 514339201 514598401 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 :                                   908.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

