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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1529
RA = 181.203, Dec = 4.12
tmin = 635644801, tmax = 635904001
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='312147', job_status='RUN', time_executed='2021-09-04 23:22:45.821637', time_epoch_executed='1630822965.82' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312147/ft1_4FGL_J1204.8+0407_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312147/ft2_4FGL_J1204.8+0407_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312147/ft1_4FGL_J1204.8+0407_daily_bin1529.fits outfile=/scratch/kocevski/312147/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1529.fits ra=181.203 dec=4.12 rad=12.0 tmin=635644801.0 tmax=635904001.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.40
user 4.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312147/ft2_4FGL_J1204.8+0407_daily_bin1529.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/312147/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1529.fits evtable="EVENTS" outfile="/scratch/kocevski/312147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1529.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.57
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1529.fits" evtable="EVENTS" scfile=/scratch/kocevski/312147/ft2_4FGL_J1204.8+0407_daily_bin1529.fits sctable="SC_DATA" outfile=/scratch/kocevski/312147/ltcube_635644801_635904001_4FGL_J1204.8+0407_daily_bin1529.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/312147/ft2_4FGL_J1204.8+0407_daily_bin1529.fits
.....................!
real 12.11
user 11.60
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/312147/ft2_4FGL_J1204.8+0407_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/312147/ltcube_635644801_635904001_4FGL_J1204.8+0407_daily_bin1529.fits outfile=/scratch/kocevski/312147/expmap_635644801_635904001_4FGL_J1204.8+0407_daily_bin1529.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/312147/ltcube_635644801_635904001_4FGL_J1204.8+0407_daily_bin1529.fits
.....................!
real 190.59
user 185.01
sys 5.12

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/312147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1529.fits scfile=/scratch/kocevski/312147/ft2_4FGL_J1204.8+0407_daily_bin1529.fits outfile=/scratch/kocevski/312147/cmap_635644801_635904001_4FGL_J1204.8+0407_daily_bin1529.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1529.fits scfile=/scratch/kocevski/312147/ft2_4FGL_J1204.8+0407_daily_bin1529.fits outfile=/scratch/kocevski/312147/cmap_HighResolution_635644801_635904001_4FGL_J1204.8+0407_daily_bin1529.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3753       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2057       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    105.94       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5779       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.942       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5663       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .90338E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.959       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.865       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9382       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.8230       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    44.081       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6205       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .44723       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=   4451.957     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3712 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3750        2.8421       -.12412E-06    .18685E-04
   2  Prefactor     8.2236        38.847        .77692E-07    .14203E-04
   3  Prefactor     .10000E-03    28.879       -.33635E-05** at limit **
   4  Prefactor     105.99        137.22       -.11067E-05    .21964E-04
   5  Prefactor     .10000E-03    19.454        .61492E-06** at limit **
   6  Prefactor     .10000E-03    49.344        .67662E-06** at limit **
   7  Prefactor     5.5789        11.824        .12843E-05    .70482E-04
   8  Prefactor     11.526        30.065       -.12019E-05    .21560E-05
   9  Prefactor     26.942        21.411       -.19584E-07    .48154E-04
  10  Prefactor     .10000E-03    78.141       -.15001E-05** at limit **
  11  Prefactor     .10000E-03    55.656        .51724E-06** at limit **
  12  Prefactor     44.418        45.348       -.11962E-05    .55631E-05
  13  Prefactor     .10000E-03    18.937       -.65724E-06** at limit **
  14  Prefactor     4.2686        87.344        .23000E-05    .18371E-04
  15  Prefactor     7.5683        10.489        .20862E-06    .42044E-04
  16  norm          .10000E-03    .90114       -.94266E-07** at limit **
  17  norm          .68653E-01    111.74       -.51247E-05    .13861E-04
  18  Prefactor     .10000E-03    11.993        .36250E-06** at limit **
  19  norm          28.003        53.976        .28245E-05    .54460E-04
  20  Prefactor     23.993        94.567        .52660E-05    .37326E-04
  21  norm          1.9382        .91873       -.10288E-06    .23189E-03
  22  Prefactor     .10000E-03    5.2488        .54501E-07** at limit **
  23  Prefactor     .10000E-03    16.694        .34070E-06** at limit **
  24  Prefactor     .10000E-03    3.5401       -.35588E-07** at limit **
  25  norm          7.8232        3.1074        .10803E-07    .21604E-03
  26  Prefactor     .10000E-03    14.026       -.18947E-06** at limit **
  27  Prefactor     44.081        34.772       -.40876E-08    .10852E-04
  28  Normalizat    1.6205        .30436        .50603E-05   -.28339E-04
  29  Prefactor     .44721        .21348       -.62719E-05    .69693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37504
  Prefactor  = 8.22359
  Prefactor  = 0.000100001
  Prefactor  = 105.993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57888
  Prefactor  = 11.5263
  Prefactor  = 26.9417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.418
  Prefactor  = 0.0001
  Prefactor  = 4.26855
  Prefactor  = 7.56827
  norm       = 0.0001
  norm       = 0.0686533
  Prefactor  = 0.0001
  norm       = 28.0025
  Prefactor  = 23.9929
  norm       = 1.93817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.82319
  Prefactor  = 0.0001
  Prefactor  = 44.0808
  Normalizat = 1.62053
  Prefactor  = 0.447214
 **********
 **   18 **HESSE 
 **********

 FCN=   4451.957     FROM HESSE     STATUS=OK           549 CALLS     4261 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3750        2.8445        .99227E-04   -1.5341    
   2  Prefactor     8.2236        38.768        .13996E-03   -1.5134    
   3  Prefactor     .10000E-03    29.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     105.99        137.56        .19535E-03   -1.3645    
   5  Prefactor     .10000E-03    19.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5789        11.842        .85052E-03   -1.5236    
   8  Prefactor     11.526        30.045        .11798E-03   -1.5029    
   9  Prefactor     26.942        21.449        .77181E-04   -1.4669    
  10  Prefactor     .10000E-03    78.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    55.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.418        45.320        .60153E-04   -1.4374    
  13  Prefactor     .10000E-03    19.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2686        93.921        .19511E-03   -1.5295    
  15  Prefactor     7.5683        10.468        .14579E-03   -1.5158    
  16  norm          .10000E-03    .90304        .61779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .68653E-01    143.45        .20608E-02   -1.5656    
  18  Prefactor     .10000E-03    11.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          28.003        57.614        .75767E-04   -1.4649    
  20  Prefactor     23.993        94.813        .81996E-04   -1.4728    
  21  norm          1.9382        .92391        .37711E-04   -1.5430    
  22  Prefactor     .10000E-03    5.2550        .14930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5458        .12261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.8232        3.1094        .33510E-03   -1.5148    
  26  Prefactor     .10000E-03    14.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     44.081        34.765        .60384E-04   -1.4379    
  28  Normalizat    1.6205        .31276        .25107E-03   -.74446    
  29  Prefactor     .44721        .21642        .33732E-03   -1.1446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6917e-10
