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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1551
RA = 181.203, Dec = 4.12
tmin = 641347201, tmax = 641606401
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='312178', job_status='RUN', time_executed='2021-09-04 23:21:24.570921', time_epoch_executed='1630822884.57' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312178/ft1_4FGL_J1204.8+0407_daily_bin1551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312178/ft2_4FGL_J1204.8+0407_daily_bin1551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312178/ft1_4FGL_J1204.8+0407_daily_bin1551.fits outfile=/scratch/kocevski/312178/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1551.fits ra=181.203 dec=4.12 rad=12.0 tmin=641347201.0 tmax=641606401.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 2.79
user 2.57
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312178/ft2_4FGL_J1204.8+0407_daily_bin1551.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/312178/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1551.fits evtable="EVENTS" outfile="/scratch/kocevski/312178/ft1_filtered_4FGL_J1204.8+0407_daily_bin1551.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312178/ft1_filtered_4FGL_J1204.8+0407_daily_bin1551.fits" evtable="EVENTS" scfile=/scratch/kocevski/312178/ft2_4FGL_J1204.8+0407_daily_bin1551.fits sctable="SC_DATA" outfile=/scratch/kocevski/312178/ltcube_641347201_641606401_4FGL_J1204.8+0407_daily_bin1551.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/312178/ft2_4FGL_J1204.8+0407_daily_bin1551.fits
.....................!
real 12.27
user 11.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312178/ft1_filtered_4FGL_J1204.8+0407_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/312178/ft2_4FGL_J1204.8+0407_daily_bin1551.fits sctable="SC_DATA" expcube=/scratch/kocevski/312178/ltcube_641347201_641606401_4FGL_J1204.8+0407_daily_bin1551.fits outfile=/scratch/kocevski/312178/expmap_641347201_641606401_4FGL_J1204.8+0407_daily_bin1551.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/312178/ltcube_641347201_641606401_4FGL_J1204.8+0407_daily_bin1551.fits
.....................!
real 190.59
user 185.81
sys 4.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/312178/ft1_filtered_4FGL_J1204.8+0407_daily_bin1551.fits scfile=/scratch/kocevski/312178/ft2_4FGL_J1204.8+0407_daily_bin1551.fits outfile=/scratch/kocevski/312178/cmap_641347201_641606401_4FGL_J1204.8+0407_daily_bin1551.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312178/ft1_filtered_4FGL_J1204.8+0407_daily_bin1551.fits scfile=/scratch/kocevski/312178/ft2_4FGL_J1204.8+0407_daily_bin1551.fits outfile=/scratch/kocevski/312178/cmap_HighResolution_641347201_641606401_4FGL_J1204.8+0407_daily_bin1551.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.874       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18302E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.086       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.642       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11990E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .60281E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8870       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8800       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1044       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68809       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=   2723.309     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3640 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8704       -.80087E-07** at limit **
   2  Prefactor     .10000E-03    20.524       -.35446E-05** at limit **
   3  Prefactor     18.867        33.080       -.42111E-05    .14250E-04
   4  Prefactor     .10001E-03    465.68       -.37085E-03** at limit **
   5  Prefactor     19.448        15.842        .81338E-06    .51474E-03
   6  Prefactor     .10000E-03    80.313        .15564E-04** at limit **
   7  Prefactor     .10000E-03    3.9732        .45786E-06** at limit **
   8  Prefactor     16.082        20.022        .36665E-06    .12115E-03
   9  Prefactor     13.656        31.573        .80046E-05   -.52497E-04
  10  Prefactor     .10000E-03    49.007       -.27818E-04** at limit **
  11  Prefactor     .10000E-03    87.064        .13454E-04** at limit **
  12  Prefactor     .10000E-03    37.010       -.13330E-04** at limit **
  13  Prefactor     .10000E-03    32.460        .47648E-05** at limit **
  14  Prefactor     .10000E-03    27.274        .20018E-04** at limit **
  15  Prefactor     .10000E-03    70.184        .94696E-05** at limit **
  16  norm          .10000E-03    3.6480        .25784E-06** at limit **
  17  norm          .10018E-03    4.7123       -.33573E-05** at limit **
  18  Prefactor     .10000E-03    18.687       -.90752E-05** at limit **
  19  norm          .10000E-03    66.741        .33468E-05** at limit **
  20  Prefactor     .10000E-03    104.65       -.13660E-04** at limit **
  21  norm          2.8881        1.4731        .27328E-06    .20481E-02
  22  Prefactor     .10000E-03    7.8415       -.13400E-06** at limit **
  23  Prefactor     .10000E-03    33.696       -.56609E-06** at limit **
  24  Prefactor     .10000E-03    16.178        .11887E-05** at limit **
  25  norm          1.8808        3.9391       -.93526E-07    .14242E-03
  26  Prefactor     .10000E-03    15.335        .61198E-05** at limit **
  27  Prefactor     .10000E-03    73.967        .12662E-04** at limit **
  28  Normalizat    1.1045        .26456       -.56606E-06    .64176E-03
  29  Prefactor     .68823        .20998        .10949E-05    .49519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.867
  Prefactor  = 0.000100008
  Prefactor  = 19.4483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0824
  Prefactor  = 13.6565
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000100177
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10447
  Prefactor  = 0.688232
 **********
 **   18 **HESSE 
 **********

 FCN=   2723.309     FROM HESSE     STATUS=OK           535 CALLS     4175 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3574        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.867        33.100        .92191E-04   -1.4839    
   4  Prefactor     .10001E-03    466.75        .20307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.448        15.858        .90848E-04   -1.4826    
   6  Prefactor     .10000E-03    80.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9747        .10159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.082        20.029        .99860E-04   -1.4906    
   9  Prefactor     13.656        31.539        .10845E-03   -1.4969    
  10  Prefactor     .10000E-03    49.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    87.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    71.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6801        .97303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10018E-03    17.203        .21136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    66.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    104.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8881        1.4398        .41782E-04   -1.5368    
  22  Prefactor     .10000E-03    7.8607        .14273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8808        3.8846        .13981E-03   -1.5434    
  26  Prefactor     .10000E-03    15.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    74.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1045        .30881        .24387E-03   -.89608    
  29  Prefactor     .68823        .24462        .24350E-03   -1.0399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15235e-08
