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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1559
RA = 181.203, Dec = 4.12
tmin = 643420801, tmax = 643680001
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='312190', job_status='RUN', time_executed='2021-09-04 23:21:36.024140', time_epoch_executed='1630822896.02' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312190/ft1_4FGL_J1204.8+0407_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312190/ft2_4FGL_J1204.8+0407_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312190/ft1_4FGL_J1204.8+0407_daily_bin1559.fits outfile=/scratch/kocevski/312190/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1559.fits ra=181.203 dec=4.12 rad=12.0 tmin=643420801.0 tmax=643680001.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.45
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312190/ft1_filtered_4FGL_J1204.8+0407_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/312190/ft2_4FGL_J1204.8+0407_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/312190/ltcube_643420801_643680001_4FGL_J1204.8+0407_daily_bin1559.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/312190/ft2_4FGL_J1204.8+0407_daily_bin1559.fits
.....................!
real 11.83
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312190/ft1_filtered_4FGL_J1204.8+0407_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/312190/ft2_4FGL_J1204.8+0407_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/312190/ltcube_643420801_643680001_4FGL_J1204.8+0407_daily_bin1559.fits outfile=/scratch/kocevski/312190/expmap_643420801_643680001_4FGL_J1204.8+0407_daily_bin1559.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/312190/ltcube_643420801_643680001_4FGL_J1204.8+0407_daily_bin1559.fits
.....................!
real 191.50
user 186.07
sys 5.01

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/312190/ft1_filtered_4FGL_J1204.8+0407_daily_bin1559.fits scfile=/scratch/kocevski/312190/ft2_4FGL_J1204.8+0407_daily_bin1559.fits outfile=/scratch/kocevski/312190/cmap_643420801_643680001_4FGL_J1204.8+0407_daily_bin1559.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/312190/ft1_filtered_4FGL_J1204.8+0407_daily_bin1559.fits scfile=/scratch/kocevski/312190/ft2_4FGL_J1204.8+0407_daily_bin1559.fits outfile=/scratch/kocevski/312190/cmap_HighResolution_643420801_643680001_4FGL_J1204.8+0407_daily_bin1559.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2425       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3801       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23223       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.848       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11115E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.724       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8353       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11345E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9055       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9314       1.0000         .10000E-03   10000.    
    17 'norm      '    5.3235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5948       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.131       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.204       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8086       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11275E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60948       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3534       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=   5800.346     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3758 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2426        2.6096        .45114E-07   -.51548E-04
   2  Prefactor     .10000E-03    12.341        .36714E-07** at limit **
   3  Prefactor     .10000E-03    58.119        .12852E-05** at limit **
   4  Prefactor     36.635        71.387       -.81401E-05   -.21527E-03
   5  Prefactor     3.3828        9.7119        .10803E-05    .78327E-05
   6  Prefactor     .10007E-03    56.679       -.19788E-07** at limit **
   7  Prefactor     13.846        10.345        .21046E-06    .10901E-03
   8  Prefactor     .10000E-03    26.465        .27058E-06** at limit **
   9  Prefactor     34.744        20.958        .29106E-06    .20589E-03
  10  Prefactor     .10000E-03    40.289        .34472E-05** at limit **
  11  Prefactor     .10000E-03    30.987       -.42838E-06** at limit **
  12  Prefactor     .10000E-03    13.755       -.51708E-07** at limit **
  13  Prefactor     7.8352        14.652        .88353E-06   -.14301E-03
  14  Prefactor     .10000E-03    90.754        .27617E-05** at limit **
  15  Prefactor     4.9081        10.907        .49210E-05   -.55872E-03
  16  norm          1.9306        2.9726       -.94427E-06   -.18229E-03
  17  norm          5.3181        3.6273       -.19131E-07   -.67645E-04
  18  Prefactor     .10000E-03    10.343       -.15622E-07** at limit **
  19  norm          .10001E-03    98.508       -.42961E-05** at limit **
  20  Prefactor     .10001E-03    43.125       -.40981E-05** at limit **
  21  norm          4.5942        .87645       -.38520E-07    .16761E-04
  22  Prefactor     16.131        12.165        .22634E-07   -.14843E-04
  23  Prefactor     .10000E-03    12.774       -.58161E-08** at limit **
  24  Prefactor     24.202        13.185       -.39814E-07   -.15958E-04
  25  norm          1.8082        1.6818        .80153E-07   -.10388E-03
  26  Prefactor     .10000E-03    3.3928        .91755E-08** at limit **
  27  Prefactor     .10000E-03    182.70        .25939E-05** at limit **
  28  Normalizat    .60958        .21519       -.14610E-07   -.47401E-04
  29  Prefactor     1.3532        .18594       -.22151E-06   -.30024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.6352
  Prefactor  = 3.38284
  Prefactor  = 0.000100073
  Prefactor  = 13.8458
  Prefactor  = 0.0001
  Prefactor  = 34.7444
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.8352
  Prefactor  = 0.000100003
  Prefactor  = 4.90805
  norm       = 1.93061
  norm       = 5.31806
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.000100007
  norm       = 4.59416
  Prefactor  = 16.1312
  Prefactor  = 0.0001
  Prefactor  = 24.2024
  norm       = 1.80822
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.609576
  Prefactor  = 1.35323
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.346     FROM HESSE     STATUS=OK           557 CALLS     4315 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2426        2.6050        .10580E-03   -1.5348    
   2  Prefactor     .10000E-03    12.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.635        75.357        .66150E-04   -1.4497    
   5  Prefactor     3.3828        9.6960        .22009E-03   -1.5340    
   6  Prefactor     .10007E-03    55.584        .16910       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.846        10.363        .10764E-03   -1.4964    
   8  Prefactor     .10000E-03    26.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.744        21.058        .68006E-04   -1.4528    
  10  Prefactor     .10000E-03    40.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8352        14.678        .71625E-03   -1.5148    
  14  Prefactor     .10000E-03    92.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9081        11.631        .90801E-03   -1.5265    
  16  norm          1.9306        2.9839        .13856E-03   -1.5430    
  17  norm          5.3181        3.6213        .11232E-03   -1.5247    
  18  Prefactor     .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    99.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    44.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5942        .87733        .28686E-04   -1.5279    
  22  Prefactor     16.131        12.166        .99721E-04   -1.4904    
  23  Prefactor     .10000E-03    12.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     24.202        13.186        .81421E-04   -1.4724    
  25  norm          1.8082        1.6679        .90665E-04   -1.5439    
  26  Prefactor     .10000E-03    3.3952        .13700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    185.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .60958        .23965        .36768E-03   -1.0758    
  29  Prefactor     1.3532        .21027        .22949E-03   -.81738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00264e-09
