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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1155
RA = 181.203, Dec = 4.12
tmin = 538704001, tmax = 538963201
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='310549', job_status='RUN', time_executed='2021-09-04 23:17:15.215768', time_epoch_executed='1630822635.22' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310549/ft1_4FGL_J1204.8+0407_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310549/ft2_4FGL_J1204.8+0407_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310549/ft1_4FGL_J1204.8+0407_daily_bin1155.fits outfile=/scratch/kocevski/310549/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1155.fits ra=181.203 dec=4.12 rad=12.0 tmin=538704001.0 tmax=538963201.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.46
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310549/ft1_filtered_4FGL_J1204.8+0407_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/310549/ft2_4FGL_J1204.8+0407_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/310549/ltcube_538704001_538963201_4FGL_J1204.8+0407_daily_bin1155.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/310549/ft2_4FGL_J1204.8+0407_daily_bin1155.fits
.....................!
real 11.79
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310549/ft1_filtered_4FGL_J1204.8+0407_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/310549/ft2_4FGL_J1204.8+0407_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/310549/ltcube_538704001_538963201_4FGL_J1204.8+0407_daily_bin1155.fits outfile=/scratch/kocevski/310549/expmap_538704001_538963201_4FGL_J1204.8+0407_daily_bin1155.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/310549/ltcube_538704001_538963201_4FGL_J1204.8+0407_daily_bin1155.fits
.....................!
real 190.66
user 184.92
sys 5.35

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/310549/ft1_filtered_4FGL_J1204.8+0407_daily_bin1155.fits scfile=/scratch/kocevski/310549/ft2_4FGL_J1204.8+0407_daily_bin1155.fits outfile=/scratch/kocevski/310549/cmap_538704001_538963201_4FGL_J1204.8+0407_daily_bin1155.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310549/ft1_filtered_4FGL_J1204.8+0407_daily_bin1155.fits scfile=/scratch/kocevski/310549/ft2_4FGL_J1204.8+0407_daily_bin1155.fits outfile=/scratch/kocevski/310549/cmap_HighResolution_538704001_538963201_4FGL_J1204.8+0407_daily_bin1155.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75688E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.156       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.827       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.328       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.338       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33031E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8257       1.0000         .10000E-03   10000.    
    16 'norm      '    .12302E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9023       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    167.42       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1523       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9218       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .42240       1.0000         .10000E-03   10000.    
    25 'norm      '    1.2794       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.596       1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.359       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2799       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82147       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=   5847.936     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3849 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10090E-03    1.1222        .62502E-06** at limit **
   2  Prefactor     43.161        29.729       -.18934E-07   -.20878E-04
   3  Prefactor     .10000E-03    7.3045        .20052E-07** at limit **
   4  Prefactor     58.821        84.804       -.76058E-06   -.36910E-05
   5  Prefactor     .10000E-03    4.5731        .72041E-07** at limit **
   6  Prefactor     .10000E-03    34.514        .27764E-06** at limit **
   7  Prefactor     .10000E-03    1.9410       -.18997E-06** at limit **
   8  Prefactor     .10000E-03    11.550        .27620E-06** at limit **
   9  Prefactor     .10000E-03    30.385        .10021E-05** at limit **
  10  Prefactor     48.322        57.670       -.30492E-06   -.22545E-05
  11  Prefactor     .10000E-03    28.240        .29060E-06** at limit **
  12  Prefactor     14.254        38.465        .42571E-06    .25595E-04
  13  Prefactor     .10000E-03    10.054        .95431E-07** at limit **
  14  Prefactor     .10001E-03    122.92       -.15734E-04** at limit **
  15  Prefactor     5.8045        8.3071       -.14834E-05   -.39562E-03
  16  norm          .10000E-03    1.5883        .62492E-06** at limit **
  17  norm          1.9171        4.4686       -.51246E-06    .28744E-03
  18  Prefactor     .10000E-03    15.328        .11930E-06** at limit **
  19  norm          167.16        77.347        .84349E-07   -.41067E-04
  20  Prefactor     .10000E-03    44.081        .12577E-06** at limit **
  21  norm          1.1519        .67085        .63539E-08   -.12444E-02
  22  Prefactor     .10000E-03    4.2232        .80449E-07** at limit **
  23  Prefactor     7.9200        18.643       -.94573E-07   -.11837E-04
  24  Prefactor     .42599        11.926       -.21006E-05   -.15570E-03
  25  norm          1.2782        1.5753       -.45994E-07   -.36435E-03
  26  Prefactor     11.606        14.155       -.90690E-07   -.12604E-03
  27  Prefactor     30.360        35.063       -.70955E-07   -.38818E-04
  28  Normalizat    1.2799        .23973        .38481E-05   -.22566E-03
  29  Prefactor     .82146        .19195       -.42534E-05   -.95813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100897
  Prefactor  = 43.1606
  Prefactor  = 0.0001
  Prefactor  = 58.8206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.3217
  Prefactor  = 0.0001
  Prefactor  = 14.2537
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 5.80448
  norm       = 0.000100001
  norm       = 1.91713
  Prefactor  = 0.0001
  norm       = 167.157
  Prefactor  = 0.0001
  norm       = 1.15192
  Prefactor  = 0.0001
  Prefactor  = 7.91996
  Prefactor  = 0.425992
  norm       = 1.27819
  Prefactor  = 11.6055
  Prefactor  = 30.36
  Normalizat = 1.2799
  Prefactor  = 0.821463
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.936     FROM HESSE     STATUS=OK           563 CALLS     4412 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10090E-03    2.4953        .26004E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.161        29.730        .61025E-04   -1.4393    
   3  Prefactor     .10000E-03    7.3150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     58.821        84.778        .52308E-04   -1.4173    
   5  Prefactor     .10000E-03    4.5866        .15969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9467        .10416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.322        57.661        .57682E-04   -1.4317    
  11  Prefactor     .10000E-03    28.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.254        38.217        .10578E-03   -1.4953    
  13  Prefactor     .10000E-03    10.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    129.32        .55068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8045        8.2651        .16639E-03   -1.5226    
  16  norm          .10000E-03    2.5082        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9171        4.3749        .18574E-03   -1.5431    
  18  Prefactor     .10000E-03    15.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          167.16        76.656        .15588E-03   -1.3115    
  20  Prefactor     .10000E-03    44.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1519        .65471        .41310E-04   -1.5493    
  22  Prefactor     .10000E-03    4.2493        .15345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.9200        18.634        .14246E-03   -1.5145    
  24  Prefactor     .42599        44.833        .41037E-02   -1.5577    
  25  norm          1.2782        1.5428        .99872E-04   -1.5482    
  26  Prefactor     11.606        13.909        .11764E-03   -1.5026    
  27  Prefactor     30.360        35.018        .72717E-04   -1.4605    
  28  Normalizat    1.2799        .23946        .25354E-03   -.84168    
  29  Prefactor     .82146        .19128        .25950E-03   -.98942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35088e-09
