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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1338
RA = 181.203, Dec = 4.12
tmin = 586137601, tmax = 586396801
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='311876', job_status='RUN', time_executed='2021-09-04 23:23:39.734070', time_epoch_executed='1630823019.73' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311876

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311876/ft1_4FGL_J1204.8+0407_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311876/ft2_4FGL_J1204.8+0407_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311876/ft1_4FGL_J1204.8+0407_daily_bin1338.fits outfile=/scratch/kocevski/311876/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1338.fits ra=181.203 dec=4.12 rad=12.0 tmin=586137601.0 tmax=586396801.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.52
user 4.28
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311876/ft1_filtered_4FGL_J1204.8+0407_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/311876/ft2_4FGL_J1204.8+0407_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/311876/ltcube_586137601_586396801_4FGL_J1204.8+0407_daily_bin1338.fits outfile=/scratch/kocevski/311876/expmap_586137601_586396801_4FGL_J1204.8+0407_daily_bin1338.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/311876/ltcube_586137601_586396801_4FGL_J1204.8+0407_daily_bin1338.fits
.....................!
real 191.44
user 185.77
sys 4.62

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/311876/ft1_filtered_4FGL_J1204.8+0407_daily_bin1338.fits scfile=/scratch/kocevski/311876/ft2_4FGL_J1204.8+0407_daily_bin1338.fits outfile=/scratch/kocevski/311876/cmap_586137601_586396801_4FGL_J1204.8+0407_daily_bin1338.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311876/ft1_filtered_4FGL_J1204.8+0407_daily_bin1338.fits scfile=/scratch/kocevski/311876/ft2_4FGL_J1204.8+0407_daily_bin1338.fits outfile=/scratch/kocevski/311876/cmap_HighResolution_586137601_586396801_4FGL_J1204.8+0407_daily_bin1338.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19594E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40389E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22376E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .47398       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5008       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30853E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    1.7835       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.710       1.0000         .10000E-03   10000.    
    27 'Prefactor '    49.680       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1809       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96780       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=   5083.566     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3698 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27548E-01    1.3127        .73593E-06   -.15768E-02
   2  Prefactor     .10000E-03    19.282        .40230E-05** at limit **
   3  Prefactor     .10000E-03    9.2341       -.46689E-06** at limit **
   4  Prefactor     .10000E-03    358.31       -.11209E-03** at limit **
   5  Prefactor     9.5334        13.211        .11107E-05    .27899E-04
   6  Prefactor     .10000E-03    22.050       -.82279E-05** at limit **
   7  Prefactor     .10000E-03    11.288        .29291E-06** at limit **
   8  Prefactor     .10000E-03    6.3649       -.26136E-06** at limit **
   9  Prefactor     58.436        19.141        .17770E-05   -.58032E-04
  10  Prefactor     .10000E-03    34.415       -.48688E-05** at limit **
  11  Prefactor     .10000E-03    15.817       -.21163E-05** at limit **
  12  Prefactor     .10000E-03    20.778       -.58672E-05** at limit **
  13  Prefactor     .10000E-03    31.833        .14265E-04** at limit **
  14  Prefactor     .10000E-03    23.978       -.60715E-06** at limit **
  15  Prefactor     .10000E-03    3.1263       -.23371E-08** at limit **
  16  norm          .10000E-03    .54217        .20938E-10** at limit **
  17  norm          .10000E-03    1.8469        .54594E-07** at limit **
  18  Prefactor     .10000E-03    24.340        .13541E-05** at limit **
  19  norm          .10000E-03    9.1887        .33953E-06** at limit **
  20  Prefactor     .10000E-03    104.54        .47717E-05** at limit **
  21  norm          .47421        .40407        .37209E-07   -.49107E-03
  22  Prefactor     8.5083        11.739        .47812E-06   -.81295E-04
  23  Prefactor     .10000E-03    19.039        .64857E-05** at limit **
  24  Prefactor     .10117E-03    6.6671        .70984E-06** at limit **
  25  norm          1.7840        1.3429        .44988E-07   -.14015E-03
  26  Prefactor     13.712        10.366       -.52006E-07   -.11401E-03
  27  Prefactor     49.662        40.660       -.29269E-05   -.17896E-04
  28  Normalizat    1.1807        .22642       -.56808E-06   -.13095E-03
  29  Prefactor     .96764        .18543       -.24686E-06   -.16069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0275478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.53337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.4359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.474205
  Prefactor  = 8.50828
  Prefactor  = 0.0001
  Prefactor  = 0.000101172
  norm       = 1.78396
  Prefactor  = 13.7125
  Prefactor  = 49.6622
  Normalizat = 1.18066
  Prefactor  = 0.967641
 **********
 **   18 **HESSE 
 **********

 FCN=   5083.566     FROM HESSE     STATUS=OK           553 CALLS     4251 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27548E-01    38.888        .15516E-02   -1.5675    
   2  Prefactor     .10000E-03    19.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    358.90        .19482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5334        13.226        .12966E-03   -1.5090    
   6  Prefactor     .10000E-03    22.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3680        .17568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     58.436        19.151        .52486E-04   -1.4178    
  10  Prefactor     .10000E-03    34.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1324        .12311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .54335        .51265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.8960        .18900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.1893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    104.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .47421        .40470        .39446E-04   -1.5570    
  22  Prefactor     8.5083        11.736        .13749E-03   -1.5125    
  23  Prefactor     .10000E-03    19.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10117E-03    8.0388        .56747E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.7840        1.3353        .68945E-04   -1.5441    
  26  Prefactor     13.712        10.363        .10817E-03   -1.4967    
  27  Prefactor     49.662        40.643        .56895E-04   -1.4297    
  28  Normalizat    1.1807        .26988        .26831E-03   -.87203    
  29  Prefactor     .96764        .22305        .24425E-03   -.93816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67054e-08
