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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1471
RA = 181.203, Dec = 4.12
tmin = 620611201, tmax = 620870401
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='312065', job_status='RUN', time_executed='2021-09-04 23:22:05.273016', time_epoch_executed='1630822925.27' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312065

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312065/ft1_4FGL_J1204.8+0407_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312065/ft2_4FGL_J1204.8+0407_daily_bin1471.fits


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

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

Done.
real 3.73
user 3.53
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312065/ft1_filtered_4FGL_J1204.8+0407_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/312065/ft2_4FGL_J1204.8+0407_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/312065/ltcube_620611201_620870401_4FGL_J1204.8+0407_daily_bin1471.fits outfile=/scratch/kocevski/312065/expmap_620611201_620870401_4FGL_J1204.8+0407_daily_bin1471.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/312065/ltcube_620611201_620870401_4FGL_J1204.8+0407_daily_bin1471.fits
.....................!
real 191.78
user 185.86
sys 5.07

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/312065/ft1_filtered_4FGL_J1204.8+0407_daily_bin1471.fits scfile=/scratch/kocevski/312065/ft2_4FGL_J1204.8+0407_daily_bin1471.fits outfile=/scratch/kocevski/312065/cmap_620611201_620870401_4FGL_J1204.8+0407_daily_bin1471.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312065/ft1_filtered_4FGL_J1204.8+0407_daily_bin1471.fits scfile=/scratch/kocevski/312065/ft2_4FGL_J1204.8+0407_daily_bin1471.fits outfile=/scratch/kocevski/312065/cmap_HighResolution_620611201_620870401_4FGL_J1204.8+0407_daily_bin1471.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.52
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7914       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    73.884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1462       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.555       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5293       1.0000         .10000E-03   10000.    
    17 'norm      '    .61408E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    102.38       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.9692       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.583       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.2506       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.028       1.0000         .10000E-03   10000.    
    25 'norm      '    5.5400       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .41879E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .38052       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1673       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=   3112.767     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3731 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7906        4.2804       -.44807E-07    .20866E-04
   2  Prefactor     59.484        48.597       -.13404E-06   -.14083E-05
   3  Prefactor     .10000E-03    14.394        .68081E-08** at limit **
   4  Prefactor     .10000E-03    85.627       -.71784E-06** at limit **
   5  Prefactor     73.889        33.715        .16183E-06   -.27777E-04
   6  Prefactor     .10000E-03    30.575       -.41591E-06** at limit **
   7  Prefactor     5.5325        14.131        .19357E-07   -.46123E-04
   8  Prefactor     .10000E-03    33.618        .67756E-07** at limit **
   9  Prefactor     38.693        25.889       -.97127E-07    .74498E-04
  10  Prefactor     .10000E-03    97.646        .12005E-06** at limit **
  11  Prefactor     5.0629        152.00       -.31098E-05   -.34560E-04
  12  Prefactor     .10000E-03    24.577       -.11375E-06** at limit **
  13  Prefactor     46.512        48.897        .12870E-06   -.21103E-05
  14  Prefactor     .10000E-03    18.502       -.12363E-06** at limit **
  15  Prefactor     45.498        46.201        .79323E-05   -.84387E-04
  16  norm          1.5395        11.174       -.77947E-05   -.22309E-03
  17  norm          .11016E-03    4.3347       -.40234E-06** at limit **
  18  Prefactor     .10000E-03    23.314       -.36100E-07** at limit **
  19  norm          102.33        83.736        .30693E-05   -.26610E-03
  20  Prefactor     .10000E-03    105.41        .55151E-06** at limit **
  21  norm          5.9686        1.4685        .19980E-06   -.24220E-02
  22  Prefactor     19.595        20.258       -.93565E-07    .41462E-04
  23  Prefactor     9.1750        76.557       -.37915E-06   -.53448E-04
  24  Prefactor     13.023        17.868       -.21105E-06    .12352E-03
  25  norm          5.5394        2.8580        .78948E-07   -.33207E-03
  26  Prefactor     .10001E-03    14.288       -.10655E-05** at limit **
  27  Prefactor     .10000E-03    19.504        .20939E-06** at limit **
  28  Normalizat    .38022        .35731       -.38158E-05   -.16639E-04
  29  Prefactor     1.1676        .27280        .25696E-05   -.83075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.79064
  Prefactor  = 59.4845
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 73.8887
  Prefactor  = 0.0001
  Prefactor  = 5.5325
  Prefactor  = 0.0001
  Prefactor  = 38.693
  Prefactor  = 0.0001
  Prefactor  = 5.06292
  Prefactor  = 0.0001
  Prefactor  = 46.5118
  Prefactor  = 0.0001
  Prefactor  = 45.4981
  norm       = 1.53946
  norm       = 0.000110156
  Prefactor  = 0.0001
  norm       = 102.329
  Prefactor  = 0.000100001
  norm       = 5.96865
  Prefactor  = 19.595
  Prefactor  = 9.175
  Prefactor  = 13.0228
  norm       = 5.53943
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Normalizat = 0.380224
  Prefactor  = 1.1676
 **********
 **   18 **HESSE 
 **********

 FCN=   3112.767     FROM HESSE     STATUS=OK           551 CALLS     4282 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7906        4.2761        .10405E-03   -1.5270    
   2  Prefactor     59.484        48.467        .52017E-04   -1.4164    
   3  Prefactor     .10000E-03    14.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    85.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     73.889        33.444        .46709E-04   -1.3987    
   6  Prefactor     .10000E-03    30.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5325        14.080        .17080E-03   -1.5237    
   8  Prefactor     .10000E-03    33.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.693        25.764        .64437E-04   -1.4463    
  10  Prefactor     .10000E-03    97.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0629        152.57        .17722E-03   -1.5258    
  12  Prefactor     .10000E-03    24.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.512        48.773        .58789E-04   -1.4343    
  14  Prefactor     .10000E-03    18.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.498        44.951        .59403E-04   -1.4358    
  16  norm          1.5395        10.556        .21353E-03   -1.5460    
  17  norm          .11016E-03    148.00        .20809E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          102.33        81.252        .19868E-03   -1.3681    
  20  Prefactor     .10000E-03    105.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.9686        1.4406        .28765E-04   -1.5219    
  22  Prefactor     19.595        20.191        .90507E-04   -1.4822    
  23  Prefactor     9.1750        75.453        .13177E-03   -1.5102    
  24  Prefactor     13.023        17.443        .11097E-03   -1.4986    
  25  norm          5.5394        2.8510        .63776E-04   -1.5237    
  26  Prefactor     .10001E-03    50.289        .39567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    19.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .38022        .35180        .49118E-03   -1.1834    
  29  Prefactor     1.1676        .28386        .23846E-03   -.87334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40352e-08