Minuit parameter uncertainties:
  1  2.84465
  2  35.7485
  3  0.000322785
  4  137.974
  5  2.62724e-05
  6  0.000157775
  7  11.8474
  8  30.0842
  9  21.4556
  10  0.000337724
  11  0.000167418
  12  45.3549
  13  3.68336e-05
  14  40.1165
  15  10.4706
  16  5.81157e-07
  17  6.28688
  18  1.48351e-05
  19  57.7288
  20  95.4167
  21  0.923918
  22  1.95854e-06
  23  3.08835e-05
  24  1.8912e-06
  25  3.10942
  26  1.1227e-05
  27  34.7806
  28  0.313135
  29  0.216815
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.442e+01  4.535e+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:  4.472e-01  2.168e-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.621e+00  3.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 5.05e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.38e-05

TS (Fixed Index): 2.43
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312147/likelihoodResults_635644801_635904001_4FGL_J1204.8+0407_daily_bin1529.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) = 4451.29389654
delta logL = 0.663080858933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4451.29279803
delta logL = 0.664179373135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.501       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5404       1.0000          .0000       10.000    
     3 'Normalizat'    1.6563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42858       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=   4451.293     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.522        49.152        .93386E-05    .20011E-03
   2  Index         1.5405        .63102        .36245E-04   -.56106E-04
   3  Normalizat    1.6564        .24897       -.15511E-05   -.17265E-03
   4  Prefactor     .42853        .18765        .12836E-05   -.81988E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.522
  Index      = 1.54047
  Normalizat = 1.65636
  Prefactor  = 0.428526
 **********
 **   18 **HESSE 
 **********

 FCN=   4451.293     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.522        48.223        .29719E-03   -1.4358    
   2  Index         1.5405        .61767        .79913E-02   -.76413    
   3  Normalizat    1.6564        .27754        .24877E-03   -.73474    
   4  Prefactor     .42853        .20866        .34386E-03   -1.1538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2662e-10
Minuit parameter uncertainties:
  1  48.2647
  2  0.620724
  3  0.277801
  4  0.209026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312147': 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) = 4451.29279782
delta logL = 0.664179578155

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.552e+01  4.826e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  1.540e+00  6.207e-01  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:  4.285e-01  2.090e-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.656e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 181.203 4.120
Photon Index (Free Index): 1.54 +/- 0.62
Photon Flux (Free Index): 1.82e-08 +/- 2.15e-08
Energy Flux (Free Index): 5.04e-05 +/- 8.16e-05

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/312147/cmap_HighResolution_635644801_635904001_4FGL_J1204.8+0407_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='5.05e-08', energy_flux2='5.04e-05', photon_flux_error='5.15e-08', dlogl='6.64e-01', energy_flux='1.35e-05', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-09-04 23:34:39.393838', photon_index_error2='0.62', photon_index2='1.54', ts='2.43', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='8.16e-05', EG='1.62', time_epoch_completed='1630823679.39', return_code='0', job_id='312147', GAL2='0.43', EG2='1.66', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.15e-08', ts2='3.76', photon_index='2.58' WHERE bin_id='1529' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:34:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 312147: <4FGL_J1204.8+0407_daily_bin1529> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1529 181.203 4.12 635644801 635904001 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

