/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 25 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 = 7446
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1204.8+0407_daily_bin3
RA = 181.203, Dec = 4.12
tmin = 240105601, tmax = 240364801
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='303885', job_status='RUN', time_executed='2021-09-04 22:55:56.340507', time_epoch_executed='1630821356.34' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303885/ft1_4FGL_J1204.8+0407_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303885/ft2_4FGL_J1204.8+0407_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303885/ft1_4FGL_J1204.8+0407_daily_bin3.fits outfile=/scratch/kocevski/303885/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin3.fits ra=181.203 dec=4.12 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.21
user 0.99
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303885/ft1_filtered_4FGL_J1204.8+0407_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/303885/ft2_4FGL_J1204.8+0407_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/303885/ltcube_240105601_240364801_4FGL_J1204.8+0407_daily_bin3.fits outfile=/scratch/kocevski/303885/expmap_240105601_240364801_4FGL_J1204.8+0407_daily_bin3.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/303885/ltcube_240105601_240364801_4FGL_J1204.8+0407_daily_bin3.fits
.....................!
real 149.05
user 144.55
sys 4.25

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/303885/ft1_filtered_4FGL_J1204.8+0407_daily_bin3.fits scfile=/scratch/kocevski/303885/ft2_4FGL_J1204.8+0407_daily_bin3.fits outfile=/scratch/kocevski/303885/cmap_240105601_240364801_4FGL_J1204.8+0407_daily_bin3.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.57
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303885/ft1_filtered_4FGL_J1204.8+0407_daily_bin3.fits scfile=/scratch/kocevski/303885/ft2_4FGL_J1204.8+0407_daily_bin3.fits outfile=/scratch/kocevski/303885/cmap_HighResolution_240105601_240364801_4FGL_J1204.8+0407_daily_bin3.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.49
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7832       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.828       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.129       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9748       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.443       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1548       1.0000         .10000E-03   10000.    
    17 'norm      '    11.980       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    133.80       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6411       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.007       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.872       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5093       1.0000         .10000E-03   10000.    
    25 'norm      '    2.4205       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .21986E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77244       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0998       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=   5963.218     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3630 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7831        1.6355       -.49473E-07   -.14418E-04
   2  Prefactor     36.827        29.806       -.43793E-06   -.72776E-05
   3  Prefactor     23.766        22.812       -.33939E-06   -.11297E-04
   4  Prefactor     .10000E-03    36.291       -.27802E-05** at limit **
   5  Prefactor     .10000E-03    3.6046       -.10875E-05** at limit **
   6  Prefactor     31.136        40.392        .92707E-06    .26020E-04
   7  Prefactor     .10000E-03    4.6589        .56418E-07** at limit **
   8  Prefactor     3.9694        24.555       -.14263E-04   -.20939E-03
   9  Prefactor     .10000E-03    11.571        .13259E-05** at limit **
  10  Prefactor     4.9615        490.86       -.57899E-06   -.26968E-04
  11  Prefactor     .10000E-03    14.986       -.11564E-05** at limit **
  12  Prefactor     .10000E-03    11.550        .91483E-06** at limit **
  13  Prefactor     11.439        20.293       -.74081E-06   -.25715E-04
  14  Prefactor     .10000E-03    14.650       -.13252E-05** at limit **
  15  Prefactor     .10000E-03    5.2182        .46864E-07** at limit **
  16  norm          3.1544        2.1600       -.10677E-07   -.89256E-04
  17  norm          11.979        4.7489       -.90731E-07   -.87261E-04
  18  Prefactor     .10000E-03    21.987        .14669E-05** at limit **
  19  norm          .10000E-03    31.705        .88376E-06** at limit **
  20  Prefactor     133.80        120.65        .63834E-06    .98137E-05
  21  norm          3.6409        .79602       -.31310E-07   -.10051E-02
  22  Prefactor     26.009        15.242        .39308E-06    .68856E-05
  23  Prefactor     21.855        40.326       -.29664E-05   -.56310E-04
  24  Prefactor     8.5063        10.429       -.12337E-06   -.38630E-03
  25  norm          2.4205        1.4537       -.34538E-07   -.98843E-04
  26  Prefactor     .10031E-03    7.8589        .32371E-05** at limit **
  27  Prefactor     .10000E-03    8.5741       -.33461E-06** at limit **
  28  Normalizat    .77258        .21523        .36482E-05   -.24506E-03
  29  Prefactor     1.0998        .17600       -.15414E-05   -.18546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7831
  Prefactor  = 36.8266
  Prefactor  = 23.766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1362
  Prefactor  = 0.0001
  Prefactor  = 3.96937
  Prefactor  = 0.0001
  Prefactor  = 4.96145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.1544
  norm       = 11.979
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 133.804
  norm       = 3.64092
  Prefactor  = 26.009
  Prefactor  = 21.8551
  Prefactor  = 8.50632
  norm       = 2.42048
  Prefactor  = 0.000100306
  Prefactor  = 0.0001
  Normalizat = 0.77258
  Prefactor  = 1.09977
 **********
 **   18 **HESSE 
 **********

 FCN=   5963.218     FROM HESSE     STATUS=OK           559 CALLS     4189 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7831        1.6403        .91424E-04   -1.5441    
   2  Prefactor     36.827        29.809        .66041E-04   -1.4494    
   3  Prefactor     23.766        22.811        .82164E-04   -1.4733    
   4  Prefactor     .10000E-03    36.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6012        .14295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.136        40.415        .71814E-04   -1.4591    
   7  Prefactor     .10000E-03    4.7105        .16273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9694        25.671        .20231E-03   -1.5309    
   9  Prefactor     .10000E-03    11.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9615        518.97        .17683E-02   -1.5262    
  11  Prefactor     .10000E-03    15.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.439        20.288        .11843E-03   -1.5031    
  14  Prefactor     .10000E-03    14.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2372        .17217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1544        2.1566        .90483E-04   -1.5353    
  17  norm          11.979        4.7651        .95877E-04   -1.5016    
  18  Prefactor     .10000E-03    22.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    31.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     133.80        120.66        .17408E-03   -1.3389    
  21  norm          3.6409        .79778        .29149E-04   -1.5326    
  22  Prefactor     26.009        15.240        .78553E-04   -1.4688    
  23  Prefactor     21.855        40.352        .85645E-04   -1.4773    
  24  Prefactor     8.5063        10.247        .13742E-03   -1.5125    
  25  norm          2.4205        1.4524        .69313E-04   -1.5397    
  26  Prefactor     .10031E-03    29.706        .38076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.5772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77258        .24264        .32005E-03   -1.0109    
  29  Prefactor     1.0998        .20002        .23319E-03   -.89474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06203e-08