Minuit parameter uncertainties:
  1  2.60509
  2  1.00793e-06
  3  0.000287467
  4  75.5542
  5  9.70045
  6  0.00402593
  7  10.3645
  8  1.65178e-05
  9  21.0623
  10  0.000876524
  11  0.000124448
  12  1.74815e-06
  13  14.685
  14  0.00104869
  15  11.6359
  16  2.98413
  17  3.62146
  18  1.62124e-06
  19  0.00166834
  20  0.00110314
  21  0.877328
  22  12.1678
  23  1.0388e-06
  24  13.1874
  25  1.66794
  26  3.10048e-07
  27  0.00128006
  28  0.240058
  29  0.210401
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.748e-06  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.353e+00  2.104e-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:  6.096e-01  2.401e-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: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312190/likelihoodResults_643420801_643680001_4FGL_J1204.8+0407_daily_bin1559.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) = 5800.34601903
delta logL = -0.000345122903127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5800.34567393
delta logL = -2.05081960303e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5523       1.0000          .0000       10.000    
     3 'Normalizat'    .60969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5800.346     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.574        .90712E-02** at limit **
   2  Index         2.5253        6.2594        .50000        .17574E-04
   3  Normalizat    .60958        .20349        .83012E-01    .50375E-04
   4  Prefactor     1.3532        .18337        .51911E-01    .21024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.52529
  Normalizat = 0.609577
  Prefactor  = 1.35323
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.346     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5253        6.2592        .50000       -.51777    
   3  Normalizat    .60958        .22838        .36768E-03   -1.0758    
   4  Prefactor     1.3532        .20634        .22949E-03   -.81738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47233e-10
Minuit parameter uncertainties:
  1  0.000522722
  2  4.34623
  3  0.228738
  4  0.206468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312190': 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) = 5800.3456737
delta logL = 2.0879724616e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  5.227e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.525e+00  4.346e+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:  1.353e+00  2.065e-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:  6.096e-01  2.287e-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/312190/cmap_HighResolution_643420801_643680001_4FGL_J1204.8+0407_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-04 23:35:25.348796', job_id='312190', GAL2='1.35', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630823725.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1559' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:35:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 312190: <4FGL_J1204.8+0407_daily_bin1559> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1559> 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) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:57 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:57 2021
Terminated at Sat Sep  4 23:35:26 2021
Results reported at Sat Sep  4 23:35:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1559 181.203 4.12 643420801 643680001 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 :                                   827.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