Minuit parameter uncertainties:
  1  4.27641
  2  48.499
  3  9.90008e-06
  4  0.000727125
  5  33.4529
  6  0.000194774
  7  14.0881
  8  5.29057e-05
  9  25.7712
  10  9.6477e-05
  11  55.7427
  12  6.42641e-05
  13  48.8149
  14  6.54165e-05
  15  44.9847
  16  8.06403
  17  0.0777306
  18  5.58586e-05
  19  81.3405
  20  0.000511808
  21  1.44057
  22  20.1981
  23  52.7131
  24  17.4494
  25  2.85107
  26  0.00153441
  27  6.19383e-05
  28  0.353872
  29  0.284236
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  6.426e-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.168e+00  2.842e-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:  3.802e-01  3.539e-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: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312065/likelihoodResults_620611201_620870401_4FGL_J1204.8+0407_daily_bin1471.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) = 3112.76683115
delta logL = -0.000190420041235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3112.57808627
delta logL = 0.188554463717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11901E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .32356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1986       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=   3112.578     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      404 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11920E-03    .70178E-03    .16058E-04** at limit **
   2  Index        10.0000        6.7274        .50000    ** at limit **
   3  Normalizat    .32351        .34419        .52971E-03   -.24930E-03
   4  Prefactor     1.1986        .27903        .23567E-03   -.58013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000119204
  Index      = 10
  Normalizat = 0.323509
  Prefactor  = 1.19859
 **********
 **   18 **HESSE 
 **********

 FCN=   3112.578     FROM HESSE     STATUS=OK            31 CALLS      435 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11920E-03    .67089E-03    .32117E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.6699        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .32351        .34354        .21188E-04   -1.2146    
   4  Prefactor     1.1986        .27874        .47135E-04   -.86375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77104e-10
Minuit parameter uncertainties:
  1  0.000227015
  2  3.67752e-05
  3  0.345809
  4  0.279088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312065': 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) = 3112.57808555
delta logL = 0.188555186672

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.192e-04  2.270e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  1.000e+01  3.678e-05  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.199e+00  2.791e-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:  3.235e-01  3.458e-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/312065/cmap_HighResolution_620611201_620870401_4FGL_J1204.8+0407_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-04 23:32:06.538479', job_id='312065', GAL2='1.20', fit_tolerance='1e-08', EG2='0.32', EG='0.38', time_epoch_completed='1630823526.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.89e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1471' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:32:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 312065: <4FGL_J1204.8+0407_daily_bin1471> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1471> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:46 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:48 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:48 2021
Terminated at Sat Sep  4 23:32:07 2021
Results reported at Sat Sep  4 23:32:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1471 181.203 4.12 620611201 620870401 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 :                                   587.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

