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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1003
RA = 181.203, Dec = 4.12
tmin = 499305601, tmax = 499564801
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='310223', job_status='RUN', time_executed='2021-09-04 23:18:20.408347', time_epoch_executed='1630822700.41' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310223

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310223/ft1_4FGL_J1204.8+0407_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310223/ft2_4FGL_J1204.8+0407_daily_bin1003.fits


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

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

Done.
real 5.51
user 5.23
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310223/ft2_4FGL_J1204.8+0407_daily_bin1003.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/310223/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/310223/ft1_filtered_4FGL_J1204.8+0407_daily_bin1003.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.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310223/ft1_filtered_4FGL_J1204.8+0407_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/310223/ft2_4FGL_J1204.8+0407_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/310223/ltcube_499305601_499564801_4FGL_J1204.8+0407_daily_bin1003.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/310223/ft2_4FGL_J1204.8+0407_daily_bin1003.fits
.....................!
real 11.89
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310223/ft1_filtered_4FGL_J1204.8+0407_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/310223/ft2_4FGL_J1204.8+0407_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/310223/ltcube_499305601_499564801_4FGL_J1204.8+0407_daily_bin1003.fits outfile=/scratch/kocevski/310223/expmap_499305601_499564801_4FGL_J1204.8+0407_daily_bin1003.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/310223/ltcube_499305601_499564801_4FGL_J1204.8+0407_daily_bin1003.fits
.....................!
real 190.99
user 185.01
sys 5.39

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/310223/ft1_filtered_4FGL_J1204.8+0407_daily_bin1003.fits scfile=/scratch/kocevski/310223/ft2_4FGL_J1204.8+0407_daily_bin1003.fits outfile=/scratch/kocevski/310223/cmap_499305601_499564801_4FGL_J1204.8+0407_daily_bin1003.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310223/ft1_filtered_4FGL_J1204.8+0407_daily_bin1003.fits scfile=/scratch/kocevski/310223/ft2_4FGL_J1204.8+0407_daily_bin1003.fits outfile=/scratch/kocevski/310223/cmap_HighResolution_499305601_499564801_4FGL_J1204.8+0407_daily_bin1003.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96530       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    76.970       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12221E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10576E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6478       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25160E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.1980       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    38.029       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1371       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97537       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=   5145.173     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3722 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96432        1.4280       -.23557E-06   -.71426E-03
   2  Prefactor     .10000E-03    26.767        .11996E-04** at limit **
   3  Prefactor     .10000E-03    9.3876       -.29262E-05** at limit **
   4  Prefactor     .10000E-03    81.964       -.50173E-05** at limit **
   5  Prefactor     .10001E-03    22.138       -.87577E-05** at limit **
   6  Prefactor     .10000E-03    19.583       -.42739E-05** at limit **
   7  Prefactor     .10005E-03    5.0345        .57209E-06** at limit **
   8  Prefactor     .10000E-03    13.527       -.75760E-05** at limit **
   9  Prefactor     .10000E-03    9.2202        .36060E-05** at limit **
  10  Prefactor     76.926        123.12       -.43675E-04    .10396E-03
  11  Prefactor     38.933        36.816       -.53920E-05   -.97625E-05
  12  Prefactor     12.460        40.402        .19348E-04    .20718E-04
  13  Prefactor     .10000E-03    14.953        .16266E-05** at limit **
  14  Prefactor     .10000E-03    132.77        .39029E-04** at limit **
  15  Prefactor     .10000E-03    5.3518       -.91384E-07** at limit **
  16  norm          .10000E-03    1.1441        .59477E-07** at limit **
  17  norm          .10001E-03    2.0934       -.13385E-05** at limit **
  18  Prefactor     .10000E-03    76.570       -.16555E-04** at limit **
  19  norm          .10000E-03    89.756        .16033E-04** at limit **
  20  Prefactor     .10000E-03    43.700       -.39792E-05** at limit **
  21  norm          1.6484        .68224       -.86800E-07    .16496E-02
  22  Prefactor     .10000E-03    10.256        .66118E-08** at limit **
  23  Prefactor     .10009E-03    311.06       -.13631E-03** at limit **
  24  Prefactor     .10000E-03    15.984        .82820E-05** at limit **
  25  norm          3.1980        1.7112       -.56139E-07    .39814E-03
  26  Prefactor     .10000E-03    8.6393       -.40069E-06** at limit **
  27  Prefactor     38.033        43.185        .17331E-05    .12026E-04
  28  Normalizat    1.1375        .22309        .18485E-05    .47517E-03
  29  Prefactor     .97539        .17722        .37110E-07    .47112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.964319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 76.9257
  Prefactor  = 38.9327
  Prefactor  = 12.4604
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64843
  Prefactor  = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 0.000100001
  norm       = 3.19799
  Prefactor  = 0.0001
  Prefactor  = 38.033
  Normalizat = 1.13754
  Prefactor  = 0.975388
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.173     FROM HESSE     STATUS=OK           541 CALLS     4263 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96432        1.2409        .10124E-02   -1.5512    
   2  Prefactor     .10000E-03    27.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    82.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    22.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    11.827        .30803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     76.926        123.39        .45771E-04   -1.3952    
  11  Prefactor     38.933        36.856        .64221E-04   -1.4459    
  12  Prefactor     12.460        40.063        .11362E-03   -1.5002    
  13  Prefactor     .10000E-03    15.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    134.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3638        .16203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1588        .74893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    12.727        .18747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    77.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    90.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6484        .65749        .34228E-04   -1.5451    
  22  Prefactor     .10000E-03    10.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10009E-03    317.14        .40023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.593        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.1980        1.7067        .65633E-04   -1.5350    
  26  Prefactor     .10000E-03    8.7815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     38.033        43.153        .64993E-04   -1.4474    
  28  Normalizat    1.1375        .26586        .26662E-03   -.88555    
  29  Prefactor     .97539        .21161        .23778E-03   -.93554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89947e-09