Minuit parameter uncertainties:
  1  2.06764
  2  1.39324e-05
  3  1.71177e-06
  4  0.00122474
  5  13.2296
  6  2.30125e-05
  7  3.9657e-06
  8  2.32393e-07
  9  19.153
  10  4.90802e-06
  11  1.92846e-05
  12  1.11246e-05
  13  0.000188449
  14  1.26924e-05
  15  1.45062e-06
  16  3.19268e-07
  17  2.11197e-06
  18  5.48767e-06
  19  6.98276e-07
  20  1.02823e-05
  21  0.404706
  22  11.7391
  23  6.86572e-06
  24  0.00613984
  25  1.33529
  26  10.3641
  27  40.6654
  28  0.2702
  29  0.223258
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.112e-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:  9.676e-01  2.233e-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.181e+00  2.702e-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: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311876/likelihoodResults_586137601_586396801_4FGL_J1204.8+0407_daily_bin1338.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) = 5083.56590867
delta logL = -0.000228948902077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5083.56567978
delta logL = -5.61494744034e-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.5443       1.0000          .0000       10.000    
     3 'Normalizat'    1.1807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96763       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.

 FCN=   5083.566     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.031        .90712E-02** at limit **
   2  Index         2.5439        6.2695        .50000        .14877E-06
   3  Normalizat    1.1807        .21896        .60664E-01    .72303E-05
   4  Prefactor     .96764        .18344        .45861E-01    .80895E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.54393
  Normalizat = 1.18066
  Prefactor  = 0.967642
 **********
 **   18 **HESSE 
 **********

 FCN=   5083.566     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .51E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5439        6.2694        .50000       -.51348    
   3  Normalizat    1.1807        .26098        .26831E-03   -.87203    
   4  Prefactor     .96764        .21876        .24425E-03   -.93816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14312e-14
Minuit parameter uncertainties:
  1  6.17625e-06
  2  4.40624
  3  0.261272
  4  0.218961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311876': 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) = 5083.56567972
delta logL = 1.96359906113e-09

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  6.176e-06  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.544e+00  4.406e+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.676e-01  2.190e-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.181e+00  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.203 4.120

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/311876/cmap_HighResolution_586137601_586396801_4FGL_J1204.8+0407_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='8.87e-08', time_completed='2021-09-04 23:36:34.789509', job_id='311876', GAL2='0.97', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630823794.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.96e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1338' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 311876: <4FGL_J1204.8+0407_daily_bin1338> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1338> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:32 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:20:34 2021
Terminated at Sat Sep  4 23:36:35 2021
Results reported at Sat Sep  4 23:36:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1338 181.203 4.12 586137601 586396801 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 :                                   754.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