Minuit parameter uncertainties:
  1  8.64115e-05
  2  1.27346e-05
  3  33.1322
  4  0.00387352
  5  15.8616
  6  0.000338166
  7  3.56574e-06
  8  20.0375
  9  31.5776
  10  8.81709e-06
  11  0.000547482
  12  7.12196e-05
  13  7.29241e-05
  14  2.88664e-05
  15  0.000421173
  16  1.62732e-05
  17  0.00349435
  18  8.41859e-06
  19  5.11474e-05
  20  2.48485e-05
  21  1.43978
  22  5.09436e-07
  23  4.28368e-06
  24  1.7441e-05
  25  3.88514
  26  5.26076e-06
  27  1.83713e-05
  28  0.309313
  29  0.245002
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  7.122e-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:  6.882e-01  2.450e-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.104e+00  3.093e-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.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312178/likelihoodResults_641347201_641606401_4FGL_J1204.8+0407_daily_bin1551.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): 102
logL (Free Index) = 2723.30959732
delta logL = -0.000128515124288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2723.30946998
delta logL = -1.17232639241e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1053       1.0000          .0000       10.000    
     3 'Normalizat'    1.1045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68823       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=   2723.309     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      297 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    168.11        .18142E-01** at limit **
   2  Index         2.0279        8.3512        .50000       -.16487E-06
   3  Normalizat    1.1045        .12160E-01    .24388E-03    .53190E-04
   4  Prefactor     .68823        .98520E-02    .24350E-03    .56820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.02791
  Normalizat = 1.10447
  Prefactor  = 0.688234
 **********
 **   18 **HESSE 
 **********

 FCN=   2723.309     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      324 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    834.17        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0279        6.7252        .50000       -.63654    
   3  Normalizat    1.1045        .27713E-01    .97550E-05   -.89609    
   4  Prefactor     .68823        .22453E-01    .97400E-05   -1.0399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.12941e-08
Minuit parameter uncertainties:
  1  0.00529889
  2  1336.01
  3  0.0277134
  4  0.0224536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312178': 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): 102
logL (Free Index) = 2723.30946843
delta logL = 3.75985109713e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  5.299e-03  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.028e+00  1.336e+03  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:  6.882e-01  2.245e-02  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.104e+00  2.771e-02  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/312178/cmap_HighResolution_641347201_641606401_4FGL_J1204.8+0407_daily_bin1551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-04 23:30:13.930138', job_id='312178', GAL2='0.69', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630823413.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1551' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:30:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 312178: <4FGL_J1204.8+0407_daily_bin1551> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1551> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:55 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:56 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:56 2021
Terminated at Sat Sep  4 23:30:14 2021
Results reported at Sat Sep  4 23:30:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1551 181.203 4.12 641347201 641606401 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 :                                   528.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            559 sec.

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