Minuit parameter uncertainties:
  1  1.64031
  2  29.8205
  3  22.8191
  4  0.000254791
  5  6.85473e-07
  6  40.4508
  7  4.19782e-06
  8  20.2012
  9  2.19633e-05
  10  102.41
  11  8.42309e-05
  12  4.48693e-05
  13  20.2999
  14  8.04114e-05
  15  2.39446e-06
  16  2.1567
  17  4.76525
  18  9.69583e-05
  19  8.1106e-05
  20  120.886
  21  0.797787
  22  15.2419
  23  40.4028
  24  10.2496
  25  1.45244
  26  0.00603086
  27  1.91492e-05
  28  0.24298
  29  0.200157
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  4.487e-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.100e+00  2.002e-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.726e-01  2.430e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/303885/likelihoodResults_240105601_240364801_4FGL_J1204.8+0407_daily_bin3.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) = 5963.21839479
delta logL = -0.000410552829635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5963.21798421
delta logL = 3.17568265018e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5627       1.0000          .0000       10.000    
     3 'Normalizat'    .77258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0998       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=   5963.218     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      256 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.842        .18142E-01** at limit **
   2  Index         2.0018        7.6042        .50000        .74897E-07
   3  Normalizat    .77258        .11793E-01    .32005E-03   -.60636E-04
   4  Prefactor     1.0998        .10153E-01    .23319E-03    .23451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00184
  Normalizat = 0.772581
  Prefactor  = 1.09977
 **********
 **   18 **HESSE 
 **********

 FCN=   5963.218     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    533.60        .28515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0018        5.4606        .50000       -.64304    
   3  Normalizat    .77258        .32252E-01    .12802E-04   -1.0109    
   4  Prefactor     1.0998        .27765E-01    .93274E-05   -.89474    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.5474e-11
Minuit parameter uncertainties:
  1  0.00102498
  2  1489.74
  3  0.0322524
  4  0.0277655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303885': 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) = 5963.21798341
delta logL = 8.29674718261e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.025e-03  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.002e+00  1.490e+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.100e+00  2.777e-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:  7.726e-01  3.225e-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/303885/cmap_HighResolution_240105601_240364801_4FGL_J1204.8+0407_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-04 23:06:43.053503', job_id='303885', GAL2='1.10', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630822003.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='8.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='3' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:06:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 303885: <4FGL_J1204.8+0407_daily_bin3> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin3> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 22:55:21 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:55:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:55:23 2021
Terminated at Sat Sep  4 23:06:43 2021
Results reported at Sat Sep  4 23:06:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin3 181.203 4.12 240105601 240364801 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 :                                   644.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