Minuit parameter uncertainties:
  1  0.00299193
  2  29.7406
  3  1.60067e-06
  4  84.953
  5  6.09039e-07
  6  5.44453e-05
  7  1.9426e-05
  8  2.87051e-05
  9  0.000193604
  10  57.7278
  11  3.74536e-05
  12  38.2822
  13  2.17318e-06
  14  0.00255339
  15  8.26672
  16  0.000117275
  17  4.37559
  18  8.56963e-06
  19  76.7018
  20  1.00003e-05
  21  0.654717
  22  7.22495e-06
  23  18.6475
  24  8.74604
  25  1.54286
  26  13.9127
  27  35.0413
  28  0.23967
  29  0.191431
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.425e+01  3.828e+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:  8.215e-01  1.914e-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.280e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/310549/likelihoodResults_538704001_538963201_4FGL_J1204.8+0407_daily_bin1155.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) = 5847.81190298
delta logL = 0.124261825223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5847.78468969
delta logL = 0.151475114018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5669       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9503       1.0000          .0000       10.000    
     3 'Normalizat'    1.2536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83730       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=   5847.785     FROM MIGRAD    STATUS=FAILED        91 CALLS      296 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5568        419.87        .21345E-03   -.71849E-04
   2  Index         3.9516        5.1899        .84310E-02    .29613E-03
   3  Normalizat    1.2537        .19155        .25576E-03    .28777E-03
   4  Prefactor     .83728        .16151        .25730E-03   -.34951E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5847.785     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      385 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5568        419.87        .44152E-03   -.71849E-04
   2  Index         3.9516        5.1899        .22477E-02    .29613E-03
   3  Normalizat    1.2537        .19155        .18742E-03    .28777E-03
   4  Prefactor     .83728        .16151        .15310E-03   -.34951E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5847.785     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      414 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5565        52.193        .85381E-05   -.14540E-03
   2  Index         3.9517        3.9053        .16862E-02   -.40521E-05
   3  Normalizat    1.2537        .23239        .51152E-04    .24812E-03
   4  Prefactor     .83729        .19207        .51460E-04   -.32025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55651
  Index      = 3.95165
  Normalizat = 1.25366
  Prefactor  = 0.837285
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.785     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5565        28.020        .17076E-05   -1.5331    
   2  Index         3.9517        3.0638        .67448E-04   -.21124    
   3  Normalizat    1.2537        .23242        .10230E-04   -.84960    
   4  Prefactor     .83729        .19186        .10292E-04   -.98368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63936e-09
Minuit parameter uncertainties:
  1  19.9778
  2  3.31116
  3  0.232612
  4  0.192009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310549': 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) = 5847.7846895
delta logL = 0.15147529784

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.557e+00  1.998e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.952e+00  3.311e+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:  8.373e-01  1.920e-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.254e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/310549/cmap_HighResolution_538704001_538963201_4FGL_J1204.8+0407_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-04 23:31:38.825424', job_id='310549', GAL2='0.84', fit_tolerance='1e-08', EG2='1.25', EG='1.28', time_epoch_completed='1630823498.83', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.51e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1155' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 310549: <4FGL_J1204.8+0407_daily_bin1155> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1155 181.203 4.12 538704001 538963201 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 :                                   857.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