Minuit parameter uncertainties:
  1  1.24098
  2  0.000100544
  3  1.18017e-05
  4  8.86405e-05
  5  0.000809827
  6  1.66194e-05
  7  0.0014706
  8  0.000342372
  9  6.43612e-06
  10  123.806
  11  36.8771
  12  40.1495
  13  4.60501e-05
  14  0.00129375
  15  1.33537e-05
  16  4.13416e-06
  17  0.000670853
  18  0.000217149
  19  3.19542e-05
  20  2.61309e-06
  21  0.65749
  22  9.74784e-05
  23  0.0105586
  24  0.000219675
  25  1.70675
  26  2.28068e-05
  27  43.1881
  28  0.266178
  29  0.211788
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.246e+01  4.015e+01  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:  9.754e-01  2.118e-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.138e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310223/likelihoodResults_499305601_499564801_4FGL_J1204.8+0407_daily_bin1003.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): 0
logL (Free Index) = 5145.12373391
delta logL = 0.0492262016633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5145.11549952
delta logL = 0.0574605926031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5951       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2435       1.0000          .0000       10.000    
     3 'Normalizat'    1.1208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98455       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5145.115     FROM MIGRAD    STATUS=FAILED        94 CALLS      257 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5785        80.686        .13673E-03   -.29102E-05
   2  Index         3.2447        3.3615        .12512E-01    .22831E-03
   3  Normalizat    1.1206        .26109        .26841E-03   -.26981E-04
   4  Prefactor     .98460        .21350        .23681E-03    .37446E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5145.115     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      337 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5785        80.686        .34932E-03   -1.5122    
   2  Index         3.2447        3.3615        .13011E-02   -.35871    
   3  Normalizat    1.1206        .26109        .26897E-03   -.89093    
   4  Prefactor     .98460        .21350        .20685E-03   -.93245    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5145.115     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      365 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5785        34.176        .54692E-05    .29102E-05
   2  Index         3.2447        2.3237        .25025E-02    .87480E-05
   3  Normalizat    1.1206        .26101        .10736E-04    .42356E-06
   4  Prefactor     .98460        .21278        .94725E-05    .48007E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.5785
  Index      = 3.24467
  Normalizat = 1.12061
  Prefactor  = 0.984602
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.115     FROM HESSE     STATUS=OK            25 CALLS      390 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5785        32.452        .10938E-05   -1.5122    
   2  Index         3.2447        2.2198        .50049E-03   -.35871    
   3  Normalizat    1.1206        .26047        .21472E-05   -.89093    
   4  Prefactor     .98460        .21241        .18945E-05   -.93245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99568e-13
Minuit parameter uncertainties:
  1  32.5188
  2  2.31273
  3  0.260774
  4  0.212587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310223': 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) = 5145.115499
delta logL = 0.0574611076381

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.846e-01  2.126e-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.121e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/310223/cmap_HighResolution_499305601_499564801_4FGL_J1204.8+0407_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.87e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-04 23:31:15.492708', job_id='310223', GAL2='0.98', fit_tolerance='1e-08', EG2='1.12', EG='1.14', time_epoch_completed='1630823475.49', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.75e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1003' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 310223: <4FGL_J1204.8+0407_daily_bin1003> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1003 181.203 4.12 499305601 499564801 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 :                                   772.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

